migu-api-enhanced 2.4.0 → 2.9.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
@@ -61,15 +61,19 @@ size?: number, hotCommentStart?: number) => Promise<any>;
61
61
  */
62
62
  declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
63
63
 
64
- declare const checkCanListen: (body: Record<string, any>) => Promise<any>;
64
+ /** 检查是否可以播放
65
+ * @param contentIds 内容ID列表,逗号分隔
66
+ * @return
67
+ */
68
+ declare const checkCanListen: (contentIds: string) => Promise<any>;
65
69
 
66
70
  declare const getOpNum: (ids: string) => Promise<any>;
67
71
 
68
72
  declare const getUrlV1: (contentId: string, copyrightId: string, resourceType?: string) => Promise<any>;
69
73
 
70
- declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string, pacmtoken?: string) => Promise<any>;
74
+ declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
71
75
 
72
- declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
76
+ declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
73
77
 
74
78
  declare const getVersion: (channel?: string, version?: string, ua?: string) => Promise<any>;
75
79
 
@@ -139,7 +143,7 @@ declare const loginSim: {
139
143
  }>;
140
144
  };
141
145
 
142
- declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
146
+ declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
143
147
  data: any;
144
148
  newPacmToken: string;
145
149
  }>;
@@ -231,7 +235,7 @@ declare const loginPhone: {
231
235
  */
232
236
  declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
233
237
 
234
- declare const getPlaylistSquare: () => Promise<any>;
238
+ declare const getPlaylistSquarePage: () => Promise<any>;
235
239
 
236
240
  declare const searchLrc: (text: string, page?: number) => Promise<any>;
237
241
 
@@ -332,30 +336,165 @@ declare const getLyric: (contentId: string) => Promise<{
332
336
  data?: undefined;
333
337
  }>;
334
338
 
339
+ /**
340
+ * 添加用户收藏
341
+ * @param pacmtoken 用户pacmtoken
342
+ * @param playlistId 播放列表id
343
+ * @param title 播放列表标题
344
+ */
345
+ declare const addUserCollect: (pacmtoken: string, playlistId: string, title: string) => Promise<{
346
+ data: any;
347
+ newPacmToken: string;
348
+ }>;
349
+
350
+ /**
351
+ * 添加用户收藏
352
+ * @param pacmtoken 用户pacmtoken
353
+ * @param playlistId 播放列表id
354
+ */
355
+ declare const removeUserCollect: (pacmtoken: string, playlistId: string) => Promise<{
356
+ data: any;
357
+ newPacmToken: string;
358
+ }>;
359
+
360
+ /**
361
+ * @param pacmtoken
362
+ * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
363
+ * @returns 添加喜欢音乐结果,包含新pacmtoken
364
+ */
365
+ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
366
+ data: any;
367
+ newPacmToken: string;
368
+ }>;
369
+
370
+ /**
371
+ * @param pacmtoken
372
+ * @param contentId 单个音乐id,例如:123
373
+ * @returns 移除喜欢音乐结果,包含新pacmtoken
374
+ */
375
+ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
376
+ data: any;
377
+ newPacmToken: string;
378
+ }>;
379
+
380
+ /**
381
+ * 编辑播放列表
382
+ * @param pacmtoken 用户token
383
+ * @param title 播放列表名称
384
+ * @param playlistId 播放列表id
385
+ * @returns
386
+ */
387
+ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
388
+ data: any;
389
+ newPacmToken: string;
390
+ }>;
391
+
392
+ /**
393
+ * 创建播放列表
394
+ * @param pacmtoken 用户token
395
+ * @param title 播放列表名称
396
+ * @returns
397
+ */
398
+ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
399
+ data: any;
400
+ newPacmToken: string;
401
+ }>;
402
+
403
+ /**
404
+ * 删除播放列表
405
+ * @param pacmtoken 用户token
406
+ * @param playlistId 播放列表id
407
+ * @returns
408
+ */
409
+ declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
410
+ data: any;
411
+ newPacmToken: string;
412
+ }>;
413
+
414
+ /**
415
+ * 获取电台歌曲
416
+ * @param radioId 电台ID
417
+ * @param page 页码
418
+ * @returns
419
+ */
420
+ declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
421
+
422
+ /**
423
+ * 新碟上架
424
+ * @returns
425
+ */
426
+ declare const getNewCDList: () => Promise<any>;
427
+
428
+ /**
429
+ * 新歌速递
430
+ * @returns
431
+ */
432
+ declare const getNewSongList: () => Promise<any>;
433
+
434
+ /**
435
+ * 栏目内容
436
+ * @param columnId 栏目ID
437
+ * @returns
438
+ */
439
+ declare const getColumnInfo: (columnId: string) => Promise<any>;
440
+
441
+ /**
442
+ * 添加歌曲到播放列表
443
+ * @param pacmtoken
444
+ * @param playlistId 播放列表id
445
+ * @param contentIds 歌曲id列表,逗号分隔
446
+ * @returns
447
+ */
448
+ declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
449
+ data: any;
450
+ newPacmToken: string;
451
+ }>;
452
+
453
+ /**
454
+ * 删除播放列表中的歌曲
455
+ * @param pacmtoken 用户token
456
+ * @param playlistId 播放列表id
457
+ * @param contentId 单个歌曲id
458
+ * @returns
459
+ */
460
+ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
461
+ data: any;
462
+ newPacmToken: string;
463
+ }>;
464
+
335
465
  /**
336
466
  * modules 子目录统一入口
337
467
  * 汇总导出所有 API 函数
338
468
  */
