migu-api-enhanced 2.23.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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>;
@@ -34,7 +36,7 @@ declare const getSingerIndex: (singerId: string) => Promise<any>;
34
36
 
35
37
  declare const getSingerSong: (singerId: string, page?: number) => Promise<any>;
36
38
 
37
- declare const getSingerAlbum: (singerId: string) => Promise<any>;
39
+ declare const getSingerAlbum: (singerId: string, page?: number) => Promise<any>;
38
40
 
39
41
  declare const getRankIndex: () => Promise<any>;
40
42
 
@@ -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 getPlaylistSquarePage: () => Promise<any>;
313
+ declare const getSquarePage: () => Promise<any>;
312
314
 
313
315
  declare const searchLrc: (text: string, page?: number) => Promise<any>;
314
316
 
@@ -396,15 +398,20 @@ declare const getVrbtUrl: (contentIds: string) => Promise<any>;
396
398
 
397
399
  /**获取歌词(自建)
398
400
  * @param contentId 单个歌曲ID,
401
+ * @param type 歌词类型,逗号分隔,默认lrc
399
402
  * @returns 歌词文本
400
403
  */
401
- declare const getLyric: (contentId: string) => Promise<{
404
+ declare const getLyric: (contentId: string, type?: string) => Promise<{
402
405
  error: string;
403
406
  success: boolean;
404
407
  status?: undefined;
405
408
  data?: undefined;
406
409
  lrc?: undefined;
407
410
  lrcUrl?: undefined;
411
+ mrc?: undefined;
412
+ mrcUrl?: undefined;
413
+ trc?: undefined;
414
+ trcUrl?: undefined;
408
415
  } | {
409
416
  success: boolean;
410
417
  status: number;
@@ -412,6 +419,10 @@ declare const getLyric: (contentId: string) => Promise<{
412
419
  data?: undefined;
413
420
  lrc?: undefined;
414
421
  lrcUrl?: undefined;
422
+ mrc?: undefined;
423
+ mrcUrl?: undefined;
424
+ trc?: undefined;
425
+ trcUrl?: undefined;
415
426
  } | {
416
427
  error: string;
417
428
  success: boolean;
@@ -419,17 +430,18 @@ declare const getLyric: (contentId: string) => Promise<{
419
430
  status?: undefined;
420
431
  lrc?: undefined;
421
432
  lrcUrl?: undefined;
422
- } | {
423
- success: boolean;
424
- status: number;
425
- error: string;
426
- data: any;
427
- lrc?: undefined;
428
- lrcUrl?: undefined;
433
+ mrc?: undefined;
434
+ mrcUrl?: undefined;
435
+ trc?: undefined;
436
+ trcUrl?: undefined;
429
437
  } | {
430
438
  success: boolean;
431
439
  lrc: any;
432
440
  lrcUrl: any;
441
+ mrc: string | undefined;
442
+ mrcUrl: any;
443
+ trc: any;
444
+ trcUrl: any;
433
445
  error?: undefined;
434
446
  status?: undefined;
435
447
  data?: undefined;
@@ -815,11 +827,11 @@ declare const shareVideo: (resourceType: string, contentId: string, userId?: str
815
827
 
816
828
  /**
817
829
  * 分享通用内容
818
- * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手
819
- * @param contentId 内容id 歌曲contentId / albumId / artistId / playlistId
820
- * @param contentName 歌曲名称 / 专辑名称 / 歌手名称 / 播放列表名称
830
+ * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手 5:数字专辑
831
+ * @param contentId 内容id 歌曲contentId / albumId / dAlbumId / artistId / playlistId
832
+ * @param contentName 歌曲名称 / (数字)专辑名称 / 歌手名称 / 播放列表名称
821
833
  * @param targetUserName 当前歌单作者/歌手名称 (可选)
822
- * @param copyrightId 歌曲版权id (可选)
834
+ * @param copyrightId 歌曲版权id (可选,仅对歌曲有效,其他资源类型为undefined)
823
835
  * @returns 分享信息 (url)
824
836
  */
825
837
  declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
@@ -1078,6 +1090,69 @@ declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Pro
1078
1090
  newPacmToken: string;
1079
1091
  }>;
1080
1092
 
1093
+ /**
1094
+ * 歌单广场:根据标签获取歌单
1095
+ * @returns
1096
+ */
1097
+ declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
1098
+
1099
+ /**
1100
+ * 网页v5 歌单广场推荐歌单 (5个)
1101
+ * @returns
1102
+ */
1103
+ declare const getSquareRecommend: () => Promise<any>;
1104
+
1105
+ /**
1106
+ * 网页v5 歌单广场所有标签
1107
+ * @returns
1108
+ */
1109
+ declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
1110
+
1111
+ /** 获取歌曲详情
1112
+ * @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
1113
+ */
1114
+ declare const getSongInfo: (contentIds: string) => Promise<any>;
1115
+
1116
+ declare const getActivities: () => Promise<any>;
1117
+
1118
+ /**
1119
+ * 查询已购歌曲
1120
+ * @param pacmtoken 用户token
1121
+ * @returns 已购歌曲列表
1122
+ */
1123
+ declare const getUserOrdered: (pacmtoken: string) => Promise<{
1124
+ data: {
1125
+ success: boolean;
1126
+ code: string;
1127
+ info: string;
1128
+ };
1129
+ newPacmToken: undefined;
1130
+ } | {
1131
+ data: any;
1132
+ newPacmToken: string;
1133
+ }>;
1134
+
1135
+ /**
1136
+ * 获取数字专辑信息
1137
+ * @param dAlbumId 数字专辑id
1138
+ * @return
1139
+ */
1140
+ declare const getDAlbumInfo: (dAlbumId: string) => Promise<any>;
1141
+
1142
+ /**
1143
+ * 获取数字专辑歌曲列表
1144
+ * @param dAlbumId 数字专辑id
1145
+ * @return 歌曲列表
1146
+ */
1147
+ declare const getDAlbumSong: (dAlbumId: string) => Promise<any>;
1148
+
1149
+ /**
1150
+ * 获取数字专辑售卖信息
1151
+ * @param dAlbumId 数字专辑id
1152
+ * @return 数量
1153
+ */
1154
+ declare const getDAlbumPay: (dAlbumId: string) => Promise<any>;
1155
+
1081
1156
  /**
1082
1157
  * modules 子目录统一入口
1083
1158
  * 汇总导出所有 API 函数
@@ -1095,6 +1170,7 @@ declare const api_deleteComment: typeof deleteComment;
1095
1170
  declare const api_dislikeSong: typeof dislikeSong;
1096
1171
  declare const api_editUserMyList: typeof editUserMyList;
1097
1172
  declare const api_emojiAction: typeof emojiAction;
1173
+ declare const api_getActivities: typeof getActivities;
1098
1174
  declare const api_getAiBeanCount: typeof getAiBeanCount;
1099
1175
  declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
1100
1176
  declare const api_getAlbumInfo: typeof getAlbumInfo;
@@ -1109,6 +1185,9 @@ declare const api_getConcertDetail: typeof getConcertDetail;
1109
1185
  declare const api_getConcertInfo: typeof getConcertInfo;
1110
1186
  declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
1111
1187
  declare const api_getConcertUrl: typeof getConcertUrl;
1188
+ declare const api_getDAlbumInfo: typeof getDAlbumInfo;
1189
+ declare const api_getDAlbumPay: typeof getDAlbumPay;
1190
+ declare const api_getDAlbumSong: typeof getDAlbumSong;
1112
1191
  declare const api_getDLUrlV1: typeof getDLUrlV1;
1113
1192
  declare const api_getEmojiNum: typeof getEmojiNum;
1114
1193
  declare const api_getFollowerList: typeof getFollowerList;
@@ -1135,7 +1214,6 @@ declare const api_getPageInfo: typeof getPageInfo;
1135
1214
  declare const api_getPageTab: typeof getPageTab;
1136
1215
  declare const api_getPlaylistInfo: typeof getPlaylistInfo;
1137
1216
  declare const api_getPlaylistSong: typeof getPlaylistSong;
1138
- declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
1139
1217
  declare const api_getRadioRecommend: typeof getRadioRecommend;
1140
1218
  declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
1141
1219
  declare const api_getRadioSong: typeof getRadioSong;
@@ -1162,6 +1240,11 @@ declare const api_getSingerLetter: typeof getSingerLetter;
1162
1240
  declare const api_getSingerMv: typeof getSingerMv;
1163
1241
  declare const api_getSingerSimilar: typeof getSingerSimilar;
1164
1242
  declare const api_getSingerSong: typeof getSingerSong;
1243
+ declare const api_getSongInfo: typeof getSongInfo;
1244
+ declare const api_getSquareListByTag: typeof getSquareListByTag;
1245
+ declare const api_getSquarePage: typeof getSquarePage;
1246
+ declare const api_getSquareRecommend: typeof getSquareRecommend;
1247
+ declare const api_getSquareTag: typeof getSquareTag;
1165
1248
  declare const api_getThumbsMsg: typeof getThumbsMsg;
1166
1249
  declare const api_getTicketInfo: typeof getTicketInfo;
1167
1250
  declare const api_getTodayRecommend: typeof getTodayRecommend;
@@ -1176,6 +1259,7 @@ declare const api_getUserHeader: typeof getUserHeader;
1176
1259
  declare const api_getUserHeartthrob: typeof getUserHeartthrob;
1177
1260
  declare const api_getUserHomePage: typeof getUserHomePage;
1178
1261
  declare const api_getUserMyList: typeof getUserMyList;
1262
+ declare const api_getUserOrdered: typeof getUserOrdered;
1179
1263
  declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
1180
1264
  declare const api_getUserSongPage: typeof getUserSongPage;
1181
1265
  declare const api_getVersion: typeof getVersion;
@@ -1200,6 +1284,7 @@ declare const api_searchAlbum: typeof searchAlbum;
1200
1284
  declare const api_searchConcert: typeof searchConcert;
1201
1285
  declare const api_searchLrc: typeof searchLrc;
1202
1286
  declare const api_searchMv: typeof searchMv;
1287
+ declare const api_searchPlaylist: typeof searchPlaylist;
1203
1288
  declare const api_searchRbt: typeof searchRbt;
1204
1289
  declare const api_searchSVideo: typeof searchSVideo;
1205
1290
  declare const api_searchSinger: typeof searchSinger;
@@ -1211,7 +1296,7 @@ declare const api_shareVideo: typeof shareVideo;
1211
1296
  declare const api_signAiBean: typeof signAiBean;
1212
1297
  declare const api_signNinan: typeof signNinan;
1213
1298
  declare namespace api {
1214
- 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_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_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_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_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 };
1299
+ 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_getDAlbumInfo as getDAlbumInfo, api_getDAlbumPay as getDAlbumPay, api_getDAlbumSong as getDAlbumSong, 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 };
1215
1300
  }
1216
1301
 
1217
1302
  declare function getDeviceId(a?: number, b?: number): string;
@@ -1255,23 +1340,38 @@ declare function isQuality(quality: string | undefined): quality is Quality;
1255
1340
  declare function getQuality(url: string): Quality | '';
1256
1341
  declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
1257
1342
 
1258
- declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "2002" | "2016" | "6000" | "D" | "M";
1343
+ declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "5" | "2002" | "2016" | "6000" | "D" | "M";
1344
+
1345
+ /**
1346
+ * MRC 解密入口:将十六进制密文解密为明文字符串
1347
+ */
1348
+ declare function decryptMrc(data: string): string;
1349
+ declare function toWordTime(times: string): string;
1350
+ /**
1351
+ * 格式化 MRC 歌词为标准 LRC 格式
1352
+ * @param data MRC 歌词字符串
1353
+ * @returns 标准LRC
1354
+ */
1355
+ declare function formatMrc(data: string): string;
1259
1356
 
1260
1357
  type index_Quality = Quality;
1261
1358
  type index_RSAKey = RSAKey;
1262
1359
  declare const index_RSAKey: typeof RSAKey;
1263
1360
  declare const index_URLParams: typeof URLParams;
1264
1361
  declare const index_changeQuality: typeof changeQuality;
1362
+ declare const index_decryptMrc: typeof decryptMrc;
1363
+ declare const index_formatMrc: typeof formatMrc;
1265
1364
  declare const index_getDeviceId: typeof getDeviceId;
1266
1365
  declare const index_getPublicKey: typeof getPublicKey;
1267
1366
  declare const index_getQuality: typeof getQuality;
1268
1367
  declare const index_getResourceId: typeof getResourceId;
1269
1368
  declare const index_isQuality: typeof isQuality;
1270
1369
  declare const index_qualityList: typeof qualityList;
1370
+ declare const index_toWordTime: typeof toWordTime;
1271
1371
  declare const index_toneFormat: typeof toneFormat;
1272
1372
  declare const index_toneUrl: typeof toneUrl;
1273
1373
  declare namespace index {
1274
- export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_getQuality as getQuality, index_getResourceId as getResourceId, index_isQuality as isQuality, index_qualityList as qualityList, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
1374
+ export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_decryptMrc as decryptMrc, index_formatMrc as formatMrc, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_getQuality as getQuality, index_getResourceId as getResourceId, index_isQuality as isQuality, index_qualityList as qualityList, index_toWordTime as toWordTime, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
1275
1375
  }
1276
1376
 
1277
1377
  /**
@@ -1291,4 +1391,4 @@ declare function createClient(): ExpandedApi<typeof api>;
1291
1391
  /** 客户端类型 */
1292
1392
  type MiguClient = ReturnType<typeof createClient>;
1293
1393
 
1294
- 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, 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, 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, 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, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toneFormat, toneUrl };
1394
+ export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, decryptMrc, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, formatMrc, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDAlbumInfo, getDAlbumPay, getDAlbumSong, 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, toWordTime, 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>;
@@ -34,7 +36,7 @@ declare const getSingerIndex: (singerId: string) => Promise<any>;
34
36
 
35
37
  declare const getSingerSong: (singerId: string, page?: number) => Promise<any>;
36
38
 
37
- declare const getSingerAlbum: (singerId: string) => Promise<any>;
39
+ declare const getSingerAlbum: (singerId: string, page?: number) => Promise<any>;
38
40
 
39
41
  declare const getRankIndex: () => Promise<any>;
40
42
 
@@ -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 getPlaylistSquarePage: () => Promise<any>;
313
+ declare const getSquarePage: () => Promise<any>;
312
314
 
313
315
  declare const searchLrc: (text: string, page?: number) => Promise<any>;
314
316
 
@@ -396,15 +398,20 @@ declare const getVrbtUrl: (contentIds: string) => Promise<any>;
396
398
 
397
399
  /**获取歌词(自建)
398
400
  * @param contentId 单个歌曲ID,
401
+ * @param type 歌词类型,逗号分隔,默认lrc
399
402
  * @returns 歌词文本
400
403
  */
401
- declare const getLyric: (contentId: string) => Promise<{
404
+ declare const getLyric: (contentId: string, type?: string) => Promise<{
402
405
  error: string;
403
406
  success: boolean;
404
407
  status?: undefined;
405
408
  data?: undefined;
406
409
  lrc?: undefined;
407
410
  lrcUrl?: undefined;
411
+ mrc?: undefined;
412
+ mrcUrl?: undefined;
413
+ trc?: undefined;
414
+ trcUrl?: undefined;
408
415
  } | {
409
416
  success: boolean;
410
417
  status: number;
@@ -412,6 +419,10 @@ declare const getLyric: (contentId: string) => Promise<{
412
419
  data?: undefined;
413
420
  lrc?: undefined;
414
421
  lrcUrl?: undefined;
422
+ mrc?: undefined;
423
+ mrcUrl?: undefined;
424
+ trc?: undefined;
425
+ trcUrl?: undefined;
415
426
  } | {
416
427
  error: string;
417
428
  success: boolean;
@@ -419,17 +430,18 @@ declare const getLyric: (contentId: string) => Promise<{
419
430
  status?: undefined;
420
431
  lrc?: undefined;
421
432
  lrcUrl?: undefined;
422
- } | {
423
- success: boolean;
424
- status: number;
425
- error: string;
426
- data: any;
427
- lrc?: undefined;
428
- lrcUrl?: undefined;
433
+ mrc?: undefined;
434
+ mrcUrl?: undefined;
435
+ trc?: undefined;
436
+ trcUrl?: undefined;
429
437
  } | {
430
438
  success: boolean;
431
439
  lrc: any;
432
440
  lrcUrl: any;
441
+ mrc: string | undefined;
442
+ mrcUrl: any;
443
+ trc: any;
444
+ trcUrl: any;
433
445
  error?: undefined;
434
446
  status?: undefined;
435
447
  data?: undefined;
@@ -815,11 +827,11 @@ declare const shareVideo: (resourceType: string, contentId: string, userId?: str
815
827
 
816
828
  /**
817
829
  * 分享通用内容
818
- * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手
819
- * @param contentId 内容id 歌曲contentId / albumId / artistId / playlistId
820
- * @param contentName 歌曲名称 / 专辑名称 / 歌手名称 / 播放列表名称
830
+ * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手 5:数字专辑
831
+ * @param contentId 内容id 歌曲contentId / albumId / dAlbumId / artistId / playlistId
832
+ * @param contentName 歌曲名称 / (数字)专辑名称 / 歌手名称 / 播放列表名称
821
833
  * @param targetUserName 当前歌单作者/歌手名称 (可选)
822
- * @param copyrightId 歌曲版权id (可选)
834
+ * @param copyrightId 歌曲版权id (可选,仅对歌曲有效,其他资源类型为undefined)
823
835
  * @returns 分享信息 (url)
824
836
  */
825
837
  declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
@@ -1078,6 +1090,69 @@ declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Pro
1078
1090
  newPacmToken: string;
1079
1091
  }>;
1080
1092
 
1093
+ /**
1094
+ * 歌单广场:根据标签获取歌单
1095
+ * @returns
1096
+ */
1097
+ declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
1098
+
1099
+ /**
1100
+ * 网页v5 歌单广场推荐歌单 (5个)
1101
+ * @returns
1102
+ */
1103
+ declare const getSquareRecommend: () => Promise<any>;
1104
+
1105
+ /**
1106
+ * 网页v5 歌单广场所有标签
1107
+ * @returns
1108
+ */
1109
+ declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
1110
+
1111
+ /** 获取歌曲详情
1112
+ * @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
1113
+ */
1114
+ declare const getSongInfo: (contentIds: string) => Promise<any>;
1115
+
1116
+ declare const getActivities: () => Promise<any>;
1117
+
1118
+ /**
1119
+ * 查询已购歌曲
1120
+ * @param pacmtoken 用户token
1121
+ * @returns 已购歌曲列表
1122
+ */
1123
+ declare const getUserOrdered: (pacmtoken: string) => Promise<{
1124
+ data: {
1125
+ success: boolean;
1126
+ code: string;
1127
+ info: string;
1128
+ };
1129
+ newPacmToken: undefined;
1130
+ } | {
1131
+ data: any;
1132
+ newPacmToken: string;
1133
+ }>;
1134
+
1135
+ /**
1136
+ * 获取数字专辑信息
1137
+ * @param dAlbumId 数字专辑id
1138
+ * @return
1139
+ */
1140
+ declare const getDAlbumInfo: (dAlbumId: string) => Promise<any>;
1141
+
1142
+ /**
1143
+ * 获取数字专辑歌曲列表
1144
+ * @param dAlbumId 数字专辑id
1145
+ * @return 歌曲列表
1146
+ */
1147
+ declare const getDAlbumSong: (dAlbumId: string) => Promise<any>;
1148
+
1149
+ /**
1150
+ * 获取数字专辑售卖信息
1151
+ * @param dAlbumId 数字专辑id
1152
+ * @return 数量
1153
+ */
1154
+ declare const getDAlbumPay: (dAlbumId: string) => Promise<any>;
1155
+
1081
1156
  /**
1082
1157
  * modules 子目录统一入口
1083
1158
  * 汇总导出所有 API 函数
@@ -1095,6 +1170,7 @@ declare const api_deleteComment: typeof deleteComment;
1095
1170
  declare const api_dislikeSong: typeof dislikeSong;
1096
1171
  declare const api_editUserMyList: typeof editUserMyList;
1097
1172
  declare const api_emojiAction: typeof emojiAction;
1173
+ declare const api_getActivities: typeof getActivities;
1098
1174
  declare const api_getAiBeanCount: typeof getAiBeanCount;
1099
1175
  declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
1100
1176
  declare const api_getAlbumInfo: typeof getAlbumInfo;
@@ -1109,6 +1185,9 @@ declare const api_getConcertDetail: typeof getConcertDetail;
1109
1185
  declare const api_getConcertInfo: typeof getConcertInfo;
1110
1186
  declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
1111
1187
  declare const api_getConcertUrl: typeof getConcertUrl;
1188
+ declare const api_getDAlbumInfo: typeof getDAlbumInfo;
1189
+ declare const api_getDAlbumPay: typeof getDAlbumPay;
1190
+ declare const api_getDAlbumSong: typeof getDAlbumSong;
1112
1191
  declare const api_getDLUrlV1: typeof getDLUrlV1;
1113
1192
  declare const api_getEmojiNum: typeof getEmojiNum;
1114
1193
  declare const api_getFollowerList: typeof getFollowerList;
@@ -1135,7 +1214,6 @@ declare const api_getPageInfo: typeof getPageInfo;
1135
1214
  declare const api_getPageTab: typeof getPageTab;
1136
1215
  declare const api_getPlaylistInfo: typeof getPlaylistInfo;
1137
1216
  declare const api_getPlaylistSong: typeof getPlaylistSong;
1138
- declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
1139
1217
  declare const api_getRadioRecommend: typeof getRadioRecommend;
1140
1218
  declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
1141
1219
  declare const api_getRadioSong: typeof getRadioSong;
@@ -1162,6 +1240,11 @@ declare const api_getSingerLetter: typeof getSingerLetter;
1162
1240
  declare const api_getSingerMv: typeof getSingerMv;
1163
1241
  declare const api_getSingerSimilar: typeof getSingerSimilar;
1164
1242
  declare const api_getSingerSong: typeof getSingerSong;
1243
+ declare const api_getSongInfo: typeof getSongInfo;
1244
+ declare const api_getSquareListByTag: typeof getSquareListByTag;
1245
+ declare const api_getSquarePage: typeof getSquarePage;
1246
+ declare const api_getSquareRecommend: typeof getSquareRecommend;
1247
+ declare const api_getSquareTag: typeof getSquareTag;
1165
1248
  declare const api_getThumbsMsg: typeof getThumbsMsg;
1166
1249
  declare const api_getTicketInfo: typeof getTicketInfo;
1167
1250
  declare const api_getTodayRecommend: typeof getTodayRecommend;
@@ -1176,6 +1259,7 @@ declare const api_getUserHeader: typeof getUserHeader;
1176
1259
  declare const api_getUserHeartthrob: typeof getUserHeartthrob;
1177
1260
  declare const api_getUserHomePage: typeof getUserHomePage;
1178
1261
  declare const api_getUserMyList: typeof getUserMyList;
1262
+ declare const api_getUserOrdered: typeof getUserOrdered;
1179
1263
  declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
1180
1264
  declare const api_getUserSongPage: typeof getUserSongPage;
1181
1265
  declare const api_getVersion: typeof getVersion;
@@ -1200,6 +1284,7 @@ declare const api_searchAlbum: typeof searchAlbum;
1200
1284
  declare const api_searchConcert: typeof searchConcert;
1201
1285
  declare const api_searchLrc: typeof searchLrc;
1202
1286
  declare const api_searchMv: typeof searchMv;
1287
+ declare const api_searchPlaylist: typeof searchPlaylist;
1203
1288
  declare const api_searchRbt: typeof searchRbt;
1204
1289
  declare const api_searchSVideo: typeof searchSVideo;
1205
1290
  declare const api_searchSinger: typeof searchSinger;
@@ -1211,7 +1296,7 @@ declare const api_shareVideo: typeof shareVideo;
1211
1296
  declare const api_signAiBean: typeof signAiBean;
1212
1297
  declare const api_signNinan: typeof signNinan;
1213
1298
  declare namespace api {
1214
- 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_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_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_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_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 };
1299
+ 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_getDAlbumInfo as getDAlbumInfo, api_getDAlbumPay as getDAlbumPay, api_getDAlbumSong as getDAlbumSong, 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 };
1215
1300
  }
1216
1301
 
1217
1302
  declare function getDeviceId(a?: number, b?: number): string;
@@ -1255,23 +1340,38 @@ declare function isQuality(quality: string | undefined): quality is Quality;
1255
1340
  declare function getQuality(url: string): Quality | '';
1256
1341
  declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
1257
1342
 
1258
- declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "2002" | "2016" | "6000" | "D" | "M";
1343
+ declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "5" | "2002" | "2016" | "6000" | "D" | "M";
1344
+
1345
+ /**
1346
+ * MRC 解密入口:将十六进制密文解密为明文字符串
1347
+ */
1348
+ declare function decryptMrc(data: string): string;
1349
+ declare function toWordTime(times: string): string;
1350
+ /**
1351
+ * 格式化 MRC 歌词为标准 LRC 格式
1352
+ * @param data MRC 歌词字符串
1353
+ * @returns 标准LRC
1354
+ */
1355
+ declare function formatMrc(data: string): string;
1259
1356
 
1260
1357
  type index_Quality = Quality;
1261
1358
  type index_RSAKey = RSAKey;
1262
1359
  declare const index_RSAKey: typeof RSAKey;
1263
1360
  declare const index_URLParams: typeof URLParams;
1264
1361
  declare const index_changeQuality: typeof changeQuality;
1362
+ declare const index_decryptMrc: typeof decryptMrc;
1363
+ declare const index_formatMrc: typeof formatMrc;
1265
1364
  declare const index_getDeviceId: typeof getDeviceId;
1266
1365
  declare const index_getPublicKey: typeof getPublicKey;
1267
1366
  declare const index_getQuality: typeof getQuality;
1268
1367
  declare const index_getResourceId: typeof getResourceId;
1269
1368
  declare const index_isQuality: typeof isQuality;
1270
1369
  declare const index_qualityList: typeof qualityList;
1370
+ declare const index_toWordTime: typeof toWordTime;
1271
1371
  declare const index_toneFormat: typeof toneFormat;
1272
1372
  declare const index_toneUrl: typeof toneUrl;
1273
1373
  declare namespace index {
1274
- export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_getQuality as getQuality, index_getResourceId as getResourceId, index_isQuality as isQuality, index_qualityList as qualityList, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
1374
+ export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_decryptMrc as decryptMrc, index_formatMrc as formatMrc, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_getQuality as getQuality, index_getResourceId as getResourceId, index_isQuality as isQuality, index_qualityList as qualityList, index_toWordTime as toWordTime, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
1275
1375
  }
1276
1376
 
1277
1377
  /**
@@ -1291,4 +1391,4 @@ declare function createClient(): ExpandedApi<typeof api>;
1291
1391
  /** 客户端类型 */
1292
1392
  type MiguClient = ReturnType<typeof createClient>;
1293
1393
 
1294
- 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, 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, 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, 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, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toneFormat, toneUrl };
1394
+ export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, decryptMrc, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, formatMrc, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDAlbumInfo, getDAlbumPay, getDAlbumSong, 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, toWordTime, toneFormat, toneUrl };