migu-api-enhanced 2.2.1 → 2.4.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
 
@@ -88,7 +93,6 @@ declare const checkToken: (token?: string) => Promise<any>;
88
93
 
89
94
  declare const getPacmToken: (token?: string, type?: string, sourceId?: string, activityId?: string) => Promise<{
90
95
  pacmToken: string;
91
- cookie: string[];
92
96
  body: any;
93
97
  }>;
94
98
 
@@ -96,22 +100,22 @@ declare const getTicketInfo: (page?: number, pageCount?: number) => Promise<any>
96
100
 
97
101
  declare const getUserBadge: (pacmtoken: string) => Promise<{
98
102
  data: any;
99
- pacmtoken: string;
103
+ newPacmToken: string;
100
104
  }>;
101
105
 
102
106
  declare const queryUserInfo: (pacmtoken: string) => Promise<{
103
107
  data: any;
104
- pacmtoken: string;
108
+ newPacmToken: string;
105
109
  }>;
106
110
 
107
111
  declare const getUserHomePage: (pacmtoken: string) => Promise<{
108
112
  data: any;
109
- pacmtoken: string;
113
+ newPacmToken: string;
110
114
  }>;
111
115
 
112
116
  declare const getTodayRecommend: (pacmtoken: string) => Promise<{
113
117
  data: any;
114
- pacmtoken: string;
118
+ newPacmToken: string;
115
119
  }>;
116
120
 
117
121
  declare const loginSim: {
@@ -123,11 +127,6 @@ declare const loginSim: {
123
127
  error?: undefined;
124
128
  }>;
125
129
  simQuery(sim_sessionid: string): Promise<{
126
- error: string;
127
- token?: undefined;
128
- status?: undefined;
129
- body?: undefined;
130
- } | {
131
130
  token: any;
132
131
  status: any;
133
132
  error?: undefined;
@@ -142,12 +141,12 @@ declare const loginSim: {
142
141
 
143
142
  declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
144
143
  data: any;
145
- pacmtoken: string;
144
+ newPacmToken: string;
146
145
  }>;
147
146
 
148
147
  declare const getUserMyList: (pacmtoken: string, queryType?: number, page?: number, size?: number) => Promise<{
149
148
  data: any;
150
- pacmtoken: string;
149
+ newPacmToken: string;
151
150
  }>;
152
151
 
153
152
  /**
@@ -246,7 +245,92 @@ declare const getNinanByDate: (date: string) => Promise<any>;
246
245
  * @param pacmtoken 可选-登录凭证,用于获取所有电台
247
246
  * @returns
248
247
  */
249
- declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<any>;
248
+ declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
249
+ data: any;
250
+ newPacmToken: string;
251
+ }>;
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
+ }>;
250
334
 