339
469
 
340
470
  declare const api_YDRZ: typeof YDRZ;
471
+ declare const api_addSongToMyList: typeof addSongToMyList;
472
+ declare const api_addUserCollect: typeof addUserCollect;
473
+ declare const api_addUserMyList: typeof addUserMyList;
341
474
  declare const api_checkCanListen: typeof checkCanListen;
342
475
  declare const api_checkToken: typeof checkToken;
476
+ declare const api_dislikeSong: typeof dislikeSong;
477
+ declare const api_editUserMyList: typeof editUserMyList;
343
478
  declare const api_getAlbumInfo: typeof getAlbumInfo;
344
479
  declare const api_getAlbumSong: typeof getAlbumSong;
480
+ declare const api_getColumnInfo: typeof getColumnInfo;
345
481
  declare const api_getComment: typeof getComment;
346
482
  declare const api_getLyric: typeof getLyric;
347
483
  declare const api_getMVRecommend: typeof getMVRecommend;
348
484
  declare const api_getMvHls: typeof getMvHls;
349
485
  declare const api_getMvInfo: typeof getMvInfo;
486
+ declare const api_getNewCDList: typeof getNewCDList;
487
+ declare const api_getNewSongList: typeof getNewSongList;
350
488
  declare const api_getNinanByDate: typeof getNinanByDate;
351
489
  declare const api_getNinanSong: typeof getNinanSong;
352
490
  declare const api_getOpNum: typeof getOpNum;
353
491
  declare const api_getPacmToken: typeof getPacmToken;
354
492
  declare const api_getPlaylistInfo: typeof getPlaylistInfo;
355
493
  declare const api_getPlaylistSong: typeof getPlaylistSong;
356
- declare const api_getPlaylistSquare: typeof getPlaylistSquare;
494
+ declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
357
495
  declare const api_getRadioRecommend: typeof getRadioRecommend;
358
496
  declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
497
+ declare const api_getRadioSong: typeof getRadioSong;
359
498
  declare const api_getRankIndex: typeof getRankIndex;
360
499
  declare const api_getRankInfo: typeof getRankInfo;
361
500
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
@@ -380,17 +519,21 @@ declare const api_getUrlH5V24: typeof getUrlH5V24;
380
519
  declare const api_getUrlV1: typeof getUrlV1;
381
520
  declare const api_getUrlV2: typeof getUrlV2;
382
521
  declare const api_getUserBadge: typeof getUserBadge;
383
- declare const api_getUserCollect: typeof getUserCollect;
522
+ declare const api_getUserCollectList: typeof getUserCollectList;
384
523
  declare const api_getUserHomePage: typeof getUserHomePage;
385
524
  declare const api_getUserMyList: typeof getUserMyList;
