migu-api-enhanced 2.22.0 → 2.25.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/README.md +8 -8
- package/dist/index.cjs +144 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -5
- package/dist/index.d.ts +110 -5
- package/dist/index.js +132 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const searchSong: (text: string, page?: number) => Promise<any>;
|
|
2
2
|
|
|
3
|
+
declare const searchPlaylist: (text: string, page?: number, typeOrder?: number) => Promise<any>;
|
|
4
|
+
|
|
3
5
|
declare const searchAlbum: (text: string, page?: number, typeOrder?: number) => Promise<any>;
|
|
4
6
|
|
|
5
7
|
declare const searchSinger: (text: string, page?: number) => Promise<any>;
|
|
@@ -305,10 +307,10 @@ declare const loginPhone: {
|
|
|
305
307
|
declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
|
|
306
308
|
|
|
307
309
|
/**
|
|
308
|
-
* 网页v5
|
|
310
|
+
* 网页v5 歌单广场界面
|
|
309
311
|
* @returns
|
|
310
312
|
*/
|
|
311
|
-
declare const
|
|
313
|
+
declare const getSquarePage: () => Promise<any>;
|
|
312
314
|
|
|
313
315
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
314
316
|
|
|
@@ -1028,6 +1030,98 @@ declare const redeemAiBean: (pacmtoken: string) => Promise<{
|
|
|
1028
1030
|
newPacmToken: string;
|
|
1029
1031
|
}>;
|
|
1030
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* 获取云盘音乐下载地址
|
|
1035
|
+
* @param pacmtoken 用户token
|
|
1036
|
+
* @param contentId 云盘音乐contentId
|
|
1037
|
+
* @param toneFlag 音乐质量 默认PQ
|
|
1038
|
+
* @returns 地址和新的pacmtoken
|
|
1039
|
+
*/
|
|
1040
|
+
declare const getCloudDLUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
|
|
1041
|
+
data: any;
|
|
1042
|
+
newPacmToken: string;
|
|
1043
|
+
}>;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* 获取用户手机号,彩铃信息
|
|
1047
|
+
* @param pacmtoken 用户token
|
|
1048
|
+
* @returns 用户完整手机号,彩铃信息和新的pacmtoken
|
|
1049
|
+
*/
|
|
1050
|
+
declare const getUserPhoneInfo: (pacmtoken: string) => Promise<{
|
|
1051
|
+
data: any;
|
|
1052
|
+
newPacmToken: string;
|
|
1053
|
+
}>;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* 获取畅听tab
|
|
1057
|
+
* @param pacmtoken 可选-登录凭证,用于获取所有场景 (无则3个)
|
|
1058
|
+
* @returns 3个听歌模式,多个场景
|
|
1059
|
+
*/
|
|
1060
|
+
declare const getListenFreelyTab: (pacmtoken?: string) => Promise<{
|
|
1061
|
+
data: any;
|
|
1062
|
+
newPacmToken: string | undefined;
|
|
1063
|
+
}>;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* 获取畅听歌曲
|
|
1067
|
+
* @param pacmtoken 必填-登录凭证
|
|
1068
|
+
* @param modelId 可选-模型ID,默认701000(默认模式)
|
|
1069
|
+
* @returns 5个推荐歌曲
|
|
1070
|
+
*/
|
|
1071
|
+
declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Promise<{
|
|
1072
|
+
data: {
|
|
1073
|
+
success: boolean;
|
|
1074
|
+
code: string;
|
|
1075
|
+
info: string;
|
|
1076
|
+
};
|
|
1077
|
+
newPacmToken: undefined;
|
|
1078
|
+
} | {
|
|
1079
|
+
data: any;
|
|
1080
|
+
newPacmToken: string;
|
|
1081
|
+
}>;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* 歌单广场:根据标签获取歌单
|
|
1085
|
+
* @returns
|
|
1086
|
+
*/
|
|
1087
|
+
declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* 网页v5 歌单广场推荐歌单 (5个)
|
|
1091
|
+
* @returns
|
|
1092
|
+
*/
|
|
1093
|
+
declare const getSquareRecommend: () => Promise<any>;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* 网页v5 歌单广场所有标签
|
|
1097
|
+
* @returns
|
|
1098
|
+
*/
|
|
1099
|
+
declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
|
|
1100
|
+
|
|
1101
|
+
/** 获取歌曲详情
|
|
1102
|
+
* @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
|
|
1103
|
+
*/
|
|
1104
|
+
declare const getSongInfo: (contentIds: string) => Promise<any>;
|
|
1105
|
+
|
|
1106
|
+
declare const getActivities: () => Promise<any>;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* 查询已购歌曲
|
|
1110
|
+
* @param pacmtoken 用户token
|
|
1111
|
+
* @returns 已购歌曲列表
|
|
1112
|
+
*/
|
|
1113
|
+
declare const getUserOrdered: (pacmtoken: string) => Promise<{
|
|
1114
|
+
data: {
|
|
1115
|
+
success: boolean;
|
|
1116
|
+
code: string;
|
|
1117
|
+
info: string;
|
|
1118
|
+
};
|
|
1119
|
+
newPacmToken: undefined;
|
|
1120
|
+
} | {
|
|
1121
|
+
data: any;
|
|
1122
|
+
newPacmToken: string;
|
|
1123
|
+
}>;
|
|
1124
|
+
|
|
1031
1125
|
/**
|
|
1032
1126
|
* modules 子目录统一入口
|
|
1033
1127
|
* 汇总导出所有 API 函数
|
|
@@ -1045,10 +1139,12 @@ declare const api_deleteComment: typeof deleteComment;
|
|
|
1045
1139
|
declare const api_dislikeSong: typeof dislikeSong;
|
|
1046
1140
|
declare const api_editUserMyList: typeof editUserMyList;
|
|
1047
1141
|
declare const api_emojiAction: typeof emojiAction;
|
|
1142
|
+
declare const api_getActivities: typeof getActivities;
|
|
1048
1143
|
declare const api_getAiBeanCount: typeof getAiBeanCount;
|
|
1049
1144
|
declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
|
|
1050
1145
|
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
1051
1146
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
1147
|
+
declare const api_getCloudDLUrl: typeof getCloudDLUrl;
|
|
1052
1148
|
declare const api_getCloudUploadUrl: typeof getCloudUploadUrl;
|
|
1053
1149
|
declare const api_getCloudUrl: typeof getCloudUrl;
|
|
1054
1150
|
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
@@ -1064,6 +1160,8 @@ declare const api_getFollowerList: typeof getFollowerList;
|
|
|
1064
1160
|
declare const api_getFollowingList: typeof getFollowingList;
|
|
1065
1161
|
declare const api_getFollowingVra: typeof getFollowingVra;
|
|
1066
1162
|
declare const api_getInteractionMsg: typeof getInteractionMsg;
|
|
1163
|
+
declare const api_getListenFreelySongs: typeof getListenFreelySongs;
|
|
1164
|
+
declare const api_getListenFreelyTab: typeof getListenFreelyTab;
|
|
1067
1165
|
declare const api_getListenRank: typeof getListenRank;
|
|
1068
1166
|
declare const api_getLyric: typeof getLyric;
|
|
1069
1167
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
@@ -1082,7 +1180,6 @@ declare const api_getPageInfo: typeof getPageInfo;
|
|
|
1082
1180
|
declare const api_getPageTab: typeof getPageTab;
|
|
1083
1181
|
declare const api_getPlaylistInfo: typeof getPlaylistInfo;
|
|
1084
1182
|
declare const api_getPlaylistSong: typeof getPlaylistSong;
|
|
1085
|
-
declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
|
|
1086
1183
|
declare const api_getRadioRecommend: typeof getRadioRecommend;
|
|
1087
1184
|
declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
|
|
1088
1185
|
declare const api_getRadioSong: typeof getRadioSong;
|
|
@@ -1109,6 +1206,11 @@ declare const api_getSingerLetter: typeof getSingerLetter;
|
|
|
1109
1206
|
declare const api_getSingerMv: typeof getSingerMv;
|
|
1110
1207
|
declare const api_getSingerSimilar: typeof getSingerSimilar;
|
|
1111
1208
|
declare const api_getSingerSong: typeof getSingerSong;
|
|
1209
|
+
declare const api_getSongInfo: typeof getSongInfo;
|
|
1210
|
+
declare const api_getSquareListByTag: typeof getSquareListByTag;
|
|
1211
|
+
declare const api_getSquarePage: typeof getSquarePage;
|
|
1212
|
+
declare const api_getSquareRecommend: typeof getSquareRecommend;
|
|
1213
|
+
declare const api_getSquareTag: typeof getSquareTag;
|
|
1112
1214
|
declare const api_getThumbsMsg: typeof getThumbsMsg;
|
|
1113
1215
|
declare const api_getTicketInfo: typeof getTicketInfo;
|
|
1114
1216
|
declare const api_getTodayRecommend: typeof getTodayRecommend;
|
|
@@ -1123,6 +1225,8 @@ declare const api_getUserHeader: typeof getUserHeader;
|
|
|
1123
1225
|
declare const api_getUserHeartthrob: typeof getUserHeartthrob;
|
|
1124
1226
|
declare const api_getUserHomePage: typeof getUserHomePage;
|
|
1125
1227
|
declare const api_getUserMyList: typeof getUserMyList;
|
|
1228
|
+
declare const api_getUserOrdered: typeof getUserOrdered;
|
|
1229
|
+
declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
|
|
1126
1230
|
declare const api_getUserSongPage: typeof getUserSongPage;
|
|
1127
1231
|
declare const api_getVersion: typeof getVersion;
|
|
1128
1232
|
declare const api_getVipPlaylist: typeof getVipPlaylist;
|
|
@@ -1146,6 +1250,7 @@ declare const api_searchAlbum: typeof searchAlbum;
|
|
|
1146
1250
|
declare const api_searchConcert: typeof searchConcert;
|
|
1147
1251
|
declare const api_searchLrc: typeof searchLrc;
|
|
1148
1252
|
declare const api_searchMv: typeof searchMv;
|
|
1253
|
+
declare const api_searchPlaylist: typeof searchPlaylist;
|
|
1149
1254
|
declare const api_searchRbt: typeof searchRbt;
|
|
1150
1255
|
declare const api_searchSVideo: typeof searchSVideo;
|
|
1151
1256
|
declare const api_searchSinger: typeof searchSinger;
|
|
@@ -1157,7 +1262,7 @@ declare const api_shareVideo: typeof shareVideo;
|
|
|
1157
1262
|
declare const api_signAiBean: typeof signAiBean;
|
|
1158
1263
|
declare const api_signNinan: typeof signNinan;
|
|
1159
1264
|
declare namespace api {
|
|
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,
|
|
1265
|
+
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_getActivities as getActivities, api_getAiBeanCount as getAiBeanCount, api_getAiBeanSignStatus as getAiBeanSignStatus, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getCloudDLUrl as getCloudDLUrl, 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_getListenFreelySongs as getListenFreelySongs, api_getListenFreelyTab as getListenFreelyTab, 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_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_getSongInfo as getSongInfo, api_getSquareListByTag as getSquareListByTag, api_getSquarePage as getSquarePage, api_getSquareRecommend as getSquareRecommend, api_getSquareTag as getSquareTag, 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_getUserOrdered as getUserOrdered, api_getUserPhoneInfo as getUserPhoneInfo, 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_searchPlaylist as searchPlaylist, 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 };
|
|
1161
1266
|
}
|
|
1162
1267
|
|
|
1163
1268
|
declare function getDeviceId(a?: number, b?: number): string;
|
|
@@ -1237,4 +1342,4 @@ declare function createClient(): ExpandedApi<typeof api>;
|
|
|
1237
1342
|
/** 客户端类型 */
|
|
1238
1343
|
type MiguClient = ReturnType<typeof createClient>;
|
|
1239
1344
|
|
|
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,
|
|
1345
|
+
export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDLUrlV1, getDeviceId, getEmojiNum, getFollowerList, getFollowingList, getFollowingVra, getInteractionMsg, getListenFreelySongs, getListenFreelyTab, getListenRank, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getNoticeMsg, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, 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, getSongInfo, getSquareListByTag, getSquarePage, getSquareRecommend, getSquareTag, getThumbsMsg, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlM2, getUrlV1, getUrlV2, getUserAudioBook, getUserBadge, getUserCollectList, getUserHeader, getUserHeartthrob, getUserHomePage, getUserMyList, getUserOrdered, getUserPhoneInfo, 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, searchPlaylist, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toneFormat, toneUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const searchSong: (text: string, page?: number) => Promise<any>;
|
|
2
2
|
|
|
3
|
+
declare const searchPlaylist: (text: string, page?: number, typeOrder?: number) => Promise<any>;
|
|
4
|
+
|
|
3
5
|
declare const searchAlbum: (text: string, page?: number, typeOrder?: number) => Promise<any>;
|
|
4
6
|
|
|
5
7
|
declare const searchSinger: (text: string, page?: number) => Promise<any>;
|
|
@@ -305,10 +307,10 @@ declare const loginPhone: {
|
|
|
305
307
|
declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
|
|
306
308
|
|
|
307
309
|
/**
|
|
308
|
-
* 网页v5
|
|
310
|
+
* 网页v5 歌单广场界面
|
|
309
311
|
* @returns
|
|
310
312
|
*/
|
|
311
|
-
declare const
|
|
313
|
+
declare const getSquarePage: () => Promise<any>;
|
|
312
314
|
|
|
313
315
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
314
316
|
|
|
@@ -1028,6 +1030,98 @@ declare const redeemAiBean: (pacmtoken: string) => Promise<{
|
|
|
1028
1030
|
newPacmToken: string;
|
|
1029
1031
|
}>;
|
|
1030
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* 获取云盘音乐下载地址
|
|
1035
|
+
* @param pacmtoken 用户token
|
|
1036
|
+
* @param contentId 云盘音乐contentId
|
|
1037
|
+
* @param toneFlag 音乐质量 默认PQ
|
|
1038
|
+
* @returns 地址和新的pacmtoken
|
|
1039
|
+
*/
|
|
1040
|
+
declare const getCloudDLUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
|
|
1041
|
+
data: any;
|
|
1042
|
+
newPacmToken: string;
|
|
1043
|
+
}>;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* 获取用户手机号,彩铃信息
|
|
1047
|
+
* @param pacmtoken 用户token
|
|
1048
|
+
* @returns 用户完整手机号,彩铃信息和新的pacmtoken
|
|
1049
|
+
*/
|
|
1050
|
+
declare const getUserPhoneInfo: (pacmtoken: string) => Promise<{
|
|
1051
|
+
data: any;
|
|
1052
|
+
newPacmToken: string;
|
|
1053
|
+
}>;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* 获取畅听tab
|
|
1057
|
+
* @param pacmtoken 可选-登录凭证,用于获取所有场景 (无则3个)
|
|
1058
|
+
* @returns 3个听歌模式,多个场景
|
|
1059
|
+
*/
|
|
1060
|
+
declare const getListenFreelyTab: (pacmtoken?: string) => Promise<{
|
|
1061
|
+
data: any;
|
|
1062
|
+
newPacmToken: string | undefined;
|
|
1063
|
+
}>;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* 获取畅听歌曲
|
|
1067
|
+
* @param pacmtoken 必填-登录凭证
|
|
1068
|
+
* @param modelId 可选-模型ID,默认701000(默认模式)
|
|
1069
|
+
* @returns 5个推荐歌曲
|
|
1070
|
+
*/
|
|
1071
|
+
declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Promise<{
|
|
1072
|
+
data: {
|
|
1073
|
+
success: boolean;
|
|
1074
|
+
code: string;
|
|
1075
|
+
info: string;
|
|
1076
|
+
};
|
|
1077
|
+
newPacmToken: undefined;
|
|
1078
|
+
} | {
|
|
1079
|
+
data: any;
|
|
1080
|
+
newPacmToken: string;
|
|
1081
|
+
}>;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* 歌单广场:根据标签获取歌单
|
|
1085
|
+
* @returns
|
|
1086
|
+
*/
|
|
1087
|
+
declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* 网页v5 歌单广场推荐歌单 (5个)
|
|
1091
|
+
* @returns
|
|
1092
|
+
*/
|
|
1093
|
+
declare const getSquareRecommend: () => Promise<any>;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* 网页v5 歌单广场所有标签
|
|
1097
|
+
* @returns
|
|
1098
|
+
*/
|
|
1099
|
+
declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
|
|
1100
|
+
|
|
1101
|
+
/** 获取歌曲详情
|
|
1102
|
+
* @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
|
|
1103
|
+
*/
|
|
1104
|
+
declare const getSongInfo: (contentIds: string) => Promise<any>;
|
|
1105
|
+
|
|
1106
|
+
declare const getActivities: () => Promise<any>;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* 查询已购歌曲
|
|
1110
|
+
* @param pacmtoken 用户token
|
|
1111
|
+
* @returns 已购歌曲列表
|
|
1112
|
+
*/
|
|
1113
|
+
declare const getUserOrdered: (pacmtoken: string) => Promise<{
|
|
1114
|
+
data: {
|
|
1115
|
+
success: boolean;
|
|
1116
|
+
code: string;
|
|
1117
|
+
info: string;
|
|
1118
|
+
};
|
|
1119
|
+
newPacmToken: undefined;
|
|
1120
|
+
} | {
|
|
1121
|
+
data: any;
|
|
1122
|
+
newPacmToken: string;
|
|
1123
|
+
}>;
|
|
1124
|
+
|
|
1031
1125
|
/**
|
|
1032
1126
|
* modules 子目录统一入口
|
|
1033
1127
|
* 汇总导出所有 API 函数
|
|
@@ -1045,10 +1139,12 @@ declare const api_deleteComment: typeof deleteComment;
|
|
|
1045
1139
|
declare const api_dislikeSong: typeof dislikeSong;
|
|
1046
1140
|
declare const api_editUserMyList: typeof editUserMyList;
|
|
1047
1141
|
declare const api_emojiAction: typeof emojiAction;
|
|
1142
|
+
declare const api_getActivities: typeof getActivities;
|
|
1048
1143
|
declare const api_getAiBeanCount: typeof getAiBeanCount;
|
|
1049
1144
|
declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
|
|
1050
1145
|
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
1051
1146
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
1147
|
+
declare const api_getCloudDLUrl: typeof getCloudDLUrl;
|
|
1052
1148
|
declare const api_getCloudUploadUrl: typeof getCloudUploadUrl;
|
|
1053
1149
|
declare const api_getCloudUrl: typeof getCloudUrl;
|
|
1054
1150
|
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
@@ -1064,6 +1160,8 @@ declare const api_getFollowerList: typeof getFollowerList;
|
|
|
1064
1160
|
declare const api_getFollowingList: typeof getFollowingList;
|
|
1065
1161
|
declare const api_getFollowingVra: typeof getFollowingVra;
|
|
1066
1162
|
declare const api_getInteractionMsg: typeof getInteractionMsg;
|
|
1163
|
+
declare const api_getListenFreelySongs: typeof getListenFreelySongs;
|
|
1164
|
+
declare const api_getListenFreelyTab: typeof getListenFreelyTab;
|
|
1067
1165
|
declare const api_getListenRank: typeof getListenRank;
|
|
1068
1166
|
declare const api_getLyric: typeof getLyric;
|
|
1069
1167
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
@@ -1082,7 +1180,6 @@ declare const api_getPageInfo: typeof getPageInfo;
|
|
|
1082
1180
|
declare const api_getPageTab: typeof getPageTab;
|
|
1083
1181
|
declare const api_getPlaylistInfo: typeof getPlaylistInfo;
|
|
1084
1182
|
declare const api_getPlaylistSong: typeof getPlaylistSong;
|
|
1085
|
-
declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
|
|
1086
1183
|
declare const api_getRadioRecommend: typeof getRadioRecommend;
|
|
1087
1184
|
declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
|
|
1088
1185
|
declare const api_getRadioSong: typeof getRadioSong;
|
|
@@ -1109,6 +1206,11 @@ declare const api_getSingerLetter: typeof getSingerLetter;
|
|
|
1109
1206
|
declare const api_getSingerMv: typeof getSingerMv;
|
|
1110
1207
|
declare const api_getSingerSimilar: typeof getSingerSimilar;
|
|
1111
1208
|
declare const api_getSingerSong: typeof getSingerSong;
|
|
1209
|
+
declare const api_getSongInfo: typeof getSongInfo;
|
|
1210
|
+
declare const api_getSquareListByTag: typeof getSquareListByTag;
|
|
1211
|
+
declare const api_getSquarePage: typeof getSquarePage;
|
|
1212
|
+
declare const api_getSquareRecommend: typeof getSquareRecommend;
|
|
1213
|
+
declare const api_getSquareTag: typeof getSquareTag;
|
|
1112
1214
|
declare const api_getThumbsMsg: typeof getThumbsMsg;
|
|
1113
1215
|
declare const api_getTicketInfo: typeof getTicketInfo;
|
|
1114
1216
|
declare const api_getTodayRecommend: typeof getTodayRecommend;
|
|
@@ -1123,6 +1225,8 @@ declare const api_getUserHeader: typeof getUserHeader;
|
|
|
1123
1225
|
declare const api_getUserHeartthrob: typeof getUserHeartthrob;
|
|
1124
1226
|
declare const api_getUserHomePage: typeof getUserHomePage;
|
|
1125
1227
|
declare const api_getUserMyList: typeof getUserMyList;
|
|
1228
|
+
declare const api_getUserOrdered: typeof getUserOrdered;
|
|
1229
|
+
declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
|
|
1126
1230
|
declare const api_getUserSongPage: typeof getUserSongPage;
|
|
1127
1231
|
declare const api_getVersion: typeof getVersion;
|
|
1128
1232
|
declare const api_getVipPlaylist: typeof getVipPlaylist;
|
|
@@ -1146,6 +1250,7 @@ declare const api_searchAlbum: typeof searchAlbum;
|
|
|
1146
1250
|
declare const api_searchConcert: typeof searchConcert;
|
|
1147
1251
|
declare const api_searchLrc: typeof searchLrc;
|
|
1148
1252
|
declare const api_searchMv: typeof searchMv;
|
|
1253
|
+
declare const api_searchPlaylist: typeof searchPlaylist;
|
|
1149
1254
|
declare const api_searchRbt: typeof searchRbt;
|
|
1150
1255
|
declare const api_searchSVideo: typeof searchSVideo;
|
|
1151
1256
|
declare const api_searchSinger: typeof searchSinger;
|
|
@@ -1157,7 +1262,7 @@ declare const api_shareVideo: typeof shareVideo;
|
|
|
1157
1262
|
declare const api_signAiBean: typeof signAiBean;
|
|
1158
1263
|
declare const api_signNinan: typeof signNinan;
|
|
1159
1264
|
declare namespace api {
|
|
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,
|
|
1265
|
+
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_getActivities as getActivities, api_getAiBeanCount as getAiBeanCount, api_getAiBeanSignStatus as getAiBeanSignStatus, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getCloudDLUrl as getCloudDLUrl, 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_getListenFreelySongs as getListenFreelySongs, api_getListenFreelyTab as getListenFreelyTab, 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_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_getSongInfo as getSongInfo, api_getSquareListByTag as getSquareListByTag, api_getSquarePage as getSquarePage, api_getSquareRecommend as getSquareRecommend, api_getSquareTag as getSquareTag, 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_getUserOrdered as getUserOrdered, api_getUserPhoneInfo as getUserPhoneInfo, 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_searchPlaylist as searchPlaylist, 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 };
|
|
1161
1266
|
}
|
|
1162
1267
|
|
|
1163
1268
|
declare function getDeviceId(a?: number, b?: number): string;
|
|
@@ -1237,4 +1342,4 @@ declare function createClient(): ExpandedApi<typeof api>;
|
|
|
1237
1342
|
/** 客户端类型 */
|
|
1238
1343
|
type MiguClient = ReturnType<typeof createClient>;
|
|
1239
1344
|
|
|
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,
|
|
1345
|
+
export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDLUrlV1, getDeviceId, getEmojiNum, getFollowerList, getFollowingList, getFollowingVra, getInteractionMsg, getListenFreelySongs, getListenFreelyTab, getListenRank, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getNoticeMsg, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, 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, getSongInfo, getSquareListByTag, getSquarePage, getSquareRecommend, getSquareTag, getThumbsMsg, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlM2, getUrlV1, getUrlV2, getUserAudioBook, getUserBadge, getUserCollectList, getUserHeader, getUserHeartthrob, getUserHomePage, getUserMyList, getUserOrdered, getUserPhoneInfo, 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, searchPlaylist, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toneFormat, toneUrl };
|
package/dist/index.js
CHANGED
|
@@ -19,10 +19,12 @@ __export(modules_exports, {
|
|
|
19
19
|
dislikeSong: () => dislikeSong,
|
|
20
20
|
editUserMyList: () => editUserMyList,
|
|
21
21
|
emojiAction: () => emojiAction,
|
|
22
|
+
getActivities: () => getActivities,
|
|
22
23
|
getAiBeanCount: () => getAiBeanCount,
|
|
23
24
|
getAiBeanSignStatus: () => getAiBeanSignStatus,
|
|
24
25
|
getAlbumInfo: () => getAlbumInfo,
|
|
25
26
|
getAlbumSong: () => getAlbumSong,
|
|
27
|
+
getCloudDLUrl: () => getCloudDLUrl,
|
|
26
28
|
getCloudUploadUrl: () => getCloudUploadUrl,
|
|
27
29
|
getCloudUrl: () => getCloudUrl,
|
|
28
30
|
getColumnInfo: () => getColumnInfo,
|
|
@@ -38,6 +40,8 @@ __export(modules_exports, {
|
|
|
38
40
|
getFollowingList: () => getFollowingList,
|
|
39
41
|
getFollowingVra: () => getFollowingVra,
|
|
40
42
|
getInteractionMsg: () => getInteractionMsg,
|
|
43
|
+
getListenFreelySongs: () => getListenFreelySongs,
|
|
44
|
+
getListenFreelyTab: () => getListenFreelyTab,
|
|
41
45
|
getListenRank: () => getListenRank,
|
|
42
46
|
getLyric: () => getLyric,
|
|
43
47
|
getMVRecommend: () => getMVRecommend,
|
|
@@ -56,7 +60,6 @@ __export(modules_exports, {
|
|
|
56
60
|
getPageTab: () => getPageTab,
|
|
57
61
|
getPlaylistInfo: () => getPlaylistInfo,
|
|
58
62
|
getPlaylistSong: () => getPlaylistSong,
|
|
59
|
-
getPlaylistSquarePage: () => getPlaylistSquarePage,
|
|
60
63
|
getRadioRecommend: () => getRadioRecommend,
|
|
61
64
|
getRadioRecommendAll: () => getRadioRecommendAll,
|
|
62
65
|
getRadioSong: () => getRadioSong,
|
|
@@ -83,6 +86,11 @@ __export(modules_exports, {
|
|
|
83
86
|
getSingerMv: () => getSingerMv,
|
|
84
87
|
getSingerSimilar: () => getSingerSimilar,
|
|
85
88
|
getSingerSong: () => getSingerSong,
|
|
89
|
+
getSongInfo: () => getSongInfo,
|
|
90
|
+
getSquareListByTag: () => getSquareListByTag,
|
|
91
|
+
getSquarePage: () => getSquarePage,
|
|
92
|
+
getSquareRecommend: () => getSquareRecommend,
|
|
93
|
+
getSquareTag: () => getSquareTag,
|
|
86
94
|
getThumbsMsg: () => getThumbsMsg,
|
|
87
95
|
getTicketInfo: () => getTicketInfo,
|
|
88
96
|
getTodayRecommend: () => getTodayRecommend,
|
|
@@ -97,6 +105,8 @@ __export(modules_exports, {
|
|
|
97
105
|
getUserHeartthrob: () => getUserHeartthrob,
|
|
98
106
|
getUserHomePage: () => getUserHomePage,
|
|
99
107
|
getUserMyList: () => getUserMyList,
|
|
108
|
+
getUserOrdered: () => getUserOrdered,
|
|
109
|
+
getUserPhoneInfo: () => getUserPhoneInfo,
|
|
100
110
|
getUserSongPage: () => getUserSongPage,
|
|
101
111
|
getVersion: () => getVersion,
|
|
102
112
|
getVipPlaylist: () => getVipPlaylist,
|
|
@@ -120,6 +130,7 @@ __export(modules_exports, {
|
|
|
120
130
|
searchConcert: () => searchConcert,
|
|
121
131
|
searchLrc: () => searchLrc,
|
|
122
132
|
searchMv: () => searchMv,
|
|
133
|
+
searchPlaylist: () => searchPlaylist,
|
|
123
134
|
searchRbt: () => searchRbt,
|
|
124
135
|
searchSVideo: () => searchSVideo,
|
|
125
136
|
searchSinger: () => searchSinger,
|
|
@@ -227,6 +238,11 @@ var searchSong = async (text, page = 1) => {
|
|
|
227
238
|
return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
|
|
228
239
|
};
|
|
229
240
|
|
|
241
|
+
// src/modules/search_playlist.ts
|
|
242
|
+
var searchPlaylist = async (text, page = 1, typeOrder = 0) => {
|
|
243
|
+
return await h5fetch(`https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
244
|
+
};
|
|
245
|
+
|
|
230
246
|
// src/modules/search_album.ts
|
|
231
247
|
var searchAlbum = async (text, page = 1, typeOrder = 0) => {
|
|
232
248
|
return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
@@ -1250,7 +1266,7 @@ var getMVRecommend = async (mvContentId, page = 1) => {
|
|
|
1250
1266
|
};
|
|
1251
1267
|
|
|
1252
1268
|
// src/modules/playlist_square_page.ts
|
|
1253
|
-
var
|
|
1269
|
+
var getSquarePage = async () => {
|
|
1254
1270
|
return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
|
|
1255
1271
|
};
|
|
1256
1272
|
|
|
@@ -2154,6 +2170,108 @@ var redeemAiBean = async (pacmtoken) => {
|
|
|
2154
2170
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2155
2171
|
};
|
|
2156
2172
|
|
|
2173
|
+
// src/modules/cloud_dl.ts
|
|
2174
|
+
var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
|
|
2175
|
+
const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
|
|
2176
|
+
cookie: { pacmtoken },
|
|
2177
|
+
headers: { "channel": "0146931", "version": "7.41.13" },
|
|
2178
|
+
params: {
|
|
2179
|
+
contentId,
|
|
2180
|
+
"formatType": toneFlag,
|
|
2181
|
+
"type": "0"
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2184
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2185
|
+
};
|
|
2186
|
+
|
|
2187
|
+
// src/modules/user_phoneInfo.ts
|
|
2188
|
+
var getUserPhoneInfo = async (pacmtoken) => {
|
|
2189
|
+
const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
|
|
2190
|
+
cookie: { pacmtoken },
|
|
2191
|
+
headers: {
|
|
2192
|
+
"channel": "0146921",
|
|
2193
|
+
"version": "8.8.0"
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
// src/modules/recommend_listenFreely_tab.ts
|
|
2200
|
+
var getListenFreelyTab = async (pacmtoken = "") => {
|
|
2201
|
+
const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
|
|
2202
|
+
cookie: pacmtoken ? { pacmtoken } : void 0
|
|
2203
|
+
});
|
|
2204
|
+
return { data, newPacmToken: cookies.pacmtoken || void 0 };
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
// src/modules/recommend_listenFreely.ts
|
|
2208
|
+
var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
|
|
2209
|
+
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
|
|
2210
|
+
const { data, cookies } = await ckfetch(`http://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
|
|
2211
|
+
cookie: { pacmtoken }
|
|
2212
|
+
});
|
|
2213
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
// src/modules/playlist_square_listByTag.ts
|
|
2217
|
+
var getSquareListByTag = async (tagId, page) => {
|
|
2218
|
+
const res = await h5fetch(`http://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
|
|
2219
|
+
res.data.contentItemList = res?.data?.contentItemList?.itemList?.reduce((acc, item) => {
|
|
2220
|
+
if (!item.actionUrl || !item.actionUrl.includes("song-list-info")) {
|
|
2221
|
+
return acc;
|
|
2222
|
+
}
|
|
2223
|
+
item.playlistId = item.actionUrl.split("id=")[1].split("&")[0] || "";
|
|
2224
|
+
acc.push(item);
|
|
2225
|
+
return acc;
|
|
2226
|
+
}, []) || [];
|
|
2227
|
+
res.data.hasNext = res.data.contentItemList.length < 30 ? false : res?.data?.nextPageUrl !== void 0 && res?.data?.nextPageUrl !== "";
|
|
2228
|
+
return res;
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
// src/modules/playlist_square_recommend.ts
|
|
2232
|
+
var getSquareRecommend = async () => {
|
|
2233
|
+
return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
// src/modules/playlist_square_tag.ts
|
|
2237
|
+
var getSquareTag = async (needMoreTag = true) => {
|
|
2238
|
+
const baseTag = await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
|
|
2239
|
+
if (!needMoreTag) {
|
|
2240
|
+
return baseTag;
|
|
2241
|
+
}
|
|
2242
|
+
const moreTag = await h5fetch(`https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
|
|
2243
|
+
baseTag.data.moreTag = moreTag.data.map((item) => {
|
|
2244
|
+
const title = item?.header?.title;
|
|
2245
|
+
const tagList = item?.content.map((it) => ({
|
|
2246
|
+
tagName: it.texts[0],
|
|
2247
|
+
tagId: it.texts[1]
|
|
2248
|
+
}));
|
|
2249
|
+
return { title, tagList };
|
|
2250
|
+
});
|
|
2251
|
+
return baseTag;
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
// src/modules/resourceinfo_song.ts
|
|
2255
|
+
var getSongInfo = async (contentIds) => {
|
|
2256
|
+
contentIds = contentIds.replace(/,/g, "|");
|
|
2257
|
+
return await h5fetch(`https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
// src/modules/activities.ts
|
|
2261
|
+
var getActivities = async () => {
|
|
2262
|
+
return await h5fetch(`https://app.u.nf.migu.cn/MIGUM3.0/v1.0/template/index-activity/release`);
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
// src/modules/user_ordered.ts
|
|
2266
|
+
var getUserOrdered = async (pacmtoken) => {
|
|
2267
|
+
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
|
|
2268
|
+
const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
|
|
2269
|
+
cookie: { pacmtoken },
|
|
2270
|
+
headers: { "channel": "014X031" }
|
|
2271
|
+
});
|
|
2272
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2157
2275
|
// src/utils/index.ts
|
|
2158
2276
|
var utils_exports = {};
|
|
2159
2277
|
__export(utils_exports, {
|
|
@@ -2220,10 +2338,12 @@ export {
|
|
|
2220
2338
|
dislikeSong,
|
|
2221
2339
|
editUserMyList,
|
|
2222
2340
|
emojiAction,
|
|
2341
|
+
getActivities,
|
|
2223
2342
|
getAiBeanCount,
|
|
2224
2343
|
getAiBeanSignStatus,
|
|
2225
2344
|
getAlbumInfo,
|
|
2226
2345
|
getAlbumSong,
|
|
2346
|
+
getCloudDLUrl,
|
|
2227
2347
|
getCloudUploadUrl,
|
|
2228
2348
|
getCloudUrl,
|
|
2229
2349
|
getColumnInfo,
|
|
@@ -2240,6 +2360,8 @@ export {
|
|
|
2240
2360
|
getFollowingList,
|
|
2241
2361
|
getFollowingVra,
|
|
2242
2362
|
getInteractionMsg,
|
|
2363
|
+
getListenFreelySongs,
|
|
2364
|
+
getListenFreelyTab,
|
|
2243
2365
|
getListenRank,
|
|
2244
2366
|
getLyric,
|
|
2245
2367
|
getMVRecommend,
|
|
@@ -2258,7 +2380,6 @@ export {
|
|
|
2258
2380
|
getPageTab,
|
|
2259
2381
|
getPlaylistInfo,
|
|
2260
2382
|
getPlaylistSong,
|
|
2261
|
-
getPlaylistSquarePage,
|
|
2262
2383
|
getPublicKey,
|
|
2263
2384
|
getQuality,
|
|
2264
2385
|
getRadioRecommend,
|
|
@@ -2288,6 +2409,11 @@ export {
|
|
|
2288
2409
|
getSingerMv,
|
|
2289
2410
|
getSingerSimilar,
|
|
2290
2411
|
getSingerSong,
|
|
2412
|
+
getSongInfo,
|
|
2413
|
+
getSquareListByTag,
|
|
2414
|
+
getSquarePage,
|
|
2415
|
+
getSquareRecommend,
|
|
2416
|
+
getSquareTag,
|
|
2291
2417
|
getThumbsMsg,
|
|
2292
2418
|
getTicketInfo,
|
|
2293
2419
|
getTodayRecommend,
|
|
@@ -2302,6 +2428,8 @@ export {
|
|
|
2302
2428
|
getUserHeartthrob,
|
|
2303
2429
|
getUserHomePage,
|
|
2304
2430
|
getUserMyList,
|
|
2431
|
+
getUserOrdered,
|
|
2432
|
+
getUserPhoneInfo,
|
|
2305
2433
|
getUserSongPage,
|
|
2306
2434
|
getVersion,
|
|
2307
2435
|
getVipPlaylist,
|
|
@@ -2328,6 +2456,7 @@ export {
|
|
|
2328
2456
|
searchConcert,
|
|
2329
2457
|
searchLrc,
|
|
2330
2458
|
searchMv,
|
|
2459
|
+
searchPlaylist,
|
|
2331
2460
|
searchRbt,
|
|
2332
2461
|
searchSVideo,
|
|
2333
2462
|
searchSinger,
|