251
335
  /**
252
336
  * modules 子目录统一入口
@@ -259,6 +343,7 @@ declare const api_checkToken: typeof checkToken;
259
343
  declare const api_getAlbumInfo: typeof getAlbumInfo;
260
344
  declare const api_getAlbumSong: typeof getAlbumSong;
261
345
  declare const api_getComment: typeof getComment;
346
+ declare const api_getLyric: typeof getLyric;
262
347
  declare const api_getMVRecommend: typeof getMVRecommend;
263
348
  declare const api_getMvHls: typeof getMvHls;
264
349
  declare const api_getMvInfo: typeof getMvInfo;
@@ -275,6 +360,10 @@ declare const api_getRankIndex: typeof getRankIndex;
275
360
  declare const api_getRankInfo: typeof getRankInfo;
276
361
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
277
362
  declare const api_getResourceInfo: typeof getResourceInfo;
363
+ declare const api_getSVideoInfo: typeof getSVideoInfo;
364
+ declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
365
+ declare const api_getSVideoUrl: typeof getSVideoUrl;
366
+ declare const api_getSVideoUserContent: typeof getSVideoUserContent;
278
367
  declare const api_getSceneRecommend: typeof getSceneRecommend;
279
368
  declare const api_getSearchDefault: typeof getSearchDefault;
280
369
  declare const api_getSearchHot: typeof getSearchHot;
@@ -295,6 +384,8 @@ declare const api_getUserCollect: typeof getUserCollect;
295
384
  declare const api_getUserHomePage: typeof getUserHomePage;
296
385
  declare const api_getUserMyList: typeof getUserMyList;
297
386
  declare const api_getVersion: typeof getVersion;
387
+ declare const api_getVrbtOpNum: typeof getVrbtOpNum;
388
+ declare const api_getVrbtUrl: typeof getVrbtUrl;
298
389
  declare const api_loginNP: typeof loginNP;
299
390
  declare const api_loginOneClick: typeof loginOneClick;
300
391
  declare const api_loginPhone: typeof loginPhone;
@@ -303,14 +394,15 @@ declare const api_queryUserInfo: typeof queryUserInfo;
303
394
  declare const api_searchAlbum: typeof searchAlbum;
304
395
  declare const api_searchConcert: typeof searchConcert;
305
396
  declare const api_searchLrc: typeof searchLrc;
397
+ declare const api_searchMv: typeof searchMv;
306
398
  declare const api_searchRbt: typeof searchRbt;
399
+ declare const api_searchSVideo: typeof searchSVideo;
307
400
  declare const api_searchSinger: typeof searchSinger;
308
401
  declare const api_searchSong: typeof searchSong;
309
402
  declare const api_searchSuggest: typeof searchSuggest;
310
403
  declare const api_searchTicket: typeof searchTicket;
311
- declare const api_searchVideo: typeof searchVideo;
312
404
  declare namespace api {
313
- 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 };
405
+ export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchMv as searchMv, api_searchRbt as searchRbt, api_searchSVideo as searchSVideo, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket };
314
406
  }
315
407
 
316
408
  declare const ua: string[];
@@ -321,7 +413,7 @@ declare function getDeviceId(a?: number, b?: number): string;
321
413
  declare const getPublicKey: () => Promise<{
322
414
  publicExponent: string;
323
415
  modulus: string;
324
- } | undefined>;
416
+ }>;
325
417
 
326
418
  declare class RSAKey {
327
419
  private publicKey;
@@ -356,4 +448,4 @@ declare function createClient(): typeof api;
356
448
  /** 客户端类型 */
357
449
  type MiguClient = ReturnType<typeof createClient>;
358
450
 
359
- 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 };
451
+ export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };
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
 
@@ -88,7 +93,6 @@ declare const checkToken: (token?: string) => Promise<any>;
88
93
 
89
94
  declare const getPacmToken: (token?: string, type?: string, sourceId?: string, activityId?: string) => Promise<{
90
95
  pacmToken: string;
91
- cookie: string[];
92
96
  body: any;
93
97
  }>;
94
98
 
@@ -96,22 +100,22 @@ declare const getTicketInfo: (page?: number, pageCount?: number) => Promise<any>
96
100
 
97
101
  declare const getUserBadge: (pacmtoken: string) => Promise<{
98
102
  data: any;
99
- pacmtoken: string;
103
+ newPacmToken: string;
100
104
  }>;
101
105
 
102
106
  declare const queryUserInfo: (pacmtoken: string) => Promise<{
103
107
  data: any;
104
- pacmtoken: string;
108
+ newPacmToken: string;
105
109
  }>;
106
110
 
107
111
  declare const getUserHomePage: (pacmtoken: string) => Promise<{
108
112
  data: any;
109
- pacmtoken: string;
113
+ newPacmToken: string;
110
114
  }>;
111
115
 
112
116
  declare const getTodayRecommend: (pacmtoken: string) => Promise<{
113
117
  data: any;
114
- pacmtoken: string;
118
+ newPacmToken: string;
115
119
  }>;
116
120
 
117
121
  declare const loginSim: {
@@ -123,11 +127,6 @@ declare const loginSim: {
123
127
  error?: undefined;
124
128
  }>;
125
129
  simQuery(sim_sessionid: string): Promise<{
126
- error: string;
127
- token?: undefined;
128
- status?: undefined;
129
- body?: undefined;
130
- } | {
131
130
  token: any;
132
131
  status: any;
133
132
  error?: undefined;
@@ -142,12 +141,12 @@ declare const loginSim: {
142
141
 
143
142
  declare const getUserCollect: (pacmtoken: string, page?: number, size?: number) => Promise<{
144
143
  data: any;
145
- pacmtoken: string;
144
+ newPacmToken: string;
146
145
  }>;
147
146
 
148
147
  declare const getUserMyList: (pacmtoken: string, queryType?: number, page?: number, size?: number) => Promise<{
149
148
  data: any;
150
- pacmtoken: string;
149
+ newPacmToken: string;
151
150
  }>;
152
151
 
153
152
  /**
@@ -246,7 +245,92 @@ declare const getNinanByDate: (date: string) => Promise<any>;
246
245
  * @param pacmtoken 可选-登录凭证,用于获取所有电台
247
246
  * @returns
248
247
  */
249
- declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<any>;
248
+ declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
249
+ data: any;
250
+ newPacmToken: string;
251
+ }>;
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
+ }>;
250
334
 
251
335
  /**
252
336
  * modules 子目录统一入口
@@ -259,6 +343,7 @@ declare const api_checkToken: typeof checkToken;
259
343
  declare const api_getAlbumInfo: typeof getAlbumInfo;
260
344
  declare const api_getAlbumSong: typeof getAlbumSong;
261
345
  declare const api_getComment: typeof getComment;
346
+ declare const api_getLyric: typeof getLyric;
262
347
  declare const api_getMVRecommend: typeof getMVRecommend;
263
348
  declare const api_getMvHls: typeof getMvHls;
264
349
  declare const api_getMvInfo: typeof getMvInfo;
@@ -275,6 +360,10 @@ declare const api_getRankIndex: typeof getRankIndex;
275
360
  declare const api_getRankInfo: typeof getRankInfo;
276
361
  declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
277
362
  declare const api_getResourceInfo: typeof getResourceInfo;
363
+ declare const api_getSVideoInfo: typeof getSVideoInfo;
364
+ declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
365
+ declare const api_getSVideoUrl: typeof getSVideoUrl;
366
+ declare const api_getSVideoUserContent: typeof getSVideoUserContent;
278
367
  declare const api_getSceneRecommend: typeof getSceneRecommend;
279
368
  declare const api_getSearchDefault: typeof getSearchDefault;
280
369
  declare const api_getSearchHot: typeof getSearchHot;
@@ -295,6 +384,8 @@ declare const api_getUserCollect: typeof getUserCollect;
295
384
  declare const api_getUserHomePage: typeof getUserHomePage;
296
385
  declare const api_getUserMyList: typeof getUserMyList;
297
386
  declare const api_getVersion: typeof getVersion;
387
+ declare const api_getVrbtOpNum: typeof getVrbtOpNum;
388
+ declare const api_getVrbtUrl: typeof getVrbtUrl;
298
389
  declare const api_loginNP: typeof loginNP;
299
390
  declare const api_loginOneClick: typeof loginOneClick;
300
391
  declare const api_loginPhone: typeof loginPhone;
@@ -303,14 +394,15 @@ declare const api_queryUserInfo: typeof queryUserInfo;
303
394
  declare const api_searchAlbum: typeof searchAlbum;
304
395
  declare const api_searchConcert: typeof searchConcert;
305
396
  declare const api_searchLrc: typeof searchLrc;
397
+ declare const api_searchMv: typeof searchMv;
306
398
  declare const api_searchRbt: typeof searchRbt;
399
+ declare const api_searchSVideo: typeof searchSVideo;
307
400
  declare const api_searchSinger: typeof searchSinger;
308
401
  declare const api_searchSong: typeof searchSong;
309
402
  declare const api_searchSuggest: typeof searchSuggest;
310
403
  declare const api_searchTicket: typeof searchTicket;
311
- declare const api_searchVideo: typeof searchVideo;
312
404
  declare namespace api {
313
- 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 };
405
+ export { api_YDRZ as YDRZ, api_checkCanListen as checkCanListen, api_checkToken as checkToken, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getComment as getComment, api_getLyric as getLyric, api_getMVRecommend as getMVRecommend, api_getMvHls as getMvHls, api_getMvInfo as getMvInfo, api_getNinanByDate as getNinanByDate, api_getNinanSong as getNinanSong, api_getOpNum as getOpNum, api_getPacmToken as getPacmToken, api_getPlaylistInfo as getPlaylistInfo, api_getPlaylistSong as getPlaylistSong, api_getPlaylistSquare as getPlaylistSquare, api_getRadioRecommend as getRadioRecommend, api_getRadioRecommendAll as getRadioRecommendAll, api_getRankIndex as getRankIndex, api_getRankInfo as getRankInfo, api_getRecommendPlaylist as getRecommendPlaylist, api_getResourceInfo as getResourceInfo, api_getSVideoInfo as getSVideoInfo, api_getSVideoSearchSuggest as getSVideoSearchSuggest, api_getSVideoUrl as getSVideoUrl, api_getSVideoUserContent as getSVideoUserContent, api_getSceneRecommend as getSceneRecommend, api_getSearchDefault as getSearchDefault, api_getSearchHot as getSearchHot, api_getSearchSingerTab as getSearchSingerTab, api_getSearchSingerTabList as getSearchSingerTabList, api_getSimilarSongRecommend as getSimilarSongRecommend, api_getSingerAlbum as getSingerAlbum, api_getSingerIndex as getSingerIndex, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserBadge as getUserBadge, api_getUserCollect as getUserCollect, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getVersion as getVersion, api_getVrbtOpNum as getVrbtOpNum, api_getVrbtUrl as getVrbtUrl, api_loginNP as loginNP, api_loginOneClick as loginOneClick, api_loginPhone as loginPhone, api_loginSim as loginSim, api_queryUserInfo as queryUserInfo, api_searchAlbum as searchAlbum, api_searchConcert as searchConcert, api_searchLrc as searchLrc, api_searchMv as searchMv, api_searchRbt as searchRbt, api_searchSVideo as searchSVideo, api_searchSinger as searchSinger, api_searchSong as searchSong, api_searchSuggest as searchSuggest, api_searchTicket as searchTicket };
314
406
  }
315
407
 
316
408
  declare const ua: string[];
@@ -321,7 +413,7 @@ declare function getDeviceId(a?: number, b?: number): string;
321
413
  declare const getPublicKey: () => Promise<{
322
414
  publicExponent: string;
323
415
  modulus: string;
324
- } | undefined>;
416
+ }>;
325
417
 
326
418
  declare class RSAKey {
327
419
  private publicKey;
@@ -356,4 +448,4 @@ declare function createClient(): typeof api;
356
448
  /** 客户端类型 */
357
449
  type MiguClient = ReturnType<typeof createClient>;
358
450
 
359
- 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 };
451
+ export { type MiguClient, index as MiguUtils, RSAKey, URLParams, YDRZ, checkCanListen, checkToken, createClient, getAlbumInfo, getAlbumSong, getComment, getDeviceId, getLyric, getMVRecommend, getMvHls, getMvInfo, getNinanByDate, getNinanSong, getOpNum, getPacmToken, getPlaylistInfo, getPlaylistSong, getPlaylistSquare, getPublicKey, getRadioRecommend, getRadioRecommendAll, getRankIndex, getRankInfo, getRecommendPlaylist, getResourceInfo, getSVideoInfo, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerSimilar, getSingerSong, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlV1, getUrlV2, getUserBadge, getUserCollect, getUserHomePage, getUserMyList, getVersion, getVrbtOpNum, getVrbtUrl, loginNP, loginOneClick, loginPhone, loginSim, api as modules, queryUserInfo, randomUA, searchAlbum, searchConcert, searchLrc, searchMv, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, ua };