386
525
  declare const api_getVersion: typeof getVersion;
387
526
  declare const api_getVrbtOpNum: typeof getVrbtOpNum;
388
527
  declare const api_getVrbtUrl: typeof getVrbtUrl;
528
+ declare const api_likeSong: typeof likeSong;
389
529
  declare const api_loginNP: typeof loginNP;
390
530
  declare const api_loginOneClick: typeof loginOneClick;
391
531
  declare const api_loginPhone: typeof loginPhone;
392
532
  declare const api_loginSim: typeof loginSim;
393
533
  declare const api_queryUserInfo: typeof queryUserInfo;
534
+ declare const api_removeSongFromMyList: typeof removeSongFromMyList;
535
+ declare const api_removeUserCollect: typeof removeUserCollect;
536
+ declare const api_removeUserMyList: typeof removeUserMyList;
394
537
  declare const api_searchAlbum: typeof searchAlbum;
395
538
  declare const api_searchConcert: typeof searchConcert;
396
539
  declare const api_searchLrc: typeof searchLrc;
@@ -402,7 +545,7 @@ declare const api_searchSong: typeof searchSong;
402
545
  declare const api_searchSuggest: typeof searchSuggest;
403
546
  declare const api_searchTicket: typeof searchTicket;
404
547
  declare namespace api {
405
- export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, 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 };
548
+ export { api_YDRZ as YDRZ, api_addSongToMyList as addSongToMyList, api_addUserCollect as addUserCollect, api_addUserMyList as addUserMyList, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_dislikeSong as dislikeSong, api_editUserMyList as editUserMyList, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getColumnInfo as getColumnInfo, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNewCDList as getNewCDList, api_getNewSongList as getNewSongList, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, 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_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_likeSong as likeSong, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, 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 };
406
549
  }
407
550
 
408
551
  declare const ua: string[];
@@ -448,4 +591,4 @@ declare function createClient(): typeof api;
448
591
  /** 客户端类型 */
449
592
  type MiguClient = ReturnType<typeof createClient>;
450
593
 
451
- export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };
594
+ export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquarePage, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, likeSong, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };
package/dist/index.d.ts CHANGED
@@ -61,15 +61,19 @@ size?: number, hotCommentStart?: number) => Promise<any>;
61
61
  */
62
62
  declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
63
63
 
64
- declare const checkCanListen: (body: Record<string, any>) => Promise<any>;
64
+ /** 检查是否可以播放
65
+ * @param contentIds 内容ID列表,逗号分隔
66
+ * @return
67
+ */
68
+ declare const checkCanListen: (contentIds: string) => Promise<any>;
65
69
 
66
70
  declare const getOpNum: (ids: string) => Promise<any>;
67
71
 
68
72
  declare const getUrlV1: (contentId: string, copyrightId: string, resourceType?: string) => Promise<any>;
69
73
 
70
- declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string, pacmtoken?: string) => Promise<any>;
74
+ declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
71
75
 
72
- declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
76
+ declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
73
77
 
74
78
  declare const getVersion: (channel?: string, version?: string, ua?: string) => Promise<any>;
75
79
 
@@ -139,7 +143,7 @@ declare const loginSim: {
139
143
  }>;
140
144
  };
141
145
 
142
- declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
146
+ declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
143
147
  data: any;
144
148
  newPacmToken: string;
145
149
  }>;
