migu-api-enhanced 2.27.1 → 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.
Files changed (89) hide show
  1. package/README.md +10 -5
  2. package/dist/YDRZ-HSTSW5FC.mjs +11 -0
  3. package/dist/YDRZ-HSTSW5FC.mjs.map +1 -0
  4. package/dist/YDRZ-KF4GXM2T.cjs +11 -0
  5. package/dist/YDRZ-KF4GXM2T.cjs.map +1 -0
  6. package/dist/activity/index.cjs +85 -0
  7. package/dist/activity/index.cjs.map +1 -0
  8. package/dist/activity/index.d.cts +70 -0
  9. package/dist/activity/index.d.ts +70 -0
  10. package/dist/activity/index.mjs +85 -0
  11. package/dist/activity/index.mjs.map +1 -0
  12. package/dist/chunk-4M7T22TX.mjs +21 -0
  13. package/dist/chunk-4M7T22TX.mjs.map +1 -0
  14. package/dist/chunk-AJYZYXNE.mjs +18 -0
  15. package/dist/chunk-AJYZYXNE.mjs.map +1 -0
  16. package/dist/chunk-C56WQXBU.cjs +13 -0
  17. package/dist/chunk-C56WQXBU.cjs.map +1 -0
  18. package/dist/chunk-EIM46AX6.mjs +144 -0
  19. package/dist/chunk-EIM46AX6.mjs.map +1 -0
  20. package/dist/chunk-H6YB76CZ.mjs +95 -0
  21. package/dist/chunk-H6YB76CZ.mjs.map +1 -0
  22. package/dist/chunk-HDGZY5R6.mjs +13 -0
  23. package/dist/chunk-HDGZY5R6.mjs.map +1 -0
  24. package/dist/chunk-ILRMRBMK.cjs +71 -0
  25. package/dist/chunk-ILRMRBMK.cjs.map +1 -0
  26. package/dist/chunk-JOOWMEQP.cjs +95 -0
  27. package/dist/chunk-JOOWMEQP.cjs.map +1 -0
  28. package/dist/chunk-JXEQGZBM.cjs +21 -0
  29. package/dist/chunk-JXEQGZBM.cjs.map +1 -0
  30. package/dist/chunk-KGXC32BN.cjs +185 -0
  31. package/dist/chunk-KGXC32BN.cjs.map +1 -0
  32. package/dist/chunk-QEH62Z4S.cjs +18 -0
  33. package/dist/chunk-QEH62Z4S.cjs.map +1 -0
  34. package/dist/chunk-QMBC3CRQ.mjs +51 -0
  35. package/dist/chunk-QMBC3CRQ.mjs.map +1 -0
  36. package/dist/chunk-QTK2O5KQ.mjs +71 -0
  37. package/dist/chunk-QTK2O5KQ.mjs.map +1 -0
  38. package/dist/chunk-RI7PQIHG.cjs +144 -0
  39. package/dist/chunk-RI7PQIHG.cjs.map +1 -0
  40. package/dist/chunk-TIKOSETY.cjs +51 -0
  41. package/dist/chunk-TIKOSETY.cjs.map +1 -0
  42. package/dist/chunk-VE3TRZRD.mjs +185 -0
  43. package/dist/chunk-VE3TRZRD.mjs.map +1 -0
  44. package/dist/decryptMrc-EGKXYBTB.mjs +11 -0
  45. package/dist/decryptMrc-EGKXYBTB.mjs.map +1 -0
  46. package/dist/decryptMrc-OOH5UIFN.cjs +11 -0
  47. package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -0
  48. package/dist/index.cjs +1577 -26
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +982 -2
  51. package/dist/index.d.ts +982 -2
  52. package/dist/{modules/index.js → index.mjs} +43 -958
  53. package/dist/index.mjs.map +1 -0
  54. package/dist/login/index.cjs +315 -0
  55. package/dist/login/index.cjs.map +1 -0
  56. package/dist/login/index.d.cts +57 -0
  57. package/dist/login/index.d.ts +57 -0
  58. package/dist/login/index.mjs +315 -0
  59. package/dist/login/index.mjs.map +1 -0
  60. package/dist/mrc/index.cjs +39 -0
  61. package/dist/mrc/index.cjs.map +1 -0
  62. package/dist/mrc/index.d.cts +37 -0
  63. package/dist/mrc/index.d.ts +37 -0
  64. package/dist/mrc/index.mjs +39 -0
  65. package/dist/mrc/index.mjs.map +1 -0
  66. package/dist/publicKey-D2LR2HGH.cjs +8 -0
  67. package/dist/publicKey-D2LR2HGH.cjs.map +1 -0
  68. package/dist/publicKey-YCVYQ54R.mjs +8 -0
  69. package/dist/publicKey-YCVYQ54R.mjs.map +1 -0
  70. package/dist/rsalib-GGMEGQT2.cjs +9 -0
  71. package/dist/rsalib-GGMEGQT2.cjs.map +1 -0
  72. package/dist/rsalib-HO4SSCTO.mjs +9 -0
  73. package/dist/rsalib-HO4SSCTO.mjs.map +1 -0
  74. package/dist/utils/index.cjs +46 -421
  75. package/dist/utils/index.cjs.map +1 -1
  76. package/dist/utils/index.d.cts +46 -2
  77. package/dist/utils/index.d.ts +46 -2
  78. package/dist/utils/index.mjs +81 -0
  79. package/dist/utils/index.mjs.map +1 -0
  80. package/package.json +20 -10
  81. package/dist/index.js +0 -4
  82. package/dist/index.js.map +0 -1
  83. package/dist/modules/index.cjs +0 -2666
  84. package/dist/modules/index.cjs.map +0 -1
  85. package/dist/modules/index.d.cts +0 -1156
  86. package/dist/modules/index.d.ts +0 -1156
  87. package/dist/modules/index.js.map +0 -1
  88. package/dist/utils/index.js +0 -406
  89. package/dist/utils/index.js.map +0 -1
