migu-api-enhanced 2.3.0 → 2.6.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
@@ -10,7 +10,7 @@ declare const getSearchHot: () => Promise<any>;
10
10
 
11
11
  declare const getSearchDefault: () => Promise<any>;
12
12
 
13
- declare const searchVideo: (text: string, page?: number, typeOrder?: number) => Promise<any>;
13
+ declare const searchMv: (text: string, page?: number, typeOrder?: number) => Promise<any>;
14
14
 
15
15
  declare const searchSuggest: (text: string) => Promise<any>;
16
16
 
@@ -54,7 +54,12 @@ declare const getRadioRecommend: (type?: number) => Promise<any>;
54
54
  declare const getComment: (resourceId: string, resourceType?: number, // 2: 歌曲 D: MV
55
55
  size?: number, hotCommentStart?: number) => Promise<any>;
56
56
 
57
- declare const getResourceInfo: (resourceId: string, resourceType?: number) => Promise<any>;
57
+ /** 获取资源详情
58
+ * @param resourceIds 资源ID列表,多个ID用|分隔 600919000007791840|600929000001520013
59
+ * @param copyrightIds 版权ID列表,多个ID用|分隔 Copyright ID和resource ID可以二选一
60
+ * @param resourceType 资源类型 2: 歌曲 2002:002: 艺术家
61
+ */
62
+ declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
58
63
 
59
64
  declare const checkCanListen: (body: Record<string, any>) => Promise<any>;
60
65
 
@@ -62,9 +67,9 @@ declare const getOpNum: (ids: string) => Promise<any>;
62
67
 
63
68
  declare const getUrlV1: (contentId: string, copyrightId: string, resourceType?: string) => Promise<any>;
64
69
 
65
- declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string, pacmtoken?: string) => Promise<any>;
70
+ declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
66
71
 
67
- declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
72
+ declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
68
73
 
69
74
  declare const getVersion: (channel?: string, version?: string, ua?: string) => Promise<any>;
70
75
 
@@ -134,7 +139,7 @@ declare const loginSim: {
134
139
  }>;
135
140
  };
136
141
 
137
- declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
142
+ declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
138
143
  data: any;
139
144
  newPacmToken: string;
140
145
  }>;
@@ -245,17 +250,160 @@ declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
245
250
  newPacmToken: string;
246
251
  }>;
247
252
 
