migu-api-enhanced 2.10.0 → 2.18.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
@@ -75,9 +75,16 @@ declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: stri
75
75
 
76
76
  declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
77
77
 
78
- declare const getVersion: (channel?: string, version?: string, ua?: string) => Promise<any>;
78
+ declare const getVersion: () => Promise<any>;
79
79
 
80
- declare const getMvInfo: (mvContentId: string) => Promise<any>;
80
+ /**
81
+ * 获取MV视频信息
82
+ * @param mvContentIds MV视频ID (逗号分隔)
83
+ * @example
84
+ * getMvInfo('600906000000476885,600906000000438741')
85
+ * @returns MV视频信息
86
+ */
87
+ declare const getMvInfo: (mvContentIds: string) => Promise<any>;
81
88
 
82
89
  /**
83
90
  * 获取mv hls url
@@ -88,7 +95,7 @@ declare const getMvInfo: (mvContentId: string) => Promise<any>;
88
95
  * @param size mv size (url接口获取)
89
96
  * @param format mv format (url接口获取)
90
97
  * @param needHttps 是否需要https (默认true)
91
- * @returns
98
+ * @returns JSON
92
99
  */
93
100
  declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
94
101
 
@@ -106,28 +113,62 @@ declare const loginNP: {
106
113
 
107
114
  declare const checkToken: (token?: string) => Promise<any>;
108
115
 
116
+ /**
117
+ * 获取 pacmtoken
118
+ * @param token 登录token
119
+ * @param type 类型
120
+ * @param sourceId 来源ID
121
+ * @param activityId 活动ID
122
+ * @returns pacmtoken 和响应体
123
+ */
109
124
  declare const getPacmToken: (token?: string, type?: string, sourceId?: string, activityId?: string) => Promise<{
110
125
  pacmToken: string;
111
126
  body: any;
112
127
  }>;
113
128
 
114
- declare const getTicketInfo: (page?: number, pageCount?: number) => Promise<any>;
129
+ /**
130
+ * 获取票务信息
131
+ * @param page 页码 可选 默认1
132
+ * @param size 每页数量 可选 默认20
133
+ * @returns 票务信息
134
+ */
135
+ declare const getTicketInfo: (page?: number, size?: number) => Promise<any>;
115
136
 
137
+ /**
138
+ * 获取用户徽章信息
139
+ * @param pacmtoken 用户token
140
+ * @returns 用户徽章信息和新的pacmtoken
141
+ */
116
142
  declare const getUserBadge: (pacmtoken: string) => Promise<{
117
143
  data: any;
118
144
  newPacmToken: string;
119
145
  }>;
120
146
 
147
+ /**
148
+ * 查询用户信息
149
+ * @param pacmtoken 用户token
150
+ * @returns 用户信息和新的pacmtoken
151
+ */
121
152
  declare const queryUserInfo: (pacmtoken: string) => Promise<{
122
153
  data: any;
123
154
  newPacmToken: string;
124
155
  }>;
125
156
 
157
+ /**
158
+ * 获取用户主页信息
159
+ * @param pacmtoken 用户token
160
+ * @returns 用户主页信息和新的pacmtoken
161
+ */
126
162
  declare const getUserHomePage: (pacmtoken: string) => Promise<{
127
163
  data: any;
128
164
  newPacmToken: string;
129
165
  }>;
130
166
 
167
+ /**
168
+ * 获取今日推荐
169
+ * @param pacmtoken 用户token
170
+ * @returns 今日推荐列表和新的pacmtoken
171
+ */
131
172
  declare const getTodayRecommend: (pacmtoken: string) => Promise<{
132
173
  data: any;
133
174
  newPacmToken: string;
@@ -154,11 +195,26 @@ declare const loginSim: {
154
195
  }>;
155
196
  };
156
197
 
198
+ /**
199
+ * 获取用户收藏列表
200
+ * @param pacmtoken 用户token
201
+ * @param page 页码
202
+ * @param size 每页大小
203
+ * @returns 用户收藏列表和新的pacmtoken
204
+ */
157
205
  declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
158
206
  data: any;
159
207
  newPacmToken: string;
160
208
  }>;
