migu-api-enhanced 2.9.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 +56 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -2
- package/dist/index.d.ts +67 -2
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -79,6 +79,17 @@ declare const getVersion: (channel?: string, version?: string, ua?: string) => P
|
|
|
79
79
|
|
|
80
80
|
declare const getMvInfo: (mvContentId: string) => Promise<any>;
|
|
81
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
|
+
*/
|
|
82
93
|
declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
|
|
83
94
|
|
|
84
95
|
declare const loginNP: {
|
|
@@ -462,6 +473,55 @@ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, cont
|
|
|
462
473
|
newPacmToken: string;
|
|
463
474
|
}>;
|
|
464
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
|
+
|
|
465
525
|
/**
|
|
466
526
|
* modules 子目录统一入口
|
|
467
527
|
* 汇总导出所有 API 函数
|
|
@@ -479,6 +539,10 @@ declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
|
479
539
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
480
540
|
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
481
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;
|
|
482
546
|
declare const api_getLyric: typeof getLyric;
|
|
483
547
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
484
548
|
declare const api_getMvHls: typeof getMvHls;
|
|
@@ -503,6 +567,7 @@ declare const api_getSVideoInfo: typeof getSVideoInfo;
|
|
|
503
567
|
declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
|
|
504
568
|
declare const api_getSVideoUrl: typeof getSVideoUrl;
|
|
505
569
|
declare const api_getSVideoUserContent: typeof getSVideoUserContent;
|
|
570
|
+
declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
|
|
506
571
|
declare const api_getSceneRecommend: typeof getSceneRecommend;
|
|
507
572
|
declare const api_getSearchDefault: typeof getSearchDefault;
|
|
508
573
|
declare const api_getSearchHot: typeof getSearchHot;
|
|
@@ -545,7 +610,7 @@ declare const api_searchSong: typeof searchSong;
|
|
|
545
610
|
declare const api_searchSuggest: typeof searchSuggest;
|
|
546
611
|
declare const api_searchTicket: typeof searchTicket;
|
|
547
612
|
declare namespace api {
|
|
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 };
|
|
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 };
|
|
549
614
|
}
|
|
550
615
|
|
|
551
616
|
declare const ua: string[];
|
|
@@ -591,4 +656,4 @@ declare function createClient(): typeof api;
|
|
|
591
656
|
/** 客户端类型 */
|
|
592
657
|
type MiguClient = ReturnType<typeof createClient>;
|
|
593
658
|
|
|
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 };
|
|
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
|
@@ -79,6 +79,17 @@ declare const getVersion: (channel?: string, version?: string, ua?: string) => P
|
|
|
79
79
|
|
|
80
80
|
declare const getMvInfo: (mvContentId: string) => Promise<any>;
|
|
81
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
|
+
*/
|
|
82
93
|
declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
|
|
83
94
|
|
|
84
95
|
declare const loginNP: {
|
|
@@ -462,6 +473,55 @@ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, cont
|
|
|
462
473
|
newPacmToken: string;
|
|
463
474
|
}>;
|
|
464
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
|
+
|
|
465
525
|
/**
|
|
466
526
|
* modules 子目录统一入口
|
|
467
527
|
* 汇总导出所有 API 函数
|
|
@@ -479,6 +539,10 @@ declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
|
479
539
|
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
480
540
|
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
481
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;
|
|
482
546
|
declare const api_getLyric: typeof getLyric;
|
|
483
547
|
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
484
548
|
declare const api_getMvHls: typeof getMvHls;
|
|
@@ -503,6 +567,7 @@ declare const api_getSVideoInfo: typeof getSVideoInfo;
|
|
|
503
567
|
declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
|
|
504
568
|
declare const api_getSVideoUrl: typeof getSVideoUrl;
|
|
505
569
|
declare const api_getSVideoUserContent: typeof getSVideoUserContent;
|
|
570
|
+
declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
|
|
506
571
|
declare const api_getSceneRecommend: typeof getSceneRecommend;
|
|
507
572
|
declare const api_getSearchDefault: typeof getSearchDefault;
|
|
508
573
|
declare const api_getSearchHot: typeof getSearchHot;
|
|
@@ -545,7 +610,7 @@ declare const api_searchSong: typeof searchSong;
|
|
|
545
610
|
declare const api_searchSuggest: typeof searchSuggest;
|
|
546
611
|
declare const api_searchTicket: typeof searchTicket;
|
|
547
612
|
declare namespace api {
|
|
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 };
|
|
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 };
|
|
549
614
|
}
|
|
550
615
|
|
|
551
616
|
declare const ua: string[];
|
|
@@ -591,4 +656,4 @@ declare function createClient(): typeof api;
|
|
|
591
656
|
/** 客户端类型 */
|
|
592
657
|
type MiguClient = ReturnType<typeof createClient>;
|
|
593
658
|
|
|
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 };
|
|
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.js
CHANGED
|
@@ -19,6 +19,10 @@ __export(modules_exports, {
|
|
|
19
19
|
getAlbumSong: () => getAlbumSong,
|
|
20
20
|
getColumnInfo: () => getColumnInfo,
|
|
21
21
|
getComment: () => getComment,
|
|
22
|
+
getConcertComment: () => getConcertComment,
|
|
23
|
+
getConcertDetail: () => getConcertDetail,
|
|
24
|
+
getConcertInfo: () => getConcertInfo,
|
|
25
|
+
getConcertUrl: () => getConcertUrl,
|
|
22
26
|
getLyric: () => getLyric,
|
|
23
27
|
getMVRecommend: () => getMVRecommend,
|
|
24
28
|
getMvHls: () => getMvHls,
|
|
@@ -43,6 +47,7 @@ __export(modules_exports, {
|
|
|
43
47
|
getSVideoSearchSuggest: () => getSVideoSearchSuggest,
|
|
44
48
|
getSVideoUrl: () => getSVideoUrl,
|
|
45
49
|
getSVideoUserContent: () => getSVideoUserContent,
|
|
50
|
+
getSVideoUserInfo: () => getSVideoUserInfo,
|
|
46
51
|
getSceneRecommend: () => getSceneRecommend,
|
|
47
52
|
getSearchDefault: () => getSearchDefault,
|
|
48
53
|
getSearchHot: () => getSearchHot,
|
|
@@ -1427,6 +1432,47 @@ var removeSongFromMyList = async (pacmtoken, playlistId, contentId) => {
|
|
|
1427
1432
|
return { data: res.data, newPacmToken };
|
|
1428
1433
|
};
|
|
1429
1434
|
|
|
1435
|
+
// src/modules/svideo_userInfo.ts
|
|
1436
|
+
var getSVideoUserInfo = async (type, uid = "", videoUserId = "") => {
|
|
1437
|
+
let url = "https://app.c.nf.migu.cn/resource/video-user";
|
|
1438
|
+
if (type === "uid") {
|
|
1439
|
+
url += `/by-uid/v1.0?uid=${uid}`;
|
|
1440
|
+
} else if (type === "videoUserId") {
|
|
1441
|
+
url += `/by-id/v1.0?videoUserId=${videoUserId}`;
|
|
1442
|
+
} else {
|
|
1443
|
+
return { error: "Invalid parameter type", success: false };
|
|
1444
|
+
}
|
|
1445
|
+
return h5fetch(url);
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
// src/modules/concert_info.ts
|
|
1449
|
+
var getConcertInfo = async (concertId) => {
|
|
1450
|
+
return await h5fetch(`http://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
// src/modules/concert_url.ts
|
|
1454
|
+
var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
|
|
1455
|
+
return await h5fetch(
|
|
1456
|
+
`http://c.musicapp.migu.cn/MIGUM2.0/v2.1/danmaku/liveServerHosts.do?concertId=${concertId}&liveId=${liveId}&liveType=1&rateLevel=${rateLevel}`,
|
|
1457
|
+
{
|
|
1458
|
+
headers: {
|
|
1459
|
+
"channel": "0146921"
|
|
1460
|
+
//android client
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
);
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
// src/modules/concert_detail.ts
|
|
1467
|
+
var getConcertDetail = async (concertId) => {
|
|
1468
|
+
return await h5fetch(`http://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertDetail.do?columnId=${concertId}`);
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
// src/modules/concert_comment.ts
|
|
1472
|
+
var getConcertComment = async (concertId, page = 1, size = 20) => {
|
|
1473
|
+
return await h5fetch(`http://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1430
1476
|
// src/utils/index.ts
|
|
1431
1477
|
var utils_exports = {};
|
|
1432
1478
|
__export(utils_exports, {
|
|
@@ -1471,6 +1517,10 @@ export {
|
|
|
1471
1517
|
getAlbumSong,
|
|
1472
1518
|
getColumnInfo,
|
|
1473
1519
|
getComment,
|
|
1520
|
+
getConcertComment,
|
|
1521
|
+
getConcertDetail,
|
|
1522
|
+
getConcertInfo,
|
|
1523
|
+
getConcertUrl,
|
|
1474
1524
|
getDeviceId,
|
|
1475
1525
|
getLyric,
|
|
1476
1526
|
getMVRecommend,
|
|
@@ -1497,6 +1547,7 @@ export {
|
|
|
1497
1547
|
getSVideoSearchSuggest,
|
|
1498
1548
|
getSVideoUrl,
|
|
1499
1549
|
getSVideoUserContent,
|
|
1550
|
+
getSVideoUserInfo,
|
|
1500
1551
|
getSceneRecommend,
|
|
1501
1552
|
getSearchDefault,
|
|
1502
1553
|
getSearchHot,
|