253
+ /**
254
+ * 获取短视频详情
255
+ * @param contentIds 短视频ID,多个ID用逗号分隔 (自动处理)
256
+ * @returns 短视频详情
257
+ */
258
+ declare const getSVideoInfo: (contentIds: string) => Promise<any>;
259
+
260
+ declare const searchSVideo: (text: string, page?: number) => Promise<any>;
261
+
262
+ declare const getSVideoSearchSuggest: (text: string) => Promise<any>;
263
+
264
+ /**
265
+ * 获取短视频播放地址
266
+ * @param contentIds 短视频ID,多个ID用,分隔 600985A00005943149,600985A00004881354
267
+ * @param formatType 视频格式,HQ/PQ/SQ 若无自动降级 HQ默认
268
+ * @returns 短视频播放地址
269
+ */
270
+ declare const getSVideoUrl: (contentIds: string, formatType?: string) => Promise<any>;
271
+
272
+ /**
273
+ * 获取用户短视频列表
274
+ * @param videoUserId 用户ID
275
+ * @param nextPageId 分页ID, 第一页时为空, 每个请求都会返回nextPageId
276
+ * @returns 用户短视频列表
277
+ */
278
+ declare const getSVideoUserContent: (videoUserId: string, nextPageId?: string) => Promise<any>;
279
+
280
+ /**
281
+ * 获取视频播放次数
282
+ * @param contentIds 视频ID列表,逗号分隔 600926000022458628,600926000002564425
283
+ * @returns 视频播放次数列表
284
+ */
285
+ declare const getVrbtOpNum: (contentIds: string) => Promise<any>;
286
+
287
+ /**
288
+ * 获取视频彩铃播放URL
289
+ * @param contentIds 视频ID列表,,分隔
290
+ * @returns 视频播放URL列表
291
+ */
292
+ declare const getVrbtUrl: (contentIds: string) => Promise<any>;
293
+
294
+ /**获取歌词(自建)
295
+ * @param contentId 单个歌曲ID,
296
+ * @returns 歌词文本
297
+ */
298
+ declare const getLyric: (contentId: string) => Promise<{
299
+ error: string;
300
+ success: boolean;
301
+ status?: undefined;
302
+ data?: undefined;
303
+ lrc?: undefined;
304
+ lrcUrl?: undefined;
305
+ } | {
306
+ success: boolean;
307
+ status: number;
308
+ error: any;
309
+ data?: undefined;
310
+ lrc?: undefined;
311
+ lrcUrl?: undefined;
312
+ } | {
313
+ error: string;
314
+ success: boolean;
315
+ data: any;
316
+ status?: undefined;
317
+ lrc?: undefined;
318
+ lrcUrl?: undefined;
319
+ } | {
320
+ success: boolean;
321
+ status: number;
322
+ error: string;
323
+ data: any;
324
+ lrc?: undefined;
325
+ lrcUrl?: undefined;
326
+ } | {
327
+ success: boolean;
328
+ lrc: any;
329
+ lrcUrl: any;
330
+ error?: undefined;
331
+ status?: undefined;
332
+ data?: undefined;
333
+ }>;
334
+
335
+ /**
336
+ * 添加用户收藏
337
+ * @param pacmtoken 用户pacmtoken
338
+ * @param playlistId 播放列表id
339
+ * @param title 播放列表标题
340
+ */
341
+ declare const addUserCollect: (pacmtoken: string, playlistId: string, title: string) => Promise<{
342
+ data: any;
343
+ newPacmToken: string;
344
+ }>;
345
+
346
+ /**
347
+ * 添加用户收藏
348
+ * @param pacmtoken 用户pacmtoken
349
+ * @param playlistId 播放列表id
350
+ */
351
+ declare const removeUserCollect: (pacmtoken: string, playlistId: string) => Promise<{
352
+ data: any;
353
+ newPacmToken: string;
354
+ }>;
355
+
356
+ /**
357
+ * @param pacmtoken
358
+ * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
359
+ * @returns 添加喜欢音乐结果,包含新pacmtoken
360
+ */
361
+ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
362
+ data: any;
363
+ newPacmToken: string;
364
+ }>;
365
+
366
+ /**
367
+ * @param pacmtoken
368
+ * @param contentId 单个音乐id,例如:123
369
+ * @returns 移除喜欢音乐结果,包含新pacmtoken
370
+ */
371
+ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
372
+ data: any;
373
+ newPacmToken: string;
374
+ }>;
375
+
376
+ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
377
+ data: any;
378
+ newPacmToken: string;
379
+ }>;
380
+
381
+ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
382
+ data: any;
383
+ newPacmToken: string;
384
+ }>;
385
+
386
+ declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
387
+ data: any;
388
+ newPacmToken: string;
389
+ }>;
390
+
248
391
  /**
249
392
  * modules 子目录统一入口
250
393
  * 汇总导出所有 API 函数
251
394
  */
252
395
 
253
396
  declare const api_YDRZ: typeof YDRZ;
397
+ declare const api_addUserCollect: typeof addUserCollect;
398
+ declare const api_addUserMyList: typeof addUserMyList;
254
399
  declare const api_checkCanListen: typeof checkCanListen;
255
400
  declare const api_checkToken: typeof checkToken;
401
+ declare const api_dislikeSong: typeof dislikeSong;
402
+ declare const api_editUserMyList: typeof editUserMyList;
256
403
  declare const api_getAlbumInfo: typeof getAlbumInfo;
257
404
  declare const api_getAlbumSong: typeof getAlbumSong;
258
405
  declare const api_getComment: typeof getComment;
406
+ declare const api_getLyric: typeof getLyric;
259
407
  declare const api_getMVRecommend: typeof getMVRecommend;
260
408
  declare const api_getMvHls: typeof getMvHls;
261
409
  declare const api_getMvInfo: typeof getMvInfo;
@@ -272,6 +420,10 @@ declare const api_getRankIndex: typeof getRankIndex;
272
420
  declare const api_getRankInfo: typeof getRankInfo;
273
421
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
274
422
  declare const api_getResourceInfo: typeof getResourceInfo;
423
+ declare const api_getSVideoInfo: typeof getSVideoInfo;
424
+ declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
425
+ declare const api_getSVideoUrl: typeof getSVideoUrl;
426
+ declare const api_getSVideoUserContent: typeof getSVideoUserContent;
275
427
  declare const api_getSceneRecommend: typeof getSceneRecommend;
276
428
  declare const api_getSearchDefault: typeof getSearchDefault;
277
429
  declare const api_getSearchHot: typeof getSearchHot;
@@ -288,26 +440,32 @@ declare const api_getUrlH5V24: typeof getUrlH5V24;
288
440
  declare const api_getUrlV1: typeof getUrlV1;
289
441
  declare const api_getUrlV2: typeof getUrlV2;
