migu-api-enhanced 2.6.0 → 2.10.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 +14 -0
- package/dist/index.cjs +149 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -5
- package/dist/index.d.ts +150 -5
- package/dist/index.js +137 -9
- package/dist/index.js.map +1 -1
- package/package.json +80 -75
package/dist/index.d.cts
CHANGED
|
@@ -61,7 +61,11 @@ size?: number, hotCommentStart?: number) => Promise<any>;
|
|
|
61
61
|
*/
|
|
62
62
|
declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
|
|
63
63
|
|
|
64
|
-
|
|
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
|
|
|
@@ -75,6 +79,17 @@ declare const getVersion: (channel?: string, version?: string, ua?: string) => P
|
|
|
75
79
|
|
|
76
80
|
declare const getMvInfo: (mvContentId: string) => Promise<any>;
|
|
77
81
|
|
|
82
|
+
/**
|
|
83
|
+
* 获取mv hls url
|
|
84
|
+
*
|
|
85
|
+
* @param mvContentId mv id
|
|
86
|
+
* @param mvCopyrightId mv copyrightId
|
|
87
|
+
* @param url mv url (url接口返回)
|
|
88
|
+
* @param size mv size (url接口获取)
|
|
89
|
+
* @param format mv format (url接口获取)
|
|
90
|
+
* @param needHttps 是否需要https (默认true)
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
78
93
|
declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
|
|
79
94
|
|
|
80
95
|
declare const loginNP: {
|
|
@@ -231,7 +246,7 @@ declare const loginPhone: {
|
|
|
231
246
|
*/
|
|
232
247
|
declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
|
|
233
248
|
|
|
234
|
-
declare const
|
|
249
|
+
declare const getPlaylistSquarePage: () => Promise<any>;
|
|
235
250
|
|
|
236
251
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
237
252
|
|
|
@@ -373,27 +388,147 @@ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
|
|
|
373
388
|
newPacmToken: string;
|
|
374
389
|
}>;
|
|
375
390
|
|
|
391
|
+
/**
|
|
392
|
+
* 编辑播放列表
|
|
393
|
+
* @param pacmtoken 用户token
|
|
394
|
+
* @param title 播放列表名称
|
|
395
|
+
* @param playlistId 播放列表id
|
|
396
|
+
* @returns
|
|
397
|
+
*/
|
|
376
398
|
declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
|
|
377
399
|
data: any;
|
|
378
400
|
newPacmToken: string;
|
|
379
401
|
}>;
|
|
380
402
|
|
|
403
|
+
/**
|
|
404
|
+
* 创建播放列表
|
|
405
|
+
* @param pacmtoken 用户token
|
|
406
|
+
* @param title 播放列表名称
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
381
409
|
declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
|
|
382
410
|
data: any;
|
|
383
411
|
newPacmToken: string;
|
|
384
412
|
}>;
|
|
385
413
|
|
|
414
|
+
/**
|
|
415
|
+
* 删除播放列表
|
|
416
|
+
* @param pacmtoken 用户token
|
|
417
|
+
* @param playlistId 播放列表id
|
|
418
|
+
* @returns
|
|
419
|
+
*/
|
|
386
420
|
declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
|
|
387
421
|
data: any;
|
|
388
422
|
newPacmToken: string;
|
|
389
423
|
}>;
|
|
390
424
|
|
|
425
|
+
/**
|
|
426
|
+
* 获取电台歌曲
|
|
427
|
+
* @param radioId 电台ID
|
|
428
|
+
* @param page 页码
|
|
429
|
+
* @returns
|
|
430
|
+
*/
|
|
431
|
+
declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 新碟上架
|
|
435
|
+
* @returns
|
|
436
|
+
*/
|
|
437
|
+
declare const getNewCDList: () => Promise<any>;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* 新歌速递
|
|
441
|
+
* @returns
|
|
442
|
+
*/
|
|
443
|
+
declare const getNewSongList: () => Promise<any>;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* 栏目内容
|
|
447
|
+
* @param columnId 栏目ID
|
|
448
|
+
* @returns
|
|
449
|
+
*/
|
|
450
|
+
declare const getColumnInfo: (columnId: string) => Promise<any>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* 添加歌曲到播放列表
|
|
454
|
+
* @param pacmtoken
|
|
455
|
+
* @param playlistId 播放列表id
|
|
456
|
+
* @param contentIds 歌曲id列表,逗号分隔
|
|
457
|
+
* @returns
|
|
458
|
+
*/
|
|
459
|
+
declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
|
|
460
|
+
data: any;
|
|
461
|
+
newPacmToken: string;
|
|
462
|
+
}>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 删除播放列表中的歌曲
|
|
466
|
+
* @param pacmtoken 用户token
|
|
467
|
+
* @param playlistId 播放列表id
|
|
468
|
+
* @param contentId 单个歌曲id
|
|
469
|
+
* @returns
|
|
470
|
+
*/
|
|
471
|
+
declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
|
|
472
|
+
data: any;
|
|
473
|
+
newPacmToken: string;
|
|
474
|
+
}>;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* 获取短视频用户信息
|
|
478
|
+
* @param type uid 或 videoUserId
|
|
479
|
+
* @param uid 视频用户uid
|
|
480
|
+
* @param videoUserId 视频用户id
|
|
481
|
+
* @returns 短视频用户信息
|
|
482
|
+
*/
|
|
483
|
+
declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* 演唱会详细信息
|
|
487
|
+
*
|
|
488
|
+
* 返回 $.data.liveId 直播id 等等
|
|
489
|
+
* @param concertId 单个演唱会id
|
|
490
|
+
* @returns
|
|
491
|
+
*/
|
|
492
|
+
declare const getConcertInfo: (concertId: string) => Promise<any>;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* 获取演唱会url (auto hls)
|
|
496
|
+
*
|
|
497
|
+
* @param concertId 单个演唱会id
|
|
498
|
+
* @param liveId 直播id (concert_info中获取)
|
|
499
|
+
* @param rateLevel 视频质量 (1:普通 2:高清 3:超清)
|
|
500
|
+
* @returns
|
|
501
|
+
*/
|
|
502
|
+
declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* 获取演唱会拓展
|
|
506
|
+
*
|
|
507
|
+
* $.data.contentItemList[0].itemList[0] 此演唱会简略信息
|
|
508
|
+
*
|
|
509
|
+
* $.data.contentItemList[10].itemList 推荐演唱会列表
|
|
510
|
+
*
|
|
511
|
+
* @param concertId 单个演唱会id
|
|
512
|
+
* @returns
|
|
513
|
+
*/
|
|
514
|
+
declare const getConcertDetail: (concertId: string) => Promise<any>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* 演唱会评论
|
|
518
|
+
* @param concertId 单个演唱会id
|
|
519
|
+
* @param page 翻页
|
|
520
|
+
* @param size 单页大小
|
|
521
|
+
* @returns
|
|
522
|
+
*/
|
|
523
|
+
declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
|
|
524
|
+
|
|
391
525
|
/**
|
|
392
526
|
* modules 子目录统一入口
|
|
393
527
|
* 汇总导出所有 API 函数
|
|
394
528
|
*/
|
|
395
529
|
|
|
396
530
|
declare const api_YDRZ: typeof YDRZ;
|
|
531
|
+
declare const api_addSongToMyList: typeof addSongToMyList;
|
|
397
532
|
declare const api_addUserCollect: typeof addUserCollect;
|
|
398
533
|
declare const api_addUserMyList: typeof addUserMyList;
|
|
399
534
|
declare const api_checkCanListen: typeof checkCanListen;
|
|
@@ -402,20 +537,28 @@ declare const api_dislikeSong: typeof dislikeSong;
|
|
|
402
537
|
declare const api_editUserMyList: typeof editUserMyList;
|
|
403
538
|
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
404
539
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
540
|
+
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
405
541
|
declare const api_getComment: typeof getComment;
|
|
542
|
+
declare const api_getConcertComment: typeof getConcertComment;
|
|
543
|
+
declare const api_getConcertDetail: typeof getConcertDetail;
|
|
544
|
+
declare const api_getConcertInfo: typeof getConcertInfo;
|
|
545
|
+
declare const api_getConcertUrl: typeof getConcertUrl;
|
|
406
546
|
declare const api_getLyric: typeof getLyric;
|
|
407
547
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
408
548
|
declare const api_getMvHls: typeof getMvHls;
|
|
409
549
|
declare const api_getMvInfo: typeof getMvInfo;
|
|
550
|
+
declare const api_getNewCDList: typeof getNewCDList;
|
|
551
|
+
declare const api_getNewSongList: typeof getNewSongList;
|
|
410
552
|
declare const api_getNinanByDate: typeof getNinanByDate;
|
|
411
553
|
declare const api_getNinanSong: typeof getNinanSong;
|
|
412
554
|
declare const api_getOpNum: typeof getOpNum;
|
|
413
555
|
declare const api_getPacmToken: typeof getPacmToken;
|
|
414
556
|
declare const api_getPlaylistInfo: typeof getPlaylistInfo;
|
|
415
557
|
declare const api_getPlaylistSong: typeof getPlaylistSong;
|
|
416
|
-
declare const
|
|
558
|
+
declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
|
|
417
559
|
declare const api_getRadioRecommend: typeof getRadioRecommend;
|
|
418
560
|
declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
|
|
561
|
+
declare const api_getRadioSong: typeof getRadioSong;
|
|
419
562
|
declare const api_getRankIndex: typeof getRankIndex;
|
|
420
563
|
declare const api_getRankInfo: typeof getRankInfo;
|
|
421
564
|
declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
|
|
@@ -424,6 +567,7 @@ declare const api_getSVideoInfo: typeof getSVideoInfo;
|
|
|
424
567
|
declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
|
|
425
568
|
declare const api_getSVideoUrl: typeof getSVideoUrl;
|
|
426
569
|
declare const api_getSVideoUserContent: typeof getSVideoUserContent;
|
|
570
|
+
declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
|
|
427
571
|
declare const api_getSceneRecommend: typeof getSceneRecommend;
|
|
428
572
|
declare const api_getSearchDefault: typeof getSearchDefault;
|
|
429
573
|
declare const api_getSearchHot: typeof getSearchHot;
|
|
@@ -452,6 +596,7 @@ declare const api_loginOneClick: typeof loginOneClick;
|
|
|
452
596
|
declare const api_loginPhone: typeof loginPhone;
|
|
453
597
|
declare const api_loginSim: typeof loginSim;
|
|
454
598
|
declare const api_queryUserInfo: typeof queryUserInfo;
|
|
599
|
+
declare const api_removeSongFromMyList: typeof removeSongFromMyList;
|
|
455
600
|
declare const api_removeUserCollect: typeof removeUserCollect;
|
|
456
601
|
declare const api_removeUserMyList: typeof removeUserMyList;
|
|
457
602
|
declare const api_searchAlbum: typeof searchAlbum;
|
|
@@ -465,7 +610,7 @@ declare const api_searchSong: typeof searchSong;
|
|
|
465
610
|
declare const api_searchSuggest: typeof searchSuggest;
|
|
466
611
|
declare const api_searchTicket: typeof searchTicket;
|
|
467
612
|
declare namespace api {
|
|
468
|
-
export { api_YDRZ as YDRZ, 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_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,
|
|
613
|
+
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_getConcertComment as getConcertComment, api_getConcertDetail as getConcertDetail, api_getConcertInfo as getConcertInfo, api_getConcertUrl as getConcertUrl, 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_getSVideoUserInfo as getSVideoUserInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_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 };
|
|
469
614
|
}
|
|
470
615
|
|
|
471
616
|
declare const ua: string[];
|
|
@@ -511,4 +656,4 @@ declare function createClient(): typeof api;
|
|
|
511
656
|
/** 客户端类型 */
|
|
512
657
|
type MiguClient = ReturnType<typeof createClient>;
|
|
513
658
|
|
|
514
|
-
export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong,
|
|
659
|
+
export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertUrl, 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, getSVideoUserInfo, 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,7 +61,11 @@ size?: number, hotCommentStart?: number) => Promise<any>;
|
|
|
61
61
|
*/
|
|
62
62
|
declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
|
|
63
63
|
|
|
64
|
-
|
|
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
|
|
|
@@ -75,6 +79,17 @@ declare const getVersion: (channel?: string, version?: string, ua?: string) => P
|
|
|
75
79
|
|
|
76
80
|
declare const getMvInfo: (mvContentId: string) => Promise<any>;
|
|
77
81
|
|
|
82
|
+
/**
|
|
83
|
+
* 获取mv hls url
|
|
84
|
+
*
|
|
85
|
+
* @param mvContentId mv id
|
|
86
|
+
* @param mvCopyrightId mv copyrightId
|
|
87
|
+
* @param url mv url (url接口返回)
|
|
88
|
+
* @param size mv size (url接口获取)
|
|
89
|
+
* @param format mv format (url接口获取)
|
|
90
|
+
* @param needHttps 是否需要https (默认true)
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
78
93
|
declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
|
|
79
94
|
|
|
80
95
|
declare const loginNP: {
|
|
@@ -231,7 +246,7 @@ declare const loginPhone: {
|
|
|
231
246
|
*/
|
|
232
247
|
declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
|
|
233
248
|
|
|
234
|
-
declare const
|
|
249
|
+
declare const getPlaylistSquarePage: () => Promise<any>;
|
|
235
250
|
|
|
236
251
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
237
252
|
|
|
@@ -373,27 +388,147 @@ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
|
|
|
373
388
|
newPacmToken: string;
|
|
374
389
|
}>;
|
|
375
390
|
|
|
391
|
+
/**
|
|
392
|
+
* 编辑播放列表
|
|
393
|
+
* @param pacmtoken 用户token
|
|
394
|
+
* @param title 播放列表名称
|
|
395
|
+
* @param playlistId 播放列表id
|
|
396
|
+
* @returns
|
|
397
|
+
*/
|
|
376
398
|
declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
|
|
377
399
|
data: any;
|
|
378
400
|
newPacmToken: string;
|
|
379
401
|
}>;
|
|
380
402
|
|
|
403
|
+
/**
|
|
404
|
+
* 创建播放列表
|
|
405
|
+
* @param pacmtoken 用户token
|
|
406
|
+
* @param title 播放列表名称
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
381
409
|
declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
|
|
382
410
|
data: any;
|
|
383
411
|
newPacmToken: string;
|
|
384
412
|
}>;
|
|
385
413
|
|
|
414
|
+
/**
|
|
415
|
+
* 删除播放列表
|
|
416
|
+
* @param pacmtoken 用户token
|
|
417
|
+
* @param playlistId 播放列表id
|
|
418
|
+
* @returns
|
|
419
|
+
*/
|
|
386
420
|
declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
|
|
387
421
|
data: any;
|
|
388
422
|
newPacmToken: string;
|
|
389
423
|
}>;
|
|
390
424
|
|
|
425
|
+
/**
|
|
426
|
+
* 获取电台歌曲
|
|
427
|
+
* @param radioId 电台ID
|
|
428
|
+
* @param page 页码
|
|
429
|
+
* @returns
|
|
430
|
+
*/
|
|
431
|
+
declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 新碟上架
|
|
435
|
+
* @returns
|
|
436
|
+
*/
|
|
437
|
+
declare const getNewCDList: () => Promise<any>;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* 新歌速递
|
|
441
|
+
* @returns
|
|
442
|
+
*/
|
|
443
|
+
declare const getNewSongList: () => Promise<any>;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* 栏目内容
|
|
447
|
+
* @param columnId 栏目ID
|
|
448
|
+
* @returns
|
|
449
|
+
*/
|
|
450
|
+
declare const getColumnInfo: (columnId: string) => Promise<any>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* 添加歌曲到播放列表
|
|
454
|
+
* @param pacmtoken
|
|
455
|
+
* @param playlistId 播放列表id
|
|
456
|
+
* @param contentIds 歌曲id列表,逗号分隔
|
|
457
|
+
* @returns
|
|
458
|
+
*/
|
|
459
|
+
declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
|
|
460
|
+
data: any;
|
|
461
|
+
newPacmToken: string;
|
|
462
|
+
}>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 删除播放列表中的歌曲
|
|
466
|
+
* @param pacmtoken 用户token
|
|
467
|
+
* @param playlistId 播放列表id
|
|
468
|
+
* @param contentId 单个歌曲id
|
|
469
|
+
* @returns
|
|
470
|
+
*/
|
|
471
|
+
declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
|
|
472
|
+
data: any;
|
|
473
|
+
newPacmToken: string;
|
|
474
|
+
}>;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* 获取短视频用户信息
|
|
478
|
+
* @param type uid 或 videoUserId
|
|
479
|
+
* @param uid 视频用户uid
|
|
480
|
+
* @param videoUserId 视频用户id
|
|
481
|
+
* @returns 短视频用户信息
|
|
482
|
+
*/
|
|
483
|
+
declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* 演唱会详细信息
|
|
487
|
+
*
|
|
488
|
+
* 返回 $.data.liveId 直播id 等等
|
|
489
|
+
* @param concertId 单个演唱会id
|
|
490
|
+
* @returns
|
|
491
|
+
*/
|
|
492
|
+
declare const getConcertInfo: (concertId: string) => Promise<any>;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* 获取演唱会url (auto hls)
|
|
496
|
+
*
|
|
497
|
+
* @param concertId 单个演唱会id
|
|
498
|
+
* @param liveId 直播id (concert_info中获取)
|
|
499
|
+
* @param rateLevel 视频质量 (1:普通 2:高清 3:超清)
|
|
500
|
+
* @returns
|
|
501
|
+
*/
|
|
502
|
+
declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* 获取演唱会拓展
|
|
506
|
+
*
|
|
507
|
+
* $.data.contentItemList[0].itemList[0] 此演唱会简略信息
|
|
508
|
+
*
|
|
509
|
+
* $.data.contentItemList[10].itemList 推荐演唱会列表
|
|
510
|
+
*
|
|
511
|
+
* @param concertId 单个演唱会id
|
|
512
|
+
* @returns
|
|
513
|
+
*/
|
|
514
|
+
declare const getConcertDetail: (concertId: string) => Promise<any>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* 演唱会评论
|
|
518
|
+
* @param concertId 单个演唱会id
|
|
519
|
+
* @param page 翻页
|
|
520
|
+
* @param size 单页大小
|
|
521
|
+
* @returns
|
|
522
|
+
*/
|
|
523
|
+
declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
|
|
524
|
+
|
|
391
525
|
/**
|
|
392
526
|
* modules 子目录统一入口
|
|
393
527
|
* 汇总导出所有 API 函数
|
|
394
528
|
*/
|
|
395
529
|
|
|
396
530
|
declare const api_YDRZ: typeof YDRZ;
|
|
531
|
+
declare const api_addSongToMyList: typeof addSongToMyList;
|
|
397
532
|
declare const api_addUserCollect: typeof addUserCollect;
|
|
398
533
|
declare const api_addUserMyList: typeof addUserMyList;
|
|
399
534
|
declare const api_checkCanListen: typeof checkCanListen;
|
|
@@ -402,20 +537,28 @@ declare const api_dislikeSong: typeof dislikeSong;
|
|
|
402
537
|
declare const api_editUserMyList: typeof editUserMyList;
|
|
403
538
|
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
404
539
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
540
|
+
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
405
541
|
declare const api_getComment: typeof getComment;
|
|
542
|
+
declare const api_getConcertComment: typeof getConcertComment;
|
|
543
|
+
declare const api_getConcertDetail: typeof getConcertDetail;
|
|
544
|
+
declare const api_getConcertInfo: typeof getConcertInfo;
|
|
545
|
+
declare const api_getConcertUrl: typeof getConcertUrl;
|
|
406
546
|
declare const api_getLyric: typeof getLyric;
|
|
407
547
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
408
548
|
declare const api_getMvHls: typeof getMvHls;
|
|
409
549
|
declare const api_getMvInfo: typeof getMvInfo;
|
|
550
|
+
declare const api_getNewCDList: typeof getNewCDList;
|
|
551
|
+
declare const api_getNewSongList: typeof getNewSongList;
|
|
410
552
|
declare const api_getNinanByDate: typeof getNinanByDate;
|
|
411
553
|
declare const api_getNinanSong: typeof getNinanSong;
|
|
412
554
|
declare const api_getOpNum: typeof getOpNum;
|
|
413
555
|
declare const api_getPacmToken: typeof getPacmToken;
|
|
414
556
|
declare const api_getPlaylistInfo: typeof getPlaylistInfo;
|
|
415
557
|
declare const api_getPlaylistSong: typeof getPlaylistSong;
|
|
416
|
-
declare const
|
|
558
|
+
declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
|
|
417
559
|
declare const api_getRadioRecommend: typeof getRadioRecommend;
|
|
418
560
|
declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
|
|
561
|
+
declare const api_getRadioSong: typeof getRadioSong;
|
|
419
562
|
declare const api_getRankIndex: typeof getRankIndex;
|
|
420
563
|
declare const api_getRankInfo: typeof getRankInfo;
|
|
421
564
|
declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
|
|
@@ -424,6 +567,7 @@ declare const api_getSVideoInfo: typeof getSVideoInfo;
|
|
|
424
567
|
declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
|
|
425
568
|
declare const api_getSVideoUrl: typeof getSVideoUrl;
|
|
426
569
|
declare const api_getSVideoUserContent: typeof getSVideoUserContent;
|
|
570
|
+
declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
|
|
427
571
|
declare const api_getSceneRecommend: typeof getSceneRecommend;
|
|
428
572
|
declare const api_getSearchDefault: typeof getSearchDefault;
|
|
429
573
|
declare const api_getSearchHot: typeof getSearchHot;
|
|
@@ -452,6 +596,7 @@ declare const api_loginOneClick: typeof loginOneClick;
|
|
|
452
596
|
declare const api_loginPhone: typeof loginPhone;
|
|
453
597
|
declare const api_loginSim: typeof loginSim;
|
|
454
598
|
declare const api_queryUserInfo: typeof queryUserInfo;
|
|
599
|
+
declare const api_removeSongFromMyList: typeof removeSongFromMyList;
|
|
455
600
|
declare const api_removeUserCollect: typeof removeUserCollect;
|
|
456
601
|
declare const api_removeUserMyList: typeof removeUserMyList;
|
|
457
602
|
declare const api_searchAlbum: typeof searchAlbum;
|
|
@@ -465,7 +610,7 @@ declare const api_searchSong: typeof searchSong;
|
|
|
465
610
|
declare const api_searchSuggest: typeof searchSuggest;
|
|
466
611
|
declare const api_searchTicket: typeof searchTicket;
|
|
467
612
|
declare namespace api {
|
|
468
|
-
export { api_YDRZ as YDRZ, 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_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,
|
|
613
|
+
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_getConcertComment as getConcertComment, api_getConcertDetail as getConcertDetail, api_getConcertInfo as getConcertInfo, api_getConcertUrl as getConcertUrl, 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_getSVideoUserInfo as getSVideoUserInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_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 };
|
|
469
614
|
}
|
|
470
615
|
|
|
471
616
|
declare const ua: string[];
|
|
@@ -511,4 +656,4 @@ declare function createClient(): typeof api;
|
|
|
511
656
|
/** 客户端类型 */
|
|
512
657
|
type MiguClient = ReturnType<typeof createClient>;
|
|
513
658
|
|
|
514
|
-
export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong,
|
|
659
|
+
export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertUrl, 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, getSVideoUserInfo, 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 };
|