@ikenxuan/amagi 4.4.8 → 4.4.9
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/README.md +57 -34
- package/dist/default/cjs/index.cjs +1137 -676
- package/dist/default/esm/index.mjs +1127 -674
- package/dist/default/index.d.ts +527 -401
- package/package.json +4 -6
package/dist/default/index.d.ts
CHANGED
|
@@ -1076,7 +1076,7 @@ type AwemeDetail$2 = {
|
|
|
1076
1076
|
statistics: Statistics$4;
|
|
1077
1077
|
status: Status$3;
|
|
1078
1078
|
suggest_words: SuggestWords$4;
|
|
1079
|
-
text_extra: TextExtra$
|
|
1079
|
+
text_extra: TextExtra$3[];
|
|
1080
1080
|
uniqid_position: null;
|
|
1081
1081
|
user_digged: number;
|
|
1082
1082
|
user_recommend_status: number;
|
|
@@ -1499,7 +1499,7 @@ type Word$5 = {
|
|
|
1499
1499
|
word_id?: string;
|
|
1500
1500
|
[property: string]: any;
|
|
1501
1501
|
};
|
|
1502
|
-
type TextExtra$
|
|
1502
|
+
type TextExtra$3 = {
|
|
1503
1503
|
caption_end: number;
|
|
1504
1504
|
caption_start: number;
|
|
1505
1505
|
end: number;
|
|
@@ -1981,7 +1981,7 @@ type AwemeInfo = {
|
|
|
1981
1981
|
statistics: Statistics$3;
|
|
1982
1982
|
status: AwemeInfoStatus;
|
|
1983
1983
|
suggest_words: SuggestWords$3;
|
|
1984
|
-
text_extra: TextExtra$
|
|
1984
|
+
text_extra: TextExtra$2[];
|
|
1985
1985
|
trends_infos: null;
|
|
1986
1986
|
tts_id_list: null;
|
|
1987
1987
|
uniqid_position: null;
|
|
@@ -2278,7 +2278,7 @@ type Word$4 = {
|
|
|
2278
2278
|
word_id: string;
|
|
2279
2279
|
[property: string]: any;
|
|
2280
2280
|
};
|
|
2281
|
-
type TextExtra$
|
|
2281
|
+
type TextExtra$2 = {
|
|
2282
2282
|
end: number;
|
|
2283
2283
|
hashtag_id: string;
|
|
2284
2284
|
hashtag_name: string;
|
|
@@ -2823,7 +2823,7 @@ type AwemeDetail$1 = {
|
|
|
2823
2823
|
statistics: Statistics$2;
|
|
2824
2824
|
status: Status$2;
|
|
2825
2825
|
suggest_words: SuggestWords$2;
|
|
2826
|
-
text_extra: TextExtra$
|
|
2826
|
+
text_extra: TextExtra$1[];
|
|
2827
2827
|
uniqid_position: null;
|
|
2828
2828
|
user_digged: number;
|
|
2829
2829
|
user_recommend_status: number;
|
|
@@ -3343,7 +3343,7 @@ type Word$3 = {
|
|
|
3343
3343
|
word_id?: string;
|
|
3344
3344
|
[property: string]: any;
|
|
3345
3345
|
};
|
|
3346
|
-
type TextExtra$
|
|
3346
|
+
type TextExtra$1 = {
|
|
3347
3347
|
caption_end: number;
|
|
3348
3348
|
caption_start: number;
|
|
3349
3349
|
end: number;
|
|
@@ -6079,7 +6079,7 @@ type AwemeList = {
|
|
|
6079
6079
|
statistics: Statistics$1;
|
|
6080
6080
|
status: Status$1;
|
|
6081
6081
|
suggest_words: SuggestWords$1;
|
|
6082
|
-
text_extra: TextExtra
|
|
6082
|
+
text_extra: TextExtra[];
|
|
6083
6083
|
trends_infos: null;
|
|
6084
6084
|
tts_id_list: null;
|
|
6085
6085
|
uniqid_position: null;
|
|
@@ -6596,7 +6596,7 @@ type Word$1 = {
|
|
|
6596
6596
|
word_id: string;
|
|
6597
6597
|
[property: string]: any;
|
|
6598
6598
|
};
|
|
6599
|
-
type TextExtra
|
|
6599
|
+
type TextExtra = {
|
|
6600
6600
|
caption_end: number;
|
|
6601
6601
|
caption_start: number;
|
|
6602
6602
|
end: number;
|
|
@@ -7634,15 +7634,16 @@ type Comment$2 = {
|
|
|
7634
7634
|
create_time: number;
|
|
7635
7635
|
digg_count: number;
|
|
7636
7636
|
enter_from: string;
|
|
7637
|
-
image_list: ImageList[];
|
|
7637
|
+
image_list: ImageList[] | null;
|
|
7638
7638
|
ip_label: string;
|
|
7639
7639
|
is_author_digged: boolean;
|
|
7640
|
+
is_first_visitor_cmt?: boolean;
|
|
7640
7641
|
is_folded: boolean;
|
|
7641
7642
|
is_hot: boolean;
|
|
7642
7643
|
is_note_comment: number;
|
|
7643
7644
|
is_user_tend_to_reply: boolean;
|
|
7644
7645
|
item_comment_total: number;
|
|
7645
|
-
label_list: null;
|
|
7646
|
+
label_list: LabelList[] | null;
|
|
7646
7647
|
label_text: string;
|
|
7647
7648
|
label_type: number;
|
|
7648
7649
|
level: number;
|
|
@@ -7654,7 +7655,7 @@ type Comment$2 = {
|
|
|
7654
7655
|
status: number;
|
|
7655
7656
|
stick_position: number;
|
|
7656
7657
|
text: string;
|
|
7657
|
-
text_extra:
|
|
7658
|
+
text_extra: string[];
|
|
7658
7659
|
text_music_info: null;
|
|
7659
7660
|
user: CommentUser;
|
|
7660
7661
|
user_buried: boolean;
|
|
@@ -7705,57 +7706,49 @@ type Thumburl = {
|
|
|
7705
7706
|
width: number;
|
|
7706
7707
|
[property: string]: any;
|
|
7707
7708
|
};
|
|
7708
|
-
type
|
|
7709
|
-
aweme_id?: string;
|
|
7710
|
-
can_share?: boolean;
|
|
7711
|
-
cid?: string;
|
|
7712
|
-
content_type?: number;
|
|
7713
|
-
create_time?: number;
|
|
7714
|
-
digg_count?: number;
|
|
7715
|
-
image_list?: null;
|
|
7716
|
-
ip_label?: string;
|
|
7717
|
-
is_author_digged?: boolean;
|
|
7718
|
-
is_folded?: boolean;
|
|
7719
|
-
is_hot?: boolean;
|
|
7720
|
-
is_note_comment?: number;
|
|
7721
|
-
label_list?: null;
|
|
7722
|
-
label_text?: string;
|
|
7723
|
-
label_type?: number;
|
|
7724
|
-
level?: number;
|
|
7725
|
-
reply_comment?: null;
|
|
7726
|
-
reply_id?: string;
|
|
7727
|
-
reply_to_reply_id?: string;
|
|
7728
|
-
status?: number;
|
|
7709
|
+
type LabelList = {
|
|
7729
7710
|
text?: string;
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7711
|
+
type?: number;
|
|
7712
|
+
[property: string]: any;
|
|
7713
|
+
};
|
|
7714
|
+
type ReplyComment = {
|
|
7715
|
+
aweme_id: string;
|
|
7716
|
+
can_share: boolean;
|
|
7717
|
+
cid: string;
|
|
7718
|
+
content_type: number;
|
|
7719
|
+
create_time: number;
|
|
7720
|
+
digg_count: number;
|
|
7721
|
+
image_list: null;
|
|
7722
|
+
ip_label: string;
|
|
7723
|
+
is_author_digged: boolean;
|
|
7724
|
+
is_folded: boolean;
|
|
7725
|
+
is_hot: boolean;
|
|
7726
|
+
is_note_comment: number;
|
|
7727
|
+
label_list: null;
|
|
7728
|
+
label_text: string;
|
|
7729
|
+
label_type: number;
|
|
7730
|
+
level: number;
|
|
7731
|
+
reply_comment: null;
|
|
7732
|
+
reply_id: string;
|
|
7733
|
+
reply_to_reply_id: string;
|
|
7734
|
+
status: number;
|
|
7735
|
+
text: string;
|
|
7736
|
+
text_extra: any[];
|
|
7737
|
+
text_music_info: null;
|
|
7738
|
+
user: ReplyCommentUser;
|
|
7739
|
+
user_buried: boolean;
|
|
7740
|
+
user_digged: number;
|
|
7741
|
+
video_list: null;
|
|
7736
7742
|
[property: string]: any;
|
|
7737
7743
|
};
|
|
7738
7744
|
type ReplyCommentUser = {
|
|
7739
|
-
accept_private_policy: boolean;
|
|
7740
|
-
account_region: string;
|
|
7741
7745
|
ad_cover_url: null;
|
|
7742
|
-
apple_account: number;
|
|
7743
|
-
authority_status: number;
|
|
7744
|
-
avatar_168x168: PurpleAvatar168X168;
|
|
7745
|
-
avatar_300x300: PurpleAvatar300X300;
|
|
7746
|
-
avatar_larger: PurpleAvatarLarger;
|
|
7747
|
-
avatar_medium: PurpleAvatarMedium;
|
|
7748
7746
|
avatar_schema_list: null;
|
|
7749
7747
|
avatar_thumb: PurpleAvatarThumb;
|
|
7750
|
-
avatar_uri: string;
|
|
7751
7748
|
aweme_control: PurpleAwemeControl;
|
|
7752
|
-
|
|
7753
|
-
aweme_hotsoon_auth: number;
|
|
7754
|
-
awemehts_greet_info: string;
|
|
7755
|
-
ban_user_functions: any[];
|
|
7749
|
+
ban_user_functions: null;
|
|
7756
7750
|
batch_unfollow_contain_tabs: null;
|
|
7757
7751
|
batch_unfollow_relation_desc: null;
|
|
7758
|
-
bind_phone: string;
|
|
7759
7752
|
can_set_geofencing: null;
|
|
7760
7753
|
card_entries: null;
|
|
7761
7754
|
card_entries_not_display: null;
|
|
@@ -7763,82 +7756,34 @@ type ReplyCommentUser = {
|
|
|
7763
7756
|
cf_list: null;
|
|
7764
7757
|
cha_list: null;
|
|
7765
7758
|
close_friend_type: number;
|
|
7766
|
-
comment_filter_status: number;
|
|
7767
7759
|
comment_setting: number;
|
|
7768
7760
|
commerce_user_level: number;
|
|
7769
|
-
constellation: number;
|
|
7770
|
-
contacts_status: number;
|
|
7771
7761
|
contrail_list: null;
|
|
7772
|
-
cover_url:
|
|
7762
|
+
cover_url: null;
|
|
7773
7763
|
creator_tag_list: null;
|
|
7774
7764
|
custom_verify: string;
|
|
7775
|
-
cv_level: string;
|
|
7776
7765
|
data_label_list: null;
|
|
7777
7766
|
disable_image_comment_saved: number;
|
|
7778
7767
|
display_info: null;
|
|
7779
|
-
download_prompt_ts: number;
|
|
7780
|
-
download_setting: number;
|
|
7781
|
-
duet_setting: number;
|
|
7782
|
-
enable_nearby_visible: boolean;
|
|
7783
7768
|
endorsement_info_list: null;
|
|
7784
7769
|
enterprise_verify_reason: string;
|
|
7785
|
-
familiar_confidence: number;
|
|
7786
7770
|
familiar_visitor_user: null;
|
|
7787
|
-
favoriting_count: number;
|
|
7788
|
-
fb_expire_time: number;
|
|
7789
7771
|
follow_status: number;
|
|
7790
|
-
follower_count: number;
|
|
7791
7772
|
follower_list_secondary_information_struct: null;
|
|
7792
|
-
follower_request_status: number;
|
|
7793
7773
|
follower_status: number;
|
|
7794
7774
|
followers_detail: null;
|
|
7795
|
-
|
|
7796
|
-
geofencing: any[];
|
|
7797
|
-
google_account: string;
|
|
7798
|
-
has_email: boolean;
|
|
7799
|
-
has_facebook_token: boolean;
|
|
7800
|
-
has_insights: boolean;
|
|
7801
|
-
has_orders: boolean;
|
|
7802
|
-
has_twitter_token: boolean;
|
|
7803
|
-
has_unread_story: boolean;
|
|
7804
|
-
has_youtube_token: boolean;
|
|
7805
|
-
hide_location: boolean;
|
|
7806
|
-
hide_search: boolean;
|
|
7775
|
+
geofencing: null;
|
|
7807
7776
|
homepage_bottom_toast: null;
|
|
7808
7777
|
im_role_ids: null;
|
|
7809
|
-
ins_id: string;
|
|
7810
7778
|
interest_tags: null;
|
|
7811
7779
|
is_ad_fake: boolean;
|
|
7812
|
-
is_ban: boolean;
|
|
7813
|
-
is_binded_weibo: boolean;
|
|
7814
7780
|
is_block: boolean;
|
|
7815
7781
|
is_blocked_v2: boolean;
|
|
7816
7782
|
is_blocking_v2: boolean;
|
|
7817
|
-
is_cf: number;
|
|
7818
|
-
is_discipline_member: boolean;
|
|
7819
|
-
is_gov_media_vip: boolean;
|
|
7820
|
-
is_mix_user: boolean;
|
|
7821
|
-
is_not_show: boolean;
|
|
7822
|
-
is_phone_binded: boolean;
|
|
7823
7783
|
is_star: boolean;
|
|
7824
|
-
is_verified: boolean;
|
|
7825
7784
|
item_list: null;
|
|
7826
|
-
ky_only_predict: number;
|
|
7827
|
-
language: string;
|
|
7828
7785
|
link_item_list: null;
|
|
7829
|
-
live_agreement: number;
|
|
7830
|
-
live_agreement_time: number;
|
|
7831
|
-
live_commerce: boolean;
|
|
7832
|
-
live_high_value: number;
|
|
7833
|
-
live_status: number;
|
|
7834
|
-
live_verify: number;
|
|
7835
|
-
location: string;
|
|
7836
|
-
mate_add_permission: number;
|
|
7837
|
-
max_follower_count: number;
|
|
7838
7786
|
need_points: null;
|
|
7839
|
-
need_recommend: number;
|
|
7840
|
-
neiguang_shield: number;
|
|
7841
|
-
new_friend_type: number;
|
|
7842
7787
|
new_story_cover: null;
|
|
7843
7788
|
nickname: string;
|
|
7844
7789
|
not_seen_item_id_list: null;
|
|
@@ -7846,105 +7791,25 @@ type ReplyCommentUser = {
|
|
|
7846
7791
|
offline_info_list: null;
|
|
7847
7792
|
personal_tag_list: null;
|
|
7848
7793
|
platform_sync_info: null;
|
|
7849
|
-
prevent_download: boolean;
|
|
7850
7794
|
private_relation_list: null;
|
|
7851
7795
|
profile_mob_params: null;
|
|
7852
|
-
react_setting: number;
|
|
7853
|
-
reflow_page_gid: number;
|
|
7854
|
-
reflow_page_uid: number;
|
|
7855
7796
|
region: string;
|
|
7856
7797
|
relative_users: null;
|
|
7857
|
-
risk_notice_text: string;
|
|
7858
|
-
room_id: number;
|
|
7859
|
-
room_id_str: string;
|
|
7860
|
-
school_category: number;
|
|
7861
|
-
school_name: string;
|
|
7862
|
-
school_poi_id: string;
|
|
7863
|
-
school_type: number;
|
|
7864
|
-
search_impr: PurpleSearchImpr;
|
|
7865
7798
|
sec_uid: string;
|
|
7866
7799
|
secret: number;
|
|
7867
|
-
shield_comment_notice: number;
|
|
7868
|
-
shield_digg_notice: number;
|
|
7869
|
-
shield_follow_notice: number;
|
|
7870
7800
|
short_id: string;
|
|
7871
|
-
show_gender_strategy: number;
|
|
7872
|
-
show_image_bubble: boolean;
|
|
7873
|
-
show_nearby_active: boolean;
|
|
7874
|
-
signature: string;
|
|
7875
|
-
signature_display_lines: number;
|
|
7876
7801
|
signature_extra: null;
|
|
7877
|
-
special_follow_status: number;
|
|
7878
|
-
special_lock: number;
|
|
7879
7802
|
special_people_labels: null;
|
|
7880
7803
|
status: number;
|
|
7881
|
-
stitch_setting: number;
|
|
7882
|
-
story_count: number;
|
|
7883
|
-
story_open: boolean;
|
|
7884
|
-
sync_to_toutiao: number;
|
|
7885
7804
|
text_extra: null;
|
|
7886
|
-
total_favorited: number;
|
|
7887
|
-
tw_expire_time: number;
|
|
7888
|
-
twitter_id: string;
|
|
7889
|
-
twitter_name: string;
|
|
7890
7805
|
type_label: null;
|
|
7891
7806
|
uid: string;
|
|
7892
7807
|
unique_id: string;
|
|
7893
|
-
unique_id_modify_time: number;
|
|
7894
|
-
urge_detail: PurpleUrgeDetail;
|
|
7895
|
-
user_age: number;
|
|
7896
7808
|
user_canceled: boolean;
|
|
7897
|
-
user_mode: number;
|
|
7898
|
-
user_not_see: number;
|
|
7899
|
-
user_not_show: number;
|
|
7900
|
-
user_period: number;
|
|
7901
7809
|
user_permissions: null;
|
|
7902
|
-
user_rate: number;
|
|
7903
7810
|
user_tags: null;
|
|
7904
7811
|
verification_permission_ids: null;
|
|
7905
|
-
verification_type: number;
|
|
7906
|
-
verify_info: string;
|
|
7907
|
-
video_icon: PurpleVideoIcon;
|
|
7908
|
-
weibo_name: string;
|
|
7909
|
-
weibo_schema: string;
|
|
7910
|
-
weibo_url: string;
|
|
7911
|
-
weibo_verify: string;
|
|
7912
7812
|
white_cover_url: null;
|
|
7913
|
-
with_commerce_entry: boolean;
|
|
7914
|
-
with_dou_entry: boolean;
|
|
7915
|
-
with_fusion_shop_entry: boolean;
|
|
7916
|
-
with_shop_entry: boolean;
|
|
7917
|
-
youtube_channel_id: string;
|
|
7918
|
-
youtube_channel_title: string;
|
|
7919
|
-
youtube_expire_time: number;
|
|
7920
|
-
[property: string]: any;
|
|
7921
|
-
};
|
|
7922
|
-
type PurpleAvatar168X168 = {
|
|
7923
|
-
height: number;
|
|
7924
|
-
uri: string;
|
|
7925
|
-
url_list: string[];
|
|
7926
|
-
width: number;
|
|
7927
|
-
[property: string]: any;
|
|
7928
|
-
};
|
|
7929
|
-
type PurpleAvatar300X300 = {
|
|
7930
|
-
height: number;
|
|
7931
|
-
uri: string;
|
|
7932
|
-
url_list: string[];
|
|
7933
|
-
width: number;
|
|
7934
|
-
[property: string]: any;
|
|
7935
|
-
};
|
|
7936
|
-
type PurpleAvatarLarger = {
|
|
7937
|
-
height: number;
|
|
7938
|
-
uri: string;
|
|
7939
|
-
url_list: string[];
|
|
7940
|
-
width: number;
|
|
7941
|
-
[property: string]: any;
|
|
7942
|
-
};
|
|
7943
|
-
type PurpleAvatarMedium = {
|
|
7944
|
-
height: number;
|
|
7945
|
-
uri: string;
|
|
7946
|
-
url_list: string[];
|
|
7947
|
-
width: number;
|
|
7948
7813
|
[property: string]: any;
|
|
7949
7814
|
};
|
|
7950
7815
|
type PurpleAvatarThumb = {
|
|
@@ -7961,56 +7826,11 @@ type PurpleAwemeControl = {
|
|
|
7961
7826
|
can_show_comment: boolean;
|
|
7962
7827
|
[property: string]: any;
|
|
7963
7828
|
};
|
|
7964
|
-
type PurpleCoverurl = {
|
|
7965
|
-
height?: number;
|
|
7966
|
-
uri?: string;
|
|
7967
|
-
url_list?: string[];
|
|
7968
|
-
width?: number;
|
|
7969
|
-
[property: string]: any;
|
|
7970
|
-
};
|
|
7971
|
-
type PurpleSearchImpr = {
|
|
7972
|
-
entity_id: string;
|
|
7973
|
-
[property: string]: any;
|
|
7974
|
-
};
|
|
7975
|
-
type PurpleUrgeDetail = {
|
|
7976
|
-
user_urged: number;
|
|
7977
|
-
[property: string]: any;
|
|
7978
|
-
};
|
|
7979
|
-
type PurpleVideoIcon = {
|
|
7980
|
-
height: number;
|
|
7981
|
-
uri: string;
|
|
7982
|
-
url_list: any[];
|
|
7983
|
-
width: number;
|
|
7984
|
-
[property: string]: any;
|
|
7985
|
-
};
|
|
7986
|
-
type TextExtra = {
|
|
7987
|
-
end?: number;
|
|
7988
|
-
hashtag_id?: string;
|
|
7989
|
-
hashtag_name?: string;
|
|
7990
|
-
sec_uid?: string;
|
|
7991
|
-
start?: number;
|
|
7992
|
-
type?: number;
|
|
7993
|
-
user_id?: string;
|
|
7994
|
-
[property: string]: any;
|
|
7995
|
-
};
|
|
7996
7829
|
type CommentUser = {
|
|
7997
|
-
accept_private_policy: boolean;
|
|
7998
|
-
account_region: string;
|
|
7999
7830
|
ad_cover_url: null;
|
|
8000
|
-
apple_account: number;
|
|
8001
|
-
authority_status: number;
|
|
8002
|
-
avatar_168x168: FluffyAvatar168X168;
|
|
8003
|
-
avatar_300x300: FluffyAvatar300X300;
|
|
8004
|
-
avatar_larger: FluffyAvatarLarger;
|
|
8005
|
-
avatar_medium: FluffyAvatarMedium;
|
|
8006
7831
|
avatar_schema_list: null;
|
|
8007
7832
|
avatar_thumb: FluffyAvatarThumb;
|
|
8008
|
-
avatar_uri: string;
|
|
8009
7833
|
aweme_control: FluffyAwemeControl;
|
|
8010
|
-
aweme_count: number;
|
|
8011
|
-
aweme_hotsoon_auth: number;
|
|
8012
|
-
aweme_hotsoon_auth_relation: number;
|
|
8013
|
-
awemehts_greet_info: string;
|
|
8014
7834
|
ban_user_functions: number[];
|
|
8015
7835
|
batch_unfollow_contain_tabs: null;
|
|
8016
7836
|
batch_unfollow_relation_desc: null;
|
|
@@ -8021,80 +7841,33 @@ type CommentUser = {
|
|
|
8021
7841
|
cf_list: null;
|
|
8022
7842
|
cha_list: null;
|
|
8023
7843
|
close_friend_type: number;
|
|
8024
|
-
comment_filter_status: number;
|
|
8025
7844
|
comment_setting: number;
|
|
8026
7845
|
commerce_user_level: number;
|
|
8027
|
-
constellation: number;
|
|
8028
|
-
contacts_status: number;
|
|
8029
7846
|
contrail_list: null;
|
|
8030
|
-
cover_url:
|
|
7847
|
+
cover_url: null;
|
|
8031
7848
|
creator_tag_list: null;
|
|
8032
7849
|
custom_verify: string;
|
|
8033
|
-
cv_level: string;
|
|
8034
7850
|
data_label_list: null;
|
|
8035
7851
|
disable_image_comment_saved: number;
|
|
8036
7852
|
display_info: null;
|
|
8037
|
-
download_prompt_ts: number;
|
|
8038
|
-
download_setting: number;
|
|
8039
|
-
duet_setting: number;
|
|
8040
|
-
enable_nearby_visible: boolean;
|
|
8041
7853
|
endorsement_info_list: null;
|
|
8042
7854
|
enterprise_verify_reason: string;
|
|
8043
|
-
familiar_confidence: number;
|
|
8044
7855
|
familiar_visitor_user: null;
|
|
8045
|
-
favoriting_count: number;
|
|
8046
|
-
fb_expire_time: number;
|
|
8047
7856
|
follow_status: number;
|
|
8048
|
-
follower_count: number;
|
|
8049
7857
|
follower_list_secondary_information_struct: null;
|
|
8050
|
-
follower_request_status: number;
|
|
8051
7858
|
follower_status: number;
|
|
8052
|
-
|
|
8053
|
-
geofencing: string[];
|
|
8054
|
-
google_account: string;
|
|
8055
|
-
has_email: boolean;
|
|
8056
|
-
has_facebook_token: boolean;
|
|
8057
|
-
has_insights: boolean;
|
|
8058
|
-
has_orders: boolean;
|
|
8059
|
-
has_twitter_token: boolean;
|
|
8060
|
-
has_unread_story: boolean;
|
|
8061
|
-
has_youtube_token: boolean;
|
|
8062
|
-
hide_location: boolean;
|
|
8063
|
-
hide_search: boolean;
|
|
7859
|
+
geofencing: null;
|
|
8064
7860
|
homepage_bottom_toast: null;
|
|
8065
7861
|
im_role_ids: null;
|
|
8066
|
-
ins_id: string;
|
|
8067
7862
|
interest_tags: null;
|
|
8068
7863
|
is_ad_fake: boolean;
|
|
8069
|
-
is_ban: boolean;
|
|
8070
|
-
is_binded_weibo: boolean;
|
|
8071
7864
|
is_block: boolean;
|
|
8072
7865
|
is_blocked_v2: boolean;
|
|
8073
7866
|
is_blocking_v2: boolean;
|
|
8074
|
-
is_cf: number;
|
|
8075
|
-
is_discipline_member: boolean;
|
|
8076
|
-
is_gov_media_vip: boolean;
|
|
8077
|
-
is_mix_user: boolean;
|
|
8078
|
-
is_not_show: boolean;
|
|
8079
|
-
is_phone_binded: boolean;
|
|
8080
7867
|
is_star: boolean;
|
|
8081
|
-
is_verified: boolean;
|
|
8082
7868
|
item_list: null;
|
|
8083
|
-
ky_only_predict: number;
|
|
8084
|
-
language: string;
|
|
8085
7869
|
link_item_list: null;
|
|
8086
|
-
live_agreement: number;
|
|
8087
|
-
live_agreement_time: number;
|
|
8088
|
-
live_commerce: boolean;
|
|
8089
|
-
live_high_value: number;
|
|
8090
|
-
live_status: number;
|
|
8091
|
-
live_verify: number;
|
|
8092
|
-
mate_add_permission: number;
|
|
8093
|
-
max_follower_count: number;
|
|
8094
7870
|
need_points: null;
|
|
8095
|
-
need_recommend: number;
|
|
8096
|
-
neiguang_shield: number;
|
|
8097
|
-
new_friend_type: number;
|
|
8098
7871
|
new_story_cover: null;
|
|
8099
7872
|
nickname: string;
|
|
8100
7873
|
not_seen_item_id_list: null;
|
|
@@ -8102,101 +7875,25 @@ type CommentUser = {
|
|
|
8102
7875
|
offline_info_list: null;
|
|
8103
7876
|
personal_tag_list: null;
|
|
8104
7877
|
platform_sync_info: null;
|
|
8105
|
-
prevent_download: boolean;
|
|
8106
7878
|
private_relation_list: null;
|
|
8107
7879
|
profile_mob_params: null;
|
|
8108
|
-
react_setting: number;
|
|
8109
|
-
reflow_page_gid: number;
|
|
8110
|
-
reflow_page_uid: number;
|
|
8111
7880
|
region: string;
|
|
8112
7881
|
relative_users: null;
|
|
8113
|
-
risk_notice_text: string;
|
|
8114
|
-
room_id: number;
|
|
8115
|
-
room_id_str: string;
|
|
8116
|
-
school_category: number;
|
|
8117
|
-
search_impr: FluffySearchImpr;
|
|
8118
7882
|
sec_uid: string;
|
|
8119
7883
|
secret: number;
|
|
8120
|
-
shield_comment_notice: number;
|
|
8121
|
-
shield_digg_notice: number;
|
|
8122
|
-
shield_follow_notice: number;
|
|
8123
7884
|
short_id: string;
|
|
8124
|
-
show_gender_strategy: number;
|
|
8125
|
-
show_image_bubble: boolean;
|
|
8126
|
-
show_nearby_active: boolean;
|
|
8127
|
-
signature: string;
|
|
8128
|
-
signature_display_lines: number;
|
|
8129
7885
|
signature_extra: null;
|
|
8130
|
-
special_follow_status: number;
|
|
8131
|
-
special_lock: number;
|
|
8132
7886
|
special_people_labels: null;
|
|
8133
7887
|
status: number;
|
|
8134
|
-
stitch_setting: number;
|
|
8135
|
-
story_count: number;
|
|
8136
|
-
story_open: boolean;
|
|
8137
|
-
sync_to_toutiao: number;
|
|
8138
7888
|
text_extra: null;
|
|
8139
|
-
total_favorited: number;
|
|
8140
|
-
tw_expire_time: number;
|
|
8141
|
-
twitter_id: string;
|
|
8142
|
-
twitter_name: string;
|
|
8143
7889
|
type_label: null;
|
|
8144
7890
|
uid: string;
|
|
8145
7891
|
unique_id: string;
|
|
8146
|
-
unique_id_modify_time: number;
|
|
8147
|
-
urge_detail: FluffyUrgeDetail;
|
|
8148
7892
|
user_canceled: boolean;
|
|
8149
|
-
user_mode: number;
|
|
8150
|
-
user_not_see: number;
|
|
8151
|
-
user_not_show: number;
|
|
8152
|
-
user_period: number;
|
|
8153
7893
|
user_permissions: null;
|
|
8154
|
-
user_rate: number;
|
|
8155
7894
|
user_tags: null;
|
|
8156
7895
|
verification_permission_ids: null;
|
|
8157
|
-
verification_type: number;
|
|
8158
|
-
verify_info: string;
|
|
8159
|
-
video_icon: FluffyVideoIcon;
|
|
8160
|
-
weibo_name: string;
|
|
8161
|
-
weibo_schema: string;
|
|
8162
|
-
weibo_url: string;
|
|
8163
|
-
weibo_verify: string;
|
|
8164
7896
|
white_cover_url: null;
|
|
8165
|
-
with_commerce_entry: boolean;
|
|
8166
|
-
with_dou_entry: boolean;
|
|
8167
|
-
with_fusion_shop_entry: boolean;
|
|
8168
|
-
with_shop_entry: boolean;
|
|
8169
|
-
youtube_channel_id: string;
|
|
8170
|
-
youtube_channel_title: string;
|
|
8171
|
-
youtube_expire_time: number;
|
|
8172
|
-
[property: string]: any;
|
|
8173
|
-
};
|
|
8174
|
-
type FluffyAvatar168X168 = {
|
|
8175
|
-
height: number;
|
|
8176
|
-
uri: string;
|
|
8177
|
-
url_list: string[];
|
|
8178
|
-
width: number;
|
|
8179
|
-
[property: string]: any;
|
|
8180
|
-
};
|
|
8181
|
-
type FluffyAvatar300X300 = {
|
|
8182
|
-
height: number;
|
|
8183
|
-
uri: string;
|
|
8184
|
-
url_list: string[];
|
|
8185
|
-
width: number;
|
|
8186
|
-
[property: string]: any;
|
|
8187
|
-
};
|
|
8188
|
-
type FluffyAvatarLarger = {
|
|
8189
|
-
height: number;
|
|
8190
|
-
uri: string;
|
|
8191
|
-
url_list: string[];
|
|
8192
|
-
width: number;
|
|
8193
|
-
[property: string]: any;
|
|
8194
|
-
};
|
|
8195
|
-
type FluffyAvatarMedium = {
|
|
8196
|
-
height: number;
|
|
8197
|
-
uri: string;
|
|
8198
|
-
url_list: string[];
|
|
8199
|
-
width: number;
|
|
8200
7897
|
[property: string]: any;
|
|
8201
7898
|
};
|
|
8202
7899
|
type FluffyAvatarThumb = {
|
|
@@ -8213,28 +7910,6 @@ type FluffyAwemeControl = {
|
|
|
8213
7910
|
can_show_comment: boolean;
|
|
8214
7911
|
[property: string]: any;
|
|
8215
7912
|
};
|
|
8216
|
-
type FluffyCoverurl = {
|
|
8217
|
-
height: number;
|
|
8218
|
-
uri: string;
|
|
8219
|
-
url_list: string[];
|
|
8220
|
-
width: number;
|
|
8221
|
-
[property: string]: any;
|
|
8222
|
-
};
|
|
8223
|
-
type FluffySearchImpr = {
|
|
8224
|
-
entity_id: string;
|
|
8225
|
-
[property: string]: any;
|
|
8226
|
-
};
|
|
8227
|
-
type FluffyUrgeDetail = {
|
|
8228
|
-
user_urged: number;
|
|
8229
|
-
[property: string]: any;
|
|
8230
|
-
};
|
|
8231
|
-
type FluffyVideoIcon = {
|
|
8232
|
-
height: number;
|
|
8233
|
-
uri: string;
|
|
8234
|
-
url_list: string[];
|
|
8235
|
-
width: number;
|
|
8236
|
-
[property: string]: any;
|
|
8237
|
-
};
|
|
8238
7913
|
type Extra = {
|
|
8239
7914
|
fatal_item_ids: null;
|
|
8240
7915
|
now: number;
|
|
@@ -13582,7 +13257,7 @@ type TypeControl = {
|
|
|
13582
13257
|
};
|
|
13583
13258
|
|
|
13584
13259
|
/**
|
|
13585
|
-
*
|
|
13260
|
+
* 快捷获取抖音数据
|
|
13586
13261
|
* @param type - 请求数据类型
|
|
13587
13262
|
* @param cookie - 有效的用户Cookie
|
|
13588
13263
|
* @param options - 请求参数,是一个对象
|
|
@@ -13592,7 +13267,7 @@ declare function getDouyinData<T extends keyof DouyinDataOptionsMap, R extends '
|
|
|
13592
13267
|
typeMode?: R;
|
|
13593
13268
|
}): Promise<R extends 'strict' ? DouyinDataOptionsMap[T]['data'] : any>;
|
|
13594
13269
|
/**
|
|
13595
|
-
*
|
|
13270
|
+
* 快捷获取抖音数据
|
|
13596
13271
|
* @param type - 请求数据类型
|
|
13597
13272
|
* @param options - 请求参数,是一个对象
|
|
13598
13273
|
* @param cookie - 有效的用户Cookie
|
|
@@ -13602,7 +13277,7 @@ declare function getDouyinData<T extends keyof DouyinDataOptionsMap, R extends '
|
|
|
13602
13277
|
typeMode?: R;
|
|
13603
13278
|
}, cookie?: string): Promise<R extends 'strict' ? DouyinDataOptionsMap[T]['data'] : any>;
|
|
13604
13279
|
/**
|
|
13605
|
-
*
|
|
13280
|
+
* 快捷获取B站数据
|
|
13606
13281
|
* @param type - 请求数据类型
|
|
13607
13282
|
* @param cookie - 有效的用户Cookie
|
|
13608
13283
|
* @param options - 请求参数,是一个对象
|
|
@@ -13612,7 +13287,7 @@ declare function getBilibiliData<T extends keyof BilibiliDataOptionsMap, R exten
|
|
|
13612
13287
|
typeMode?: R;
|
|
13613
13288
|
}): Promise<R extends 'strict' ? BilibiliDataOptionsMap[T]['data'] : any>;
|
|
13614
13289
|
/**
|
|
13615
|
-
*
|
|
13290
|
+
* 快捷获取B站数据
|
|
13616
13291
|
* @param type - 请求数据类型
|
|
13617
13292
|
* @param options - 请求参数,是一个对象
|
|
13618
13293
|
* @param cookie - 有效的用户Cookie
|
|
@@ -13622,7 +13297,7 @@ declare function getBilibiliData<T extends keyof BilibiliDataOptionsMap, R exten
|
|
|
13622
13297
|
typeMode?: R;
|
|
13623
13298
|
}, cookie?: string): Promise<R extends 'strict' ? BilibiliDataOptionsMap[T]['data'] : any>;
|
|
13624
13299
|
/**
|
|
13625
|
-
*
|
|
13300
|
+
* 快捷获取快手数据
|
|
13626
13301
|
* @param type - 请求数据类型
|
|
13627
13302
|
* @param cookie - 有效的用户Cookie
|
|
13628
13303
|
* @param options - 请求参数,是一个对象
|
|
@@ -13632,7 +13307,7 @@ declare function getKuaishouData<T extends keyof KuaishouDataOptionsMap, R exten
|
|
|
13632
13307
|
typeMode?: R;
|
|
13633
13308
|
}): Promise<R extends 'strict' ? KuaishouDataOptionsMap[T]['data'] : any>;
|
|
13634
13309
|
/**
|
|
13635
|
-
*
|
|
13310
|
+
* 快捷获取快手数据
|
|
13636
13311
|
* @param type - 请求数据类型
|
|
13637
13312
|
* @param options - 请求参数,是一个对象
|
|
13638
13313
|
* @param cookie - 有效的用户Cookie
|
|
@@ -13707,21 +13382,173 @@ declare class Networks {
|
|
|
13707
13382
|
* @param fields - 要对data进行检查的字段
|
|
13708
13383
|
* @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
|
|
13709
13384
|
*/
|
|
13710
|
-
declare const DouyinValidateData: <T extends keyof DouyinDataOptionsMap>(data: DouyinDataOptionsMap[T]["opt"],
|
|
13385
|
+
declare const DouyinValidateData: <T extends keyof DouyinDataOptionsMap>(data: DouyinDataOptionsMap[T]["opt"], // 根据 methodType 动态关联 opt 类型
|
|
13386
|
+
fields: (keyof Omit<DouyinDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
|
|
13711
13387
|
/**
|
|
13712
13388
|
* 参数检查
|
|
13713
13389
|
* @param data - 参数对象
|
|
13714
13390
|
* @param fields - 要对data进行检查的字段
|
|
13715
13391
|
* @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
|
|
13716
13392
|
*/
|
|
13717
|
-
declare const BilibiliValidateData: <T extends keyof BilibiliDataOptionsMap>(data: BilibiliDataOptionsMap[T]["opt"],
|
|
13393
|
+
declare const BilibiliValidateData: <T extends keyof BilibiliDataOptionsMap>(data: BilibiliDataOptionsMap[T]["opt"], // 根据 methodType 动态关联 opt 类型
|
|
13394
|
+
fields: (keyof Omit<BilibiliDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
|
|
13718
13395
|
/**
|
|
13719
13396
|
* 参数检查
|
|
13720
13397
|
* @param data - 参数对象
|
|
13721
13398
|
* @param fields - 要对data进行检查的字段
|
|
13722
13399
|
* @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
|
|
13723
13400
|
*/
|
|
13724
|
-
declare const KusiahouValidateData: <T extends keyof KuaishouDataOptionsMap>(data: KuaishouDataOptionsMap[T]["opt"],
|
|
13401
|
+
declare const KusiahouValidateData: <T extends keyof KuaishouDataOptionsMap>(data: KuaishouDataOptionsMap[T]["opt"], // 根据 methodType 动态关联 opt 类型
|
|
13402
|
+
fields: (keyof Omit<KuaishouDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
|
|
13403
|
+
|
|
13404
|
+
/**
|
|
13405
|
+
* 从 BilibiliMethodOptionsMap 中提取特定 API 的选项类型,并移除 methodType,添加 TypeControl。
|
|
13406
|
+
* @template K - BilibiliMethodOptionsMap 中的键名。
|
|
13407
|
+
*/
|
|
13408
|
+
type BilibiliApiOptions<K extends keyof BilibiliMethodOptionsMap> = Omit<BilibiliMethodOptionsMap[K], 'methodType'> & TypeControl;
|
|
13409
|
+
/**
|
|
13410
|
+
* 根据传入的选项中的 typeMode 决定 Bilibili API 的返回类型。
|
|
13411
|
+
* @template K - BilibiliDataOptionsMap 中的键名。
|
|
13412
|
+
* @template T - 包含可选 typeMode 的选项对象。
|
|
13413
|
+
*/
|
|
13414
|
+
type BilibiliApiReturn<K extends keyof BilibiliDataOptionsMap, T extends TypeControl> = T['typeMode'] extends 'strict' ? BilibiliDataOptionsMap[K]['data'] : any;
|
|
13415
|
+
/**
|
|
13416
|
+
* B站相关 API 的命名空间。
|
|
13417
|
+
*
|
|
13418
|
+
* 部分接口可能不需要 Cookie 但建议传递有效的用户 Cookie,以获取更多数据。
|
|
13419
|
+
*
|
|
13420
|
+
* 提供了一系列方法,用于与B站相关的 API 进行交互。
|
|
13421
|
+
*
|
|
13422
|
+
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
13423
|
+
*/
|
|
13424
|
+
declare const bilibili: {
|
|
13425
|
+
/**
|
|
13426
|
+
* 获取单个视频作品数据
|
|
13427
|
+
* @param options 请求参数,包含 bvid 和可选的 typeMode
|
|
13428
|
+
* @param cookie 有效的用户 Cookie
|
|
13429
|
+
* @returns 接口返回的原始数据
|
|
13430
|
+
*/
|
|
13431
|
+
getVideoInfo<T extends BilibiliApiOptions<"VideoInfoParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u5355\u4E2A\u89C6\u9891\u4F5C\u54C1\u6570\u636E", T>>;
|
|
13432
|
+
/**
|
|
13433
|
+
* 获取单个视频下载信息数据
|
|
13434
|
+
* @param options 请求参数,包含 avid, cid 和可选的 typeMode
|
|
13435
|
+
* @param cookie 有效的用户 Cookie
|
|
13436
|
+
* @returns 接口返回的原始数据
|
|
13437
|
+
*/
|
|
13438
|
+
getVideoStream<T extends BilibiliApiOptions<"VideoStreamParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u5355\u4E2A\u89C6\u9891\u4E0B\u8F7D\u4FE1\u606F\u6570\u636E", T>>;
|
|
13439
|
+
/**
|
|
13440
|
+
* 获取评论数据
|
|
13441
|
+
* @param options 请求参数,包含 type, oid, 可选的 number, pn 和 typeMode
|
|
13442
|
+
* @param cookie 有效的用户 Cookie
|
|
13443
|
+
* @returns 接口返回的原始数据
|
|
13444
|
+
*/
|
|
13445
|
+
getComments<T extends BilibiliApiOptions<"CommentParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u8BC4\u8BBA\u6570\u636E", T>>;
|
|
13446
|
+
/**
|
|
13447
|
+
* 获取用户主页数据
|
|
13448
|
+
* @param options 请求参数,包含 host_mid 和可选的 typeMode
|
|
13449
|
+
* @param cookie 有效的用户 Cookie
|
|
13450
|
+
* @returns 接口返回的原始数据
|
|
13451
|
+
*/
|
|
13452
|
+
getUserProfile<T extends BilibiliApiOptions<"UserParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u7528\u6237\u4E3B\u9875\u6570\u636E", T>>;
|
|
13453
|
+
/**
|
|
13454
|
+
* 获取用户主页动态列表数据
|
|
13455
|
+
* @param options 请求参数,包含 host_mid 和可选的 typeMode
|
|
13456
|
+
* @param cookie 有效的用户 Cookie
|
|
13457
|
+
* @returns 接口返回的原始数据
|
|
13458
|
+
*/
|
|
13459
|
+
getUserDynamic<T extends BilibiliApiOptions<"UserParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u7528\u6237\u4E3B\u9875\u52A8\u6001\u5217\u8868\u6570\u636E", T>>;
|
|
13460
|
+
/**
|
|
13461
|
+
* 获取 Emoji 数据
|
|
13462
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13463
|
+
* @param cookie 有效的用户 Cookie
|
|
13464
|
+
* @returns 接口返回的原始数据
|
|
13465
|
+
*/
|
|
13466
|
+
getEmojiList<T extends BilibiliApiOptions<"EmojiParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"Emoji\u6570\u636E", T>>;
|
|
13467
|
+
/**
|
|
13468
|
+
* 获取番剧基本信息数据
|
|
13469
|
+
* @param options 请求参数,包含可选的 season_id, ep_id 和 typeMode
|
|
13470
|
+
* @param cookie 有效的用户 Cookie
|
|
13471
|
+
* @returns 接口返回的原始数据
|
|
13472
|
+
*/
|
|
13473
|
+
getBangumiInfo<T extends BilibiliApiOptions<"BangumiInfoParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u756A\u5267\u57FA\u672C\u4FE1\u606F\u6570\u636E", T>>;
|
|
13474
|
+
/**
|
|
13475
|
+
* 获取番剧下载信息数据
|
|
13476
|
+
* @param options 请求参数,包含 cid, ep_id 和可选的 typeMode
|
|
13477
|
+
* @param cookie 有效的用户 Cookie
|
|
13478
|
+
* @returns 接口返回的原始数据
|
|
13479
|
+
*/
|
|
13480
|
+
getBangumiStream<T extends BilibiliApiOptions<"BangumiStreamParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u756A\u5267\u4E0B\u8F7D\u4FE1\u606F\u6570\u636E", T>>;
|
|
13481
|
+
/**
|
|
13482
|
+
* 获取动态详情数据
|
|
13483
|
+
* @param options 请求参数,包含 dynamic_id 和可选的 typeMode
|
|
13484
|
+
* @param cookie 有效的用户 Cookie
|
|
13485
|
+
* @returns 接口返回的原始数据
|
|
13486
|
+
*/
|
|
13487
|
+
getDynamicInfo<T extends BilibiliApiOptions<"DynamicParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u52A8\u6001\u8BE6\u60C5\u6570\u636E", T>>;
|
|
13488
|
+
/**
|
|
13489
|
+
* 获取动态卡片数据
|
|
13490
|
+
* @param options 请求参数,包含 dynamic_id 和可选的 typeMode
|
|
13491
|
+
* @param cookie 有效的用户 Cookie
|
|
13492
|
+
* @returns 接口返回的原始数据
|
|
13493
|
+
*/
|
|
13494
|
+
getDynamicCard<T extends BilibiliApiOptions<"DynamicParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u52A8\u6001\u5361\u7247\u6570\u636E", T>>;
|
|
13495
|
+
/**
|
|
13496
|
+
* 获取直播间信息
|
|
13497
|
+
* @param options 请求参数,包含 room_id 和可选的 typeMode
|
|
13498
|
+
* @param cookie 有效的用户 Cookie
|
|
13499
|
+
* @returns 接口返回的原始数据
|
|
13500
|
+
*/
|
|
13501
|
+
getLiveRoomDetail<T extends BilibiliApiOptions<"LiveRoomParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u76F4\u64AD\u95F4\u4FE1\u606F", T>>;
|
|
13502
|
+
/**
|
|
13503
|
+
* 获取直播间初始化信息
|
|
13504
|
+
* @param options 请求参数,包含 room_id 和可选的 typeMode
|
|
13505
|
+
* @param cookie 有效的用户 Cookie
|
|
13506
|
+
* @returns 接口返回的原始数据
|
|
13507
|
+
*/
|
|
13508
|
+
getLiveRoomInitInfo<T extends BilibiliApiOptions<"LiveRoomParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u76F4\u64AD\u95F4\u521D\u59CB\u5316\u4FE1\u606F", T>>;
|
|
13509
|
+
/**
|
|
13510
|
+
* 获取登录基本信息
|
|
13511
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13512
|
+
* @param cookie 有效的用户 Cookie
|
|
13513
|
+
* @returns 接口返回的原始数据
|
|
13514
|
+
*/
|
|
13515
|
+
getLoginBasicInfo<T extends BilibiliApiOptions<"LoginBaseInfoParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u767B\u5F55\u57FA\u672C\u4FE1\u606F", T>>;
|
|
13516
|
+
/**
|
|
13517
|
+
* 申请登录二维码
|
|
13518
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13519
|
+
* @param cookie 有效的用户 Cookie
|
|
13520
|
+
* @returns 接口返回的原始数据
|
|
13521
|
+
*/
|
|
13522
|
+
getLoginQrcode<T extends BilibiliApiOptions<"GetQrcodeParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u7533\u8BF7\u4E8C\u7EF4\u7801", T>>;
|
|
13523
|
+
/**
|
|
13524
|
+
* 检查二维码状态
|
|
13525
|
+
* @param options 请求参数,包含 qrcode_key 和可选的 typeMode
|
|
13526
|
+
* @param cookie 有效的用户 Cookie
|
|
13527
|
+
* @returns 接口返回的原始数据
|
|
13528
|
+
*/
|
|
13529
|
+
checkQrcodeStatus<T extends BilibiliApiOptions<"QrcodeParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u4E8C\u7EF4\u7801\u72B6\u6001", T>>;
|
|
13530
|
+
/**
|
|
13531
|
+
* 获取 UP 主总播放量
|
|
13532
|
+
* @param options 请求参数,包含 host_mid 和可选的 typeMode
|
|
13533
|
+
* @param cookie 有效的用户 Cookie
|
|
13534
|
+
* @returns 接口返回的原始数据
|
|
13535
|
+
*/
|
|
13536
|
+
getUserTotalPlayCount<T extends BilibiliApiOptions<"UserParams">>(options: T, cookie?: string): Promise<BilibiliApiReturn<"\u83B7\u53D6UP\u4E3B\u603B\u64AD\u653E\u91CF", T>>;
|
|
13537
|
+
/**
|
|
13538
|
+
* 将 AV 号转换为 BV 号
|
|
13539
|
+
* @param options 请求参数,包含 avid
|
|
13540
|
+
* @param cookie 有效的用户 Cookie (此接口通常不需要)
|
|
13541
|
+
* @returns 接口返回的原始数据
|
|
13542
|
+
*/
|
|
13543
|
+
convertAvToBv<T extends BilibiliApiOptions<"Av2BvParams">>(options: T, cookie?: string): Promise<BilibiliDataOptionsMap["AV\u8F6CBV"]["data"]>;
|
|
13544
|
+
/**
|
|
13545
|
+
* 将 BV 号转换为 AV 号
|
|
13546
|
+
* @param options 请求参数,包含 bvid
|
|
13547
|
+
* @param cookie 有效的用户 Cookie (此接口通常不需要)
|
|
13548
|
+
* @returns 接口返回的原始数据
|
|
13549
|
+
*/
|
|
13550
|
+
convertBvToAv<T extends BilibiliApiOptions<"Bv2AvParams">>(options: T, cookie?: string): Promise<BilibiliDataOptionsMap["BV\u8F6CAV"]["data"]>;
|
|
13551
|
+
};
|
|
13725
13552
|
|
|
13726
13553
|
type BilibiliMethodOptionsWithoutMethodType = {
|
|
13727
13554
|
[K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]>;
|
|
@@ -13746,10 +13573,34 @@ declare class BiLiBiLiAPI {
|
|
|
13746
13573
|
二维码状态(data: BilibiliMethodOptionsWithoutMethodType['QrcodeParams']): string;
|
|
13747
13574
|
获取UP主总播放量(data: BilibiliMethodOptionsWithoutMethodType['UserParams']): string;
|
|
13748
13575
|
}
|
|
13749
|
-
/**
|
|
13576
|
+
/**
|
|
13577
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
|
|
13578
|
+
* @deprecated 即将废弃,请使用 bilibiliApiUrls
|
|
13579
|
+
*/
|
|
13750
13580
|
declare const bilibiliAPI: BiLiBiLiAPI;
|
|
13581
|
+
/** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
|
|
13582
|
+
declare const bilibiliApiUrls: BiLiBiLiAPI;
|
|
13751
13583
|
|
|
13752
|
-
|
|
13584
|
+
/**
|
|
13585
|
+
* av号转bv号
|
|
13586
|
+
* @param aid av号
|
|
13587
|
+
* @returns
|
|
13588
|
+
*/
|
|
13589
|
+
declare function av2bv(aid: number): `BV1${string}`;
|
|
13590
|
+
/**
|
|
13591
|
+
* bv号转av号
|
|
13592
|
+
* @param bvid bv号
|
|
13593
|
+
* @returns
|
|
13594
|
+
*/
|
|
13595
|
+
declare function bv2av(bvid: string): number;
|
|
13596
|
+
|
|
13597
|
+
/**
|
|
13598
|
+
* 对请求链接进行 wbi 签名
|
|
13599
|
+
* @param BASEURL 完整请求地址
|
|
13600
|
+
* @param cookie 有效的用户cookie
|
|
13601
|
+
* @returns
|
|
13602
|
+
*/
|
|
13603
|
+
declare function wbi_sign(BASEURL: string | URL, cookie: string): Promise<string>;
|
|
13753
13604
|
|
|
13754
13605
|
declare function qtparam(BASEURL: string, cookie: string): Promise<{
|
|
13755
13606
|
QUERY: string;
|
|
@@ -13765,8 +13616,6 @@ declare function qtparam(BASEURL: string, cookie: string): Promise<{
|
|
|
13765
13616
|
isvip: false;
|
|
13766
13617
|
}>;
|
|
13767
13618
|
|
|
13768
|
-
declare function wbi_sign(BASEURL: string | URL, cookie: string): Promise<string>;
|
|
13769
|
-
|
|
13770
13619
|
interface BilibiliRequest<T extends keyof BilibiliDataOptionsMap> extends Request {
|
|
13771
13620
|
query: {
|
|
13772
13621
|
[K in keyof OmitMethodType<BilibiliDataOptionsMap[T]['opt']>]: string;
|
|
@@ -13778,8 +13627,165 @@ interface BilibiliRequest<T extends keyof BilibiliDataOptionsMap> extends Reques
|
|
|
13778
13627
|
*/
|
|
13779
13628
|
declare const registerBilibiliRoutes: (cookie: string) => Router;
|
|
13780
13629
|
|
|
13781
|
-
|
|
13782
|
-
|
|
13630
|
+
type bilibiliUtilsModel = {
|
|
13631
|
+
/** 签名算法相关 */
|
|
13632
|
+
sign: {
|
|
13633
|
+
/** WBI签名算法 */
|
|
13634
|
+
wbi_sign: typeof wbi_sign;
|
|
13635
|
+
/** AV号转BV号 */
|
|
13636
|
+
av2bv: typeof av2bv;
|
|
13637
|
+
/** BV号转AV号 */
|
|
13638
|
+
bv2av: typeof bv2av;
|
|
13639
|
+
};
|
|
13640
|
+
/** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
|
|
13641
|
+
bilibiliApiUrls: typeof bilibiliApiUrls;
|
|
13642
|
+
/**
|
|
13643
|
+
* 快捷获取B站数据
|
|
13644
|
+
* @param type - 请求数据类型
|
|
13645
|
+
* @param cookie - 有效的用户Cookie
|
|
13646
|
+
* @param options - 请求参数,是一个对象
|
|
13647
|
+
* @returns 返回接口的原始数据
|
|
13648
|
+
*/
|
|
13649
|
+
getBilibiliData: typeof getBilibiliData;
|
|
13650
|
+
/**
|
|
13651
|
+
* B站相关 API 的命名空间。
|
|
13652
|
+
*
|
|
13653
|
+
* 部分接口可能不需要 Cookie 但建议传递有效的用户 Cookie,以获取更多数据。
|
|
13654
|
+
*
|
|
13655
|
+
* 提供了一系列方法,用于与B站相关的 API 进行交互。
|
|
13656
|
+
*
|
|
13657
|
+
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
13658
|
+
*/
|
|
13659
|
+
api: typeof bilibili;
|
|
13660
|
+
};
|
|
13661
|
+
/** B站相关功能模块 (工具集) */
|
|
13662
|
+
declare const bilibiliUtils: bilibiliUtilsModel;
|
|
13663
|
+
|
|
13664
|
+
/**
|
|
13665
|
+
* 从 DouyinMethodOptionsMap 中提取特定 API 的选项类型,并移除 methodType,添加 TypeControl。
|
|
13666
|
+
* @template K - DouyinMethodOptionsMap 中的键名。
|
|
13667
|
+
*/
|
|
13668
|
+
type DouyinApiOptions<K extends keyof DouyinMethodOptionsMap> = Omit<DouyinMethodOptionsMap[K], 'methodType'> & TypeControl;
|
|
13669
|
+
/**
|
|
13670
|
+
* 根据传入的选项中的 typeMode 决定 Douyin API 的返回类型。
|
|
13671
|
+
* @template K - DouyinDataOptionsMap 中的键名。
|
|
13672
|
+
* @template T - 包含可选 typeMode 的选项对象。
|
|
13673
|
+
*/
|
|
13674
|
+
type DouyinApiReturn<K extends keyof DouyinDataOptionsMap, T extends TypeControl> = T['typeMode'] extends 'strict' ? DouyinDataOptionsMap[K]['data'] : any;
|
|
13675
|
+
/**
|
|
13676
|
+
* 封装了所有抖音相关的API请求,采用对象化的方式组织。
|
|
13677
|
+
*
|
|
13678
|
+
* 提供了一系列方法,用于与抖音相关的 API 进行交互。
|
|
13679
|
+
*
|
|
13680
|
+
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
13681
|
+
*/
|
|
13682
|
+
declare const douyin: {
|
|
13683
|
+
/**
|
|
13684
|
+
* 聚合解析 (视频/图集/合辑)
|
|
13685
|
+
* @param options 请求参数,包含 aweme_id 和可选的 typeMode
|
|
13686
|
+
* @param cookie 有效的用户 Cookie
|
|
13687
|
+
* @returns 接口返回的原始数据
|
|
13688
|
+
*/
|
|
13689
|
+
getWorkInfo<T extends DouyinApiOptions<"WorkParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u805A\u5408\u89E3\u6790", T>>;
|
|
13690
|
+
/**
|
|
13691
|
+
* 获取视频作品数据
|
|
13692
|
+
* @param options 请求参数,包含 aweme_id 和可选的 typeMode
|
|
13693
|
+
* @param cookie 有效的用户 Cookie
|
|
13694
|
+
* @returns 接口返回的原始数据
|
|
13695
|
+
*/
|
|
13696
|
+
getVideoWorkInfo<T extends DouyinApiOptions<"VideoWorkParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u89C6\u9891\u4F5C\u54C1\u6570\u636E", T>>;
|
|
13697
|
+
/**
|
|
13698
|
+
* 获取图集作品数据
|
|
13699
|
+
* @param options 请求参数,包含 aweme_id 和可选的 typeMode
|
|
13700
|
+
* @param cookie 有效的用户 Cookie
|
|
13701
|
+
* @returns 接口返回的原始数据
|
|
13702
|
+
*/
|
|
13703
|
+
getImageAlbumWorkInfo<T extends DouyinApiOptions<"ImageAlbumWorkParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u56FE\u96C6\u4F5C\u54C1\u6570\u636E", T>>;
|
|
13704
|
+
/**
|
|
13705
|
+
* 获取合辑作品数据
|
|
13706
|
+
* @param options 请求参数,包含 aweme_id 和可选的 typeMode
|
|
13707
|
+
* @param cookie 有效的用户 Cookie
|
|
13708
|
+
* @returns 接口返回的原始数据
|
|
13709
|
+
*/
|
|
13710
|
+
getSlidesWorkInfo<T extends DouyinApiOptions<"SlidesWorkParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u5408\u8F91\u4F5C\u54C1\u6570\u636E", T>>;
|
|
13711
|
+
/**
|
|
13712
|
+
* 获取评论数据
|
|
13713
|
+
* @param options 请求参数,包含 aweme_id, 可选的 number, cursor 和 typeMode
|
|
13714
|
+
* @param cookie 有效的用户 Cookie
|
|
13715
|
+
* @returns 接口返回的原始数据
|
|
13716
|
+
*/
|
|
13717
|
+
getComments<T extends DouyinApiOptions<"CommentParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u8BC4\u8BBA\u6570\u636E", T>>;
|
|
13718
|
+
/**
|
|
13719
|
+
* 获取指定评论回复数据
|
|
13720
|
+
* @param options 请求参数,包含 aweme_id, comment_id, 可选的 number, cursor 和 typeMode
|
|
13721
|
+
* @param cookie 有效的用户 Cookie
|
|
13722
|
+
* @returns 接口返回的原始数据
|
|
13723
|
+
*/
|
|
13724
|
+
getCommentReplies<T extends DouyinApiOptions<"CommentReplyParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u6307\u5B9A\u8BC4\u8BBA\u56DE\u590D\u6570\u636E", T>>;
|
|
13725
|
+
/**
|
|
13726
|
+
* 获取用户主页数据
|
|
13727
|
+
* @param options 请求参数,包含 sec_uid 和可选的 typeMode
|
|
13728
|
+
* @param cookie 有效的用户 Cookie
|
|
13729
|
+
* @returns 接口返回的原始数据
|
|
13730
|
+
*/
|
|
13731
|
+
getUserProfile<T extends DouyinApiOptions<"UserParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u7528\u6237\u4E3B\u9875\u6570\u636E", T>>;
|
|
13732
|
+
/**
|
|
13733
|
+
* 获取 Emoji 数据
|
|
13734
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13735
|
+
* @param cookie 可选的用户 Cookie
|
|
13736
|
+
* @returns 接口返回的原始数据
|
|
13737
|
+
*/
|
|
13738
|
+
getEmojiList<T extends DouyinApiOptions<"EmojiListParams">>(options: T, cookie?: string): Promise<DouyinApiReturn<"Emoji\u6570\u636E", T>>;
|
|
13739
|
+
/**
|
|
13740
|
+
* 获取动态表情数据
|
|
13741
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13742
|
+
* @param cookie 有效的用户 Cookie
|
|
13743
|
+
* @returns 接口返回的原始数据
|
|
13744
|
+
*/
|
|
13745
|
+
getEmojiProList<T extends DouyinApiOptions<"EmojiProParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u52A8\u6001\u8868\u60C5\u6570\u636E", T>>;
|
|
13746
|
+
/**
|
|
13747
|
+
* 获取用户主页视频列表数据
|
|
13748
|
+
* @param options 请求参数,包含 sec_uid, 可选的 number, max_cursor 和 typeMode
|
|
13749
|
+
* @param cookie 有效的用户 Cookie
|
|
13750
|
+
* @returns 接口返回的原始数据
|
|
13751
|
+
*/
|
|
13752
|
+
getUserVideos<T extends DouyinApiOptions<"UserParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u7528\u6237\u4E3B\u9875\u89C6\u9891\u5217\u8868\u6570\u636E", T>>;
|
|
13753
|
+
/**
|
|
13754
|
+
* 获取音乐数据
|
|
13755
|
+
* @param options 请求参数,包含 music_id 和可选的 typeMode
|
|
13756
|
+
* @param cookie 有效的用户 Cookie
|
|
13757
|
+
* @returns 接口返回的原始数据
|
|
13758
|
+
*/
|
|
13759
|
+
getMusicInfo<T extends DouyinApiOptions<"MusicParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u97F3\u4E50\u6570\u636E", T>>;
|
|
13760
|
+
/**
|
|
13761
|
+
* 获取热点词数据
|
|
13762
|
+
* @param options 请求参数,包含 query, 可选的 number 和 typeMode
|
|
13763
|
+
* @param cookie 有效的用户 Cookie
|
|
13764
|
+
* @returns 接口返回的原始数据
|
|
13765
|
+
*/
|
|
13766
|
+
getSuggestWords<T extends DouyinApiOptions<"SearchParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u70ED\u70B9\u8BCD\u6570\u636E", T>>;
|
|
13767
|
+
/**
|
|
13768
|
+
* 获取搜索数据
|
|
13769
|
+
* @param options 请求参数,包含 query, 可选的 number, search_id, cursor 和 typeMode
|
|
13770
|
+
* @param cookie 有效的用户 Cookie
|
|
13771
|
+
* @returns 接口返回的原始数据
|
|
13772
|
+
*/
|
|
13773
|
+
search<T extends DouyinApiOptions<"SearchParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u641C\u7D22\u6570\u636E", T>>;
|
|
13774
|
+
/**
|
|
13775
|
+
* 获取直播间信息
|
|
13776
|
+
* @param options 请求参数,包含 sec_uid 和可选的 typeMode
|
|
13777
|
+
* @param cookie 有效的用户 Cookie
|
|
13778
|
+
* @returns 接口返回的原始数据
|
|
13779
|
+
*/
|
|
13780
|
+
getLiveRoomInfo<T extends DouyinApiOptions<"UserParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u76F4\u64AD\u95F4\u4FE1\u606F\u6570\u636E", T>>;
|
|
13781
|
+
/**
|
|
13782
|
+
* 申请二维码数据
|
|
13783
|
+
* @param options 请求参数,包含 verify_fp 和可选的 typeMode
|
|
13784
|
+
* @param cookie 有效的用户 Cookie
|
|
13785
|
+
* @returns 接口返回的原始数据 (any)
|
|
13786
|
+
*/
|
|
13787
|
+
getLoginQrcode<T extends DouyinApiOptions<"QrcodeParams">>(options: T, cookie: string): Promise<DouyinApiReturn<"\u7533\u8BF7\u4E8C\u7EF4\u7801\u6570\u636E", T>>;
|
|
13788
|
+
};
|
|
13783
13789
|
|
|
13784
13790
|
type DouyinMethodOptionsWithoutMethodType = {
|
|
13785
13791
|
[K in keyof DouyinMethodOptionsMap]: OmitMethodType<DouyinMethodOptionsMap[K]>;
|
|
@@ -13799,10 +13805,19 @@ declare class DouyinAPI {
|
|
|
13799
13805
|
直播间信息(data: DouyinMethodOptionsWithoutMethodType['LiveRoomParams']): string;
|
|
13800
13806
|
申请二维码(data: DouyinMethodOptionsWithoutMethodType['QrcodeParams']): string;
|
|
13801
13807
|
}
|
|
13802
|
-
/**
|
|
13808
|
+
/**
|
|
13809
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
|
|
13810
|
+
*
|
|
13811
|
+
* 缺少 `a_bougs` 参数,请自行生成拼接
|
|
13812
|
+
* @deprecated 即将废弃,请使用 douyinApiUrls
|
|
13813
|
+
*/
|
|
13803
13814
|
declare const douyinAPI: DouyinAPI;
|
|
13804
|
-
|
|
13805
|
-
|
|
13815
|
+
/**
|
|
13816
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
|
|
13817
|
+
*
|
|
13818
|
+
* 缺少 `a_bougs` 参数,请自行生成拼接
|
|
13819
|
+
*/
|
|
13820
|
+
declare const douyinApiUrls: DouyinAPI;
|
|
13806
13821
|
|
|
13807
13822
|
declare class douyinSign {
|
|
13808
13823
|
/** 生成一个指定长度的随机字符串 */
|
|
@@ -13824,6 +13839,73 @@ interface DouyinRequest<T extends keyof DouyinDataOptionsMap> extends Request {
|
|
|
13824
13839
|
*/
|
|
13825
13840
|
declare const registerDouyinRoutes: (cookie: string) => Router;
|
|
13826
13841
|
|
|
13842
|
+
type douyinUtilsModel = {
|
|
13843
|
+
/** 签名算法相关 */
|
|
13844
|
+
sign: typeof douyinSign;
|
|
13845
|
+
/**
|
|
13846
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
|
|
13847
|
+
*
|
|
13848
|
+
* 缺少 `a_bougs` 参数,请自行生成拼接
|
|
13849
|
+
*/
|
|
13850
|
+
douyinApiUrls: typeof douyinApiUrls;
|
|
13851
|
+
/**
|
|
13852
|
+
* 快捷获取抖音数据
|
|
13853
|
+
* @param type - 请求数据类型
|
|
13854
|
+
* @param cookie - 有效的用户Cookie
|
|
13855
|
+
* @param options - 请求参数,是一个对象
|
|
13856
|
+
* @returns 返回接口的原始数据
|
|
13857
|
+
*/
|
|
13858
|
+
getDouyinData: typeof getDouyinData;
|
|
13859
|
+
/**
|
|
13860
|
+
* 封装了所有抖音相关的API请求,采用对象化的方式组织。
|
|
13861
|
+
*
|
|
13862
|
+
* 提供了一系列方法,用于与抖音相关的 API 进行交互。
|
|
13863
|
+
*
|
|
13864
|
+
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
13865
|
+
*/
|
|
13866
|
+
api: typeof douyin;
|
|
13867
|
+
};
|
|
13868
|
+
/** 抖音相关功能模块 (工具集) */
|
|
13869
|
+
declare const douyinUtils: douyinUtilsModel;
|
|
13870
|
+
|
|
13871
|
+
/**
|
|
13872
|
+
* 从 KuaishouMethodOptionsMap 中提取特定 API 的选项类型,并移除 methodType,添加 TypeControl。
|
|
13873
|
+
* @template K - KuaishouMethodOptionsMap 中的键名。
|
|
13874
|
+
*/
|
|
13875
|
+
type KuaishouApiOptions<K extends keyof KuaishouMethodOptionsMap> = Omit<KuaishouMethodOptionsMap[K], 'methodType'> & TypeControl;
|
|
13876
|
+
/**
|
|
13877
|
+
* 根据传入的选项中的 typeMode 决定 Kuaishou API 的返回类型。
|
|
13878
|
+
* @template K - KuaishouDataOptionsMap 中的键名。
|
|
13879
|
+
* @template T - 包含可选 typeMode 的选项对象。
|
|
13880
|
+
*/
|
|
13881
|
+
type KuaishouApiReturn<K extends keyof KuaishouDataOptionsMap, T extends TypeControl> = T['typeMode'] extends 'strict' ? KuaishouDataOptionsMap[K]['data'] : any;
|
|
13882
|
+
/**
|
|
13883
|
+
* 快手相关 API 的命名空间。
|
|
13884
|
+
*/
|
|
13885
|
+
declare const kuaishou: {
|
|
13886
|
+
/**
|
|
13887
|
+
* 获取单个视频作品数据
|
|
13888
|
+
* @param options 请求参数,包含 photoId 和可选的 typeMode
|
|
13889
|
+
* @param cookie 可选的用户 Cookie
|
|
13890
|
+
* @returns 接口返回的原始数据
|
|
13891
|
+
*/
|
|
13892
|
+
getWorkInfo<T extends KuaishouApiOptions<"VideoInfoParams">>(options: T, cookie?: string): Promise<KuaishouApiReturn<"\u5355\u4E2A\u89C6\u9891\u4F5C\u54C1\u6570\u636E", T>>;
|
|
13893
|
+
/**
|
|
13894
|
+
* 获取评论数据
|
|
13895
|
+
* @param options 请求参数,包含 photoId 和可选的 typeMode
|
|
13896
|
+
* @param cookie 可选的用户 Cookie
|
|
13897
|
+
* @returns 接口返回的原始数据
|
|
13898
|
+
*/
|
|
13899
|
+
getComments<T extends KuaishouApiOptions<"CommentParams">>(options: T, cookie?: string): Promise<KuaishouApiReturn<"\u8BC4\u8BBA\u6570\u636E", T>>;
|
|
13900
|
+
/**
|
|
13901
|
+
* 获取 Emoji 数据
|
|
13902
|
+
* @param options 可选的请求参数 (主要用于 typeMode)
|
|
13903
|
+
* @param cookie 可选的用户 Cookie
|
|
13904
|
+
* @returns 接口返回的原始数据
|
|
13905
|
+
*/
|
|
13906
|
+
getEmojiList<T extends KuaishouApiOptions<"EmojiListParams">>(options: T, cookie?: string): Promise<KuaishouApiReturn<"Emoji\u6570\u636E", T>>;
|
|
13907
|
+
};
|
|
13908
|
+
|
|
13827
13909
|
type KuaishouMethodOptionsWithoutMethodType = {
|
|
13828
13910
|
[K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]>;
|
|
13829
13911
|
};
|
|
@@ -13866,10 +13948,19 @@ declare class API {
|
|
|
13866
13948
|
query: string;
|
|
13867
13949
|
};
|
|
13868
13950
|
};
|
|
13869
|
-
}
|
|
13951
|
+
}
|
|
13952
|
+
/**
|
|
13953
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据
|
|
13954
|
+
* @deprecated: 即将废弃,请使用 kuaishouAPI 代替
|
|
13955
|
+
*/
|
|
13870
13956
|
declare const KuaishouAPI: API;
|
|
13871
|
-
|
|
13872
|
-
|
|
13957
|
+
/**
|
|
13958
|
+
* 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据
|
|
13959
|
+
* @deprecated 即将废弃,请使用 kuaishouApiUrls
|
|
13960
|
+
*/
|
|
13961
|
+
declare const kuaishouAPI: API;
|
|
13962
|
+
/** 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据 */
|
|
13963
|
+
declare const kuaishouApiUrls: API;
|
|
13873
13964
|
|
|
13874
13965
|
interface KusiahouRequest<T extends keyof KuaishouDataOptionsMap> extends Request {
|
|
13875
13966
|
query: {
|
|
@@ -13882,6 +13973,29 @@ interface KusiahouRequest<T extends keyof KuaishouDataOptionsMap> extends Reques
|
|
|
13882
13973
|
*/
|
|
13883
13974
|
declare const registerKuaishouRoutes: (cookie: string) => Router;
|
|
13884
13975
|
|
|
13976
|
+
type kuaishouUtilsModel = {
|
|
13977
|
+
/** 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据 */
|
|
13978
|
+
kuaishouApiUrls: typeof kuaishouApiUrls;
|
|
13979
|
+
/**
|
|
13980
|
+
* 快捷获取快手数据
|
|
13981
|
+
* @param type - 请求数据类型
|
|
13982
|
+
* @param cookie - 有效的用户Cookie
|
|
13983
|
+
* @param options - 请求参数,是一个对象
|
|
13984
|
+
* @returns 返回接口的原始数据
|
|
13985
|
+
*/
|
|
13986
|
+
getKuaishouData: typeof getKuaishouData;
|
|
13987
|
+
/**
|
|
13988
|
+
* 封装了所有快手相关的API请求,采用对象化的方式组织。
|
|
13989
|
+
*
|
|
13990
|
+
* 提供了一系列方法,用于与抖音相关的 API 进行交互。
|
|
13991
|
+
*
|
|
13992
|
+
* 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
|
|
13993
|
+
*/
|
|
13994
|
+
api: typeof kuaishou;
|
|
13995
|
+
};
|
|
13996
|
+
/** 快手相关功能模块 (工具集) */
|
|
13997
|
+
declare const kuaishouUtils: kuaishouUtilsModel;
|
|
13998
|
+
|
|
13885
13999
|
type ckParams = {
|
|
13886
14000
|
/**
|
|
13887
14001
|
* 抖音ck
|
|
@@ -13899,7 +14013,7 @@ type ckParams = {
|
|
|
13899
14013
|
*/
|
|
13900
14014
|
kuaishou?: string;
|
|
13901
14015
|
};
|
|
13902
|
-
declare class
|
|
14016
|
+
declare class amagiClient {
|
|
13903
14017
|
private douyin;
|
|
13904
14018
|
private bilibili;
|
|
13905
14019
|
private kuaishou;
|
|
@@ -13916,7 +14030,7 @@ declare class amagi {
|
|
|
13916
14030
|
*/
|
|
13917
14031
|
startClient(port?: number): express.Application;
|
|
13918
14032
|
/**
|
|
13919
|
-
*
|
|
14033
|
+
* 快捷获取抖音数据
|
|
13920
14034
|
* @param type - 请求数据类型
|
|
13921
14035
|
* @param options - 请求参数,是一个对象
|
|
13922
14036
|
* @returns 返回接口的原始数据
|
|
@@ -13937,7 +14051,7 @@ declare class amagi {
|
|
|
13937
14051
|
typeMode?: R;
|
|
13938
14052
|
}) => Promise<R extends "strict" ? DouyinDataOptionsMap[T]["data"] : any>;
|
|
13939
14053
|
/**
|
|
13940
|
-
*
|
|
14054
|
+
* 快捷获取B站数据
|
|
13941
14055
|
* @param type - 请求数据类型
|
|
13942
14056
|
* @param options - 请求参数,是一个对象
|
|
13943
14057
|
* @returns 返回接口的原始数据
|
|
@@ -13957,7 +14071,7 @@ declare class amagi {
|
|
|
13957
14071
|
typeMode?: R;
|
|
13958
14072
|
}) => Promise<R extends "strict" ? BilibiliDataOptionsMap[T]["data"] : any>;
|
|
13959
14073
|
/**
|
|
13960
|
-
*
|
|
14074
|
+
* 快捷获取快手数据
|
|
13961
14075
|
* @param type - 请求数据类型
|
|
13962
14076
|
* @param options - 请求参数,是一个对象
|
|
13963
14077
|
* @returns 返回接口的原始数据
|
|
@@ -13978,6 +14092,18 @@ declare class amagi {
|
|
|
13978
14092
|
}) => Promise<R extends "strict" ? KuaishouDataOptionsMap[T]["data"] : any>;
|
|
13979
14093
|
}
|
|
13980
14094
|
|
|
13981
|
-
|
|
14095
|
+
/**
|
|
14096
|
+
* 初始化 amagi
|
|
14097
|
+
* @param options 配置参数
|
|
14098
|
+
* @returns amagi 实例
|
|
14099
|
+
*/
|
|
14100
|
+
declare function amagi(options: ckParams): amagiClient;
|
|
14101
|
+
/**
|
|
14102
|
+
* 初始化 amagi
|
|
14103
|
+
* @deprecated 即将废弃,请使用 amagi 代替
|
|
14104
|
+
* @param options 配置参数
|
|
14105
|
+
* @returns amagi 实例
|
|
14106
|
+
*/
|
|
14107
|
+
declare function Amagi(options: ckParams): amagiClient;
|
|
13982
14108
|
|
|
13983
|
-
export { Amagi, type BiliAv2Bv, type BiliBangumiVideoInfo, type BiliBangumiVideoPlayurlIsLogin, type BiliBangumiVideoPlayurlNoLogin, type BiliBiliVideoPlayurlNoLogin, type BiliBv2AV, type BiliCheckQrcode, type BiliDynamicCard, type BiliDynamicInfo, type BiliEmojiList, type BiliLiveRoomDef, type BiliLiveRoomDetail, type BiliNewLoginQrcode, type BiliOneWork, type BiliUserDynamic, type BiliUserFullView, type BiliUserProfile, type BiliVideoPlayurlIsLogin, type BiliWorkComments,
|
|
14109
|
+
export { Amagi, type BiliAv2Bv, type BiliBangumiVideoInfo, type BiliBangumiVideoPlayurlIsLogin, type BiliBangumiVideoPlayurlNoLogin, type BiliBiliVideoPlayurlNoLogin, type BiliBv2AV, type BiliCheckQrcode, type BiliDynamicCard, type BiliDynamicInfo, type BiliEmojiList, type BiliLiveRoomDef, type BiliLiveRoomDetail, type BiliNewLoginQrcode, type BiliOneWork, type BiliUserDynamic, type BiliUserFullView, type BiliUserProfile, type BiliVideoPlayurlIsLogin, type BiliWorkComments, type BilibiliDataOptions, type BilibiliDataOptionsMap, type BilibiliMethodOptionsMap, type BilibiliRequest, BilibiliValidateData, type DouyinDataOptions, type DouyinDataOptionsMap, type DouyinMethodOptionsMap, type DouyinRequest, DouyinValidateData, type DyEmojiList, type DyEmojiProList, type DyImageAlbumWork, type DyMusicWork, type DySearchInfo, type DySlidesWork, type DySuggestWords, type DyUserInfo, type DyUserLiveVideos, type DyUserPostVideos, type DyVideoWork, type DyWorkComments, type KsEmojiList, type KsOneWork, type KsWorkComments, KuaishouAPI, type KuaishouDataOptions, type KuaishouDataOptionsMap, type KuaishouMethodOptionsMap, type KusiahouRequest, KusiahouValidateData, Networks, type NetworksConfigType, type OmitMethodType, type TypeControl, amagi, amagiClient, av2bv, bilibili, bilibiliAPI, bilibiliApiUrls, bilibiliUtils, bv2av, type ckParams, amagiClient as default, douyin, douyinAPI, douyinApiUrls, douyinSign, douyinUtils, fetchBilibiliData, fetchDouyinData, fetchKuaishouData, getBilibiliData, getDouyinData, getKuaishouData, kuaishou, kuaishouAPI, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, registerBilibiliRoutes, registerDouyinRoutes, registerKuaishouRoutes, wbi_sign };
|