@@ -1,1156 +0,0 @@
1
- declare const searchSong: (text: string, page?: number) => Promise<any>;
2
-
3
- declare const searchPlaylist: (text: string, page?: number, typeOrder?: number) => Promise<any>;
4
-
5
- declare const searchAlbum: (text: string, page?: number, typeOrder?: number) => Promise<any>;
6
-
7
- declare const searchSinger: (text: string, page?: number) => Promise<any>;
8
-
9
- declare const searchConcert: (text: string, page?: number) => Promise<any>;
10
-
11
- declare const getSearchHot: () => Promise<any>;
12
-
13
- declare const getSearchDefault: () => Promise<any>;
14
-
15
- declare const searchMv: (text: string, page?: number, typeOrder?: number) => Promise<any>;
16
-
17
- declare const searchSuggest: (text: string) => Promise<any>;
18
-
19
- declare const searchRbt: (text: string, page?: number) => Promise<any>;
20
-
21
- declare const searchTicket: (text: string, page?: number) => Promise<any>;
22
-
23
- declare const getSearchSingerTab: () => Promise<any>;
24
-
25
- declare const getSearchSingerTabList: (tab?: string) => Promise<any>;
26
-
27
- declare const getAlbumInfo: (albumId: string) => Promise<any>;
28
-
29
- declare const getAlbumSong: (albumId: string, page?: number) => Promise<any>;
30
-
31
- declare const getPlaylistInfo: (playlistId: string) => Promise<any>;
32
-
33
- declare const getPlaylistSong: (playlistId: string, page?: number, size?: number) => Promise<any>;
34
-
35
- declare const getSingerIndex: (singerId: string) => Promise<any>;
36
-
37
- declare const getSingerSong: (singerId: string, page?: number) => Promise<any>;
38
-
39
- declare const getSingerAlbum: (singerId: string, page?: number) => Promise<any>;
40
-
41
- declare const getRankIndex: () => Promise<any>;
42
-
43
- declare const getRankInfo: (rankId: string, page?: number) => Promise<any>;
44
-
45
- declare const getRecommendPlaylist: () => Promise<any>;
46
-
47
- declare const getSceneRecommend: (scene?: string, size?: number) => Promise<any>;
48
-
49
- /**
50
- * 获取电台推荐 (主页电台)
51
- * @param type 1:上瘾电台 2:听见不同 <- 私人FM <-ALL
52
- * @returns
53
- */
54
- declare const getRadioRecommend: (type?: number) => Promise<any>;
55
-
56
- declare const getComment: (resourceId: string, resourceType?: number, // 2: 歌曲 D: MV
57
- size?: number, hotCommentStart?: number) => Promise<any>;
58
-
59
- /** 获取资源详情
60
- * @param resourceIds 资源ID列表,多个ID用|分隔 600919000007791840|600929000001520013
61
- * @param copyrightIds 版权ID列表,多个ID用|分隔 Copyright ID和resource ID可以二选一
62
- * @param resourceType 资源类型 2: 歌曲 2002:002: 艺术家
63
- */
64
- declare const getResourceInfo: (resourceIds?: string, copyrightIds?: string, resourceType?: number) => Promise<any>;
65
-
66
- /** 检查是否可以播放
67
- * @param contentIds 内容ID列表,逗号分隔
68
- * @return
69
- */
70
- declare const checkCanListen: (contentIds: string) => Promise<any>;
71
-
72
- declare const getOpNum: (ids: string) => Promise<any>;
73
-
74
- declare const getUrlV1: (contentId: string, copyrightId: string, toneFlag?: string, resourceType?: string) => Promise<any>;
75
-
76
- declare const getUrlV2: (contentId: string, copyrightId: string, toneFlag?: string, pacmtoken?: string) => Promise<any>;
77
-
78
- declare const getUrlH5V24: (contentId: string, copyrightId: string, toneFlag?: string) => Promise<any>;
79
-
80
- declare const getVersion: () => Promise<any>;
81
-
82
- /**
83
- * 获取MV视频信息
84
- * @param mvContentIds MV视频ID (逗号分隔)
85
- * @example
86
- * getMvInfo('600906000000476885,600906000000438741')
87
- * @returns MV视频信息
88
- */
89
- declare const getMvInfo: (mvContentIds: string) => Promise<any>;
90
-
91
- /**
92
- * 获取mv hls url
93
- *
94
- * @param mvContentId mv id
95
- * @param mvCopyrightId mv copyrightId
96
- * @param url mv url (url接口返回)
97
- * @param size mv size (url接口获取)
98
- * @param format mv format (url接口获取)
99
- * @param needHttps 是否需要https (默认true)
100
- * @returns JSON
101
- */
102
- declare const getMvHls: (mvContentId: string, mvCopyrightId: string, url: string, size: number, format?: string, needHttps?: boolean) => Promise<any>;
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
- declare const checkToken: (token?: string) => Promise<any>;
117
-
118
- /**
119
- * 获取 pacmtoken
120
- * @param token 登录token
121
- * @param type 类型
122
- * @param sourceId 来源ID
123
- * @param activityId 活动ID
124
- * @returns pacmtoken 和响应体
125
- */
126
- declare const getPacmToken: (token?: string, type?: string, sourceId?: string, activityId?: string) => Promise<{
127
- pacmToken: string;
128
- body: any;
129
- }>;
130
-
131
- /**
132
- * 获取票务信息
133
- * @param page 页码 可选 默认1
134
- * @param size 每页数量 可选 默认20
135
- * @returns 票务信息
136
- */
137
- declare const getTicketInfo: (page?: number, size?: number) => Promise<any>;
138
-
139
- /**
140
- * 获取用户徽章信息
141
- * @param pacmtoken 用户token
142
- * @returns 用户徽章信息和新的pacmtoken
143
- */
144
- declare const getUserBadge: (pacmtoken: string) => Promise<{
145
- data: any;
146
- newPacmToken: string;
147
- }>;
148
-
149
- /**
150
- * 查询用户信息
151
- * @param pacmtoken 用户token
152
- * @returns 用户信息和新的pacmtoken
153
- */
154
- declare const queryUserInfo: (pacmtoken: string) => Promise<{
155
- data: any;
156
- newPacmToken: string;
157
- }>;
158
-
159
- /**
160
- * 获取用户主页信息
161
- * @param pacmtoken 用户token
162
- * @returns 用户主页信息和新的pacmtoken
163
- */
164
- declare const getUserHomePage: (pacmtoken: string) => Promise<{
165
- data: any;
166
- newPacmToken: string;
167
- }>;
168
-
169
- /**
170
- * 获取今日推荐
171
- * @param pacmtoken 用户token
172
- * @returns 今日推荐列表和新的pacmtoken
173
- */
174
- declare const getTodayRecommend: (pacmtoken: string) => Promise<{
175
- data: any;
176
- newPacmToken: string;
177
- }>;
178
-
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
- /**
201
- * 获取用户收藏列表
202
- * @param pacmtoken 用户token
203
- * @param page 页码
204
- * @param size 每页大小
205
- * @returns 用户收藏列表和新的pacmtoken
206
- */
207
- declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
208
- data: any;
209
- newPacmToken: string;
210
- }>;
211
-
212
- /**
213
- * 获取用户播放列表
214
- * @param pacmtoken 用户token
215
- * @param queryType 查询类型
216
- * @param page 页码
217
- * @param size 每页大小
218
- * @returns 用户播放列表和新的pacmtoken
219
- */
220
- declare const getUserMyList: (pacmtoken: string, queryType?: number, page?: number, size?: number) => Promise<{
221
- data: any;
222
- newPacmToken: string;
223
- }>;
224
-
225
- /**
226
- * 获取相似歌手
227
- * @param singerId 歌手ID
228
- */
229
- declare const getSingerSimilar: (singerId: string) => Promise<any>;
230
-
231
- /**
232
- * 获取相似歌曲推荐
233
- * @param contentId 歌曲ID
234
- */
235
- declare const getSimilarSongRecommend: (contentId?: string) => Promise<any>;
236
-
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
- /**
302
- * 获取相似MV推荐
303
- * @param mvContentId MV视频ID
304
- * @param page 页码
305
- * @returns 相似列表
306
- */
307
- declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
308
-
309
- /**
310
- * 网页v5 歌单广场界面
311
- * @returns
312
- */
313
- declare const getSquarePage: () => Promise<any>;
314
-
315
- declare const searchLrc: (text: string, page?: number) => Promise<any>;
316
-
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
- /**
348
- * 获取电台推荐 (所有电台)
349
- * 私人FM(上瘾电台、听见不同),时序电台,分类电台,乐游播客,YOU乐电台
350
- * @param pacmtoken 可选-登录凭证,用于获取所有电台
351
- * @returns 电台推荐列表和新的pacmtoken
352
- */
353
- declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
354
- data: any;
355
- newPacmToken: string;
356
- }>;
357
-
358
- /**
359
- * 获取短视频详情
360
- * @param contentIds 短视频ID,多个ID用逗号分隔 (自动处理)
361
- * @returns 短视频详情
362
- */
363
- declare const getSVideoInfo: (contentIds: string) => Promise<any>;
364
-
365
- declare const searchSVideo: (text: string, page?: number) => Promise<any>;
366
-
367
- declare const getSVideoSearchSuggest: (text: string) => Promise<any>;
368
-
369
- /**
370
- * 获取短视频播放地址
371
- * @param contentIds 短视频ID,多个ID用,分隔 600985A00005943149,600985A00004881354
372
- * @param formatType 视频格式,HQ/PQ/SQ 若无自动降级 HQ默认
373
- * @returns 短视频播放地址
374
- */
375
- declare const getSVideoUrl: (contentIds: string, formatType?: string) => Promise<any>;
376
-
377
- /**
378
- * 获取用户短视频列表
379
- * @param videoUserId 用户ID
380
- * @param nextPageId 分页ID, 第一页时为空, 每个请求都会返回nextPageId
381
- * @returns 用户短视频列表
382
- */
383
- declare const getSVideoUserContent: (videoUserId: string, nextPageId?: string) => Promise<any>;
384
-
385
- /**
386
- * 获取视频播放次数
387
- * @param contentIds 视频ID列表,逗号分隔 600926000022458628,600926000002564425
388
- * @returns 视频播放次数列表
389
- */
390
- declare const getVrbtOpNum: (contentIds: string) => Promise<any>;
391
-
392
- /**
393
- * 获取视频彩铃播放URL
394
- * @param contentIds 视频ID列表,,分隔
395
- * @returns 视频播放URL列表
396
- */
397
- declare const getVrbtUrl: (contentIds: string) => Promise<any>;
398
-
399
- /**获取歌词(自建)
400
- * @param contentId 单个歌曲ID,
401
- * @param type 歌词类型,逗号分隔,默认lrc
402
- * @returns 歌词文本
403
- */
404
- declare const getLyric: (contentId: string, type?: string) => Promise<{
405
- error: string;
406
- success: boolean;
407
- status?: undefined;
408
- data?: undefined;
409
- lrc?: undefined;
410
- lrcUrl?: undefined;
411
- mrc?: undefined;
412
- mrcUrl?: undefined;
413
- trc?: undefined;
414
- trcUrl?: undefined;
415
- } | {
416
- success: boolean;
417
- status: number;
418
- error: any;
419
- data?: undefined;
420
- lrc?: undefined;
421
- lrcUrl?: undefined;
422
- mrc?: undefined;
423
- mrcUrl?: undefined;
424
- trc?: undefined;
425
- trcUrl?: undefined;
426
- } | {
427
- error: string;
428
- success: boolean;
429
- data: any;
430
- status?: undefined;
431
- lrc?: undefined;
432
- lrcUrl?: undefined;
433
- mrc?: undefined;
434
- mrcUrl?: undefined;
435
- trc?: undefined;
436
- trcUrl?: undefined;
437
- } | {
438
- success: boolean;
439
- lrc: any;
440
- lrcUrl: any;
441
- mrc: string | undefined;
442
- mrcUrl: any;
443
- trc: any;
444
- trcUrl: any;
445
- error?: undefined;
446
- status?: undefined;
447
- data?: undefined;
448
- }>;
449
-
450
- /**
451
- * 添加用户收藏
452
- * @param pacmtoken 用户pacmtoken
453
- * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
454
- * @param contentId 歌单id / 评论id / 专辑id
455
- * @param title 歌单标题 / 专辑标题 (type=playlist或album时必填)
456
- * @param userId 用户id (type=comment时必填)
457
- * @returns 添加结果和新的pacmtoken
458
- */
459
- declare const addUserCollect: (pacmtoken: string, type: string, contentId: string, title?: string, userId?: string) => Promise<{
460
- success: boolean;
461
- err: string;
462
- data?: undefined;
463
- newPacmToken?: undefined;
464
- } | {
465
- data: any;
466
- newPacmToken: string;
467
- success?: undefined;
468
- err?: undefined;
469
- }>;
470
-
471
- /**
472
- * 删除用户收藏
473
- * @param pacmtoken 用户pacmtoken
474
- * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
475
- * @param contentId 歌单id / 评论id / 专辑id
476
- * @param userId 用户id (type=comment时必填)
477
- * @returns 删除结果和新的pacmtoken
478
- */
479
- declare const removeUserCollect: (pacmtoken: string, type: string, contentId: string, userId?: string) => Promise<{
480
- success: boolean;
481
- err: string;
482
- data?: undefined;
483
- newPacmToken?: undefined;
484
- } | {
485
- data: any;
486
- newPacmToken: string;
487
- success?: undefined;
488
- err?: undefined;
489
- }>;
490
-
491
- /**
492
- * 添加喜欢音乐
493
- * @param pacmtoken 用户token
494
- * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
495
- * @returns 添加喜欢音乐结果,包含新pacmtoken
496
- */
497
- declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
498
- data: any;
499
- newPacmToken: string;
500
- }>;
501
-
502
- /**
503
- * 移除喜欢音乐
504
- * @param pacmtoken 用户token
505
- * @param contentId 单个音乐id,例如:123
506
- * @returns 移除喜欢音乐结果,包含新pacmtoken
507
- */
508
- declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
509
- data: any;
510
- newPacmToken: string;
511
- }>;
512
-
513
- /**
514
- * 编辑播放列表
515
- * @param pacmtoken 用户token
516
- * @param title 播放列表名称
517
- * @param playlistId 播放列表id
518
- * @returns 编辑结果和新的pacmtoken
519
- */
520
- declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
521
- data: any;
522
- newPacmToken: string;
523
- }>;
524
-
525
- /**
526
- * 创建播放列表
527
- * @param pacmtoken 用户token
528
- * @param title 播放列表名称
529
- * @returns 创建结果和新的pacmtoken
530
- */
531
- declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
532
- data: any;
533
- newPacmToken: string;
534
- }>;
535
-
536
- /**
537
- * 删除播放列表
538
- * @param pacmtoken 用户token
539
- * @param playlistId 播放列表id
540
- * @returns 删除结果和新的pacmtoken
541
- */
542
- declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
543
- data: any;
544
- newPacmToken: string;
545
- }>;
546
-
547
- /**
548
- * 获取电台歌曲
549
- * @param radioId 电台ID
550
- * @param page 页码
551
- * @returns
552
- */
553
- declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
554
-
555
- /**
556
- * 新碟上架
557
- * @returns
558
- */
559
- declare const getNewCDList: () => Promise<any>;
560
-
561
- /**
562
- * 新歌速递
563
- * @returns
564
- */
565
- declare const getNewSongList: () => Promise<any>;
566
-
567
- /**
568
- * 栏目内容
569
- * @param columnId 栏目ID
570
- * @returns
571
- */
572
- declare const getColumnInfo: (columnId: string) => Promise<any>;
573
-
574
- /**
575
- * 添加歌曲到播放列表
576
- * @param pacmtoken 用户token
577
- * @param playlistId 播放列表id
578
- * @param contentIds 歌曲id列表,逗号分隔
579
- * @returns 添加结果和新的pacmtoken
580
- */
581
- declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
582
- data: any;
583
- newPacmToken: string;
584
- }>;
585
-
586
- /**
587
- * 删除播放列表中的歌曲
588
- * @param pacmtoken 用户token
589
- * @param playlistId 播放列表id
590
- * @param contentId 单个歌曲id
591
- * @returns 删除结果和新的pacmtoken
592
- */
593
- declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
594
- data: any;
595
- newPacmToken: string;
596
- }>;
597
-
598
- /**
599
- * 获取短视频用户信息
600
- * @param type uid 或 videoUserId
601
- * @param uid 视频用户uid
602
- * @param videoUserId 视频用户id
603
- * @returns 短视频用户信息
604
- */
605
- declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
606
-
607
- /**
608
- * 演唱会简略信息
609
- *
610
- * 返回 $.data.liveId 直播id 等等
611
- * @param concertId 单个演唱会id
612
- * @returns
613
- */
614
- declare const getConcertInfo: (concertId: string) => Promise<any>;
615
-
616
- /**
617
- * 获取演唱会url (auto hls)
618
- *
619
- * @param concertId 单个演唱会id
620
- * @param liveId 直播id (concert_info中获取)
621
- * @param rateLevel 视频质量 (1:普通 2:高清 3:超清)
622
- * @returns
623
- */
624
- declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
625
-
626
- /**
627
- * 移动端演唱会详情
628
- *
629
- * $.data.contentItemList[0].itemList[0] 此演唱会简略信息
630
- *
631
- * $.data.contentItemList[3].itemList 精选视频-列表
632
- *
633
- * $.data.contentItemList[6].itemList 热门演唱会-列表
634
- *
635
- * @param concertId 单个演唱会id
636
- * @returns
637
- */
638
- declare const getConcertDetail: (concertId: string) => Promise<any>;
639
-
640
- /**
641
- * 演唱会评论
642
- * @param concertId 单个演唱会id
643
- * @param page 翻页
644
- * @param size 单页大小
645
- * @returns
646
- */
647
- declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
648
-
649
- declare const matchPlaylist: (url: string) => Promise<any>;
650
-
651
- /**
652
- * 获取重定向URL
653
- * @param contentId 音乐ID
654
- * @param toneFlag 音色
655
- * @param isVip 是否为会员音乐 未知,是会员音乐true,不是会员音乐false
656
- * @returns 重定向URL
657
- */
658
- declare const getRedirectUrl: (contentId: string, toneFlag?: string, copyrightId?: string, isVip?: boolean) => Promise<string>;
659
-
660
- /**
661
- * 通过演唱会推荐 MV
662
- * @param concertId 单个演唱会id
663
- * @returns
664
- */
665
- declare const getConcertRecommendMv: (concertId: string) => Promise<any>;
666
-
667
- /**
668
- * 获取歌曲的 MV 视频
669
- * @param songId 歌曲ID
670
- * @returns MV视频信息
671
- */
672
- declare const getMvBySong: (songId: string) => Promise<any>;
673
-
674
- /**
675
- * 是否关注作者
676
- * @param pacmtoken 用户token
677
- * @param authorIds 作者id列表,逗号分隔
678
- * @param authorType 作者类型 (singer)
679
- * @returns 是否关注结果和新的pacmtoken
680
- */
681
- declare const isFollowAuthor: (pacmtoken: string, authorIds: string, authorType?: string) => Promise<{
682
- success: boolean;
683
- data: {
684
- error: string;
685
- };
686
- newPacmToken: string;
687
- } | {
688
- data: any;
689
- newPacmToken: string;
690
- success?: undefined;
691
- }>;
692
-
693
- /**
694
- * VIP 热歌
695
- * @param size 数量
696
- * @returns
697
- */
698
- declare const getVipPlaylist: (size?: number) => Promise<any>;
699
-
700
- /**
701
- * 用户简介
702
- * @param userId 用户id
703
- * @returns 用户简介
704
- */
705
- declare const getUserHeader: (userId: string) => Promise<any>;
706
-
707
- /**
708
- * 获取用户歌曲主页
709
- * @param userId 用户id (可选)
710
- * @param videoUserId 视频用户id (可选)
711
- * @returns 用户歌曲主页
712
- */
713
- declare const getUserSongPage: (userId?: string, videoUserId?: string) => Promise<any>;
714
-
715
- /**
716
- * 移动端获取页面信息
717
- * @param pageId 页面ID (二选一)
718
- * @param sceneId 场景ID (二选一)
719
- * @returns
720
- */
721
- declare const getPageInfo: (pageId?: string, sceneId?: string) => Promise<any>;
722
-
723
- /**
724
- * 移动端页面底部tab
725
- * @returns 主页面 + 子页面
726
- */
727
- declare const getPageTab: () => Promise<any>;
728
-
729
- /**
730
- * 短视频用户推荐
731
- * @param pacmtoken 用户授权token
732
- * @returns 短视频用户推荐
733
- */
734
- declare const getSVideoRecommend: (pacmtoken: string) => Promise<{
735
- data: any;
736
- newPacmToken: string;
737
- }>;
738
-
739
- /**
740
- * 用户关注视彩号列表
741
- * @param userId 用户ID
742
- * @param page 分页
743
- * @returns 关注列表
744
- */
745
- declare const getFollowingVra: (userId: string, page?: number) => Promise<any>;
746
-
747
- declare namespace Follower {
748
- interface Music {
749
- type: 'music';
750
- userId: string;
751
- page?: number;
752
- size?: number;
753
- }
754
- interface Vrbt_V {
755
- type: 'vrbt';
756
- userId?: string;
757
- videoUserId: string;
758
- }
759
- interface Vrbt_U {
760
- type: 'vrbt';
761
- userId: string;
762
- videoUserId?: string;
763
- }
764
- type params = Music | Vrbt_V | Vrbt_U;
765
- }
766
-
767
- /**
768
- * 获取粉丝列表
769
- * @description 不同类型返回值格式不同
770
- * @param params 参数
771
- * @param params.type 类型,music或vrbt
772
- * @param params.userId 用户ID
773
- * @param params.videoUserId 视频用户ID
774
- * @param params.page 页码
775
- * @param params.size 每页数量
776
- * @returns 粉丝列表
777
- */
778
- declare const getFollowerList: (params: Follower.params) => Promise<any>;
779
-
780
- /**
781
- * 获取关注列表
782
- * @param userId 用户ID
783
- * @param type 关注类型,user或singer
784
- * @param page 页码
785
- * @param size 每页数量
786
- * @returns 关注列表
787
- */
788
- declare const getFollowingList: (userId: string, type: string, page?: number, size?: number) => Promise<any>;
789
-
790
- /**
791
- * 关注歌手
792
- * @param pacmtoken 用户token
793
- * @param singerId 歌手id
794
- * @returns 关注结果和新的pacmtoken
795
- */
796
- declare const addFollower: (pacmtoken: string, singerId: string) => Promise<{
797
- data: any;
798
- newPacmToken: string;
799
- }>;
800
-
801
- /**
802
- * 取消关注歌手
803
- * @param pacmtoken 用户token
804
- * @param singerId 歌手id
805
- * @returns 取消关注结果和新的pacmtoken
806
- */
807
- declare const removeFollower: (pacmtoken: string, singerId: string) => Promise<{
808
- data: any;
809
- newPacmToken: string;
810
- }>;
811
-
812
- /**
813
- * 用户退出登录
814
- * @param pacmtoken 用户token
815
- * @returns 退出登录结果
816
- */
817
- declare const logout: (pacmtoken: string) => Promise<any>;
818
-
819
- /**
820
- * 分享视频
821
- * @param resourceType 资源类型 6000:短视频 D:MV M:视频彩铃
822
- * @param contentId 短视频id / MVid / vrbtId
823
- * @param userId 视频用户id (可选)
824
- * @returns 分享信息 (url)
825
- */
826
- declare const shareVideo: (resourceType: string, contentId: string, userId?: string) => Promise<any>;
827
-
828
- /**
829
- * 分享通用内容
830
- * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手 5:数字专辑
831
- * @param contentId 内容id 歌曲contentId / albumId / dAlbumId / artistId / playlistId
832
- * @param contentName 歌曲名称 / (数字)专辑名称 / 歌手名称 / 播放列表名称
833
- * @param targetUserName 当前歌单作者/歌手名称 (可选)
834
- * @param copyrightId 歌曲版权id (可选,仅对歌曲有效,其他资源类型为undefined)
835
- * @returns 分享信息 (url)
836
- */
837
- declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
838
-
839
- /**
840
- * 我的听书记录
841
- * @param pacmtoken 用户token
842
- * @returns 用户听书记录信息和新的pacmtoken
843
- */
844
- declare const getUserAudioBook: (pacmtoken: string, recentListenNum?: number, recommendNum?: number) => Promise<{
845
- data: any;
846
- newPacmToken: string;
847
- }>;
848
-
849
- /**
850
- * 听歌排行
851
- * @param pacmtoken 用户token
852
- * @param type 排行类型: week:最近一周 year:过去三年
853
- * @returns 听歌排行列表,包含新pacmtoken
854
- */
855
- declare const getListenRank: (pacmtoken: string, type: string) => Promise<{
856
- data: any;
857
- newPacmToken: string;
858
- }>;
859
-
860
- /**
861
- * 获取云盘音乐播放地址
862
- * @param pacmtoken 用户token
863
- * @param contentId 云盘音乐contentId
864
- * @param toneFlag 音乐质量 默认PQ
865
- * @returns 地址和新的pacmtoken
866
- */
867
- declare const getCloudUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
868
- data: any;
869
- newPacmToken: string;
870
- }>;
871
-
872
- declare const getDLUrlV1: (songId: string, toneFlag?: string) => Promise<any>;
873
-
874
- declare const getUrlM2: (contentId: string, toneFlag?: string, copyrightId?: string, songId?: string, albumId?: string) => Promise<any>;
875
-
876
- /**
877
- * 歌曲enoji表态
878
- * @param pacmtoken 用户token
879
- * @param contentId 歌曲id
880
- * @param emojiId 表情id
881
- * @param action 表情操作
882
- * @returns 表情数量,包含新pacmtoken
883
- */
884
- declare const emojiAction: (pacmtoken: string, contentId: string, emojiId: string, action: string) => Promise<{
885
- data: any;
886
- newPacmToken: string;
887
- }>;
888
-
889
- /**
890
- * 获取歌曲表情数量
891
- * @param pacmtoken 用户token (可选,传入可看是否发表过表情)
892
- * @param contentIds 歌曲id列表 (逗号分隔)
893
- * @returns 表情数量,包含新pacmtoken
894
- */
895
- declare const getEmojiNum: (pacmtoken: string, contentIds: string) => Promise<{
896
- data: any;
897
- newPacmToken: string | undefined;
898
- }>;
899
-
900
- /**
901
- * 心动模式推荐
902
- * @param pacmtoken 用户token
903
- * @param songId 单个歌曲 ID
904
- * @returns 心动模式推荐歌曲和新pacmtoken
905
- */
906
- declare const getUserHeartthrob: (pacmtoken: string, songId: string) => Promise<{
907
- data: any;
908
- newPacmToken: string;
909
- }>;
910
-
911
- /**
912
- * 删除云盘音乐
913
- * @param pacmtoken 用户token
914
- * @param contentIds 云盘音乐contentId列表 逗号分隔
915
- * @returns 地址和新的pacmtoken
916
- */
917
- declare const deleteCloudMusic: (pacmtoken: string, contentIds: string) => Promise<{
918
- data: {
919
- success: boolean;
920
- error: string;
921
- };
922
- newPacmToken: undefined;
923
- } | {
924
- data: any;
925
- newPacmToken: string;
926
- }>;
927
-
928
- /**
929
- * 用户互动消息
930
- * @param pacmtoken 用户token
931
- * @param page 页码
932
- * @param size 每页大小
933
- * @returns 用户互动和新的pacmtoken
934
- */
935
- declare const getInteractionMsg: (pacmtoken: string, type: string, page?: number, size?: number) => Promise<{
936
- data: {
937
- success: boolean;
938
- error: string;
939
- };
940
- newPacmToken: undefined;
941
- } | {
942
- data: any;
943
- newPacmToken: string;
944
- }>;
945
-
946
- /**
947
- * 用户通知
948
- * @param pacmtoken 用户token
949
- * @param page 页码
950
- * @param size 每页大小
951
- * @returns 用户通知列表和新的pacmtoken
952
- */
953
- declare const getNoticeMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
954
- data: any;
955
- newPacmToken: string;
956
- }>;
957
-
958
- /**
959
- * 用户收到的赞
960
- * @param pacmtoken 用户token
961
- * @param page 页码
962
- * @param size 每页大小
963
- * @returns 用户收到的赞和新的pacmtoken
964
- */
965
- declare const getThumbsMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
966
- data: any;
967
- newPacmToken: string;
968
- }>;
969
-
970
- declare const getCloudUploadUrl: (pacmtoken: string, file: File) => Promise<{
971
- data: {
972
- success: boolean;
973
- error: string;
974
- };
975
- newPacmToken: undefined;
976
- } | {
977
- data: any;
978
- newPacmToken: string;
979
- }>;
980
-
981
- /**
982
- * 删除评论
983
- * @param pacmtoken 用户token
984
- * @param resourceId 评论id
985
- * @returns 删除结果,包含新pacmtoken
986
- */
987
- declare const deleteComment: (pacmtoken: string, resourceId: string) => Promise<{
988
- data: any;
989
- newPacmToken: string;
990
- }>;
991
-
992
- /**
993
- * 获取歌手情书
994
- * @param singerId 歌手ID
995
- * @returns 歌手情书
996
- */
997
- declare const getSingerLetter: (singerId: string, pageId?: string) => Promise<any>;
998
-
999
- /**
1000
- * 获取歌手mv列表页
1001
- * @param singerId 歌手ID
1002
- * @returns mv列表页
1003
- */
1004
- declare const getSingerMv: (singerId: string, page?: number) => Promise<any>;
1005
-
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
- /**
1044
- * 获取云盘音乐下载地址
1045
- * @param pacmtoken 用户token
1046
- * @param contentId 云盘音乐contentId
1047
- * @param toneFlag 音乐质量 默认PQ
1048
- * @returns 地址和新的pacmtoken
1049
- */
1050
- declare const getCloudDLUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
1051
- data: any;
1052
- newPacmToken: string;
1053
- }>;
1054
-
1055
- /**
1056
- * 获取用户手机号,彩铃信息
1057
- * @param pacmtoken 用户token
1058
- * @returns 用户完整手机号,彩铃信息和新的pacmtoken
1059
- */
1060
- declare const getUserPhoneInfo: (pacmtoken: string) => Promise<{
1061
- data: any;
1062
- newPacmToken: string;
1063
- }>;
1064
-
1065
- /**
1066
- * 获取畅听tab
1067
- * @param pacmtoken 可选-登录凭证,用于获取所有场景 (无则3个)
1068
- * @returns 3个听歌模式,多个场景
1069
- */
1070
- declare const getListenFreelyTab: (pacmtoken?: string) => Promise<{
1071
- data: any;
1072
- newPacmToken: string | undefined;
1073
- }>;
1074
-
1075
- /**
1076
- * 获取畅听歌曲
1077
- * @param pacmtoken 必填-登录凭证
1078
- * @param modelId 可选-模型ID,默认701000(默认模式)
1079
- * @returns 5个推荐歌曲
1080
- */
1081
- declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Promise<{
1082
- data: {
1083
- success: boolean;
1084
- code: string;
1085
- info: string;
1086
- };
1087
- newPacmToken: undefined;
1088
- } | {
1089
- data: any;
1090
- newPacmToken: string;
1091
- }>;
1092
-
1093
- /**
1094
- * 歌单广场:根据标签获取歌单
1095
- * @returns
1096
- */
1097
- declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
1098
-
1099
- /**
1100
- * 网页v5 歌单广场推荐歌单 (5个)
1101
- * @returns
1102
- */
1103
- declare const getSquareRecommend: () => Promise<any>;
1104
-
1105
- /**
1106
- * 网页v5 歌单广场所有标签
1107
- * @returns
1108
- */
1109
- declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
1110
-
1111
- /** 获取歌曲详情
1112
- * @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
1113
- */
1114
- declare const getSongInfo: (contentIds: string) => Promise<any>;
1115
-
1116
- declare const getActivities: () => Promise<any>;
1117
-
1118
- /**
1119
- * 查询已购歌曲
1120
- * @param pacmtoken 用户token
1121
- * @returns 已购歌曲列表
1122
- */
1123
- declare const getUserOrdered: (pacmtoken: string) => Promise<{
1124
- data: {
1125
- success: boolean;
1126
- code: string;
1127
- info: string;
1128
- };
1129
- newPacmToken: undefined;
1130
- } | {
1131
- data: any;
1132
- newPacmToken: string;
1133
- }>;
1134
-
1135
- /**
1136
- * 获取数字专辑信息
1137
- * @param dAlbumId 数字专辑id
1138
- * @return
1139
- */
1140
- declare const getDAlbumInfo: (dAlbumId: string) => Promise<any>;
1141
-
1142
- /**
1143
- * 获取数字专辑歌曲列表
1144
- * @param dAlbumId 数字专辑id
1145
- * @return 歌曲列表
1146
- */
1147
- declare const getDAlbumSong: (dAlbumId: string) => Promise<any>;
1148
-
1149
- /**
1150
- * 获取数字专辑售卖信息
1151
- * @param dAlbumId 数字专辑id
1152
- * @return 数量
1153
- */
1154
- declare const getDAlbumPay: (dAlbumId: string) => Promise<any>;
1155
-
1156
- export { YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, checkCanListen, checkToken, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getActivities, getAiBeanCount, getAiBeanSignStatus, 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, getNinanByDate, getNinanSignInfo, getNinanSong, 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, loginNP, loginOneClick, loginPhone, loginSim, logout, matchPlaylist, queryUserInfo, redeemAiBean, removeFollower, removeSongFromMyList, removeUserCollect, removeUserMyList, searchAlbum, searchConcert, searchLrc, searchMv, searchPlaylist, searchRbt, searchSVideo, searchSinger, searchSong, searchSuggest, searchTicket, shareCommon, shareVideo, signAiBean, signNinan };