@@ -231,7 +235,7 @@ declare const loginPhone: {
231
235
  */
232
236
  declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
233
237
 
234
- declare const getPlaylistSquare: () => Promise<any>;
238
+ declare const getPlaylistSquarePage: () => Promise<any>;
235
239
 
236
240
  declare const searchLrc: (text: string, page?: number) => Promise<any>;
237
241
 
@@ -332,30 +336,165 @@ declare const getLyric: (contentId: string) => Promise<{
332
336
  data?: undefined;
333
337
  }>;
334
338
 
339
+ /**
340
+ * 添加用户收藏
341
+ * @param pacmtoken 用户pacmtoken
342
+ * @param playlistId 播放列表id
343
+ * @param title 播放列表标题
344
+ */
345
+ declare const addUserCollect: (pacmtoken: string, playlistId: string, title: string) => Promise<{
346
+ data: any;
347
+ newPacmToken: string;
348
+ }>;
349
+
350
+ /**
351
+ * 添加用户收藏
352
+ * @param pacmtoken 用户pacmtoken
353
+ * @param playlistId 播放列表id
354
+ */
355
+ declare const removeUserCollect: (pacmtoken: string, playlistId: string) => Promise<{
356
+ data: any;
357
+ newPacmToken: string;
358
+ }>;
359
+
360
+ /**
361
+ * @param pacmtoken
362
+ * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
363
+ * @returns 添加喜欢音乐结果,包含新pacmtoken
364
+ */
365
+ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
366
+ data: any;
367
+ newPacmToken: string;
368
+ }>;
369
+
370
+ /**
371
+ * @param pacmtoken
372
+ * @param contentId 单个音乐id,例如:123
373
+ * @returns 移除喜欢音乐结果,包含新pacmtoken
374
+ */
375
+ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
376
+ data: any;
377
+ newPacmToken: string;
378
+ }>;
379
+
380
+ /**
381
+ * 编辑播放列表
382
+ * @param pacmtoken 用户token
383
+ * @param title 播放列表名称
384
+ * @param playlistId 播放列表id
385
+ * @returns
386
+ */
387
+ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
388
+ data: any;
389
+ newPacmToken: string;
390
+ }>;
391
+
392
+ /**
393
+ * 创建播放列表
394
+ * @param pacmtoken 用户token
395
+ * @param title 播放列表名称
396
+ * @returns
397
+ */
398
+ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
399
+ data: any;
400
+ newPacmToken: string;
401
+ }>;
402
+
403
+ /**
404
+ * 删除播放列表
405
+ * @param pacmtoken 用户token
406
+ * @param playlistId 播放列表id
407
+ * @returns
408
+ */
409
+ declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
410
+ data: any;
411
+ newPacmToken: string;
412
+ }>;
413
+
414
+ /**
415
+ * 获取电台歌曲
416
+ * @param radioId 电台ID
417
+ * @param page 页码
418
+ * @returns
419
+ */
420
+ declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
421
+
422
+ /**
423
+ * 新碟上架
424
+ * @returns
425
+ */
426
+ declare const getNewCDList: () => Promise<any>;
427
+
428
+ /**
429
+ * 新歌速递
430
+ * @returns
431
+ */
432
+ declare const getNewSongList: () => Promise<any>;
433
+
434
+ /**
435
+ * 栏目内容
436
+ * @param columnId 栏目ID
437
+ * @returns
438
+ */
439
+ declare const getColumnInfo: (columnId: string) => Promise<any>;
440
+
441
+ /**
442
+ * 添加歌曲到播放列表
443
+ * @param pacmtoken
444
+ * @param playlistId 播放列表id
445
+ * @param contentIds 歌曲id列表,逗号分隔
446
+ * @returns
447
+ */
448
+ declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
449
+ data: any;
450
+ newPacmToken: string;
451
+ }>;
452
+
453
+ /**
454
+ * 删除播放列表中的歌曲
455
+ * @param pacmtoken 用户token
456
+ * @param playlistId 播放列表id
457
+ * @param contentId 单个歌曲id
458
+ * @returns
459
+ */
460
+ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
461
+ data: any;
462
+ newPacmToken: string;
463
+ }>;
464
+
335
465
  /**
336
466
  * modules 子目录统一入口
337
467
  * 汇总导出所有 API 函数
338
468
  */
339
469
 
340
470
  declare const api_YDRZ: typeof YDRZ;
471
+ declare const api_addSongToMyList: typeof addSongToMyList;
472
+ declare const api_addUserCollect: typeof addUserCollect;
473
+ declare const api_addUserMyList: typeof addUserMyList;
341
474
  declare const api_checkCanListen: typeof checkCanListen;
342
475
  declare const api_checkToken: typeof checkToken;
476
+ declare const api_dislikeSong: typeof dislikeSong;
477
+ declare const api_editUserMyList: typeof editUserMyList;
343
478
  declare const api_getAlbumInfo: typeof getAlbumInfo;
