@ikenxuan/amagi 4.4.7 → 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.
@@ -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$4[];
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$4 = {
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$3[];
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$3 = {
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$2[];
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$2 = {
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$1[];
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$1 = {
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: TextExtra[];
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 ReplyComment = {
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
- text_extra?: any[];
7731
- text_music_info?: null;
7732
- user?: ReplyCommentUser;
7733
- user_buried?: boolean;
7734
- user_digged?: number;
7735
- video_list?: null;
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
- aweme_count: number;
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: PurpleCoverurl[];
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
- following_count: number;
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: FluffyCoverurl[];
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
- following_count: number;
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
- * 获取B站数据
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
- * 获取B站数据
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
@@ -13664,7 +13339,12 @@ declare class CustomLogger {
13664
13339
  }
13665
13340
  declare const logger: CustomLogger;
13666
13341
 
13667
- declare const logMiddleware: RequestHandler;
13342
+ /**
13343
+ * 创建一个日志中间件,用于记录特定请求的详细信息
13344
+ * @param pathsToLog 指定需要记录日志的请求路径数组如果未提供,则记录所有请求的日志
13345
+ * @returns
13346
+ */
13347
+ declare const logMiddleware: (pathsToLog?: string[]) => RequestHandler;
13668
13348
 
13669
13349
  interface HeadersObject {
13670
13350
  [key: string]: string;
@@ -13702,21 +13382,173 @@ declare class Networks {
13702
13382
  * @param fields - 要对data进行检查的字段
13703
13383
  * @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
13704
13384
  */
13705
- declare const DouyinValidateData: <T extends keyof DouyinDataOptionsMap>(data: DouyinDataOptionsMap[T]["opt"], fields: (keyof Omit<DouyinDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
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;
13706
13387
  /**
13707
13388
  * 参数检查
13708
13389
  * @param data - 参数对象
13709
13390
  * @param fields - 要对data进行检查的字段
13710
13391
  * @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
13711
13392
  */
13712
- declare const BilibiliValidateData: <T extends keyof BilibiliDataOptionsMap>(data: BilibiliDataOptionsMap[T]["opt"], fields: (keyof Omit<BilibiliDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
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;
13713
13395
  /**
13714
13396
  * 参数检查
13715
13397
  * @param data - 参数对象
13716
13398
  * @param fields - 要对data进行检查的字段
13717
13399
  * @param atLeastOne - 是否至少有一个字段存在即可通过检查,默认为false
13718
13400
  */
13719
- declare const KusiahouValidateData: <T extends keyof KuaishouDataOptionsMap>(data: KuaishouDataOptionsMap[T]["opt"], fields: (keyof Omit<KuaishouDataOptionsMap[T]["opt"], "methodType" | "typeMode">)[], atLeastOne?: boolean) => void;
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
+ };
13720
13552
 
13721
13553
  type BilibiliMethodOptionsWithoutMethodType = {
13722
13554
  [K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]>;
@@ -13741,10 +13573,34 @@ declare class BiLiBiLiAPI {
13741
13573
  二维码状态(data: BilibiliMethodOptionsWithoutMethodType['QrcodeParams']): string;
13742
13574
  获取UP主总播放量(data: BilibiliMethodOptionsWithoutMethodType['UserParams']): string;
13743
13575
  }
13744
- /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
13576
+ /**
13577
+ * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
13578
+ * @deprecated 即将废弃,请使用 bilibiliApiUrls
13579
+ */
13745
13580
  declare const bilibiliAPI: BiLiBiLiAPI;
13581
+ /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
13582
+ declare const bilibiliApiUrls: BiLiBiLiAPI;
13583
+
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;
13746
13596
 
13747
- declare const BilibiliData: <T extends keyof BilibiliDataOptionsMap>(data: BilibiliDataOptionsMap[T]["opt"], cookie?: string) => Promise<any>;
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>;
13748
13604
 
13749
13605
  declare function qtparam(BASEURL: string, cookie: string): Promise<{
13750
13606
  QUERY: string;
@@ -13760,8 +13616,6 @@ declare function qtparam(BASEURL: string, cookie: string): Promise<{
13760
13616
  isvip: false;
13761
13617
  }>;
13762
13618
 
13763
- declare function wbi_sign(BASEURL: string | URL, cookie: string): Promise<string>;
13764
-
13765
13619
  interface BilibiliRequest<T extends keyof BilibiliDataOptionsMap> extends Request {
13766
13620
  query: {
13767
13621
  [K in keyof OmitMethodType<BilibiliDataOptionsMap[T]['opt']>]: string;
@@ -13773,8 +13627,165 @@ interface BilibiliRequest<T extends keyof BilibiliDataOptionsMap> extends Reques
13773
13627
  */
13774
13628
  declare const registerBilibiliRoutes: (cookie: string) => Router;
13775
13629
 
13776
- declare function av2bv(aid: number): `BV1${string}`;
13777
- declare function bv2av(bvid: string): number;
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
+ };
13778
13789
 
13779
13790
  type DouyinMethodOptionsWithoutMethodType = {
13780
13791
  [K in keyof DouyinMethodOptionsMap]: OmitMethodType<DouyinMethodOptionsMap[K]>;
@@ -13794,10 +13805,19 @@ declare class DouyinAPI {
13794
13805
  直播间信息(data: DouyinMethodOptionsWithoutMethodType['LiveRoomParams']): string;
13795
13806
  申请二维码(data: DouyinMethodOptionsWithoutMethodType['QrcodeParams']): string;
13796
13807
  }
13797
- /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
13808
+ /**
13809
+ * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
13810
+ *
13811
+ * 缺少 `a_bougs` 参数,请自行生成拼接
13812
+ * @deprecated 即将废弃,请使用 douyinApiUrls
13813
+ */
13798
13814
  declare const douyinAPI: DouyinAPI;
13799
-
13800
- declare const DouyinData: <T extends keyof DouyinDataOptionsMap>(data: DouyinDataOptionsMap[T]["opt"], cookie?: string) => Promise<any>;
13815
+ /**
13816
+ * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
13817
+ *
13818
+ * 缺少 `a_bougs` 参数,请自行生成拼接
13819
+ */
13820
+ declare const douyinApiUrls: DouyinAPI;
13801
13821
 
13802
13822
  declare class douyinSign {
13803
13823
  /** 生成一个指定长度的随机字符串 */
@@ -13819,6 +13839,73 @@ interface DouyinRequest<T extends keyof DouyinDataOptionsMap> extends Request {
13819
13839
  */
13820
13840
  declare const registerDouyinRoutes: (cookie: string) => Router;
13821
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
+
13822
13909
  type KuaishouMethodOptionsWithoutMethodType = {
13823
13910
  [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]>;
13824
13911
  };
@@ -13861,10 +13948,19 @@ declare class API {
13861
13948
  query: string;
13862
13949
  };
13863
13950
  };
13864
- } /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
13951
+ }
13952
+ /**
13953
+ * 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据
13954
+ * @deprecated: 即将废弃,请使用 kuaishouAPI 代替
13955
+ */
13865
13956
  declare const KuaishouAPI: API;
13866
-
13867
- declare const KuaishouData: <T extends keyof KuaishouDataOptionsMap>(data: KuaishouDataOptionsMap[T]["opt"], cookie?: string) => Promise<any>;
13957
+ /**
13958
+ * 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据
13959
+ * @deprecated 即将废弃,请使用 kuaishouApiUrls
13960
+ */
13961
+ declare const kuaishouAPI: API;
13962
+ /** 该类下的所有方法只会返回拼接好参数后的 Url 地址和请求体,需要手动请求该地址以获取数据 */
13963
+ declare const kuaishouApiUrls: API;
13868
13964
 
13869
13965
  interface KusiahouRequest<T extends keyof KuaishouDataOptionsMap> extends Request {
13870
13966
  query: {
@@ -13877,6 +13973,29 @@ interface KusiahouRequest<T extends keyof KuaishouDataOptionsMap> extends Reques
13877
13973
  */
13878
13974
  declare const registerKuaishouRoutes: (cookie: string) => Router;
13879
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
+
13880
13999
  type ckParams = {
13881
14000
  /**
13882
14001
  * 抖音ck
@@ -13894,7 +14013,7 @@ type ckParams = {
13894
14013
  */
13895
14014
  kuaishou?: string;
13896
14015
  };
13897
- declare class amagi {
14016
+ declare class amagiClient {
13898
14017
  private douyin;
13899
14018
  private bilibili;
13900
14019
  private kuaishou;
@@ -13911,7 +14030,7 @@ declare class amagi {
13911
14030
  */
13912
14031
  startClient(port?: number): express.Application;
13913
14032
  /**
13914
- * 获取抖音数据
14033
+ * 快捷获取抖音数据
13915
14034
  * @param type - 请求数据类型
13916
14035
  * @param options - 请求参数,是一个对象
13917
14036
  * @returns 返回接口的原始数据
@@ -13932,7 +14051,7 @@ declare class amagi {
13932
14051
  typeMode?: R;
13933
14052
  }) => Promise<R extends "strict" ? DouyinDataOptionsMap[T]["data"] : any>;
13934
14053
  /**
13935
- * 获取B站数据
14054
+ * 快捷获取B站数据
13936
14055
  * @param type - 请求数据类型
13937
14056
  * @param options - 请求参数,是一个对象
13938
14057
  * @returns 返回接口的原始数据
@@ -13952,7 +14071,7 @@ declare class amagi {
13952
14071
  typeMode?: R;
13953
14072
  }) => Promise<R extends "strict" ? BilibiliDataOptionsMap[T]["data"] : any>;
13954
14073
  /**
13955
- * 获取快手数据
14074
+ * 快捷获取快手数据
13956
14075
  * @param type - 请求数据类型
13957
14076
  * @param options - 请求参数,是一个对象
13958
14077
  * @returns 返回接口的原始数据
@@ -13973,6 +14092,18 @@ declare class amagi {
13973
14092
  }) => Promise<R extends "strict" ? KuaishouDataOptionsMap[T]["data"] : any>;
13974
14093
  }
13975
14094
 
13976
- declare function Amagi(options: ckParams): amagi;
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;
13977
14108
 
13978
- 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, BilibiliData, type BilibiliDataOptions, type BilibiliDataOptionsMap, type BilibiliMethodOptionsMap, type BilibiliRequest, BilibiliValidateData, DouyinData, 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, KuaishouData, type KuaishouDataOptions, type KuaishouDataOptionsMap, type KuaishouMethodOptionsMap, type KusiahouRequest, KusiahouValidateData, Networks, type NetworksConfigType, type OmitMethodType, type TypeControl, amagi, av2bv, bilibiliAPI, bv2av, type ckParams, amagi as default, douyinAPI, douyinSign, fetchBilibiliData, fetchDouyinData, fetchKuaishouData, getBilibiliData, getDouyinData, getKuaishouData, logMiddleware, logger, qtparam, registerBilibiliRoutes, registerDouyinRoutes, registerKuaishouRoutes, wbi_sign };
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 };