161
209
 
210
+ /**
211
+ * 获取用户播放列表
212
+ * @param pacmtoken 用户token
213
+ * @param queryType 查询类型
214
+ * @param page 页码
215
+ * @param size 每页大小
216
+ * @returns 用户播放列表和新的pacmtoken
217
+ */
162
218
  declare const getUserMyList: (pacmtoken: string, queryType?: number, page?: number, size?: number) => Promise<{
163
219
  data: any;
164
220
  newPacmToken: string;
@@ -241,11 +297,17 @@ declare const loginPhone: {
241
297
  };
242
298
 
243
299
  /**
244
- * 获取相似歌曲推荐
245
- * @param contentId 歌曲ID
300
+ * 获取相似MV推荐
301
+ * @param mvContentId MV视频ID
302
+ * @param page 页码
303
+ * @returns 相似列表
246
304
  */
247
305
  declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
248
306
 
307
+ /**
308
+ * 网页v5 歌单广场
309
+ * @returns
310
+ */
249
311
  declare const getPlaylistSquarePage: () => Promise<any>;
250
312
 
251
313
  declare const searchLrc: (text: string, page?: number) => Promise<any>;
@@ -258,7 +320,7 @@ declare const getNinanByDate: (date: string) => Promise<any>;
258
320
  * 获取电台推荐 (所有电台)
259
321
  * 私人FM(上瘾电台、听见不同),时序电台,分类电台,乐游播客,YOU乐电台
260
322
  * @param pacmtoken 可选-登录凭证,用于获取所有电台
261
- * @returns
323
+ * @returns 电台推荐列表和新的pacmtoken
262
324
  */
263
325
  declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
264
326
  data: any;
@@ -347,29 +409,76 @@ declare const getLyric: (contentId: string) => Promise<{
347
409
  data?: undefined;
348
410
  }>;
349
411
 
412
+ declare namespace AddUserCollect {
413
+ interface Playlist {
414
+ type: 'playlist';
415
+ title: string;
416
+ playlistId: string;
417
+ }
418
+ interface Comment {
419
+ type: 'comment';
420
+ userId: string;
421
+ commentId: string;
422
+ }
423
+ type params = Playlist | Comment;
424
+ }
425
+ declare namespace RemoveUserCollect {
426
+ interface Playlist {
427
+ type: 'playlist';
428
+ playlistId: string;
429
+ }
430
+ interface Comment {
431
+ type: 'comment';
432
+ userId: string;
433
+ commentId: string;
434
+ }
435
+ type params = Playlist | Comment;
436
+ }
437
+
350
438
  /**
351
439
  * 添加用户收藏
352
440
  * @param pacmtoken 用户pacmtoken
353
- * @param playlistId 播放列表id
354
- * @param title 播放列表标题
441
+ * @param params params.playlistId 播放列表id
442
+ * @param params.title 播放列表标题
443
+ * @returns 添加结果和新的pacmtoken
355
444
  */
356
- declare const addUserCollect: (pacmtoken: string, playlistId: string, title: string) => Promise<{
445
+ declare const addUserCollect: (pacmtoken: string, params: AddUserCollect.params) => Promise<{
446
+ success: boolean;
447
+ err: string;
448
+ data?: undefined;
449
+ newPacmToken?: undefined;
450
+ } | {
357
451
  data: any;
358
452
  newPacmToken: string;
453
+ success?: undefined;
454
+ err?: undefined;
359
455
  }>;
360
456
 
361
457
  /**
362
- * 添加用户收藏
458
+ * 删除用户收藏
363
459
  * @param pacmtoken 用户pacmtoken
364
- * @param playlistId 播放列表id
460
+ * @param params 删除收藏参数
461
+ * @param params.type 收藏类型 -playlist或comment
462
+ * @param params.playlistId 播放列表id
463
+ * @param params.userId 用户id
464
+ * @param params.commentId 评论id
465
+ * @returns 删除结果和新的pacmtoken
365
466
  */
366
- declare const removeUserCollect: (pacmtoken: string, playlistId: string) => Promise<{
467
+ declare const removeUserCollect: (pacmtoken: string, params: RemoveUserCollect.params) => Promise<{
468
+ success: boolean;
469
+ err: string;
470
+ data?: undefined;
471
+ newPacmToken?: undefined;
472
+ } | {
367
473
  data: any;
368
474
  newPacmToken: string;
475
+ success?: undefined;
476
+ err?: undefined;
369
477
  }>;
370
478
 
371
479
  /**
372
- * @param pacmtoken
480
+ * 添加喜欢音乐
481
+ * @param pacmtoken 用户token
373
482
  * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
374
483
  * @returns 添加喜欢音乐结果,包含新pacmtoken
375
484
  */
@@ -379,7 +488,8 @@ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
379
488
  }>;
380
489
 
381
490
  /**
382
- * @param pacmtoken
491
+ * 移除喜欢音乐
492
+ * @param pacmtoken 用户token
383
493
  * @param contentId 单个音乐id,例如:123
384
494
  * @returns 移除喜欢音乐结果,包含新pacmtoken
385
495
  */
@@ -393,7 +503,7 @@ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
393
503
  * @param pacmtoken 用户token
394
504
  * @param title 播放列表名称
395
505
  * @param playlistId 播放列表id
396
- * @returns
506
+ * @returns 编辑结果和新的pacmtoken
397
507
  */
398
508
  declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
399
509
  data: any;
@@ -404,7 +514,7 @@ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: str
404
514
  * 创建播放列表
405
515
  * @param pacmtoken 用户token
406
516
  * @param title 播放列表名称
407
- * @returns
517
+ * @returns 创建结果和新的pacmtoken
408
518
  */
409
519
  declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
410
520
  data: any;
@@ -415,7 +525,7 @@ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
415
525
  * 删除播放列表
416
526
  * @param pacmtoken 用户token
417
527
  * @param playlistId 播放列表id
418
- * @returns
528
+ * @returns 删除结果和新的pacmtoken
419
529
  */
420
530
  declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
421
531
  data: any;
@@ -451,10 +561,10 @@ declare const getColumnInfo: (columnId: string) => Promise<any>;
451
561
 
452
562
  /**
453
563
  * 添加歌曲到播放列表
454
- * @param pacmtoken
564
+ * @param pacmtoken 用户token
455
565
  * @param playlistId 播放列表id
456
566
  * @param contentIds 歌曲id列表,逗号分隔
457
- * @returns
567
+ * @returns 添加结果和新的pacmtoken
458
568
  */
459
569
  declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
460
570
  data: any;
@@ -466,7 +576,7 @@ declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentId
466
576
  * @param pacmtoken 用户token
467
577
  * @param playlistId 播放列表id
468
578
  * @param contentId 单个歌曲id
469
- * @returns
579
+ * @returns 删除结果和新的pacmtoken
470
580
  */
471
581
  declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
472
582
  data: any;
@@ -483,7 +593,7 @@ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, cont
483
593
  declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
484
594
 
485
595
  /**
486
- * 演唱会详细信息
596
+ * 演唱会简略信息
487
597
  *
488
598
  * 返回 $.data.liveId 直播id 等等
489
599
  * @param concertId 单个演唱会id
@@ -502,11 +612,13 @@ declare const getConcertInfo: (concertId: string) => Promise<any>;
502
612
  declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
503
613
 
504
614
  /**
505
- * 获取演唱会拓展
615
+ * 移动端演唱会详情
506
616
  *
507
617
  * $.data.contentItemList[0].itemList[0] 此演唱会简略信息
508
618
  *
509
- * $.data.contentItemList[10].itemList 推荐演唱会列表
619
+ * $.data.contentItemList[3].itemList 精选视频-列表
620
+ *
621
+ * $.data.contentItemList[6].itemList 热门演唱会-列表
510
622
  *
511
623
  * @param concertId 单个演唱会id
512
624
  * @returns
@@ -522,12 +634,222 @@ declare const getConcertDetail: (concertId: string) => Promise<any>;
522
634
  */
523
635
  declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
524
636
 
637
+ declare const matchPlaylist: (url: string) => Promise<any>;
638
+
639
+ /**
640
+ * 获取用户呢喃签到信息
641
+ * @param pacmtoken - 用户认证 token
642
+ * @returns 签到信息和新的 pacmtoken
643
+ */
644
+ declare const getNinanSignInfo: (pacmtoken: string) => Promise<{
645
+ data: any;
646
+ newPacmToken: string;
647
+ }>;
648
+
649
+ /**
650
+ * 呢喃签到
651
+ * @param pacmtoken - 用户认证 token
652
+ * @returns 签到结果和新的 pacmtoken
653
+ */
654
+ declare const signNinan: (pacmtoken: string) => Promise<{
655
+ data: any;
656
+ newPacmToken: string;
657
+ }>;
658
+
659
+ /**
660
+ * 获取重定向URL
661
+ * @param contentId 音乐ID
662
+ * @param toneFlag 音色
663
+ * @returns 重定向URL
664
+ */
665
+ declare const getRedirectUrl: (contentId: string, toneFlag?: string | undefined) => Promise<string>;
666
+
667
+ /**
668
+ * 通过演唱会推荐 MV
669
+ * @param concertId 单个演唱会id
670
+ * @returns
671
+ */
672
+ declare const getConcertRecommendMv: (concertId: string) => Promise<any>;
673
+
674
+ /**
675
+ * 获取歌曲的 MV 视频
676
+ * @param songId 歌曲ID
677
+ * @returns MV视频信息
678
+ */
679
+ declare const getMvBySong: (songId: string) => Promise<any>;
680
+
681
+ /**
682
+ * 是否关注作者
683
+ * @param pacmtoken 用户token
684
+ * @param authorIds 作者id列表,逗号分隔
685
+ * @param authorType 作者类型 (singer)
686
+ * @returns 是否关注结果和新的pacmtoken
687
+ */
688
+ declare const isFollowAuthor: (pacmtoken: string, authorIds: string, authorType?: string) => Promise<{
689
+ success: boolean;
690
+ data: {
691
+ error: string;
692
+ };
693
+ newPacmToken: string;
694
+ } | {
695
+ data: any;
696
+ newPacmToken: string;
697
+ success?: undefined;
698
+ }>;
699
+
700
+ /**
701
+ * VIP 热歌
702
+ * @param size 数量
703
+ * @returns
704
+ */
705
+ declare const getVipPlaylist: (size?: number) => Promise<any>;
706
+
707
+ /**
708
+ * 用户简介
709
+ * @param userId 用户id
710
+ * @returns 用户简介
711
+ */
712
+ declare const getUserHeader: (userId: string) => Promise<any>;
713
+
714
+ /**
715
+ * 获取用户歌曲主页
716
+ * @param userId 用户id (可选)
717
+ * @param videoUserId 视频用户id (可选)
718
+ * @returns 用户歌曲主页
719
+ */
720
+ declare const getUserSongPage: (userId?: string, videoUserId?: string) => Promise<any>;
721
+
722
+ /**
723
+ * 移动端获取页面信息
724
+ * @param pageId 页面ID (二选一)
725
+ * @param sceneId 场景ID (二选一)
726
+ * @returns
727
+ */
728
+ declare const getPageInfo: (pageId?: string, sceneId?: string) => Promise<any>;
729
+
730
+ /**
731
+ * 移动端页面底部tab
732
+ * @returns 主页面 + 子页面
733
+ */
734
+ declare const getPageTab: () => Promise<any>;
735
+
736
+ /**
737
+ * 短视频用户推荐
738
+ * @param pacmtoken 用户授权token
739
+ * @returns 短视频用户推荐
740
+ */
741
+ declare const getSVideoRecommend: (pacmtoken: string) => Promise<{
742
+ data: any;
743
+ newPacmToken: string;
744
+ }>;
745
+
746
+ /**
747
+ * 用户关注视彩号列表
748
+ * @param userId 用户ID
749
+ * @param page 分页
750
+ * @returns 关注列表
751
+ */
752
+ declare const getFollowingVra: (userId: string, page?: number) => Promise<any>;
753
+
754
+ declare namespace Follower {
755
+ interface Music {
756
+ type: 'music';
757
+ userId: string;
758
+ page?: number;
759
+ size?: number;
760
+ }
761
+ interface Vrbt_V {
762
+ type: 'vrbt';
763
+ userId?: string;
764
+ videoUserId: string;
765
+ }
766
+ interface Vrbt_U {
767
+ type: 'vrbt';
768
+ userId: string;
769
+ videoUserId?: string;
770
+ }
771
+ type params = Music | Vrbt_V | Vrbt_U;
772
+ }
773
+
774
+ /**
775
+ * 获取粉丝列表
776
+ * @description 不同类型返回值格式不同
777
+ * @param params 参数
778
+ * @param params.type 类型,music或vrbt
779
+ * @param params.userId 用户ID
780
+ * @param params.videoUserId 视频用户ID
781
+ * @param params.page 页码
782
+ * @param params.size 每页数量
783
+ * @returns 粉丝列表
784
+ */
785
+ declare const getFollowerList: (params: Follower.params) => Promise<any>;
786
+
787
+ /**
788
+ * 获取关注列表
789
+ * @param userId 用户ID
790
+ * @param type 关注类型,user或singer
791
+ * @param page 页码
792
+ * @param size 每页数量
793
+ * @returns 关注列表
794
+ */
795
+ declare const getFollowingList: (userId: string, type: string, page?: number, size?: number) => Promise<any>;
796
+
797
+ /**
798
+ * 关注歌手
799
+ * @param pacmtoken 用户token
800
+ * @param singerId 歌手id
801
+ * @returns 关注结果和新的pacmtoken
802
+ */
803
+ declare const addFollower: (pacmtoken: string, singerId: string) => Promise<{
804
+ data: any;
805
+ newPacmToken: string;
806
+ }>;
807
+
808
+ /**
809
+ * 取消关注歌手
810
+ * @param pacmtoken 用户token
811
+ * @param singerId 歌手id
812
+ * @returns 取消关注结果和新的pacmtoken
813
+ */
814
+ declare const removeFollower: (pacmtoken: string, singerId: string) => Promise<{
815
+ data: any;
816
+ newPacmToken: string;
817
+ }>;
818
+
819
+ /**
820
+ * 用户退出登录
821
+ * @param pacmtoken 用户token
822
+ * @returns 退出登录结果
823
+ */
824
+ declare const logout: (pacmtoken: string) => Promise<any>;
825
+
826
+ /**
827
+ * 分享视频
828
+ * @param resourceType 资源类型 6000:短视频 D:MV
829
+ * @param contentId 视频id / MVid
830
+ * @param userId 视频用户id (可选)
831
+ * @returns 分享信息 (url)
832
+ */
833
+ declare const shareVideo: (resourceType: string, contentId: string, userId?: string) => Promise<any>;
834
+
835
+ /**
836
+ * 分享通用内容
837
+ * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手
838
+ * @param contentId 内容id 歌曲contentId / albumId / artistId / playlistId
839
+ * @param contentName 歌曲名称 / 专辑名称 / 歌手名称 / 播放列表名称
840
+ * @param targetUserName 当前歌单作者/歌手名称 (可选)
841
+ * @param copyrightId 歌曲版权id (可选)
842
+ * @returns 分享信息 (url)
843
+ */
844
+ declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
845
+
525
846
  /**
526
847
  * modules 子目录统一入口
527
848
  * 汇总导出所有 API 函数
528
849
  */
529
850
 
530
851
  declare const api_YDRZ: typeof YDRZ;
852
+ declare const api_addFollower: typeof addFollower;
531
853
  declare const api_addSongToMyList: typeof addSongToMyList;
532
854
  declare const api_addUserCollect: typeof addUserCollect;
533
855
  declare const api_addUserMyList: typeof addUserMyList;
@@ -542,17 +864,25 @@ declare const api_getComment: typeof getComment;
542
864
  declare const api_getConcertComment: typeof getConcertComment;
543
865
  declare const api_getConcertDetail: typeof getConcertDetail;
544
866
  declare const api_getConcertInfo: typeof getConcertInfo;
867
+ declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
545
868
  declare const api_getConcertUrl: typeof getConcertUrl;
869
+ declare const api_getFollowerList: typeof getFollowerList;
870
+ declare const api_getFollowingList: typeof getFollowingList;
871
+ declare const api_getFollowingVra: typeof getFollowingVra;
546
872
  declare const api_getLyric: typeof getLyric;
547
873
  declare const api_getMVRecommend: typeof getMVRecommend;
874
+ declare const api_getMvBySong: typeof getMvBySong;
548
875
  declare const api_getMvHls: typeof getMvHls;
549
876
  declare const api_getMvInfo: typeof getMvInfo;
550
877
  declare const api_getNewCDList: typeof getNewCDList;
551
878
  declare const api_getNewSongList: typeof getNewSongList;
552
879
  declare const api_getNinanByDate: typeof getNinanByDate;
880
+ declare const api_getNinanSignInfo: typeof getNinanSignInfo;
553
881
  declare const api_getNinanSong: typeof getNinanSong;
554
882
  declare const api_getOpNum: typeof getOpNum;
555
883
  declare const api_getPacmToken: typeof getPacmToken;
884
+ declare const api_getPageInfo: typeof getPageInfo;
885
+ declare const api_getPageTab: typeof getPageTab;
556
886
  declare const api_getPlaylistInfo: typeof getPlaylistInfo;
557
887
  declare const api_getPlaylistSong: typeof getPlaylistSong;
558
888
  declare const api_getPlaylistSquarePage: typeof getPlaylistSquarePage;
@@ -562,8 +892,10 @@ declare const api_getRadioSong: typeof getRadioSong;
562
892
  declare const api_getRankIndex: typeof getRankIndex;
563
893
  declare const api_getRankInfo: typeof getRankInfo;
564
894
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
895
+ declare const api_getRedirectUrl: typeof getRedirectUrl;
565
896
  declare const api_getResourceInfo: typeof getResourceInfo;
566
897
  declare const api_getSVideoInfo: typeof getSVideoInfo;
898
+ declare const api_getSVideoRecommend: typeof getSVideoRecommend;
567
899
  declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
568
900
  declare const api_getSVideoUrl: typeof getSVideoUrl;
569
901
  declare const api_getSVideoUserContent: typeof getSVideoUserContent;
@@ -585,17 +917,24 @@ declare const api_getUrlV1: typeof getUrlV1;
585
917
  declare const api_getUrlV2: typeof getUrlV2;
586
918
  declare const api_getUserBadge: typeof getUserBadge;
587
919
  declare const api_getUserCollectList: typeof getUserCollectList;
920
+ declare const api_getUserHeader: typeof getUserHeader;
588
921
  declare const api_getUserHomePage: typeof getUserHomePage;
589
922
  declare const api_getUserMyList: typeof getUserMyList;
923
+ declare const api_getUserSongPage: typeof getUserSongPage;
590
924
  declare const api_getVersion: typeof getVersion;
925
+ declare const api_getVipPlaylist: typeof getVipPlaylist;
591
926
  declare const api_getVrbtOpNum: typeof getVrbtOpNum;
592
927
  declare const api_getVrbtUrl: typeof getVrbtUrl;
928
+ declare const api_isFollowAuthor: typeof isFollowAuthor;
593
929
  declare const api_likeSong: typeof likeSong;
594
930
  declare const api_loginNP: typeof loginNP;
595
931
  declare const api_loginOneClick: typeof loginOneClick;
596
932
  declare const api_loginPhone: typeof loginPhone;
597
933
  declare const api_loginSim: typeof loginSim;
934
+ declare const api_logout: typeof logout;
935
+ declare const api_matchPlaylist: typeof matchPlaylist;
598
936
  declare const api_queryUserInfo: typeof queryUserInfo;
937
+ declare const api_removeFollower: typeof removeFollower;
599
938
  declare const api_removeSongFromMyList: typeof removeSongFromMyList;
600
939
  declare const api_removeUserCollect: typeof removeUserCollect;
601
940
  declare const api_removeUserMyList: typeof removeUserMyList;
@@ -609,13 +948,13 @@ declare const api_searchSinger: typeof searchSinger;
609
948
  declare const api_searchSong: typeof searchSong;
610
949
  declare const api_searchSuggest: typeof searchSuggest;
611
950
  declare const api_searchTicket: typeof searchTicket;
951
+ declare const api_shareCommon: typeof shareCommon;
952
+ declare const api_shareVideo: typeof shareVideo;
953
+ declare const api_signNinan: typeof signNinan;
612
954
  declare namespace api {
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 };
955
+ export { api_YDRZ as YDRZ, api_addFollower as addFollower, api_addSongToMyList as addSongToMyList, api_addUserCollect as addUserCollect, api_addUserMyList as addUserMyList, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_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_getConcertRecommendMv as getConcertRecommendMv, api_getConcertUrl as getConcertUrl, api_getFollowerList as getFollowerList, api_getFollowingList as getFollowingList, api_getFollowingVra as getFollowingVra, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvBySong as getMvBySong, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNewCDList as getNewCDList, api_getNewSongList as getNewSongList, api_getNinanByDate as getNinanByDate, api_getNinanSignInfo as getNinanSignInfo, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPageInfo as getPageInfo, api_getPageTab as getPageTab, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquarePage as getPlaylistSquarePage, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRadioSong as getRadioSong, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getRedirectUrl as getRedirectUrl, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoRecommend as getSVideoRecommend, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSVideoUserInfo as getSVideoUserInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_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_getUserHeader as getUserHeader, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getUserSongPage as getUserSongPage, api_getVersion as getVersion, api_getVipPlaylist as getVipPlaylist, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_isFollowAuthor as isFollowAuthor, api_likeSong as likeSong, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_logout as logout, api_matchPlaylist as matchPlaylist, api_queryUserInfo as queryUserInfo, api_removeFollower as removeFollower, api_removeSongFromMyList as removeSongFromMyList, api_removeUserCollect as removeUserCollect, api_removeUserMyList as removeUserMyList, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchMv as searchMv, api_searchRbt as searchRbt, api_searchSVideo as searchSVideo, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket, api_shareCommon as shareCommon, api_shareVideo as shareVideo, api_signNinan as signNinan };
614
956
  }
615
957
 
616
- declare const ua: string[];
617
- declare const randomUA: () => string;
618
-
619
958
  declare function getDeviceId(a?: number, b?: number): string;
620
959
 
621
960
  declare const getPublicKey: () => Promise<{
@@ -631,15 +970,45 @@ declare class RSAKey {
631
970
 
632
971
  declare function URLParams($: object | string): string;
633
972
 
973
+ declare const qualityList: readonly ["PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D"];
974
+ type Quality = (typeof qualityList)[number];
975
+ declare const toneUrl: {
976
+ PQ: string;
977
+ HQ: string;
978
+ SQ: string;
979
+ ZQ24: string;
980
+ ZQ32: string;
981
+ Z3D: string;
982
+ };
983
+ declare const toneFormat: {
984
+ PQ: string;
985
+ HQ: string;
986
+ SQ: string;
987
+ ZQ24: string;
988
+ ZQ32: string;
989
+ Z3D: string;
990
+ };
991
+ declare function isQuality(quality: string | undefined): quality is Quality;
992
+ declare function getQuality(url: string): Quality | '';
993
+ declare function changeQuality(url: string, quality: string, originalQuality?: string): string;
994
+
995
+ declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "2002" | "2016" | "6000" | "D" | "M";
996
+
997
+ type index_Quality = Quality;
634
998
  type index_RSAKey = RSAKey;
635
999
  declare const index_RSAKey: typeof RSAKey;
636
1000
  declare const index_URLParams: typeof URLParams;
1001
+ declare const index_changeQuality: typeof changeQuality;
637
1002
  declare const index_getDeviceId: typeof getDeviceId;
638
1003
  declare const index_getPublicKey: typeof getPublicKey;
639
- declare const index_randomUA: typeof randomUA;
640
- declare const index_ua: typeof ua;
1004
+ declare const index_getQuality: typeof getQuality;
1005
+ declare const index_getResourceId: typeof getResourceId;
1006
+ declare const index_isQuality: typeof isQuality;
1007
+ declare const index_qualityList: typeof qualityList;
1008
+ declare const index_toneFormat: typeof toneFormat;
1009
+ declare const index_toneUrl: typeof toneUrl;
641
1010
  declare namespace index {
642
- export { index_RSAKey as RSAKey, index_URLParams as URLParams, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_randomUA as randomUA, index_ua as ua };
1011
+ export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_getDeviceId as getDeviceId, index_getPublicKey as getPublicKey, index_getQuality as getQuality, index_getResourceId as getResourceId, index_isQuality as isQuality, index_qualityList as qualityList, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
643
1012
  }
644
1013
 
645
1014
  /**
@@ -647,13 +1016,16 @@ declare namespace index {
647
1016
  * 直接复用 modules 导出,提供 createClient 工厂
648
1017
  */
649
1018
 
1019
+ type ExpandedApi<T> = {
1020
+ [P in keyof T]: T[P];
1021
+ };
650
1022
  /**
651
1023
  * 创建一个咪咕 API 客户端实例
652
1024
  * 返回对象包含所有 API 方法(直接复用 modules 函数)
653
1025
  * @returns 包含所有 API 方法的对象
654
1026
  */
655
- declare function createClient(): typeof api;
1027
+ declare function createClient(): ExpandedApi<typeof api>;
656
1028
  /** 客户端类型 */
657
1029
  type MiguClient = ReturnType<typeof createClient>;
658
1030
 
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 };
1031
+ export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, dislikeSong, editUserMyList, getAlbumInfo, getAlbumSong, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDeviceId, getFollowerList, getFollowingList, getFollowingVra, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, getPlaylistSquarePage, getPublicKey, getQuality, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getRedirectUrl, getResourceId, getResourceInfo, getSVideoInfo, getSVideoRecommend, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSVideoUserInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHeader, getUserHomePage, getUserMyList, getUserSongPage, getVersion, getVipPlaylist, getVrbtOpNum, getVrbtUrl, isFollowAuthor, isQuality, likeSong, loginNP, loginOneClick, loginPhone, loginSim, logout, matchPlaylist, api as modules, qualityList, queryUserInfo, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signNinan, toneFormat, toneUrl };