290
442
  declare const api_getUserBadge: typeof getUserBadge;
291
- declare const api_getUserCollect: typeof getUserCollect;
443
+ declare const api_getUserCollectList: typeof getUserCollectList;
292
444
  declare const api_getUserHomePage: typeof getUserHomePage;
293
445
  declare const api_getUserMyList: typeof getUserMyList;
294
446
  declare const api_getVersion: typeof getVersion;
447
+ declare const api_getVrbtOpNum: typeof getVrbtOpNum;
448
+ declare const api_getVrbtUrl: typeof getVrbtUrl;
449
+ declare const api_likeSong: typeof likeSong;
295
450
  declare const api_loginNP: typeof loginNP;
296
451
  declare const api_loginOneClick: typeof loginOneClick;
297
452
  declare const api_loginPhone: typeof loginPhone;
298
453
  declare const api_loginSim: typeof loginSim;
299
454
  declare const api_queryUserInfo: typeof queryUserInfo;
455
+ declare const api_removeUserCollect: typeof removeUserCollect;
456
+ declare const api_removeUserMyList: typeof removeUserMyList;
300
457
  declare const api_searchAlbum: typeof searchAlbum;
301
458
  declare const api_searchConcert: typeof searchConcert;
302
459
  declare const api_searchLrc: typeof searchLrc;
460
+ declare const api_searchMv: typeof searchMv;
303
461
  declare const api_searchRbt: typeof searchRbt;
462
+ declare const api_searchSVideo: typeof searchSVideo;
304
463
  declare const api_searchSinger: typeof searchSinger;
305
464
  declare const api_searchSong: typeof searchSong;
306
465
  declare const api_searchSuggest: typeof searchSuggest;
307
466
  declare const api_searchTicket: typeof searchTicket;
308
- declare const api_searchVideo: typeof searchVideo;
309
467
  declare namespace api {
310
- export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchRbt as searchRbt, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket, api_searchVideo as searchVideo };
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, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_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_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 };
311
469
  }
312
470
 
313
471
  declare const ua: string[];
@@ -353,4 +511,4 @@ declare function createClient(): typeof api;
353
511
  /** 客户端类型 */
354
512
  type MiguClient = ReturnType<typeof createClient>;
355
513
 
356
- export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchRbt, searchSinger, searchSong, searchSuggest, searchTicket, searchVideo, ua };
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, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, likeSong, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ declare const getSearchHot: () => Promise<any>;
10
10
 
11
11
  declare const getSearchDefault: () => Promise<any>;
12
12
 
13
- declare const searchVideo: (text: string, page?: number, typeOrder?: number) => Promise<any>;
13
+ declare const searchMv: (text: string, page?: number, typeOrder?: number) => Promise<any>;
14
14
 
15
15
  declare const searchSuggest: (text: string) => Promise<any>;
16
16
 
@@ -54,7 +54,12 @@ declare const getRadioRecommend: (type?: number) => Promise<any>;
54
54
  declare const getComment: (resourceId: string, resourceType?: number, // 2: 歌曲 D: MV
55
55
  size?: number, hotCommentStart?: number) => Promise<any>;
56
56
 
57
- declare const getResourceInfo: (resourceId: string, resourceType?: number) => Promise<any>;
57
+ /** 获取资源详情
58
+ * @param resourceIds 资源ID列表,多个ID用|分隔 600919000007791840|600929000001520013
59
+ * @param copyrightIds 版权ID列表,多个ID用|分隔 Copyright ID和resource ID可以二选一
60
+ * @param resourceType 资源类型 2: 歌曲 2002:002: 艺术家
61
+ */
62
+ declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
58
63
 
59
64
  declare const checkCanListen: (body: Record<string, any>) => Promise<any>;
60
65
 
@@ -62,9 +67,9 @@ declare const getOpNum: (ids: string) => Promise<any>;
62
67
 
63
68
  declare const getUrlV1: (contentId: string, copyrightId: string, resourceType?: string) => Promise<any>;
64
69
 
65
- declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string, pacmtoken?: string) => Promise<any>;
70
+ declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
66
71
 
67
- declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
72
+ declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
68
73
 
69
74
  declare const getVersion: (channel?: string, version?: string, ua?: string) => Promise<any>;
70
75
 
@@ -134,7 +139,7 @@ declare const loginSim: {
134
139
  }>;
135
140
  };
136
141
 
137
- declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
142
+ declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
138
143
  data: any;
139
144
  newPacmToken: string;
140
145
  }>;
@@ -245,17 +250,160 @@ declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
245
250
  newPacmToken: string;
246
251
  }>;
247
252
 