344
479
  declare const api_getAlbumSong: typeof getAlbumSong;
480
+ declare const api_getColumnInfo: typeof getColumnInfo;
345
481
  declare const api_getComment: typeof getComment;
346
482
  declare const api_getLyric: typeof getLyric;
347
483
  declare const api_getMVRecommend: typeof getMVRecommend;
348
484
  declare const api_getMvHls: typeof getMvHls;
349
485
  declare const api_getMvInfo: typeof getMvInfo;
486
+ declare const api_getNewCDList: typeof getNewCDList;
487
+ declare const api_getNewSongList: typeof getNewSongList;
350
488
  declare const api_getNinanByDate: typeof getNinanByDate;
351
489
  declare const api_getNinanSong: typeof getNinanSong;
352
490
  declare const api_getOpNum: typeof getOpNum;
353
491
  declare const api_getPacmToken: typeof getPacmToken;
354
492
  declare const api_getPlaylistInfo: typeof getPlaylistInfo;
355
493
  declare const api_getPlaylistSong: typeof getPlaylistSong;
356
- declare const api_getPlaylistSquare: typeof getPlaylistSquare;
494
+ declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
357
495
  declare const api_getRadioRecommend: typeof getRadioRecommend;
358
496
  declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
497
+ declare const api_getRadioSong: typeof getRadioSong;
359
498
  declare const api_getRankIndex: typeof getRankIndex;
360
499
  declare const api_getRankInfo: typeof getRankInfo;
361
500
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
@@ -380,17 +519,21 @@ declare const api_getUrlH5V24: typeof getUrlH5V24;
380
519
  declare const api_getUrlV1: typeof getUrlV1;
381
520
  declare const api_getUrlV2: typeof getUrlV2;
382
521
  declare const api_getUserBadge: typeof getUserBadge;
383
- declare const api_getUserCollect: typeof getUserCollect;
522
+ declare const api_getUserCollectList: typeof getUserCollectList;
384
523
  declare const api_getUserHomePage: typeof getUserHomePage;
385
524
  declare const api_getUserMyList: typeof getUserMyList;
386
525
  declare const api_getVersion: typeof getVersion;
387
526
  declare const api_getVrbtOpNum: typeof getVrbtOpNum;
388
527
  declare const api_getVrbtUrl: typeof getVrbtUrl;
528
+ declare const api_likeSong: typeof likeSong;
389
529
  declare const api_loginNP: typeof loginNP;
390
530
  declare const api_loginOneClick: typeof loginOneClick;
391
531
  declare const api_loginPhone: typeof loginPhone;
392
532
  declare const api_loginSim: typeof loginSim;
393
533
  declare const api_queryUserInfo: typeof queryUserInfo;
534
+ declare const api_removeSongFromMyList: typeof removeSongFromMyList;
535
+ declare const api_removeUserCollect: typeof removeUserCollect;
536
+ declare const api_removeUserMyList: typeof removeUserMyList;
394
537
  declare const api_searchAlbum: typeof searchAlbum;
395
538
  declare const api_searchConcert: typeof searchConcert;
396
539
  declare const api_searchLrc: typeof searchLrc;
@@ -402,7 +545,7 @@ declare const api_searchSong: typeof searchSong;
402
545
  declare const api_searchSuggest: typeof searchSuggest;
403
546
  declare const api_searchTicket: typeof searchTicket;
404
547
  declare namespace api {
405
- export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, 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 };
548
+ export { api_YDRZ as YDRZ, api_addSongToMyList as addSongToMyList, api_addUserCollect as addUserCollect, api_addUserMyList as addUserMyList, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_dislikeSong as dislikeSong, api_editUserMyList as editUserMyList, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getColumnInfo as getColumnInfo, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNewCDList as getNewCDList, api_getNewSongList as getNewSongList, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, 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_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_likeSong as likeSong, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, 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 };
406
549
  }
407
550
 
408
551
  declare const ua: string[];
@@ -448,4 +591,4 @@ declare function createClient(): typeof api;
448
591
  /** 客户端类型 */
449
592
  type MiguClient = ReturnType<typeof createClient>;
450
593
 
451
- export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };
594
+ export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquarePage, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, likeSong, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };