migu-api-enhanced 2.27.0 → 2.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -5
- package/dist/YDRZ-HSTSW5FC.mjs +11 -0
- package/dist/YDRZ-HSTSW5FC.mjs.map +1 -0
- package/dist/YDRZ-KF4GXM2T.cjs +11 -0
- package/dist/YDRZ-KF4GXM2T.cjs.map +1 -0
- package/dist/activity/index.cjs +85 -0
- package/dist/activity/index.cjs.map +1 -0
- package/dist/activity/index.d.cts +70 -0
- package/dist/activity/index.d.ts +70 -0
- package/dist/activity/index.mjs +85 -0
- package/dist/activity/index.mjs.map +1 -0
- package/dist/chunk-4M7T22TX.mjs +21 -0
- package/dist/chunk-4M7T22TX.mjs.map +1 -0
- package/dist/chunk-AJYZYXNE.mjs +18 -0
- package/dist/chunk-AJYZYXNE.mjs.map +1 -0
- package/dist/chunk-C56WQXBU.cjs +13 -0
- package/dist/chunk-C56WQXBU.cjs.map +1 -0
- package/dist/chunk-EIM46AX6.mjs +144 -0
- package/dist/chunk-EIM46AX6.mjs.map +1 -0
- package/dist/chunk-H6YB76CZ.mjs +95 -0
- package/dist/chunk-H6YB76CZ.mjs.map +1 -0
- package/dist/chunk-HDGZY5R6.mjs +13 -0
- package/dist/chunk-HDGZY5R6.mjs.map +1 -0
- package/dist/chunk-ILRMRBMK.cjs +71 -0
- package/dist/chunk-ILRMRBMK.cjs.map +1 -0
- package/dist/chunk-JOOWMEQP.cjs +95 -0
- package/dist/chunk-JOOWMEQP.cjs.map +1 -0
- package/dist/chunk-JXEQGZBM.cjs +21 -0
- package/dist/chunk-JXEQGZBM.cjs.map +1 -0
- package/dist/chunk-KGXC32BN.cjs +185 -0
- package/dist/chunk-KGXC32BN.cjs.map +1 -0
- package/dist/chunk-QEH62Z4S.cjs +18 -0
- package/dist/chunk-QEH62Z4S.cjs.map +1 -0
- package/dist/chunk-QMBC3CRQ.mjs +51 -0
- package/dist/chunk-QMBC3CRQ.mjs.map +1 -0
- package/dist/chunk-QTK2O5KQ.mjs +71 -0
- package/dist/chunk-QTK2O5KQ.mjs.map +1 -0
- package/dist/chunk-RI7PQIHG.cjs +144 -0
- package/dist/chunk-RI7PQIHG.cjs.map +1 -0
- package/dist/chunk-TIKOSETY.cjs +51 -0
- package/dist/chunk-TIKOSETY.cjs.map +1 -0
- package/dist/chunk-VE3TRZRD.mjs +185 -0
- package/dist/chunk-VE3TRZRD.mjs.map +1 -0
- package/dist/decryptMrc-EGKXYBTB.mjs +11 -0
- package/dist/decryptMrc-EGKXYBTB.mjs.map +1 -0
- package/dist/decryptMrc-OOH5UIFN.cjs +11 -0
- package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -0
- package/dist/index.cjs +310 -1628
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -414
- package/dist/index.d.ts +2 -414
- package/dist/{index.js → index.mjs} +44 -1178
- package/dist/index.mjs.map +1 -0
- package/dist/login/index.cjs +315 -0
- package/dist/login/index.cjs.map +1 -0
- package/dist/login/index.d.cts +57 -0
- package/dist/login/index.d.ts +57 -0
- package/dist/login/index.mjs +315 -0
- package/dist/login/index.mjs.map +1 -0
- package/dist/mrc/index.cjs +39 -0
- package/dist/mrc/index.cjs.map +1 -0
- package/dist/mrc/index.d.cts +37 -0
- package/dist/mrc/index.d.ts +37 -0
- package/dist/mrc/index.mjs +39 -0
- package/dist/mrc/index.mjs.map +1 -0
- package/dist/publicKey-D2LR2HGH.cjs +8 -0
- package/dist/publicKey-D2LR2HGH.cjs.map +1 -0
- package/dist/publicKey-YCVYQ54R.mjs +8 -0
- package/dist/publicKey-YCVYQ54R.mjs.map +1 -0
- package/dist/rsalib-GGMEGQT2.cjs +9 -0
- package/dist/rsalib-GGMEGQT2.cjs.map +1 -0
- package/dist/rsalib-HO4SSCTO.mjs +9 -0
- package/dist/rsalib-HO4SSCTO.mjs.map +1 -0
- package/dist/utils/index.cjs +81 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +100 -0
- package/dist/utils/index.d.ts +100 -0
- package/dist/utils/index.mjs +81 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +24 -4
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -101,18 +101,6 @@ declare const getMvInfo: (mvContentIds: string) => Promise<any>;
|
|
|
101
101
|
*/
|
|
102
102
|
declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
|
|
103
103
|
|
|
104
|
-
declare const loginNP: {
|
|
105
|
-
/**
|
|
106
|
-
* 账号密码登录
|
|
107
|
-
* @param username 用户名
|
|
108
|
-
* @param password 密码
|
|
109
|
-
* @returns 登录成功后的 pacmtoken
|
|
110
|
-
*/
|
|
111
|
-
authn(username: string, password: string): Promise<object | {
|
|
112
|
-
error: string;
|
|
113
|
-
}>;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
104
|
declare const checkToken: (token?: string) => Promise<any>;
|
|
117
105
|
|
|
118
106
|
/**
|
|
@@ -176,27 +164,6 @@ declare const getTodayRecommend: (pacmtoken: string) => Promise<{
|
|
|
176
164
|
newPacmToken: string;
|
|
177
165
|
}>;
|
|
178
166
|
|
|
179
|
-
declare const loginSim: {
|
|
180
|
-
simSend(phone: string): Promise<{
|
|
181
|
-
error: any;
|
|
182
|
-
sim_sessionid?: undefined;
|
|
183
|
-
} | {
|
|
184
|
-
sim_sessionid: any;
|
|
185
|
-
error?: undefined;
|
|
186
|
-
}>;
|
|
187
|
-
simQuery(sim_sessionid: string): Promise<{
|
|
188
|
-
token: any;
|
|
189
|
-
status: any;
|
|
190
|
-
error?: undefined;
|
|
191
|
-
body?: undefined;
|
|
192
|
-
} | {
|
|
193
|
-
error: any;
|
|
194
|
-
body: any;
|
|
195
|
-
token?: undefined;
|
|
196
|
-
status?: undefined;
|
|
197
|
-
}>;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
167
|
/**
|
|
201
168
|
* 获取用户收藏列表
|
|
202
169
|
* @param pacmtoken 用户token
|
|
@@ -234,70 +201,6 @@ declare const getSingerSimilar: (singerId: string) => Promise<any>;
|
|
|
234
201
|
*/
|
|
235
202
|
declare const getSimilarSongRecommend: (contentId?: string) => Promise<any>;
|
|
236
203
|
|
|
237
|
-
type LoginOneClickData = {
|
|
238
|
-
version: string;
|
|
239
|
-
appId: string;
|
|
240
|
-
openType: string;
|
|
241
|
-
expandParams: string;
|
|
242
|
-
isTest: boolean;
|
|
243
|
-
sign: string;
|
|
244
|
-
getNetworkType: string;
|
|
245
|
-
getMsisdnMask: string;
|
|
246
|
-
traceId: string;
|
|
247
|
-
msgId: string;
|
|
248
|
-
timestamp: string;
|
|
249
|
-
uuid: string;
|
|
250
|
-
businessType: string;
|
|
251
|
-
userInformations: string;
|
|
252
|
-
};
|
|
253
|
-
/**
|
|
254
|
-
* 调用方实际只需提供这些字段;其余字段由 getTokenInfo 内部补齐。
|
|
255
|
-
*/
|
|
256
|
-
type GetTokenInfoInput = Pick<LoginOneClickData, 'version' | 'appId' | 'openType' | 'expandParams' | 'isTest' | 'sign' | 'getNetworkType' | 'getMsisdnMask'>;
|
|
257
|
-
declare const YDRZ: {
|
|
258
|
-
optparams: {
|
|
259
|
-
uuid: string;
|
|
260
|
-
msgId: string;
|
|
261
|
-
traceId: string;
|
|
262
|
-
businessType: string;
|
|
263
|
-
appId: string;
|
|
264
|
-
timestamp: string;
|
|
265
|
-
isimge: boolean;
|
|
266
|
-
expandParams: string;
|
|
267
|
-
userInformations: string;
|
|
268
|
-
CMRequestApi: string;
|
|
269
|
-
};
|
|
270
|
-
randomString(len: number, range?: number): string;
|
|
271
|
-
randomRange(min: number, max: number): number;
|
|
272
|
-
getUA(): string;
|
|
273
|
-
uaE(str: string): string;
|
|
274
|
-
getUserInfo(): string;
|
|
275
|
-
getSign(appID: string, version: string): string;
|
|
276
|
-
getTokenInfo(data: GetTokenInfoInput): Promise<string | undefined>;
|
|
277
|
-
};
|
|
278
|
-
declare const loginOneClick: {
|
|
279
|
-
genInternetSign: () => Promise<string | undefined>;
|
|
280
|
-
getSTToken: (uniToken: string) => Promise<{
|
|
281
|
-
token: string;
|
|
282
|
-
msisdn: string;
|
|
283
|
-
status: string;
|
|
284
|
-
} | {
|
|
285
|
-
error: string;
|
|
286
|
-
}>;
|
|
287
|
-
authn: () => Promise<{
|
|
288
|
-
token: string;
|
|
289
|
-
msisdn: string;
|
|
290
|
-
status: string;
|
|
291
|
-
} | {
|
|
292
|
-
error: string;
|
|
293
|
-
}>;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
declare const loginPhone: {
|
|
297
|
-
getMsgCode(phone: string): Promise<any>;
|
|
298
|
-
authn(phone: string, msgCode: string): Promise<any>;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
204
|
/**
|
|
302
205
|
* 获取相似MV推荐
|
|
303
206
|
* @param mvContentId MV视频ID
|
|
@@ -314,36 +217,6 @@ declare const getSquarePage: () => Promise<any>;
|
|
|
314
217
|
|
|
315
218
|
declare const searchLrc: (text: string, page?: number) => Promise<any>;
|
|
316
219
|
|
|
317
|
-
/**
|
|
318
|
-
* 获取呢喃歌曲列表
|
|
319
|
-
* @returns 呢喃歌曲列表
|
|
320
|
-
*/
|
|
321
|
-
declare const getNinanSong: () => Promise<any>;
|
|
322
|
-
/**
|
|
323
|
-
* 获取某天的呢喃歌曲
|
|
324
|
-
* @param date - 日期 格式为 YYYYMMDD
|
|
325
|
-
* @returns 呢喃歌曲列表
|
|
326
|
-
*/
|
|
327
|
-
declare const getNinanByDate: (date: string) => Promise<any>;
|
|
328
|
-
/**
|
|
329
|
-
* 呢喃签到
|
|
330
|
-
* @param pacmtoken - 用户认证 token
|
|
331
|
-
* @returns 签到结果和新的 pacmtoken
|
|
332
|
-
*/
|
|
333
|
-
declare const signNinan: (pacmtoken: string) => Promise<{
|
|
334
|
-
data: any;
|
|
335
|
-
newPacmToken: string;
|
|
336
|
-
}>;
|
|
337
|
-
/**
|
|
338
|
-
* 获取呢喃签到信息
|
|
339
|
-
* @param pacmtoken - 用户认证 token
|
|
340
|
-
* @returns 签到信息和新的 pacmtoken
|
|
341
|
-
*/
|
|
342
|
-
declare const getNinanSignInfo: (pacmtoken: string) => Promise<{
|
|
343
|
-
data: any;
|
|
344
|
-
newPacmToken: string;
|
|
345
|
-
}>;
|
|
346
|
-
|
|
347
220
|
/**
|
|
348
221
|
* 获取电台推荐 (所有电台)
|
|
349
222
|
* 私人FM(上瘾电台、听见不同),时序电台,分类电台,乐游播客,YOU乐电台
|
|
@@ -396,7 +269,7 @@ declare const getVrbtOpNum: (contentIds: string) => Promise<any>;
|
|
|
396
269
|
*/
|
|
397
270
|
declare const getVrbtUrl: (contentIds: string) => Promise<any>;
|
|
398
271
|
|
|
399
|
-
|
|
272
|
+
/** 获取逐行歌词(自建)
|
|
400
273
|
* @param contentId 单个歌曲ID,
|
|
401
274
|
* @param type 歌词类型,逗号分隔,默认lrc
|
|
402
275
|
* @returns 歌词文本
|
|
@@ -408,8 +281,6 @@ declare const getLyric: (contentId: string, type?: string) => Promise<{
|
|
|
408
281
|
data?: undefined;
|
|
409
282
|
lrc?: undefined;
|
|
410
283
|
lrcUrl?: undefined;
|
|
411
|
-
mrc?: undefined;
|
|
412
|
-
mrcUrl?: undefined;
|
|
413
284
|
trc?: undefined;
|
|
414
285
|
trcUrl?: undefined;
|
|
415
286
|
} | {
|
|
@@ -419,8 +290,6 @@ declare const getLyric: (contentId: string, type?: string) => Promise<{
|
|
|
419
290
|
data?: undefined;
|
|
420
291
|
lrc?: undefined;
|
|
421
292
|
lrcUrl?: undefined;
|
|
422
|
-
mrc?: undefined;
|
|
423
|
-
mrcUrl?: undefined;
|
|
424
293
|
trc?: undefined;
|
|
425
294
|
trcUrl?: undefined;
|
|
426
295
|
} | {
|
|
@@ -430,16 +299,12 @@ declare const getLyric: (contentId: string, type?: string) => Promise<{
|
|
|
430
299
|
status?: undefined;
|
|
431
300
|
lrc?: undefined;
|
|
432
301
|
lrcUrl?: undefined;
|
|
433
|
-
mrc?: undefined;
|
|
434
|
-
mrcUrl?: undefined;
|
|
435
302
|
trc?: undefined;
|
|
436
303
|
trcUrl?: undefined;
|
|
437
304
|
} | {
|
|
438
305
|
success: boolean;
|
|
439
306
|
lrc: any;
|
|
440
307
|
lrcUrl: any;
|
|
441
|
-
mrc: string | undefined;
|
|
442
|
-
mrcUrl: any;
|
|
443
308
|
trc: any;
|
|
444
309
|
trcUrl: any;
|
|
445
310
|
error?: undefined;
|
|
@@ -1003,43 +868,6 @@ declare const getSingerLetter: (singerId: string, pageId?: string) => Promise<an
|
|
|
1003
868
|
*/
|
|
1004
869
|
declare const getSingerMv: (singerId: string, page?: number) => Promise<any>;
|
|
1005
870
|
|
|
1006
|
-
/**
|
|
1007
|
-
* AI豆签到
|
|
1008
|
-
* @param pacmtoken - 用户认证 token
|
|
1009
|
-
* @returns 签到结果和新的 pacmtoken
|
|
1010
|
-
*/
|
|
1011
|
-
declare const signAiBean: (pacmtoken: string) => Promise<{
|
|
1012
|
-
data: any;
|
|
1013
|
-
newPacmToken: string;
|
|
1014
|
-
}>;
|
|
1015
|
-
/**
|
|
1016
|
-
* 获取AI豆数量
|
|
1017
|
-
* @param pacmtoken - 用户认证 token
|
|
1018
|
-
* @returns AI豆数量
|
|
1019
|
-
*/
|
|
1020
|
-
declare const getAiBeanCount: (pacmtoken: string) => Promise<{
|
|
1021
|
-
data: any;
|
|
1022
|
-
newPacmToken: string;
|
|
1023
|
-
}>;
|
|
1024
|
-
/**
|
|
1025
|
-
* 获取AI豆签到状态
|
|
1026
|
-
* @param pacmtoken - 用户认证 token
|
|
1027
|
-
* @returns AI豆签到状态
|
|
1028
|
-
*/
|
|
1029
|
-
declare const getAiBeanSignStatus: (pacmtoken: string) => Promise<{
|
|
1030
|
-
data: any;
|
|
1031
|
-
newPacmToken: string;
|
|
1032
|
-
}>;
|
|
1033
|
-
/**
|
|
1034
|
-
* AI豆-获取一天的天籁会员
|
|
1035
|
-
* @param pacmtoken - 用户认证 token
|
|
1036
|
-
* @returns AI豆数量
|
|
1037
|
-
*/
|
|
1038
|
-
declare const redeemAiBean: (pacmtoken: string) => Promise<{
|
|
1039
|
-
data: any;
|
|
1040
|
-
newPacmToken: string;
|
|
1041
|
-
}>;
|
|
1042
|
-
|
|
1043
871
|
/**
|
|
1044
872
|
* 获取云盘音乐下载地址
|
|
1045
873
|
* @param pacmtoken 用户token
|
|
@@ -1113,8 +941,6 @@ declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
|
|
|
1113
941
|
*/
|
|
1114
942
|
declare const getSongInfo: (contentIds: string) => Promise<any>;
|
|
1115
943
|
|
|
1116
|
-
declare const getActivities: () => Promise<any>;
|
|
1117
|
-
|
|
1118
944
|
/**
|
|
1119
945
|
* 查询已购歌曲
|
|
1120
946
|
* @param pacmtoken 用户token
|
|
@@ -1153,242 +979,4 @@ declare const getDAlbumSong: (dAlbumId: string) => Promise<any>;
|
|
|
1153
979
|
*/
|
|
1154
980
|
declare const getDAlbumPay: (dAlbumId: string) => Promise<any>;
|
|
1155
981
|
|
|
1156
|
-
|
|
1157
|
-
* modules 子目录统一入口
|
|
1158
|
-
* 汇总导出所有 API 函数
|
|
1159
|
-
*/
|
|
1160
|
-
|
|
1161
|
-
declare const api_YDRZ: typeof YDRZ;
|
|
1162
|
-
declare const api_addFollower: typeof addFollower;
|
|
1163
|
-
declare const api_addSongToMyList: typeof addSongToMyList;
|
|
1164
|
-
declare const api_addUserCollect: typeof addUserCollect;
|
|
1165
|
-
declare const api_addUserMyList: typeof addUserMyList;
|
|
1166
|
-
declare const api_checkCanListen: typeof checkCanListen;
|
|
1167
|
-
declare const api_checkToken: typeof checkToken;
|
|
1168
|
-
declare const api_deleteCloudMusic: typeof deleteCloudMusic;
|
|
1169
|
-
declare const api_deleteComment: typeof deleteComment;
|
|
1170
|
-
declare const api_dislikeSong: typeof dislikeSong;
|
|
1171
|
-
declare const api_editUserMyList: typeof editUserMyList;
|
|
1172
|
-
declare const api_emojiAction: typeof emojiAction;
|
|
1173
|
-
declare const api_getActivities: typeof getActivities;
|
|
1174
|
-
declare const api_getAiBeanCount: typeof getAiBeanCount;
|
|
1175
|
-
declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
|
|
1176
|
-
declare const api_getAlbumInfo: typeof getAlbumInfo;
|
|
1177
|
-
declare const api_getAlbumSong: typeof getAlbumSong;
|
|
1178
|
-
declare const api_getCloudDLUrl: typeof getCloudDLUrl;
|
|
1179
|
-
declare const api_getCloudUploadUrl: typeof getCloudUploadUrl;
|
|
1180
|
-
declare const api_getCloudUrl: typeof getCloudUrl;
|
|
1181
|
-
declare const api_getColumnInfo: typeof getColumnInfo;
|
|
1182
|
-
declare const api_getComment: typeof getComment;
|
|
1183
|
-
declare const api_getConcertComment: typeof getConcertComment;
|
|
1184
|
-
declare const api_getConcertDetail: typeof getConcertDetail;
|
|
1185
|
-
declare const api_getConcertInfo: typeof getConcertInfo;
|
|
1186
|
-
declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
|
|
1187
|
-
declare const api_getConcertUrl: typeof getConcertUrl;
|
|
1188
|
-
declare const api_getDAlbumInfo: typeof getDAlbumInfo;
|
|
1189
|
-
declare const api_getDAlbumPay: typeof getDAlbumPay;
|
|
1190
|
-
declare const api_getDAlbumSong: typeof getDAlbumSong;
|
|
1191
|
-
declare const api_getDLUrlV1: typeof getDLUrlV1;
|
|
1192
|
-
declare const api_getEmojiNum: typeof getEmojiNum;
|
|
1193
|
-
declare const api_getFollowerList: typeof getFollowerList;
|
|
1194
|
-
declare const api_getFollowingList: typeof getFollowingList;
|
|
1195
|
-
declare const api_getFollowingVra: typeof getFollowingVra;
|
|
1196
|
-
declare const api_getInteractionMsg: typeof getInteractionMsg;
|
|
1197
|
-
declare const api_getListenFreelySongs: typeof getListenFreelySongs;
|
|
1198
|
-
declare const api_getListenFreelyTab: typeof getListenFreelyTab;
|
|
1199
|
-
declare const api_getListenRank: typeof getListenRank;
|
|
1200
|
-
declare const api_getLyric: typeof getLyric;
|
|
1201
|
-
declare const api_getMVRecommend: typeof getMVRecommend;
|
|
1202
|
-
declare const api_getMvBySong: typeof getMvBySong;
|
|
1203
|
-
declare const api_getMvHls: typeof getMvHls;
|
|
1204
|
-
declare const api_getMvInfo: typeof getMvInfo;
|
|
1205
|
-
declare const api_getNewCDList: typeof getNewCDList;
|
|
1206
|
-
declare const api_getNewSongList: typeof getNewSongList;
|
|
1207
|
-
declare const api_getNinanByDate: typeof getNinanByDate;
|
|
1208
|
-
declare const api_getNinanSignInfo: typeof getNinanSignInfo;
|
|
1209
|
-
declare const api_getNinanSong: typeof getNinanSong;
|
|
1210
|
-
declare const api_getNoticeMsg: typeof getNoticeMsg;
|
|
1211
|
-
declare const api_getOpNum: typeof getOpNum;
|
|
1212
|
-
declare const api_getPacmToken: typeof getPacmToken;
|
|
1213
|
-
declare const api_getPageInfo: typeof getPageInfo;
|
|
1214
|
-
declare const api_getPageTab: typeof getPageTab;
|
|
1215
|
-
declare const api_getPlaylistInfo: typeof getPlaylistInfo;
|
|
1216
|
-
declare const api_getPlaylistSong: typeof getPlaylistSong;
|
|
1217
|
-
declare const api_getRadioRecommend: typeof getRadioRecommend;
|
|
1218
|
-
declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
|
|
1219
|
-
declare const api_getRadioSong: typeof getRadioSong;
|
|
1220
|
-
declare const api_getRankIndex: typeof getRankIndex;
|
|
1221
|
-
declare const api_getRankInfo: typeof getRankInfo;
|
|
1222
|
-
declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
|
|
1223
|
-
declare const api_getRedirectUrl: typeof getRedirectUrl;
|
|
1224
|
-
declare const api_getResourceInfo: typeof getResourceInfo;
|
|
1225
|
-
declare const api_getSVideoInfo: typeof getSVideoInfo;
|
|
1226
|
-
declare const api_getSVideoRecommend: typeof getSVideoRecommend;
|
|
1227
|
-
declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
|
|
1228
|
-
declare const api_getSVideoUrl: typeof getSVideoUrl;
|
|
1229
|
-
declare const api_getSVideoUserContent: typeof getSVideoUserContent;
|
|
1230
|
-
declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
|
|
1231
|
-
declare const api_getSceneRecommend: typeof getSceneRecommend;
|
|
1232
|
-
declare const api_getSearchDefault: typeof getSearchDefault;
|
|
1233
|
-
declare const api_getSearchHot: typeof getSearchHot;
|
|
1234
|
-
declare const api_getSearchSingerTab: typeof getSearchSingerTab;
|
|
1235
|
-
declare const api_getSearchSingerTabList: typeof getSearchSingerTabList;
|
|
1236
|
-
declare const api_getSimilarSongRecommend: typeof getSimilarSongRecommend;
|
|
1237
|
-
declare const api_getSingerAlbum: typeof getSingerAlbum;
|
|
1238
|
-
declare const api_getSingerIndex: typeof getSingerIndex;
|
|
1239
|
-
declare const api_getSingerLetter: typeof getSingerLetter;
|
|
1240
|
-
declare const api_getSingerMv: typeof getSingerMv;
|
|
1241
|
-
declare const api_getSingerSimilar: typeof getSingerSimilar;
|
|
1242
|
-
declare const api_getSingerSong: typeof getSingerSong;
|
|
1243
|
-
declare const api_getSongInfo: typeof getSongInfo;
|
|
1244
|
-
declare const api_getSquareListByTag: typeof getSquareListByTag;
|
|
1245
|
-
declare const api_getSquarePage: typeof getSquarePage;
|
|
1246
|
-
declare const api_getSquareRecommend: typeof getSquareRecommend;
|
|
1247
|
-
declare const api_getSquareTag: typeof getSquareTag;
|
|
1248
|
-
declare const api_getThumbsMsg: typeof getThumbsMsg;
|
|
1249
|
-
declare const api_getTicketInfo: typeof getTicketInfo;
|
|
1250
|
-
declare const api_getTodayRecommend: typeof getTodayRecommend;
|
|
1251
|
-
declare const api_getUrlH5V24: typeof getUrlH5V24;
|
|
1252
|
-
declare const api_getUrlM2: typeof getUrlM2;
|
|
1253
|
-
declare const api_getUrlV1: typeof getUrlV1;
|
|
1254
|
-
declare const api_getUrlV2: typeof getUrlV2;
|
|
1255
|
-
declare const api_getUserAudioBook: typeof getUserAudioBook;
|
|
1256
|
-
declare const api_getUserBadge: typeof getUserBadge;
|
|
1257
|
-
declare const api_getUserCollectList: typeof getUserCollectList;
|
|
1258
|
-
declare const api_getUserHeader: typeof getUserHeader;
|
|
1259
|
-
declare const api_getUserHeartthrob: typeof getUserHeartthrob;
|
|
1260
|
-
declare const api_getUserHomePage: typeof getUserHomePage;
|
|
1261
|
-
declare const api_getUserMyList: typeof getUserMyList;
|
|
1262
|
-
declare const api_getUserOrdered: typeof getUserOrdered;
|
|
1263
|
-
declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
|
|
1264
|
-
declare const api_getUserSongPage: typeof getUserSongPage;
|
|
1265
|
-
declare const api_getVersion: typeof getVersion;
|
|
1266
|
-
declare const api_getVipPlaylist: typeof getVipPlaylist;
|
|
1267
|
-
declare const api_getVrbtOpNum: typeof getVrbtOpNum;
|
|
1268
|
-
declare const api_getVrbtUrl: typeof getVrbtUrl;
|
|
1269
|
-
declare const api_isFollowAuthor: typeof isFollowAuthor;
|
|
1270
|
-
declare const api_likeSong: typeof likeSong;
|
|
1271
|
-
declare const api_loginNP: typeof loginNP;
|
|
1272
|
-
declare const api_loginOneClick: typeof loginOneClick;
|
|
1273
|
-
declare const api_loginPhone: typeof loginPhone;
|
|
1274
|
-
declare const api_loginSim: typeof loginSim;
|
|
1275
|
-
declare const api_logout: typeof logout;
|
|
1276
|
-
declare const api_matchPlaylist: typeof matchPlaylist;
|
|
1277
|
-
declare const api_queryUserInfo: typeof queryUserInfo;
|
|
1278
|
-
declare const api_redeemAiBean: typeof redeemAiBean;
|
|
1279
|
-
declare const api_removeFollower: typeof removeFollower;
|
|
1280
|
-
declare const api_removeSongFromMyList: typeof removeSongFromMyList;
|
|
1281
|
-
declare const api_removeUserCollect: typeof removeUserCollect;
|
|
1282
|
-
declare const api_removeUserMyList: typeof removeUserMyList;
|
|
1283
|
-
declare const api_searchAlbum: typeof searchAlbum;
|
|
1284
|
-
declare const api_searchConcert: typeof searchConcert;
|
|
1285
|
-
declare const api_searchLrc: typeof searchLrc;
|
|
1286
|
-
declare const api_searchMv: typeof searchMv;
|
|
1287
|
-
declare const api_searchPlaylist: typeof searchPlaylist;
|
|
1288
|
-
declare const api_searchRbt: typeof searchRbt;
|
|
1289
|
-
declare const api_searchSVideo: typeof searchSVideo;
|
|
1290
|
-
declare const api_searchSinger: typeof searchSinger;
|
|
1291
|
-
declare const api_searchSong: typeof searchSong;
|
|
1292
|
-
declare const api_searchSuggest: typeof searchSuggest;
|
|
1293
|
-
declare const api_searchTicket: typeof searchTicket;
|
|
1294
|
-
declare const api_shareCommon: typeof shareCommon;
|
|
1295
|
-
declare const api_shareVideo: typeof shareVideo;
|
|
1296
|
-
declare const api_signAiBean: typeof signAiBean;
|
|
1297
|
-
declare const api_signNinan: typeof signNinan;
|
|
1298
|
-
declare namespace api {
|
|
1299
|
-
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_deleteCloudMusic as deleteCloudMusic, api_deleteComment as deleteComment, api_dislikeSong as dislikeSong, api_editUserMyList as editUserMyList, api_emojiAction as emojiAction, api_getActivities as getActivities, api_getAiBeanCount as getAiBeanCount, api_getAiBeanSignStatus as getAiBeanSignStatus, api_getAlbumInfo as getAlbumInfo, api_getAlbumSong as getAlbumSong, api_getCloudDLUrl as getCloudDLUrl, api_getCloudUploadUrl as getCloudUploadUrl, api_getCloudUrl as getCloudUrl, 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_getDAlbumInfo as getDAlbumInfo, api_getDAlbumPay as getDAlbumPay, api_getDAlbumSong as getDAlbumSong, api_getDLUrlV1 as getDLUrlV1, api_getEmojiNum as getEmojiNum, api_getFollowerList as getFollowerList, api_getFollowingList as getFollowingList, api_getFollowingVra as getFollowingVra, api_getInteractionMsg as getInteractionMsg, api_getListenFreelySongs as getListenFreelySongs, api_getListenFreelyTab as getListenFreelyTab, api_getListenRank as getListenRank, 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_getNoticeMsg as getNoticeMsg, 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_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_getSingerLetter as getSingerLetter, api_getSingerMv as getSingerMv, api_getSingerSimilar as getSingerSimilar, api_getSingerSong as getSingerSong, api_getSongInfo as getSongInfo, api_getSquareListByTag as getSquareListByTag, api_getSquarePage as getSquarePage, api_getSquareRecommend as getSquareRecommend, api_getSquareTag as getSquareTag, api_getThumbsMsg as getThumbsMsg, api_getTicketInfo as getTicketInfo, api_getTodayRecommend as getTodayRecommend, api_getUrlH5V24 as getUrlH5V24, api_getUrlM2 as getUrlM2, api_getUrlV1 as getUrlV1, api_getUrlV2 as getUrlV2, api_getUserAudioBook as getUserAudioBook, api_getUserBadge as getUserBadge, api_getUserCollectList as getUserCollectList, api_getUserHeader as getUserHeader, api_getUserHeartthrob as getUserHeartthrob, api_getUserHomePage as getUserHomePage, api_getUserMyList as getUserMyList, api_getUserOrdered as getUserOrdered, api_getUserPhoneInfo as getUserPhoneInfo, 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_redeemAiBean as redeemAiBean, 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_searchPlaylist as searchPlaylist, 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_signAiBean as signAiBean, api_signNinan as signNinan };
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
declare function getDeviceId(a?: number, b?: number): string;
|
|
1303
|
-
|
|
1304
|
-
declare const getPublicKey: () => Promise<{
|
|
1305
|
-
publicExponent: string;
|
|
1306
|
-
modulus: string;
|
|
1307
|
-
}>;
|
|
1308
|
-
|
|
1309
|
-
declare class RSAKey {
|
|
1310
|
-
private publicKey;
|
|
1311
|
-
setPublic(modulus: string, exponent: string): void;
|
|
1312
|
-
encrypt(text: string): string | null;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
declare function URLParams($: object | string): string;
|
|
1316
|
-
|
|
1317
|
-
declare const qualityList: readonly ["LQ", "PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D", "3D60"];
|
|
1318
|
-
type Quality = (typeof qualityList)[number];
|
|
1319
|
-
declare const toneUrl: {
|
|
1320
|
-
LQ: string;
|
|
1321
|
-
PQ: string;
|
|
1322
|
-
HQ: string;
|
|
1323
|
-
SQ: string;
|
|
1324
|
-
ZQ24: string;
|
|
1325
|
-
ZQ32: string;
|
|
1326
|
-
Z3D: string;
|
|
1327
|
-
'3D60': string;
|
|
1328
|
-
};
|
|
1329
|
-
declare const toneFormat: {
|
|
1330
|
-
LQ: string;
|
|
1331
|
-
PQ: string;
|
|
1332
|
-
HQ: string;
|
|
1333
|
-
SQ: string;
|
|
1334
|
-
ZQ24: string;
|
|
1335
|
-
ZQ32: string;
|
|
1336
|
-
Z3D: string;
|
|
1337
|
-
'3D60': string;
|
|
1338
|
-
};
|
|
1339
|
-
declare function isQuality(quality: string | undefined): quality is Quality;
|
|
1340
|
-
declare function getQuality(url: string): Quality | '';
|
|
1341
|
-
declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
|
|
1342
|
-
|
|
1343
|
-
declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "5" | "2002" | "2016" | "6000" | "D" | "M";
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* MRC 解密入口:将十六进制密文解密为明文字符串
|
|
1347
|
-
*/
|
|
1348
|
-
declare function decryptMrc(data: string): string;
|
|
1349
|
-
declare function toWordTime(times: string): string;
|
|
1350
|
-
/**
|
|
1351
|
-
* 格式化 MRC 歌词为标准 LRC 格式
|
|
1352
|
-
* @param data MRC 歌词字符串
|
|
1353
|
-
* @returns 标准LRC
|
|
1354
|
-
*/
|
|
1355
|
-
declare function formatMrc(data: string): string;
|
|
1356
|
-
|
|
1357
|
-
type index_Quality = Quality;
|
|
1358
|
-
type index_RSAKey = RSAKey;
|
|
1359
|
-
declare const index_RSAKey: typeof RSAKey;
|
|
1360
|
-
declare const index_URLParams: typeof URLParams;
|
|
1361
|
-
declare const index_changeQuality: typeof changeQuality;
|
|
1362
|
-
declare const index_decryptMrc: typeof decryptMrc;
|
|
1363
|
-
declare const index_formatMrc: typeof formatMrc;
|
|
1364
|
-
declare const index_getDeviceId: typeof getDeviceId;
|
|
1365
|
-
declare const index_getPublicKey: typeof getPublicKey;
|
|
1366
|
-
declare const index_getQuality: typeof getQuality;
|
|
1367
|
-
declare const index_getResourceId: typeof getResourceId;
|
|
1368
|
-
declare const index_isQuality: typeof isQuality;
|
|
1369
|
-
declare const index_qualityList: typeof qualityList;
|
|
1370
|
-
declare const index_toWordTime: typeof toWordTime;
|
|
1371
|
-
declare const index_toneFormat: typeof toneFormat;
|
|
1372
|
-
declare const index_toneUrl: typeof toneUrl;
|
|
1373
|
-
declare namespace index {
|
|
1374
|
-
export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, index_decryptMrc as decryptMrc, index_formatMrc as formatMrc, 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_toWordTime as toWordTime, index_toneFormat as toneFormat, index_toneUrl as toneUrl };
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* migu-api-enhanced 包入口
|
|
1379
|
-
* 直接复用 modules 导出,提供 createClient 工厂
|
|
1380
|
-
*/
|
|
1381
|
-
|
|
1382
|
-
type ExpandedApi<T> = {
|
|
1383
|
-
[P in keyof T]: T[P];
|
|
1384
|
-
};
|
|
1385
|
-
/**
|
|
1386
|
-
* 创建一个咪咕 API 客户端实例
|
|
1387
|
-
* 返回对象包含所有 API 方法(直接复用 modules 函数)
|
|
1388
|
-
* @returns 包含所有 API 方法的对象
|
|
1389
|
-
*/
|
|
1390
|
-
declare function createClient(): ExpandedApi<typeof api>;
|
|
1391
|
-
/** 客户端类型 */
|
|
1392
|
-
type MiguClient = ReturnType<typeof createClient>;
|
|
1393
|
-
|
|
1394
|
-
export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, decryptMrc, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, formatMrc, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDAlbumInfo, getDAlbumPay, getDAlbumSong, getDLUrlV1, getDeviceId, getEmojiNum, getFollowerList, getFollowingList, getFollowingVra, getInteractionMsg, getListenFreelySongs, getListenFreelyTab, getListenRank, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNinanByDate, getNinanSignInfo, getNinanSong, getNoticeMsg, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, 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, getSingerLetter, getSingerMv, getSingerSimilar, getSingerSong, getSongInfo, getSquareListByTag, getSquarePage, getSquareRecommend, getSquareTag, getThumbsMsg, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlM2, getUrlV1, getUrlV2, getUserAudioBook, getUserBadge, getUserCollectList, getUserHeader, getUserHeartthrob, getUserHomePage, getUserMyList, getUserOrdered, getUserPhoneInfo, getUserSongPage, getVersion, getVipPlaylist, getVrbtOpNum, getVrbtUrl, isFollowAuthor, isQuality, likeSong, loginNP, loginOneClick, loginPhone, loginSim, logout, matchPlaylist, api as modules, qualityList, queryUserInfo, redeemAiBean, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchPlaylist, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan, toWordTime, toneFormat, toneUrl };
|
|
982
|
+
export { addFollower, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, getDAlbumInfo, getDAlbumPay, getDAlbumSong, getDLUrlV1, getEmojiNum, getFollowerList, getFollowingList, getFollowingVra, getInteractionMsg, getListenFreelySongs, getListenFreelyTab, getListenRank, getLyric, getMVRecommend, getMvBySong, getMvHls, getMvInfo, getNewCDList, getNewSongList, getNoticeMsg, getOpNum, getPacmToken, getPageInfo, getPageTab, getPlaylistInfo, getPlaylistSong, getRadioRecommend, getRadioRecommendAll, getRadioSong, getRankIndex, getRankInfo, getRecommendPlaylist, getRedirectUrl, getResourceInfo, getSVideoInfo, getSVideoRecommend, getSVideoSearchSuggest, getSVideoUrl, getSVideoUserContent, getSVideoUserInfo, getSceneRecommend, getSearchDefault, getSearchHot, getSearchSingerTab, getSearchSingerTabList, getSimilarSongRecommend, getSingerAlbum, getSingerIndex, getSingerLetter, getSingerMv, getSingerSimilar, getSingerSong, getSongInfo, getSquareListByTag, getSquarePage, getSquareRecommend, getSquareTag, getThumbsMsg, getTicketInfo, getTodayRecommend, getUrlH5V24, getUrlM2, getUrlV1, getUrlV2, getUserAudioBook, getUserBadge, getUserCollectList, getUserHeader, getUserHeartthrob, getUserHomePage, getUserMyList, getUserOrdered, getUserPhoneInfo, getUserSongPage, getVersion, getVipPlaylist, getVrbtOpNum, getVrbtUrl, isFollowAuthor, likeSong, logout, matchPlaylist, queryUserInfo, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchPlaylist, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo };
|