253
+ /**
254
+ * 获取短视频详情
255
+ * @param contentIds 短视频ID,多个ID用逗号分隔 (自动处理)
256
+ * @returns 短视频详情
257
+ */
258
+ declare const getSVideoInfo: (contentIds: string) => Promise<any>;
259
+
260
+ declare const searchSVideo: (text: string, page?: number) => Promise<any>;
261
+
262
+ declare const getSVideoSearchSuggest: (text: string) => Promise<any>;
263
+
264
+ /**
265
+ * 获取短视频播放地址
266
+ * @param contentIds 短视频ID,多个ID用,分隔 600985A00005943149,600985A00004881354
267
+ * @param formatType 视频格式,HQ/PQ/SQ 若无自动降级 HQ默认
268
+ * @returns 短视频播放地址
269
+ */
270
+ declare const getSVideoUrl: (contentIds: string, formatType?: string) => Promise<any>;
271
+
272
+ /**
273
+ * 获取用户短视频列表
274
+ * @param videoUserId 用户ID
275
+ * @param nextPageId 分页ID, 第一页时为空, 每个请求都会返回nextPageId
276
+ * @returns 用户短视频列表
277
+ */
278
+ declare const getSVideoUserContent: (videoUserId: string, nextPageId?: string) => Promise<any>;
279
+
280
+ /**
281
+ * 获取视频播放次数
282
+ * @param contentIds 视频ID列表,逗号分隔 600926000022458628,600926000002564425
283
+ * @returns 视频播放次数列表
284
+ */
285
+ declare const getVrbtOpNum: (contentIds: string) => Promise<any>;
286
+
287
+ /**
288
+ * 获取视频彩铃播放URL
289
+ * @param contentIds 视频ID列表,,分隔
290
+ * @returns 视频播放URL列表
291
+ */
292
+ declare const getVrbtUrl: (contentIds: string) => Promise<any>;
293
+
294
+ /**获取歌词(自建)
295
+ * @param contentId 单个歌曲ID,
296
+ * @returns 歌词文本
297
+ */
298
+ declare const getLyric: (contentId: string) => Promise<{
299
+ error: string;
300
+ success: boolean;
301
+ status?: undefined;
302
+ data?: undefined;
303
+ lrc?: undefined;
304
+ lrcUrl?: undefined;
305
+ } | {
306
+ success: boolean;
307
+ status: number;
308
+ error: any;
309
+ data?: undefined;
310
+ lrc?: undefined;
311
+ lrcUrl?: undefined;
312
+ } | {
313
+ error: string;
314
+ success: boolean;
315
+ data: any;
316
+ status?: undefined;
317
+ lrc?: undefined;
318
+ lrcUrl?: undefined;
319
+ } | {
320
+ success: boolean;
321
+ status: number;
322
+ error: string;
323
+ data: any;
324
+ lrc?: undefined;
325
+ lrcUrl?: undefined;
326
+ } | {
327
+ success: boolean;
328
+ lrc: any;
329
+ lrcUrl: any;
330
+ error?: undefined;
331
+ status?: undefined;
332
+ data?: undefined;
333
+ }>;
334
+
335
+ /**
336
+ * 添加用户收藏
337
+ * @param pacmtoken 用户pacmtoken
338
+ * @param playlistId 播放列表id
339
+ * @param title 播放列表标题
340
+ */
341
+ declare const addUserCollect: (pacmtoken: string, playlistId: string, title: string) => Promise<{
342
+ data: any;
343
+ newPacmToken: string;
344
+ }>;
345
+
346
+ /**
347
+ * 添加用户收藏
348
+ * @param pacmtoken 用户pacmtoken
349
+ * @param playlistId 播放列表id
350
+ */
351
+ declare const removeUserCollect: (pacmtoken: string, playlistId: string) => Promise<{
352
+ data: any;
353
+ newPacmToken: string;
354
+ }>;
355
+
356
+ /**
357
+ * @param pacmtoken
358
+ * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
359
+ * @returns 添加喜欢音乐结果,包含新pacmtoken
360
+ */
361
+ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
362
+ data: any;
363
+ newPacmToken: string;
364
+ }>;
365
+
366
+ /**
367
+ * @param pacmtoken
368
+ * @param contentId 单个音乐id,例如:123
369
+ * @returns 移除喜欢音乐结果,包含新pacmtoken
370
+ */
371
+ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
372
+ data: any;
373
+ newPacmToken: string;
374
+ }>;
375
+
376
+ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
377
+ data: any;
378
+ newPacmToken: string;
379
+ }>;
380
+
381
+ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
382
+ data: any;
383
+ newPacmToken: string;
384
+ }>;
385
+
386
+ declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
387
+ data: any;
388
+ newPacmToken: string;
389
+ }>;
390
+
248
391
  /**
249
392
  * modules 子目录统一入口
250
393
  * 汇总导出所有 API 函数
251
394
  */
