migu-api-enhanced 2.18.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -201
- package/README.md +14 -12
- package/dist/index.cjs +483 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +273 -64
- package/dist/index.d.ts +273 -64
- package/dist/index.js +463 -120
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -69,7 +69,7 @@ declare const checkCanListen: (contentIds: string) => Promise<any>;
|
|
|
69
69
|
|
|
70
70
|
declare const getOpNum: (ids: string) => Promise<any>;
|
|
71
71
|
|
|
72
|
-
declare const getUrlV1: (contentId: string, copyrightId: string, resourceType?: string) => Promise<any>;
|
|
72
|
+
declare const getUrlV1: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
|
|
73
73
|
|
|
74
74
|
declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
|
|
75
75
|
|
|
@@ -312,9 +312,35 @@ declare const getPlaylistSquarePage: () => Promise<any>;
|
|
|
312
312
|
|
|
313
313
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
314
314
|
|
|
315
|
+
/**
|
|
316
|
+
* 获取呢喃歌曲列表
|
|
317
|
+
* @returns 呢喃歌曲列表
|
|
318
|
+
*/
|
|
315
319
|
declare const getNinanSong: () => Promise<any>;
|
|
316
|
-
|
|
320
|
+
/**
|
|
321
|
+
* 获取某天的呢喃歌曲
|
|
322
|
+
* @param date - 日期 格式为 YYYYMMDD
|
|
323
|
+
* @returns 呢喃歌曲列表
|
|
324
|
+
*/
|
|
317
325
|
declare const getNinanByDate: (date: string) => Promise<any>;
|
|
326
|
+
/**
|
|
327
|
+
* 呢喃签到
|
|
328
|
+
* @param pacmtoken - 用户认证 token
|
|
329
|
+
* @returns 签到结果和新的 pacmtoken
|
|
330
|
+
*/
|
|
331
|
+
declare const signNinan: (pacmtoken: string) => Promise<{
|
|
332
|
+
data: any;
|
|
333
|
+
newPacmToken: string;
|
|
334
|
+
}>;
|
|
335
|
+
/**
|
|
336
|
+
* 获取呢喃签到信息
|
|
337
|
+
* @param pacmtoken - 用户认证 token
|
|
338
|
+
* @returns 签到信息和新的 pacmtoken
|
|
339
|
+
*/
|
|
340
|
+
declare const getNinanSignInfo: (pacmtoken: string) => Promise<{
|
|
341
|
+
data: any;
|
|
342
|
+
newPacmToken: string;
|
|
343
|
+
}>;
|
|
318
344
|
|
|
319
345
|
/**
|
|
320
346
|
* 获取电台推荐 (所有电台)
|
|
@@ -409,40 +435,16 @@ declare const getLyric: (contentId: string) => Promise<{
|
|
|
409
435
|
data?: undefined;
|
|
410
436
|
}>;
|
|
411
437
|
|
|
412
|
-
declare namespace AddUserCollect {
|
|
413
|
-
interface Playlist {
|
|
414
|
-
type: 'playlist';
|
|
415
|
-
title: string;
|
|
416
|
-
playlistId: string;
|
|
417
|
-
}
|
|
418
|
-
interface Comment {
|
|
419
|
-
type: 'comment';
|
|
420
|
-
userId: string;
|
|
421
|
-
commentId: string;
|
|
422
|
-
}
|
|
423
|
-
type params = Playlist | Comment;
|
|
424
|
-
}
|
|
425
|
-
declare namespace RemoveUserCollect {
|
|
426
|
-
interface Playlist {
|
|
427
|
-
type: 'playlist';
|
|
428
|
-
playlistId: string;
|
|
429
|
-
}
|
|
430
|
-
interface Comment {
|
|
431
|
-
type: 'comment';
|
|
432
|
-
userId: string;
|
|
433
|
-
commentId: string;
|
|
434
|
-
}
|
|
435
|
-
type params = Playlist | Comment;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
438
|
/**
|
|
439
439
|
* 添加用户收藏
|
|
440
440
|
* @param pacmtoken 用户pacmtoken
|
|
441
|
-
* @param
|
|
442
|
-
* @param
|
|
441
|
+
* @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
|
|
442
|
+
* @param contentId 歌单id / 评论id / 专辑id
|
|
443
|
+
* @param title 歌单标题 / 专辑标题 (type=playlist或album时必填)
|
|
444
|
+
* @param userId 用户id (type=comment时必填)
|
|
443
445
|
* @returns 添加结果和新的pacmtoken
|
|
444
446
|
*/
|
|
445
|
-
declare const addUserCollect: (pacmtoken: string,
|
|
447
|
+
declare const addUserCollect: (pacmtoken: string, type: string, contentId: string, title?: string, userId?: string) => Promise<{
|
|
446
448
|
success: boolean;
|
|
447
449
|
err: string;
|
|
448
450
|
data?: undefined;
|
|
@@ -457,14 +459,12 @@ declare const addUserCollect: (pacmtoken: string, params: AddUserCollect.params)
|
|
|
457
459
|
/**
|
|
458
460
|
* 删除用户收藏
|
|
459
461
|
* @param pacmtoken 用户pacmtoken
|
|
460
|
-
* @param
|
|
461
|
-
* @param
|
|
462
|
-
* @param
|
|
463
|
-
* @param params.userId 用户id
|
|
464
|
-
* @param params.commentId 评论id
|
|
462
|
+
* @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
|
|
463
|
+
* @param contentId 歌单id / 评论id / 专辑id
|
|
464
|
+
* @param userId 用户id (type=comment时必填)
|
|
465
465
|
* @returns 删除结果和新的pacmtoken
|
|
466
466
|
*/
|
|
467
|
-
declare const removeUserCollect: (pacmtoken: string,
|
|
467
|
+
declare const removeUserCollect: (pacmtoken: string, type: string, contentId: string, userId?: string) => Promise<{
|
|
468
468
|
success: boolean;
|
|
469
469
|
err: string;
|
|
470
470
|
data?: undefined;
|
|
@@ -636,33 +636,14 @@ declare const getConcertComment: (concertId: string, page?: number, size?: numbe
|
|
|
636
636
|
|
|
637
637
|
declare const matchPlaylist: (url: string) => Promise<any>;
|
|
638
638
|
|
|
639
|
-
/**
|
|
640
|
-
* 获取用户呢喃签到信息
|
|
641
|
-
* @param pacmtoken - 用户认证 token
|
|
642
|
-
* @returns 签到信息和新的 pacmtoken
|
|
643
|
-
*/
|
|
644
|
-
declare const getNinanSignInfo: (pacmtoken: string) => Promise<{
|
|
645
|
-
data: any;
|
|
646
|
-
newPacmToken: string;
|
|
647
|
-
}>;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* 呢喃签到
|
|
651
|
-
* @param pacmtoken - 用户认证 token
|
|
652
|
-
* @returns 签到结果和新的 pacmtoken
|
|
653
|
-
*/
|
|
654
|
-
declare const signNinan: (pacmtoken: string) => Promise<{
|
|
655
|
-
data: any;
|
|
656
|
-
newPacmToken: string;
|
|
657
|
-
}>;
|
|
658
|
-
|
|
659
639
|
/**
|
|
660
640
|
* 获取重定向URL
|
|
661
641
|
* @param contentId 音乐ID
|
|
662
642
|
* @param toneFlag 音色
|
|
643
|
+
* @param isVip 是否为会员音乐 未知,是会员音乐true,不是会员音乐false
|
|
663
644
|
* @returns 重定向URL
|
|
664
645
|
*/
|
|
665
|
-
declare const getRedirectUrl: (contentId: string, toneFlag?: string
|
|
646
|
+
declare const getRedirectUrl: (contentId: string, toneFlag?: string, copyrightId?: string, isVip?: boolean) => Promise<string>;
|
|
666
647
|
|
|
667
648
|
/**
|
|
668
649
|
* 通过演唱会推荐 MV
|
|
@@ -825,8 +806,8 @@ declare const logout: (pacmtoken: string) => Promise<any>;
|
|
|
825
806
|
|
|
826
807
|
/**
|
|
827
808
|
* 分享视频
|
|
828
|
-
* @param resourceType 资源类型 6000:短视频 D:MV
|
|
829
|
-
* @param contentId
|
|
809
|
+
* @param resourceType 资源类型 6000:短视频 D:MV M:视频彩铃
|
|
810
|
+
* @param contentId 短视频id / MVid / vrbtId
|
|
830
811
|
* @param userId 视频用户id (可选)
|
|
831
812
|
* @returns 分享信息 (url)
|
|
832
813
|
*/
|
|
@@ -843,6 +824,210 @@ declare const shareVideo: (resourceType: string, contentId: string, userId?: str
|
|
|
843
824
|
*/
|
|
844
825
|
declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
|
|
845
826
|
|
|
827
|
+
/**
|
|
828
|
+
* 我的听书记录
|
|
829
|
+
* @param pacmtoken 用户token
|
|
830
|
+
* @returns 用户听书记录信息和新的pacmtoken
|
|
831
|
+
*/
|
|
832
|
+
declare const getUserAudioBook: (pacmtoken: string, recentListenNum?: number, recommendNum?: number) => Promise<{
|
|
833
|
+
data: any;
|
|
834
|
+
newPacmToken: string;
|
|
835
|
+
}>;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* 听歌排行
|
|
839
|
+
* @param pacmtoken 用户token
|
|
840
|
+
* @param type 排行类型: week:最近一周 year:过去三年
|
|
841
|
+
* @returns 听歌排行列表,包含新pacmtoken
|
|
842
|
+
*/
|
|
843
|
+
declare const getListenRank: (pacmtoken: string, type: string) => Promise<{
|
|
844
|
+
data: any;
|
|
845
|
+
newPacmToken: string;
|
|
846
|
+
}>;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* 获取云盘音乐播放地址
|
|
850
|
+
* @param pacmtoken 用户token
|
|
851
|
+
* @param contentId 云盘音乐contentId
|
|
852
|
+
* @param toneFlag 音乐质量 默认PQ
|
|
853
|
+
* @returns 地址和新的pacmtoken
|
|
854
|
+
*/
|
|
855
|
+
declare const getCloudUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
|
|
856
|
+
data: any;
|
|
857
|
+
newPacmToken: string;
|
|
858
|
+
}>;
|
|
859
|
+
|
|
860
|
+
declare const getDLUrlV1: (songId: string, toneFlag?: string) => Promise<any>;
|
|
861
|
+
|
|
862
|
+
declare const getUrlM2: (contentId: string, toneFlag?: string, copyrightId?: string, songId?: string, albumId?: string) => Promise<any>;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* 歌曲enoji表态
|
|
866
|
+
* @param pacmtoken 用户token
|
|
867
|
+
* @param contentId 歌曲id
|
|
868
|
+
* @param emojiId 表情id
|
|
869
|
+
* @param action 表情操作
|
|
870
|
+
* @returns 表情数量,包含新pacmtoken
|
|
871
|
+
*/
|
|
872
|
+
declare const emojiAction: (pacmtoken: string, contentId: string, emojiId: string, action: string) => Promise<{
|
|
873
|
+
data: any;
|
|
874
|
+
newPacmToken: string;
|
|
875
|
+
}>;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* 获取歌曲表情数量
|
|
879
|
+
* @param pacmtoken 用户token (可选,传入可看是否发表过表情)
|
|
880
|
+
* @param contentIds 歌曲id列表 (逗号分隔)
|
|
881
|
+
* @returns 表情数量,包含新pacmtoken
|
|
882
|
+
*/
|
|
883
|
+
declare const getEmojiNum: (pacmtoken: string, contentIds: string) => Promise<{
|
|
884
|
+
data: any;
|
|
885
|
+
newPacmToken: string | undefined;
|
|
886
|
+
}>;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* 心动模式推荐
|
|
890
|
+
* @param pacmtoken 用户token
|
|
891
|
+
* @param songId 单个歌曲 ID
|
|
892
|
+
* @returns 心动模式推荐歌曲和新pacmtoken
|
|
893
|
+
*/
|
|
894
|
+
declare const getUserHeartthrob: (pacmtoken: string, songId: string) => Promise<{
|
|
895
|
+
data: any;
|
|
896
|
+
newPacmToken: string;
|
|
897
|
+
}>;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* 删除云盘音乐
|
|
901
|
+
* @param pacmtoken 用户token
|
|
902
|
+
* @param contentIds 云盘音乐contentId列表 逗号分隔
|
|
903
|
+
* @returns 地址和新的pacmtoken
|
|
904
|
+
*/
|
|
905
|
+
declare const deleteCloudMusic: (pacmtoken: string, contentIds: string) => Promise<{
|
|
906
|
+
data: {
|
|
907
|
+
success: boolean;
|
|
908
|
+
error: string;
|
|
909
|
+
};
|
|
910
|
+
newPacmToken: undefined;
|
|
911
|
+
} | {
|
|
912
|
+
data: any;
|
|
913
|
+
newPacmToken: string;
|
|
914
|
+
}>;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* 用户互动消息
|
|
918
|
+
* @param pacmtoken 用户token
|
|
919
|
+
* @param page 页码
|
|
920
|
+
* @param size 每页大小
|
|
921
|
+
* @returns 用户互动和新的pacmtoken
|
|
922
|
+
*/
|
|
923
|
+
declare const getInteractionMsg: (pacmtoken: string, type: string, page?: number, size?: number) => Promise<{
|
|
924
|
+
data: {
|
|
925
|
+
success: boolean;
|
|
926
|
+
error: string;
|
|
927
|
+
};
|
|
928
|
+
newPacmToken: undefined;
|
|
929
|
+
} | {
|
|
930
|
+
data: any;
|
|
931
|
+
newPacmToken: string;
|
|
932
|
+
}>;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* 用户通知
|
|
936
|
+
* @param pacmtoken 用户token
|
|
937
|
+
* @param page 页码
|
|
938
|
+
* @param size 每页大小
|
|
939
|
+
* @returns 用户通知列表和新的pacmtoken
|
|
940
|
+
*/
|
|
941
|
+
declare const getNoticeMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
|
|
942
|
+
data: any;
|
|
943
|
+
newPacmToken: string;
|
|
944
|
+
}>;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* 用户收到的赞
|
|
948
|
+
* @param pacmtoken 用户token
|
|
949
|
+
* @param page 页码
|
|
950
|
+
* @param size 每页大小
|
|
951
|
+
* @returns 用户收到的赞和新的pacmtoken
|
|
952
|
+
*/
|
|
953
|
+
declare const getThumbsMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
|
|
954
|
+
data: any;
|
|
955
|
+
newPacmToken: string;
|
|
956
|
+
}>;
|
|
957
|
+
|
|
958
|
+
declare const getCloudUploadUrl: (pacmtoken: string, file: File) => Promise<{
|
|
959
|
+
data: {
|
|
960
|
+
success: boolean;
|
|
961
|
+
error: string;
|
|
962
|
+
};
|
|
963
|
+
newPacmToken: undefined;
|
|
964
|
+
} | {
|
|
965
|
+
data: any;
|
|
966
|
+
newPacmToken: string;
|
|
967
|
+
}>;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* 删除评论
|
|
971
|
+
* @param pacmtoken 用户token
|
|
972
|
+
* @param resourceId 评论id
|
|
973
|
+
* @returns 删除结果,包含新pacmtoken
|
|
974
|
+
*/
|
|
975
|
+
declare const deleteComment: (pacmtoken: string, resourceId: string) => Promise<{
|
|
976
|
+
data: any;
|
|
977
|
+
newPacmToken: string;
|
|
978
|
+
}>;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* 获取歌手情书
|
|
982
|
+
* @param singerId 歌手ID
|
|
983
|
+
* @returns 歌手情书
|
|
984
|
+
*/
|
|
985
|
+
declare const getSingerLetter: (singerId: string, pageId?: string) => Promise<any>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* 获取歌手mv列表页
|
|
989
|
+
* @param singerId 歌手ID
|
|
990
|
+
* @returns mv列表页
|
|
991
|
+
*/
|
|
992
|
+
declare const getSingerMv: (singerId: string, page?: number) => Promise<any>;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* AI豆签到
|
|
996
|
+
* @param pacmtoken - 用户认证 token
|
|
997
|
+
* @returns 签到结果和新的 pacmtoken
|
|
998
|
+
*/
|
|
999
|
+
declare const signAiBean: (pacmtoken: string) => Promise<{
|
|
1000
|
+
data: any;
|
|
1001
|
+
newPacmToken: string;
|
|
1002
|
+
}>;
|
|
1003
|
+
/**
|
|
1004
|
+
* 获取AI豆数量
|
|
1005
|
+
* @param pacmtoken - 用户认证 token
|
|
1006
|
+
* @returns AI豆数量
|
|
1007
|
+
*/
|
|
1008
|
+
declare const getAiBeanCount: (pacmtoken: string) => Promise<{
|
|
1009
|
+
data: any;
|
|
1010
|
+
newPacmToken: string;
|
|
1011
|
+
}>;
|
|
1012
|
+
/**
|
|
1013
|
+
* 获取AI豆签到状态
|
|
1014
|
+
* @param pacmtoken - 用户认证 token
|
|
1015
|
+
* @returns AI豆签到状态
|
|
1016
|
+
*/
|
|
1017
|
+
declare const getAiBeanSignStatus: (pacmtoken: string) => Promise<{
|
|
1018
|
+
data: any;
|
|
1019
|
+
newPacmToken: string;
|
|
1020
|
+
}>;
|
|
1021
|
+
/**
|
|
1022
|
+
* AI豆-获取一天的天籁会员
|
|
1023
|
+
* @param pacmtoken - 用户认证 token
|
|
1024
|
+
* @returns AI豆数量
|
|
1025
|
+
*/
|
|
1026
|
+
declare const redeemAiBean: (pacmtoken: string) => Promise<{
|
|
1027
|
+
data: any;
|
|
1028
|
+
newPacmToken: string;
|
|
1029
|
+
}>;
|
|
1030
|
+
|
|
846
1031
|
/**
|
|
847
1032
|
* modules 子目录统一入口
|
|
848
1033
|
* 汇总导出所有 API 函数
|
|
@@ -855,10 +1040,17 @@ declare const api_addUserCollect: typeof addUserCollect;
|
|
|
855
1040
|
declare const api_addUserMyList: typeof addUserMyList;
|
|
856
1041
|
declare const api_checkCanListen: typeof checkCanListen;
|
|
857
1042
|
declare const api_checkToken: typeof checkToken;
|
|
1043
|
+
declare const api_deleteCloudMusic: typeof deleteCloudMusic;
|
|
1044
|
+
declare const api_deleteComment: typeof deleteComment;
|
|
858
1045
|
declare const api_dislikeSong: typeof dislikeSong;
|
|
859
1046
|
declare const api_editUserMyList: typeof editUserMyList;
|
|
1047
|
+
declare const api_emojiAction: typeof emojiAction;
|
|
1048
|
+
declare const api_getAiBeanCount: typeof getAiBeanCount;
|
|
1049
|
+
declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
|
|
860
1050
|
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
861
1051
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
1052
|
+
declare const api_getCloudUploadUrl: typeof getCloudUploadUrl;
|
|
1053
|
+
declare const api_getCloudUrl: typeof getCloudUrl;
|
|
862
1054
|
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
863
1055
|
declare const api_getComment: typeof getComment;
|
|
864
1056
|
declare const api_getConcertComment: typeof getConcertComment;
|
|
@@ -866,9 +1058,13 @@ declare const api_getConcertDetail: typeof getConcertDetail;
|
|
|
866
1058
|
declare const api_getConcertInfo: typeof getConcertInfo;
|
|
867
1059
|
declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
|
|
868
1060
|
declare const api_getConcertUrl: typeof getConcertUrl;
|
|
1061
|
+
declare const api_getDLUrlV1: typeof getDLUrlV1;
|
|
1062
|
+
declare const api_getEmojiNum: typeof getEmojiNum;
|
|
869
1063
|
declare const api_getFollowerList: typeof getFollowerList;
|
|
870
1064
|
declare const api_getFollowingList: typeof getFollowingList;
|
|
871
1065
|
declare const api_getFollowingVra: typeof getFollowingVra;
|
|
1066
|
+
declare const api_getInteractionMsg: typeof getInteractionMsg;
|
|
1067
|
+
declare const api_getListenRank: typeof getListenRank;
|
|
872
1068
|
declare const api_getLyric: typeof getLyric;
|
|
873
1069
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
874
1070
|
declare const api_getMvBySong: typeof getMvBySong;
|
|
@@ -879,6 +1075,7 @@ declare const api_getNewSongList: typeof getNewSongList;
|
|
|
879
1075
|
declare const api_getNinanByDate: typeof getNinanByDate;
|
|
880
1076
|
declare const api_getNinanSignInfo: typeof getNinanSignInfo;
|
|
881
1077
|
declare const api_getNinanSong: typeof getNinanSong;
|
|
1078
|
+
declare const api_getNoticeMsg: typeof getNoticeMsg;
|
|
882
1079
|
declare const api_getOpNum: typeof getOpNum;
|
|
883
1080
|
declare const api_getPacmToken: typeof getPacmToken;
|
|
884
1081
|
declare const api_getPageInfo: typeof getPageInfo;
|
|
@@ -908,16 +1105,22 @@ declare const api_getSearchSingerTabList: typeof getSearchSingerTabList;
|
|
|
908
1105
|
declare const api_getSimilarSongRecommend: typeof getSimilarSongRecommend;
|
|
909
1106
|
declare const api_getSingerAlbum: typeof getSingerAlbum;
|
|
910
1107
|
declare const api_getSingerIndex: typeof getSingerIndex;
|
|
1108
|
+
declare const api_getSingerLetter: typeof getSingerLetter;
|
|
1109
|
+
declare const api_getSingerMv: typeof getSingerMv;
|
|
911
1110
|
declare const api_getSingerSimilar: typeof getSingerSimilar;
|
|
912
1111
|
declare const api_getSingerSong: typeof getSingerSong;
|
|
1112
|
+
declare const api_getThumbsMsg: typeof getThumbsMsg;
|
|
913
1113
|
declare const api_getTicketInfo: typeof getTicketInfo;
|
|
914
1114
|
declare const api_getTodayRecommend: typeof getTodayRecommend;
|
|
915
1115
|
declare const api_getUrlH5V24: typeof getUrlH5V24;
|
|
1116
|
+
declare const api_getUrlM2: typeof getUrlM2;
|
|
916
1117
|
declare const api_getUrlV1: typeof getUrlV1;
|
|
917
1118
|
declare const api_getUrlV2: typeof getUrlV2;
|
|
1119
|
+
declare const api_getUserAudioBook: typeof getUserAudioBook;
|
|
918
1120
|
declare const api_getUserBadge: typeof getUserBadge;
|
|
919
1121
|
declare const api_getUserCollectList: typeof getUserCollectList;
|
|
920
1122
|
declare const api_getUserHeader: typeof getUserHeader;
|
|
1123
|
+
declare const api_getUserHeartthrob: typeof getUserHeartthrob;
|
|
921
1124
|
declare const api_getUserHomePage: typeof getUserHomePage;
|
|
922
1125
|
declare const api_getUserMyList: typeof getUserMyList;
|
|
923
1126
|
declare const api_getUserSongPage: typeof getUserSongPage;
|
|
@@ -934,6 +1137,7 @@ declare const api_loginSim: typeof loginSim;
|
|
|
934
1137
|
declare const api_logout: typeof logout;
|
|
935
1138
|
declare const api_matchPlaylist: typeof matchPlaylist;
|
|
936
1139
|
declare const api_queryUserInfo: typeof queryUserInfo;
|
|
1140
|
+
declare const api_redeemAiBean: typeof redeemAiBean;
|
|
937
1141
|
declare const api_removeFollower: typeof removeFollower;
|
|
938
1142
|
declare const api_removeSongFromMyList: typeof removeSongFromMyList;
|
|
939
1143
|
declare const api_removeUserCollect: typeof removeUserCollect;
|
|
@@ -950,9 +1154,10 @@ declare const api_searchSuggest: typeof searchSuggest;
|
|
|
950
1154
|
declare const api_searchTicket: typeof searchTicket;
|
|
951
1155
|
declare const api_shareCommon: typeof shareCommon;
|
|
952
1156
|
declare const api_shareVideo: typeof shareVideo;
|
|
1157
|
+
declare const api_signAiBean: typeof signAiBean;
|
|
953
1158
|
declare const api_signNinan: typeof signNinan;
|
|
954
1159
|
declare namespace api {
|
|
955
|
-
export { api_YDRZ as YDRZ, api_addFollower as addFollower, api_addSongToMyList as addSongToMyList, api_addUserCollect as addUserCollect, api_addUserMyList as addUserMyList, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_dislikeSong as dislikeSong, api_editUserMyList as editUserMyList, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getColumnInfo as getColumnInfo, api_getComment as getComment, api_getConcertComment as getConcertComment, api_getConcertDetail as getConcertDetail, api_getConcertInfo as getConcertInfo, api_getConcertRecommendMv as getConcertRecommendMv, api_getConcertUrl as getConcertUrl, api_getFollowerList as getFollowerList, api_getFollowingList as getFollowingList, api_getFollowingVra as getFollowingVra, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvBySong as getMvBySong, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNewCDList as getNewCDList, api_getNewSongList as getNewSongList, api_getNinanByDate as getNinanByDate, api_getNinanSignInfo as getNinanSignInfo, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPageInfo as getPageInfo, api_getPageTab as getPageTab, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquarePage as getPlaylistSquarePage, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRadioSong as getRadioSong, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getRedirectUrl as getRedirectUrl, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoRecommend as getSVideoRecommend, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSVideoUserInfo as getSVideoUserInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_getUserHeader as getUserHeader, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getUserSongPage as getUserSongPage, api_getVersion as getVersion, api_getVipPlaylist as getVipPlaylist, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_isFollowAuthor as isFollowAuthor, api_likeSong as likeSong, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_logout as logout, api_matchPlaylist as matchPlaylist, api_queryUserInfo as queryUserInfo, api_removeFollower as removeFollower, api_removeSongFromMyList as removeSongFromMyList, api_removeUserCollect as removeUserCollect, api_removeUserMyList as removeUserMyList, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchMv as searchMv, api_searchRbt as searchRbt, api_searchSVideo as searchSVideo, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket, api_shareCommon as shareCommon, api_shareVideo as shareVideo, api_signNinan as signNinan };
|
|
1160
|
+
export { api_YDRZ as YDRZ, api_addFollower as addFollower, api_addSongToMyList as addSongToMyList, api_addUserCollect as addUserCollect, api_addUserMyList as addUserMyList, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_deleteCloudMusic as deleteCloudMusic, api_deleteComment as deleteComment, api_dislikeSong as dislikeSong, api_editUserMyList as editUserMyList, api_emojiAction as emojiAction, api_getAiBeanCount as getAiBeanCount, api_getAiBeanSignStatus as getAiBeanSignStatus, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getCloudUploadUrl as getCloudUploadUrl, api_getCloudUrl as getCloudUrl, api_getColumnInfo as getColumnInfo, api_getComment as getComment, api_getConcertComment as getConcertComment, api_getConcertDetail as getConcertDetail, api_getConcertInfo as getConcertInfo, api_getConcertRecommendMv as getConcertRecommendMv, api_getConcertUrl as getConcertUrl, api_getDLUrlV1 as getDLUrlV1, api_getEmojiNum as getEmojiNum, api_getFollowerList as getFollowerList, api_getFollowingList as getFollowingList, api_getFollowingVra as getFollowingVra, api_getInteractionMsg as getInteractionMsg, api_getListenRank as getListenRank, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvBySong as getMvBySong, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNewCDList as getNewCDList, api_getNewSongList as getNewSongList, api_getNinanByDate as getNinanByDate, api_getNinanSignInfo as getNinanSignInfo, api_getNinanSong as getNinanSong, api_getNoticeMsg as getNoticeMsg, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPageInfo as getPageInfo, api_getPageTab as getPageTab, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquarePage as getPlaylistSquarePage, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRadioSong as getRadioSong, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getRedirectUrl as getRedirectUrl, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoRecommend as getSVideoRecommend, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSVideoUserInfo as getSVideoUserInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerLetter as getSingerLetter, api_getSingerMv as getSingerMv, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getThumbsMsg as getThumbsMsg, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlM2 as getUrlM2, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserAudioBook as getUserAudioBook, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_getUserHeader as getUserHeader, api_getUserHeartthrob as getUserHeartthrob, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getUserSongPage as getUserSongPage, api_getVersion as getVersion, api_getVipPlaylist as getVipPlaylist, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_isFollowAuthor as isFollowAuthor, api_likeSong as likeSong, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_logout as logout, api_matchPlaylist as matchPlaylist, api_queryUserInfo as queryUserInfo, api_redeemAiBean as redeemAiBean, api_removeFollower as removeFollower, api_removeSongFromMyList as removeSongFromMyList, api_removeUserCollect as removeUserCollect, api_removeUserMyList as removeUserMyList, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchMv as searchMv, api_searchRbt as searchRbt, api_searchSVideo as searchSVideo, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket, api_shareCommon as shareCommon, api_shareVideo as shareVideo, api_signAiBean as signAiBean, api_signNinan as signNinan };
|
|
956
1161
|
}
|
|
957
1162
|
|
|
958
1163
|
declare function getDeviceId(a?: number, b?: number): string;
|
|
@@ -970,27 +1175,31 @@ declare class RSAKey {
|
|
|
970
1175
|
|
|
971
1176
|
declare function URLParams($: object | string): string;
|
|
972
1177
|
|
|
973
|
-
declare const qualityList: readonly ["PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D"];
|
|
1178
|
+
declare const qualityList: readonly ["LQ", "PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D", "3D60"];
|
|
974
1179
|
type Quality = (typeof qualityList)[number];
|
|
975
1180
|
declare const toneUrl: {
|
|
1181
|
+
LQ: string;
|
|
976
1182
|
PQ: string;
|
|
977
1183
|
HQ: string;
|
|
978
1184
|
SQ: string;
|
|
979
1185
|
ZQ24: string;
|
|
980
1186
|
ZQ32: string;
|
|
981
1187
|
Z3D: string;
|
|
1188
|
+
'3D60': string;
|
|
982
1189
|
};
|
|
983
1190
|
declare const toneFormat: {
|
|
1191
|
+
LQ: string;
|
|
984
1192
|
PQ: string;
|
|
985
1193
|
HQ: string;
|
|
986
1194
|
SQ: string;
|
|
987
1195
|
ZQ24: string;
|
|
988
1196
|
ZQ32: string;
|
|
989
1197
|
Z3D: string;
|
|
1198
|
+
'3D60': string;
|
|
990
1199
|
};
|
|
991
1200
|
declare function isQuality(quality: string | undefined): quality is Quality;
|
|
992
1201
|
declare function getQuality(url: string): Quality | '';
|
|
993
|
-
declare function changeQuality(url: string, quality: string, originalQuality?: string): string;
|
|
1202
|
+
declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
|
|
994
1203
|
|
|
995
1204
|
declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "2002" | "2016" | "6000" | "D" | "M";
|
|
996
1205
|
|
|
@@ -1028,4 +1237,4 @@ declare function createClient(): ExpandedApi<typeof api>;
|
|
|
1028
1237
|
/** 客户端类型 */
|
|
1029
1238
|
type MiguClient = ReturnType<typeof createClient>;
|
|
1030
1239
|
|
|
1031
|
-
export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDeviceId, getFollowerList, getFollowingList, getFollowingVra, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, getPlaylistSquarePage, getPublicKey, getQuality, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getRedirectUrl, getResourceId, getResourceInfo, getSVideoInfo, getSVideoRecommend, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSVideoUserInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHeader, getUserHomePage, getUserMyList, getUserSongPage, getVersion, getVipPlaylist, getVrbtOpNum, getVrbtUrl, isFollowAuthor, isQuality, likeSong, loginNP, loginOneClick, loginPhone, loginSim, logout, matchPlaylist, api as modules, qualityList, queryUserInfo, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signNinan, toneFormat, toneUrl };
|
|
1240
|
+
export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDLUrlV1, getDeviceId, getEmojiNum, getFollowerList, getFollowingList, getFollowingVra, getInteractionMsg, getListenRank, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getNoticeMsg, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, getPlaylistSquarePage, getPublicKey, getQuality, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getRedirectUrl, getResourceId, getResourceInfo, getSVideoInfo, getSVideoRecommend, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSVideoUserInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerLetter, getSingerMv, getSingerSimilar, getSingerSong, getThumbsMsg, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlM2, getUrlV1, getUrlV2, getUserAudioBook, getUserBadge, getUserCollectList, getUserHeader, getUserHeartthrob, getUserHomePage, getUserMyList, getUserSongPage, getVersion, getVipPlaylist, getVrbtOpNum, getVrbtUrl, isFollowAuthor, isQuality, likeSong, loginNP, loginOneClick, loginPhone, loginSim, logout, matchPlaylist, api as modules, qualityList, queryUserInfo, redeemAiBean, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toneFormat, toneUrl };
|