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
package/dist/index.d.cts CHANGED
@@ -1,2 +1,982 @@
1
- export * from './modules/index';
2
- export * from './utils/index';
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 checkToken: (token?: string) => Promise<any>;
105
+
106
+ /**
107
+ * 获取 pacmtoken
108
+ * @param token 登录token
109
+ * @param type 类型
110
+ * @param sourceId 来源ID
111
+ * @param activityId 活动ID
112
+ * @returns pacmtoken 和响应体
113
+ */
114
+ declare const getPacmToken: (token?: string, type?: string, sourceId?: string, activityId?: string) => Promise<{
115
+ pacmToken: string;
116
+ body: any;
117
+ }>;
118
+
119
+ /**
120
+ * 获取票务信息
121
+ * @param page 页码 可选 默认1
122
+ * @param size 每页数量 可选 默认20
123
+ * @returns 票务信息
124
+ */
125
+ declare const getTicketInfo: (page?: number, size?: number) => Promise<any>;
126
+
127
+ /**
128
+ * 获取用户徽章信息
129
+ * @param pacmtoken 用户token
130
+ * @returns 用户徽章信息和新的pacmtoken
131
+ */
132
+ declare const getUserBadge: (pacmtoken: string) => Promise<{
133
+ data: any;
134
+ newPacmToken: string;
135
+ }>;
136
+
137
+ /**
138
+ * 查询用户信息
139
+ * @param pacmtoken 用户token
140
+ * @returns 用户信息和新的pacmtoken
141
+ */
142
+ declare const queryUserInfo: (pacmtoken: string) => Promise<{
143
+ data: any;
144
+ newPacmToken: string;
145
+ }>;
146
+
147
+ /**
148
+ * 获取用户主页信息
149
+ * @param pacmtoken 用户token
150
+ * @returns 用户主页信息和新的pacmtoken
151
+ */
152
+ declare const getUserHomePage: (pacmtoken: string) => Promise<{
153
+ data: any;
154
+ newPacmToken: string;
155
+ }>;
156
+
157
+ /**
158
+ * 获取今日推荐
159
+ * @param pacmtoken 用户token
160
+ * @returns 今日推荐列表和新的pacmtoken
161
+ */
162
+ declare const getTodayRecommend: (pacmtoken: string) => Promise<{
163
+ data: any;
164
+ newPacmToken: string;
165
+ }>;
166
+
167
+ /**
168
+ * 获取用户收藏列表
169
+ * @param pacmtoken 用户token
170
+ * @param page 页码
171
+ * @param size 每页大小
172
+ * @returns 用户收藏列表和新的pacmtoken
173
+ */
174
+ declare const getUserCollectList: (pacmtoken: string, page?: number, size?: number) => Promise<{
175
+ data: any;
176
+ newPacmToken: string;
177
+ }>;
178
+
179
+ /**
180
+ * 获取用户播放列表
181
+ * @param pacmtoken 用户token
182
+ * @param queryType 查询类型
183
+ * @param page 页码
184
+ * @param size 每页大小
185
+ * @returns 用户播放列表和新的pacmtoken
186
+ */
187
+ declare const getUserMyList: (pacmtoken: string, queryType?: number, page?: number, size?: number) => Promise<{
188
+ data: any;
189
+ newPacmToken: string;
190
+ }>;
191
+
192
+ /**
193
+ * 获取相似歌手
194
+ * @param singerId 歌手ID
195
+ */
196
+ declare const getSingerSimilar: (singerId: string) => Promise<any>;
197
+
198
+ /**
199
+ * 获取相似歌曲推荐
200
+ * @param contentId 歌曲ID
201
+ */
202
+ declare const getSimilarSongRecommend: (contentId?: string) => Promise<any>;
203
+
204
+ /**
205
+ * 获取相似MV推荐
206
+ * @param mvContentId MV视频ID
207
+ * @param page 页码
208
+ * @returns 相似列表
209
+ */
210
+ declare const getMVRecommend: (mvContentId: string, page?: number) => Promise<any>;
211
+
212
+ /**
213
+ * 网页v5 歌单广场界面
214
+ * @returns
215
+ */
216
+ declare const getSquarePage: () => Promise<any>;
217
+
218
+ declare const searchLrc: (text: string, page?: number) => Promise<any>;
219
+
220
+ /**
221
+ * 获取电台推荐 (所有电台)
222
+ * 私人FM(上瘾电台、听见不同),时序电台,分类电台,乐游播客,YOU乐电台
223
+ * @param pacmtoken 可选-登录凭证,用于获取所有电台
224
+ * @returns 电台推荐列表和新的pacmtoken
225
+ */
226
+ declare const getRadioRecommendAll: (pacmtoken?: string) => Promise<{
227
+ data: any;
228
+ newPacmToken: string;
229
+ }>;
230
+
231
+ /**
232
+ * 获取短视频详情
233
+ * @param contentIds 短视频ID,多个ID用逗号分隔 (自动处理)
234
+ * @returns 短视频详情
235
+ */
236
+ declare const getSVideoInfo: (contentIds: string) => Promise<any>;
237
+
238
+ declare const searchSVideo: (text: string, page?: number) => Promise<any>;
239
+
240
+ declare const getSVideoSearchSuggest: (text: string) => Promise<any>;
241
+
242
+ /**
243
+ * 获取短视频播放地址
244
+ * @param contentIds 短视频ID,多个ID用,分隔 600985A00005943149,600985A00004881354
245
+ * @param formatType 视频格式,HQ/PQ/SQ 若无自动降级 HQ默认
246
+ * @returns 短视频播放地址
247
+ */
248
+ declare const getSVideoUrl: (contentIds: string, formatType?: string) => Promise<any>;
249
+
250
+ /**
251
+ * 获取用户短视频列表
252
+ * @param videoUserId 用户ID
253
+ * @param nextPageId 分页ID, 第一页时为空, 每个请求都会返回nextPageId
254
+ * @returns 用户短视频列表
255
+ */
256
+ declare const getSVideoUserContent: (videoUserId: string, nextPageId?: string) => Promise<any>;
257
+
258
+ /**
259
+ * 获取视频播放次数
260
+ * @param contentIds 视频ID列表,逗号分隔 600926000022458628,600926000002564425
261
+ * @returns 视频播放次数列表
262
+ */
263
+ declare const getVrbtOpNum: (contentIds: string) => Promise<any>;
264
+
265
+ /**
266
+ * 获取视频彩铃播放URL
267
+ * @param contentIds 视频ID列表,,分隔
268
+ * @returns 视频播放URL列表
269
+ */
270
+ declare const getVrbtUrl: (contentIds: string) => Promise<any>;
271
+
272
+ /** 获取逐行歌词(自建)
273
+ * @param contentId 单个歌曲ID,
274
+ * @param type 歌词类型,逗号分隔,默认lrc
275
+ * @returns 歌词文本
276
+ */
277
+ declare const getLyric: (contentId: string, type?: string) => Promise<{
278
+ error: string;
279
+ success: boolean;
280
+ status?: undefined;
281
+ data?: undefined;
282
+ lrc?: undefined;
283
+ lrcUrl?: undefined;
284
+ trc?: undefined;
285
+ trcUrl?: undefined;
286
+ } | {
287
+ success: boolean;
288
+ status: number;
289
+ error: any;
290
+ data?: undefined;
291
+ lrc?: undefined;
292
+ lrcUrl?: undefined;
293
+ trc?: undefined;
294
+ trcUrl?: undefined;
295
+ } | {
296
+ error: string;
297
+ success: boolean;
298
+ data: any;
299
+ status?: undefined;
300
+ lrc?: undefined;
301
+ lrcUrl?: undefined;
302
+ trc?: undefined;
303
+ trcUrl?: undefined;
304
+ } | {
305
+ success: boolean;
306
+ lrc: any;
307
+ lrcUrl: any;
308
+ trc: any;
309
+ trcUrl: any;
310
+ error?: undefined;
311
+ status?: undefined;
312
+ data?: undefined;
313
+ }>;
314
+
315
+ /**
316
+ * 添加用户收藏
317
+ * @param pacmtoken 用户pacmtoken
318
+ * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
319
+ * @param contentId 歌单id / 评论id / 专辑id
320
+ * @param title 歌单标题 / 专辑标题 (type=playlist或album时必填)
321
+ * @param userId 用户id (type=comment时必填)
322
+ * @returns 添加结果和新的pacmtoken
323
+ */
324
+ declare const addUserCollect: (pacmtoken: string, type: string, contentId: string, title?: string, userId?: string) => Promise<{
325
+ success: boolean;
326
+ err: string;
327
+ data?: undefined;
328
+ newPacmToken?: undefined;
329
+ } | {
330
+ data: any;
331
+ newPacmToken: string;
332
+ success?: undefined;
333
+ err?: undefined;
334
+ }>;
335
+
336
+ /**
337
+ * 删除用户收藏
338
+ * @param pacmtoken 用户pacmtoken
339
+ * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
340
+ * @param contentId 歌单id / 评论id / 专辑id
341
+ * @param userId 用户id (type=comment时必填)
342
+ * @returns 删除结果和新的pacmtoken
343
+ */
344
+ declare const removeUserCollect: (pacmtoken: string, type: string, contentId: string, userId?: string) => Promise<{
345
+ success: boolean;
346
+ err: string;
347
+ data?: undefined;
348
+ newPacmToken?: undefined;
349
+ } | {
350
+ data: any;
351
+ newPacmToken: string;
352
+ success?: undefined;
353
+ err?: undefined;
354
+ }>;
355
+
356
+ /**
357
+ * 添加喜欢音乐
358
+ * @param pacmtoken 用户token
359
+ * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
360
+ * @returns 添加喜欢音乐结果,包含新pacmtoken
361
+ */
362
+ declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
363
+ data: any;
364
+ newPacmToken: string;
365
+ }>;
366
+
367
+ /**
368
+ * 移除喜欢音乐
369
+ * @param pacmtoken 用户token
370
+ * @param contentId 单个音乐id,例如:123
371
+ * @returns 移除喜欢音乐结果,包含新pacmtoken
372
+ */
373
+ declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
374
+ data: any;
375
+ newPacmToken: string;
376
+ }>;
377
+
378
+ /**
379
+ * 编辑播放列表
380
+ * @param pacmtoken 用户token
381
+ * @param title 播放列表名称
382
+ * @param playlistId 播放列表id
383
+ * @returns 编辑结果和新的pacmtoken
384
+ */
385
+ declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
386
+ data: any;
387
+ newPacmToken: string;
388
+ }>;
389
+
390
+ /**
391
+ * 创建播放列表
392
+ * @param pacmtoken 用户token
393
+ * @param title 播放列表名称
394
+ * @returns 创建结果和新的pacmtoken
395
+ */
396
+ declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
397
+ data: any;
398
+ newPacmToken: string;
399
+ }>;
400
+
401
+ /**
402
+ * 删除播放列表
403
+ * @param pacmtoken 用户token
404
+ * @param playlistId 播放列表id
405
+ * @returns 删除结果和新的pacmtoken
406
+ */
407
+ declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
408
+ data: any;
409
+ newPacmToken: string;
410
+ }>;
411
+
412
+ /**
413
+ * 获取电台歌曲
414
+ * @param radioId 电台ID
415
+ * @param page 页码
416
+ * @returns
417
+ */
418
+ declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
419
+
420
+ /**
421
+ * 新碟上架
422
+ * @returns
423
+ */
424
+ declare const getNewCDList: () => Promise<any>;
425
+
426
+ /**
427
+ * 新歌速递
428
+ * @returns
429
+ */
430
+ declare const getNewSongList: () => Promise<any>;
431
+
432
+ /**
433
+ * 栏目内容
434
+ * @param columnId 栏目ID
435
+ * @returns
436
+ */
437
+ declare const getColumnInfo: (columnId: string) => Promise<any>;
438
+
439
+ /**
440
+ * 添加歌曲到播放列表
441
+ * @param pacmtoken 用户token
442
+ * @param playlistId 播放列表id
443
+ * @param contentIds 歌曲id列表,逗号分隔
444
+ * @returns 添加结果和新的pacmtoken
445
+ */
446
+ declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
447
+ data: any;
448
+ newPacmToken: string;
449
+ }>;
450
+
451
+ /**
452
+ * 删除播放列表中的歌曲
453
+ * @param pacmtoken 用户token
454
+ * @param playlistId 播放列表id
455
+ * @param contentId 单个歌曲id
456
+ * @returns 删除结果和新的pacmtoken
457
+ */
458
+ declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
459
+ data: any;
460
+ newPacmToken: string;
461
+ }>;
462
+
463
+ /**
464
+ * 获取短视频用户信息
465
+ * @param type uid 或 videoUserId
466
+ * @param uid 视频用户uid
467
+ * @param videoUserId 视频用户id
468
+ * @returns 短视频用户信息
469
+ */
470
+ declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
471
+
472
+ /**
473
+ * 演唱会简略信息
474
+ *
475
+ * 返回 $.data.liveId 直播id 等等
476
+ * @param concertId 单个演唱会id
477
+ * @returns
478
+ */
479
+ declare const getConcertInfo: (concertId: string) => Promise<any>;
480
+
481
+ /**
482
+ * 获取演唱会url (auto hls)
483
+ *
484
+ * @param concertId 单个演唱会id
485
+ * @param liveId 直播id (concert_info中获取)
486
+ * @param rateLevel 视频质量 (1:普通 2:高清 3:超清)
487
+ * @returns
488
+ */
489
+ declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
490
+
491
+ /**
492
+ * 移动端演唱会详情
493
+ *
494
+ * $.data.contentItemList[0].itemList[0] 此演唱会简略信息
495
+ *
496
+ * $.data.contentItemList[3].itemList 精选视频-列表
497
+ *
498
+ * $.data.contentItemList[6].itemList 热门演唱会-列表
499
+ *
500
+ * @param concertId 单个演唱会id
501
+ * @returns
502
+ */
503
+ declare const getConcertDetail: (concertId: string) => Promise<any>;
504
+
505
+ /**
506
+ * 演唱会评论
507
+ * @param concertId 单个演唱会id
508
+ * @param page 翻页
509
+ * @param size 单页大小
510
+ * @returns
511
+ */
512
+ declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
513
+
514
+ declare const matchPlaylist: (url: string) => Promise<any>;
515
+
516
+ /**
517
+ * 获取重定向URL
518
+ * @param contentId 音乐ID
519
+ * @param toneFlag 音色
520
+ * @param isVip 是否为会员音乐 未知,是会员音乐true,不是会员音乐false
521
+ * @returns 重定向URL
522
+ */
523
+ declare const getRedirectUrl: (contentId: string, toneFlag?: string, copyrightId?: string, isVip?: boolean) => Promise<string>;
524
+
525
+ /**
526
+ * 通过演唱会推荐 MV
527
+ * @param concertId 单个演唱会id
528
+ * @returns
529
+ */
530
+ declare const getConcertRecommendMv: (concertId: string) => Promise<any>;
531
+
532
+ /**
533
+ * 获取歌曲的 MV 视频
534
+ * @param songId 歌曲ID
535
+ * @returns MV视频信息
536
+ */
537
+ declare const getMvBySong: (songId: string) => Promise<any>;
538
+
539
+ /**
540
+ * 是否关注作者
541
+ * @param pacmtoken 用户token
542
+ * @param authorIds 作者id列表,逗号分隔
543
+ * @param authorType 作者类型 (singer)
544
+ * @returns 是否关注结果和新的pacmtoken
545
+ */
546
+ declare const isFollowAuthor: (pacmtoken: string, authorIds: string, authorType?: string) => Promise<{
547
+ success: boolean;
548
+ data: {
549
+ error: string;
550
+ };
551
+ newPacmToken: string;
552
+ } | {
553
+ data: any;
554
+ newPacmToken: string;
555
+ success?: undefined;
556
+ }>;
557
+
558
+ /**
559
+ * VIP 热歌
560
+ * @param size 数量
561
+ * @returns
562
+ */
563
+ declare const getVipPlaylist: (size?: number) => Promise<any>;
564
+
565
+ /**
566
+ * 用户简介
567
+ * @param userId 用户id
568
+ * @returns 用户简介
569
+ */
570
+ declare const getUserHeader: (userId: string) => Promise<any>;
571
+
572
+ /**
573
+ * 获取用户歌曲主页
574
+ * @param userId 用户id (可选)
575
+ * @param videoUserId 视频用户id (可选)
576
+ * @returns 用户歌曲主页
577
+ */
578
+ declare const getUserSongPage: (userId?: string, videoUserId?: string) => Promise<any>;
579
+
580
+ /**
581
+ * 移动端获取页面信息
582
+ * @param pageId 页面ID (二选一)
583
+ * @param sceneId 场景ID (二选一)
584
+ * @returns
585
+ */
586
+ declare const getPageInfo: (pageId?: string, sceneId?: string) => Promise<any>;
587
+
588
+ /**
589
+ * 移动端页面底部tab
590
+ * @returns 主页面 + 子页面
591
+ */
592
+ declare const getPageTab: () => Promise<any>;
593
+
594
+ /**
595
+ * 短视频用户推荐
596
+ * @param pacmtoken 用户授权token
597
+ * @returns 短视频用户推荐
598
+ */
599
+ declare const getSVideoRecommend: (pacmtoken: string) => Promise<{
600
+ data: any;
601
+ newPacmToken: string;
602
+ }>;
603
+
604
+ /**
605
+ * 用户关注视彩号列表
606
+ * @param userId 用户ID
607
+ * @param page 分页
608
+ * @returns 关注列表
609
+ */
610
+ declare const getFollowingVra: (userId: string, page?: number) => Promise<any>;
611
+
612
+ declare namespace Follower {
613
+ interface Music {
614
+ type: 'music';
615
+ userId: string;
616
+ page?: number;
617
+ size?: number;
618
+ }
619
+ interface Vrbt_V {
620
+ type: 'vrbt';
621
+ userId?: string;
622
+ videoUserId: string;
623
+ }
624
+ interface Vrbt_U {
625
+ type: 'vrbt';
626
+ userId: string;
627
+ videoUserId?: string;
628
+ }
629
+ type params = Music | Vrbt_V | Vrbt_U;
630
+ }
631
+
632
+ /**
633
+ * 获取粉丝列表
634
+ * @description 不同类型返回值格式不同
635
+ * @param params 参数
636
+ * @param params.type 类型,music或vrbt
637
+ * @param params.userId 用户ID
638
+ * @param params.videoUserId 视频用户ID
639
+ * @param params.page 页码
640
+ * @param params.size 每页数量
641
+ * @returns 粉丝列表
642
+ */
643
+ declare const getFollowerList: (params: Follower.params) => Promise<any>;
644
+
645
+ /**
646
+ * 获取关注列表
647
+ * @param userId 用户ID
648
+ * @param type 关注类型,user或singer
649
+ * @param page 页码
650
+ * @param size 每页数量
651
+ * @returns 关注列表
652
+ */
653
+ declare const getFollowingList: (userId: string, type: string, page?: number, size?: number) => Promise<any>;
654
+
655
+ /**
656
+ * 关注歌手
657
+ * @param pacmtoken 用户token
658
+ * @param singerId 歌手id
659
+ * @returns 关注结果和新的pacmtoken
660
+ */
661
+ declare const addFollower: (pacmtoken: string, singerId: string) => Promise<{
662
+ data: any;
663
+ newPacmToken: string;
664
+ }>;
665
+
666
+ /**
667
+ * 取消关注歌手
668
+ * @param pacmtoken 用户token
669
+ * @param singerId 歌手id
670
+ * @returns 取消关注结果和新的pacmtoken
671
+ */
672
+ declare const removeFollower: (pacmtoken: string, singerId: string) => Promise<{
673
+ data: any;
674
+ newPacmToken: string;
675
+ }>;
676
+
677
+ /**
678
+ * 用户退出登录
679
+ * @param pacmtoken 用户token
680
+ * @returns 退出登录结果
681
+ */
682
+ declare const logout: (pacmtoken: string) => Promise<any>;
683
+
684
+ /**
685
+ * 分享视频
686
+ * @param resourceType 资源类型 6000:短视频 D:MV M:视频彩铃
687
+ * @param contentId 短视频id / MVid / vrbtId
688
+ * @param userId 视频用户id (可选)
689
+ * @returns 分享信息 (url)
690
+ */
691
+ declare const shareVideo: (resourceType: string, contentId: string, userId?: string) => Promise<any>;
692
+
693
+ /**
694
+ * 分享通用内容
695
+ * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手 5:数字专辑
696
+ * @param contentId 内容id 歌曲contentId / albumId / dAlbumId / artistId / playlistId
697
+ * @param contentName 歌曲名称 / (数字)专辑名称 / 歌手名称 / 播放列表名称
698
+ * @param targetUserName 当前歌单作者/歌手名称 (可选)
699
+ * @param copyrightId 歌曲版权id (可选,仅对歌曲有效,其他资源类型为undefined)
700
+ * @returns 分享信息 (url)
701
+ */
702
+ declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
703
+
704
+ /**
705
+ * 我的听书记录
706
+ * @param pacmtoken 用户token
707
+ * @returns 用户听书记录信息和新的pacmtoken
708
+ */
709
+ declare const getUserAudioBook: (pacmtoken: string, recentListenNum?: number, recommendNum?: number) => Promise<{
710
+ data: any;
711
+ newPacmToken: string;
712
+ }>;
713
+
714
+ /**
715
+ * 听歌排行
716
+ * @param pacmtoken 用户token
717
+ * @param type 排行类型: week:最近一周 year:过去三年
718
+ * @returns 听歌排行列表,包含新pacmtoken
719
+ */
720
+ declare const getListenRank: (pacmtoken: string, type: string) => Promise<{
721
+ data: any;
722
+ newPacmToken: string;
723
+ }>;
724
+
725
+ /**
726
+ * 获取云盘音乐播放地址
727
+ * @param pacmtoken 用户token
728
+ * @param contentId 云盘音乐contentId
729
+ * @param toneFlag 音乐质量 默认PQ
730
+ * @returns 地址和新的pacmtoken
731
+ */
732
+ declare const getCloudUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
733
+ data: any;
734
+ newPacmToken: string;
735
+ }>;
736
+
737
+ declare const getDLUrlV1: (songId: string, toneFlag?: string) => Promise<any>;
738
+
739
+ declare const getUrlM2: (contentId: string, toneFlag?: string, copyrightId?: string, songId?: string, albumId?: string) => Promise<any>;
740
+
741
+ /**
742
+ * 歌曲enoji表态
743
+ * @param pacmtoken 用户token
744
+ * @param contentId 歌曲id
745
+ * @param emojiId 表情id
746
+ * @param action 表情操作
747
+ * @returns 表情数量,包含新pacmtoken
748
+ */
749
+ declare const emojiAction: (pacmtoken: string, contentId: string, emojiId: string, action: string) => Promise<{
750
+ data: any;
751
+ newPacmToken: string;
752
+ }>;
753
+
754
+ /**
755
+ * 获取歌曲表情数量
756
+ * @param pacmtoken 用户token (可选,传入可看是否发表过表情)
757
+ * @param contentIds 歌曲id列表 (逗号分隔)
758
+ * @returns 表情数量,包含新pacmtoken
759
+ */
760
+ declare const getEmojiNum: (pacmtoken: string, contentIds: string) => Promise<{
761
+ data: any;
762
+ newPacmToken: string | undefined;
763
+ }>;
764
+
765
+ /**
766
+ * 心动模式推荐
767
+ * @param pacmtoken 用户token
768
+ * @param songId 单个歌曲 ID
769
+ * @returns 心动模式推荐歌曲和新pacmtoken
770
+ */
771
+ declare const getUserHeartthrob: (pacmtoken: string, songId: string) => Promise<{
772
+ data: any;
773
+ newPacmToken: string;
774
+ }>;
775
+
776
+ /**
777
+ * 删除云盘音乐
778
+ * @param pacmtoken 用户token
779
+ * @param contentIds 云盘音乐contentId列表 逗号分隔
780
+ * @returns 地址和新的pacmtoken
781
+ */
782
+ declare const deleteCloudMusic: (pacmtoken: string, contentIds: string) => Promise<{
783
+ data: {
784
+ success: boolean;
785
+ error: string;
786
+ };
787
+ newPacmToken: undefined;
788
+ } | {
789
+ data: any;
790
+ newPacmToken: string;
791
+ }>;
792
+
793
+ /**
794
+ * 用户互动消息
795
+ * @param pacmtoken 用户token
796
+ * @param page 页码
797
+ * @param size 每页大小
798
+ * @returns 用户互动和新的pacmtoken
799
+ */
800
+ declare const getInteractionMsg: (pacmtoken: string, type: string, page?: number, size?: number) => Promise<{
801
+ data: {
802
+ success: boolean;
803
+ error: string;
804
+ };
805
+ newPacmToken: undefined;
806
+ } | {
807
+ data: any;
808
+ newPacmToken: string;
809
+ }>;
810
+
811
+ /**
812
+ * 用户通知
813
+ * @param pacmtoken 用户token
814
+ * @param page 页码
815
+ * @param size 每页大小
816
+ * @returns 用户通知列表和新的pacmtoken
817
+ */
818
+ declare const getNoticeMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
819
+ data: any;
820
+ newPacmToken: string;
821
+ }>;
822
+
823
+ /**
824
+ * 用户收到的赞
825
+ * @param pacmtoken 用户token
826
+ * @param page 页码
827
+ * @param size 每页大小
828
+ * @returns 用户收到的赞和新的pacmtoken
829
+ */
830
+ declare const getThumbsMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
831
+ data: any;
832
+ newPacmToken: string;
833
+ }>;
834
+
835
+ declare const getCloudUploadUrl: (pacmtoken: string, file: File) => Promise<{
836
+ data: {
837
+ success: boolean;
838
+ error: string;
839
+ };
840
+ newPacmToken: undefined;
841
+ } | {
842
+ data: any;
843
+ newPacmToken: string;
844
+ }>;
845
+
846
+ /**
847
+ * 删除评论
848
+ * @param pacmtoken 用户token
849
+ * @param resourceId 评论id
850
+ * @returns 删除结果,包含新pacmtoken
851
+ */
852
+ declare const deleteComment: (pacmtoken: string, resourceId: string) => Promise<{
853
+ data: any;
854
+ newPacmToken: string;
855
+ }>;
856
+
857
+ /**
858
+ * 获取歌手情书
859
+ * @param singerId 歌手ID
860
+ * @returns 歌手情书
861
+ */
862
+ declare const getSingerLetter: (singerId: string, pageId?: string) => Promise<any>;
863
+
864
+ /**
865
+ * 获取歌手mv列表页
866
+ * @param singerId 歌手ID
867
+ * @returns mv列表页
868
+ */
869
+ declare const getSingerMv: (singerId: string, page?: number) => Promise<any>;
870
+
871
+ /**
872
+ * 获取云盘音乐下载地址
873
+ * @param pacmtoken 用户token
874
+ * @param contentId 云盘音乐contentId
875
+ * @param toneFlag 音乐质量 默认PQ
876
+ * @returns 地址和新的pacmtoken
877
+ */
878
+ declare const getCloudDLUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
879
+ data: any;
880
+ newPacmToken: string;
881
+ }>;
882
+
883
+ /**
884
+ * 获取用户手机号,彩铃信息
885
+ * @param pacmtoken 用户token
886
+ * @returns 用户完整手机号,彩铃信息和新的pacmtoken
887
+ */
888
+ declare const getUserPhoneInfo: (pacmtoken: string) => Promise<{
889
+ data: any;
890
+ newPacmToken: string;
891
+ }>;
892
+
893
+ /**
894
+ * 获取畅听tab
895
+ * @param pacmtoken 可选-登录凭证,用于获取所有场景 (无则3个)
896
+ * @returns 3个听歌模式,多个场景
897
+ */
898
+ declare const getListenFreelyTab: (pacmtoken?: string) => Promise<{
899
+ data: any;
900
+ newPacmToken: string | undefined;
901
+ }>;
902
+
903
+ /**
904
+ * 获取畅听歌曲
905
+ * @param pacmtoken 必填-登录凭证
906
+ * @param modelId 可选-模型ID,默认701000(默认模式)
907
+ * @returns 5个推荐歌曲
908
+ */
909
+ declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Promise<{
910
+ data: {
911
+ success: boolean;
912
+ code: string;
913
+ info: string;
914
+ };
915
+ newPacmToken: undefined;
916
+ } | {
917
+ data: any;
918
+ newPacmToken: string;
919
+ }>;
920
+
921
+ /**
922
+ * 歌单广场:根据标签获取歌单
923
+ * @returns
924
+ */
925
+ declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
926
+
927
+ /**
928
+ * 网页v5 歌单广场推荐歌单 (5个)
929
+ * @returns
930
+ */
931
+ declare const getSquareRecommend: () => Promise<any>;
932
+
933
+ /**
934
+ * 网页v5 歌单广场所有标签
935
+ * @returns
936
+ */
937
+ declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
938
+
939
+ /** 获取歌曲详情
940
+ * @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
941
+ */
942
+ declare const getSongInfo: (contentIds: string) => Promise<any>;
943
+
944
+ /**
945
+ * 查询已购歌曲
946
+ * @param pacmtoken 用户token
947
+ * @returns 已购歌曲列表
948
+ */
949
+ declare const getUserOrdered: (pacmtoken: string) => Promise<{
950
+ data: {
951
+ success: boolean;
952
+ code: string;
953
+ info: string;
954
+ };
955
+ newPacmToken: undefined;
956
+ } | {
957
+ data: any;
958
+ newPacmToken: string;
959
+ }>;
960
+
961
+ /**
962
+ * 获取数字专辑信息
963
+ * @param dAlbumId 数字专辑id
964
+ * @return
965
+ */
966
+ declare const getDAlbumInfo: (dAlbumId: string) => Promise<any>;
967
+
968
+ /**
969
+ * 获取数字专辑歌曲列表
970
+ * @param dAlbumId 数字专辑id
971
+ * @return 歌曲列表
972
+ */
973
+ declare const getDAlbumSong: (dAlbumId: string) => Promise<any>;
974
+
975
+ /**
976
+ * 获取数字专辑售卖信息
977
+ * @param dAlbumId 数字专辑id
978
+ * @return 数量
979
+ */
980
+ declare const getDAlbumPay: (dAlbumId: string) => Promise<any>;
981
+
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 };