252
395
 
253
396
  declare const api_YDRZ: typeof YDRZ;
397
+ declare const api_addUserCollect: typeof addUserCollect;
398
+ declare const api_addUserMyList: typeof addUserMyList;
254
399
  declare const api_checkCanListen: typeof checkCanListen;
255
400
  declare const api_checkToken: typeof checkToken;
401
+ declare const api_dislikeSong: typeof dislikeSong;
402
+ declare const api_editUserMyList: typeof editUserMyList;
256
403
  declare const api_getAlbumInfo: typeof getAlbumInfo;
257
404
  declare const api_getAlbumSong: typeof getAlbumSong;
258
405
  declare const api_getComment: typeof getComment;
406
+ declare const api_getLyric: typeof getLyric;
259
407
  declare const api_getMVRecommend: typeof getMVRecommend;
260
408
  declare const api_getMvHls: typeof getMvHls;
261
409
  declare const api_getMvInfo: typeof getMvInfo;
@@ -272,6 +420,10 @@ declare const api_getRankIndex: typeof getRankIndex;
272
420
  declare const api_getRankInfo: typeof getRankInfo;
273
421
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
274
422
  declare const api_getResourceInfo: typeof getResourceInfo;
423
+ declare const api_getSVideoInfo: typeof getSVideoInfo;
424
+ declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
425
+ declare const api_getSVideoUrl: typeof getSVideoUrl;
426
+ declare const api_getSVideoUserContent: typeof getSVideoUserContent;
275
427
  declare const api_getSceneRecommend: typeof getSceneRecommend;
276
428
  declare const api_getSearchDefault: typeof getSearchDefault;
277
429
  declare const api_getSearchHot: typeof getSearchHot;
@@ -288,26 +440,32 @@ declare const api_getUrlH5V24: typeof getUrlH5V24;
288
440
  declare const api_getUrlV1: typeof getUrlV1;
289
441
  declare const api_getUrlV2: typeof getUrlV2;
290
442
  declare const api_getUserBadge: typeof getUserBadge;
291
- declare const api_getUserCollect: typeof getUserCollect;
443
+ declare const api_getUserCollectList: typeof getUserCollectList;
292
444
  declare const api_getUserHomePage: typeof getUserHomePage;
293
445
  declare const api_getUserMyList: typeof getUserMyList;
294
446
  declare const api_getVersion: typeof getVersion;
447
+ declare const api_getVrbtOpNum: typeof getVrbtOpNum;
448
+ declare const api_getVrbtUrl: typeof getVrbtUrl;
449
+ declare const api_likeSong: typeof likeSong;
295
450
  declare const api_loginNP: typeof loginNP;
296
451
  declare const api_loginOneClick: typeof loginOneClick;
297
452
  declare const api_loginPhone: typeof loginPhone;
298
453
  declare const api_loginSim: typeof loginSim;
299
454
  declare const api_queryUserInfo: typeof queryUserInfo;
455
+ declare const api_removeUserCollect: typeof removeUserCollect;
456
+ declare const api_removeUserMyList: typeof removeUserMyList;
300
457
  declare const api_searchAlbum: typeof searchAlbum;
301
458
  declare const api_searchConcert: typeof searchConcert;
302
459
  declare const api_searchLrc: typeof searchLrc;
460
+ declare const api_searchMv: typeof searchMv;
303
461
  declare const api_searchRbt: typeof searchRbt;
462
+ declare const api_searchSVideo: typeof searchSVideo;
304
463
  declare const api_searchSinger: typeof searchSinger;
305
464
  declare const api_searchSong: typeof searchSong;
306
465
  declare const api_searchSuggest: typeof searchSuggest;
307
466
  declare const api_searchTicket: typeof searchTicket;
308
- declare const api_searchVideo: typeof searchVideo;
309
467
  declare namespace api {
310
- export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchRbt as searchRbt, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket, api_searchVideo as searchVideo };
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, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_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_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 };
311
469
  }
312
470
 
313
471
  declare const ua: string[];
@@ -353,4 +511,4 @@ declare function createClient(): typeof api;
353
511
  /** 客户端类型 */
354
512
  type MiguClient = ReturnType<typeof createClient>;
355
513
 
356
- export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchRbt, searchSinger, searchSong, searchSuggest, searchTicket, searchVideo, ua };
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, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollectList, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, likeSong, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };