migu-api-enhanced 2.25.0 → 2.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,1345 +1,2 @@
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) => 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
- * @returns 歌词文本
402
- */
403
- declare const getLyric: (contentId: string) => Promise<{
404
- error: string;
405
- success: boolean;
406
- status?: undefined;
407
- data?: undefined;
408
- lrc?: undefined;
409
- lrcUrl?: undefined;
410
- } | {
411
- success: boolean;
412
- status: number;
413
- error: any;
414
- data?: undefined;
415
- lrc?: undefined;
416
- lrcUrl?: undefined;
417
- } | {
418
- error: string;
419
- success: boolean;
420
- data: any;
421
- status?: undefined;
422
- lrc?: undefined;
423
- lrcUrl?: undefined;
424
- } | {
425
- success: boolean;
426
- status: number;
427
- error: string;
428
- data: any;
429
- lrc?: undefined;
430
- lrcUrl?: undefined;
431
- } | {
432
- success: boolean;
433
- lrc: any;
434
- lrcUrl: any;
435
- error?: undefined;
436
- status?: undefined;
437
- data?: undefined;
438
- }>;
439
-
440
- /**
441
- * 添加用户收藏
442
- * @param pacmtoken 用户pacmtoken
443
- * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
444
- * @param contentId 歌单id / 评论id / 专辑id
445
- * @param title 歌单标题 / 专辑标题 (type=playlist或album时必填)
446
- * @param userId 用户id (type=comment时必填)
447
- * @returns 添加结果和新的pacmtoken
448
- */
449
- declare const addUserCollect: (pacmtoken: string, type: string, contentId: string, title?: string, userId?: string) => Promise<{
450
- success: boolean;
451
- err: string;
452
- data?: undefined;
453
- newPacmToken?: undefined;
454
- } | {
455
- data: any;
456
- newPacmToken: string;
457
- success?: undefined;
458
- err?: undefined;
459
- }>;
460
-
461
- /**
462
- * 删除用户收藏
463
- * @param pacmtoken 用户pacmtoken
464
- * @param type 收藏类型 playlist:歌单 comment:评论 album:专辑
465
- * @param contentId 歌单id / 评论id / 专辑id
466
- * @param userId 用户id (type=comment时必填)
467
- * @returns 删除结果和新的pacmtoken
468
- */
469
- declare const removeUserCollect: (pacmtoken: string, type: string, contentId: string, userId?: string) => Promise<{
470
- success: boolean;
471
- err: string;
472
- data?: undefined;
473
- newPacmToken?: undefined;
474
- } | {
475
- data: any;
476
- newPacmToken: string;
477
- success?: undefined;
478
- err?: undefined;
479
- }>;
480
-
481
- /**
482
- * 添加喜欢音乐
483
- * @param pacmtoken 用户token
484
- * @param contentIds 音乐id列表,多个id用逗号隔开,例如:123,456,789
485
- * @returns 添加喜欢音乐结果,包含新pacmtoken
486
- */
487
- declare const likeSong: (pacmtoken: string, contentIds: string) => Promise<{
488
- data: any;
489
- newPacmToken: string;
490
- }>;
491
-
492
- /**
493
- * 移除喜欢音乐
494
- * @param pacmtoken 用户token
495
- * @param contentId 单个音乐id,例如:123
496
- * @returns 移除喜欢音乐结果,包含新pacmtoken
497
- */
498
- declare const dislikeSong: (pacmtoken: string, contentId: string) => Promise<{
499
- data: any;
500
- newPacmToken: string;
501
- }>;
502
-
503
- /**
504
- * 编辑播放列表
505
- * @param pacmtoken 用户token
506
- * @param title 播放列表名称
507
- * @param playlistId 播放列表id
508
- * @returns 编辑结果和新的pacmtoken
509
- */
510
- declare const editUserMyList: (pacmtoken: string, title: string, playlistId: string) => Promise<{
511
- data: any;
512
- newPacmToken: string;
513
- }>;
514
-
515
- /**
516
- * 创建播放列表
517
- * @param pacmtoken 用户token
518
- * @param title 播放列表名称
519
- * @returns 创建结果和新的pacmtoken
520
- */
521
- declare const addUserMyList: (pacmtoken: string, title: string) => Promise<{
522
- data: any;
523
- newPacmToken: string;
524
- }>;
525
-
526
- /**
527
- * 删除播放列表
528
- * @param pacmtoken 用户token
529
- * @param playlistId 播放列表id
530
- * @returns 删除结果和新的pacmtoken
531
- */
532
- declare const removeUserMyList: (pacmtoken: string, playlistId: string) => Promise<{
533
- data: any;
534
- newPacmToken: string;
535
- }>;
536
-
537
- /**
538
- * 获取电台歌曲
539
- * @param radioId 电台ID
540
- * @param page 页码
541
- * @returns
542
- */
543
- declare const getRadioSong: (radioId: string, page?: number) => Promise<any>;
544
-
545
- /**
546
- * 新碟上架
547
- * @returns
548
- */
549
- declare const getNewCDList: () => Promise<any>;
550
-
551
- /**
552
- * 新歌速递
553
- * @returns
554
- */
555
- declare const getNewSongList: () => Promise<any>;
556
-
557
- /**
558
- * 栏目内容
559
- * @param columnId 栏目ID
560
- * @returns
561
- */
562
- declare const getColumnInfo: (columnId: string) => Promise<any>;
563
-
564
- /**
565
- * 添加歌曲到播放列表
566
- * @param pacmtoken 用户token
567
- * @param playlistId 播放列表id
568
- * @param contentIds 歌曲id列表,逗号分隔
569
- * @returns 添加结果和新的pacmtoken
570
- */
571
- declare const addSongToMyList: (pacmtoken: string, playlistId: string, contentIds: string) => Promise<{
572
- data: any;
573
- newPacmToken: string;
574
- }>;
575
-
576
- /**
577
- * 删除播放列表中的歌曲
578
- * @param pacmtoken 用户token
579
- * @param playlistId 播放列表id
580
- * @param contentId 单个歌曲id
581
- * @returns 删除结果和新的pacmtoken
582
- */
583
- declare const removeSongFromMyList: (pacmtoken: string, playlistId: string, contentId: string) => Promise<{
584
- data: any;
585
- newPacmToken: string;
586
- }>;
587
-
588
- /**
589
- * 获取短视频用户信息
590
- * @param type uid 或 videoUserId
591
- * @param uid 视频用户uid
592
- * @param videoUserId 视频用户id
593
- * @returns 短视频用户信息
594
- */
595
- declare const getSVideoUserInfo: (type: string, uid?: string, videoUserId?: string) => Promise<any>;
596
-
597
- /**
598
- * 演唱会简略信息
599
- *
600
- * 返回 $.data.liveId 直播id 等等
601
- * @param concertId 单个演唱会id
602
- * @returns
603
- */
604
- declare const getConcertInfo: (concertId: string) => Promise<any>;
605
-
606
- /**
607
- * 获取演唱会url (auto hls)
608
- *
609
- * @param concertId 单个演唱会id
610
- * @param liveId 直播id (concert_info中获取)
611
- * @param rateLevel 视频质量 (1:普通 2:高清 3:超清)
612
- * @returns
613
- */
614
- declare const getConcertUrl: (concertId: string, liveId: string, rateLevel?: number) => Promise<any>;
615
-
616
- /**
617
- * 移动端演唱会详情
618
- *
619
- * $.data.contentItemList[0].itemList[0] 此演唱会简略信息
620
- *
621
- * $.data.contentItemList[3].itemList 精选视频-列表
622
- *
623
- * $.data.contentItemList[6].itemList 热门演唱会-列表
624
- *
625
- * @param concertId 单个演唱会id
626
- * @returns
627
- */
628
- declare const getConcertDetail: (concertId: string) => Promise<any>;
629
-
630
- /**
631
- * 演唱会评论
632
- * @param concertId 单个演唱会id
633
- * @param page 翻页
634
- * @param size 单页大小
635
- * @returns
636
- */
637
- declare const getConcertComment: (concertId: string, page?: number, size?: number) => Promise<any>;
638
-
639
- declare const matchPlaylist: (url: string) => Promise<any>;
640
-
641
- /**
642
- * 获取重定向URL
643
- * @param contentId 音乐ID
644
- * @param toneFlag 音色
645
- * @param isVip 是否为会员音乐 未知,是会员音乐true,不是会员音乐false
646
- * @returns 重定向URL
647
- */
648
- declare const getRedirectUrl: (contentId: string, toneFlag?: string, copyrightId?: string, isVip?: boolean) => Promise<string>;
649
-
650
- /**
651
- * 通过演唱会推荐 MV
652
- * @param concertId 单个演唱会id
653
- * @returns
654
- */
655
- declare const getConcertRecommendMv: (concertId: string) => Promise<any>;
656
-
657
- /**
658
- * 获取歌曲的 MV 视频
659
- * @param songId 歌曲ID
660
- * @returns MV视频信息
661
- */
662
- declare const getMvBySong: (songId: string) => Promise<any>;
663
-
664
- /**
665
- * 是否关注作者
666
- * @param pacmtoken 用户token
667
- * @param authorIds 作者id列表,逗号分隔
668
- * @param authorType 作者类型 (singer)
669
- * @returns 是否关注结果和新的pacmtoken
670
- */
671
- declare const isFollowAuthor: (pacmtoken: string, authorIds: string, authorType?: string) => Promise<{
672
- success: boolean;
673
- data: {
674
- error: string;
675
- };
676
- newPacmToken: string;
677
- } | {
678
- data: any;
679
- newPacmToken: string;
680
- success?: undefined;
681
- }>;
682
-
683
- /**
684
- * VIP 热歌
685
- * @param size 数量
686
- * @returns
687
- */
688
- declare const getVipPlaylist: (size?: number) => Promise<any>;
689
-
690
- /**
691
- * 用户简介
692
- * @param userId 用户id
693
- * @returns 用户简介
694
- */
695
- declare const getUserHeader: (userId: string) => Promise<any>;
696
-
697
- /**
698
- * 获取用户歌曲主页
699
- * @param userId 用户id (可选)
700
- * @param videoUserId 视频用户id (可选)
701
- * @returns 用户歌曲主页
702
- */
703
- declare const getUserSongPage: (userId?: string, videoUserId?: string) => Promise<any>;
704
-
705
- /**
706
- * 移动端获取页面信息
707
- * @param pageId 页面ID (二选一)
708
- * @param sceneId 场景ID (二选一)
709
- * @returns
710
- */
711
- declare const getPageInfo: (pageId?: string, sceneId?: string) => Promise<any>;
712
-
713
- /**
714
- * 移动端页面底部tab
715
- * @returns 主页面 + 子页面
716
- */
717
- declare const getPageTab: () => Promise<any>;
718
-
719
- /**
720
- * 短视频用户推荐
721
- * @param pacmtoken 用户授权token
722
- * @returns 短视频用户推荐
723
- */
724
- declare const getSVideoRecommend: (pacmtoken: string) => Promise<{
725
- data: any;
726
- newPacmToken: string;
727
- }>;
728
-
729
- /**
730
- * 用户关注视彩号列表
731
- * @param userId 用户ID
732
- * @param page 分页
733
- * @returns 关注列表
734
- */
735
- declare const getFollowingVra: (userId: string, page?: number) => Promise<any>;
736
-
737
- declare namespace Follower {
738
- interface Music {
739
- type: 'music';
740
- userId: string;
741
- page?: number;
742
- size?: number;
743
- }
744
- interface Vrbt_V {
745
- type: 'vrbt';
746
- userId?: string;
747
- videoUserId: string;
748
- }
749
- interface Vrbt_U {
750
- type: 'vrbt';
751
- userId: string;
752
- videoUserId?: string;
753
- }
754
- type params = Music | Vrbt_V | Vrbt_U;
755
- }
756
-
757
- /**
758
- * 获取粉丝列表
759
- * @description 不同类型返回值格式不同
760
- * @param params 参数
761
- * @param params.type 类型,music或vrbt
762
- * @param params.userId 用户ID
763
- * @param params.videoUserId 视频用户ID
764
- * @param params.page 页码
765
- * @param params.size 每页数量
766
- * @returns 粉丝列表
767
- */
768
- declare const getFollowerList: (params: Follower.params) => Promise<any>;
769
-
770
- /**
771
- * 获取关注列表
772
- * @param userId 用户ID
773
- * @param type 关注类型,user或singer
774
- * @param page 页码
775
- * @param size 每页数量
776
- * @returns 关注列表
777
- */
778
- declare const getFollowingList: (userId: string, type: string, page?: number, size?: number) => Promise<any>;
779
-
780
- /**
781
- * 关注歌手
782
- * @param pacmtoken 用户token
783
- * @param singerId 歌手id
784
- * @returns 关注结果和新的pacmtoken
785
- */
786
- declare const addFollower: (pacmtoken: string, singerId: string) => Promise<{
787
- data: any;
788
- newPacmToken: string;
789
- }>;
790
-
791
- /**
792
- * 取消关注歌手
793
- * @param pacmtoken 用户token
794
- * @param singerId 歌手id
795
- * @returns 取消关注结果和新的pacmtoken
796
- */
797
- declare const removeFollower: (pacmtoken: string, singerId: string) => Promise<{
798
- data: any;
799
- newPacmToken: string;
800
- }>;
801
-
802
- /**
803
- * 用户退出登录
804
- * @param pacmtoken 用户token
805
- * @returns 退出登录结果
806
- */
807
- declare const logout: (pacmtoken: string) => Promise<any>;
808
-
809
- /**
810
- * 分享视频
811
- * @param resourceType 资源类型 6000:短视频 D:MV M:视频彩铃
812
- * @param contentId 短视频id / MVid / vrbtId
813
- * @param userId 视频用户id (可选)
814
- * @returns 分享信息 (url)
815
- */
816
- declare const shareVideo: (resourceType: string, contentId: string, userId?: string) => Promise<any>;
817
-
818
- /**
819
- * 分享通用内容
820
- * @param resourceType 资源类型 2:歌曲 2021:歌单 2003:专辑 2002:歌手
821
- * @param contentId 内容id 歌曲contentId / albumId / artistId / playlistId
822
- * @param contentName 歌曲名称 / 专辑名称 / 歌手名称 / 播放列表名称
823
- * @param targetUserName 当前歌单作者/歌手名称 (可选)
824
- * @param copyrightId 歌曲版权id (可选)
825
- * @returns 分享信息 (url)
826
- */
827
- declare const shareCommon: (resourceType: string, contentId: string, contentName: string, targetUserName?: string, copyrightId?: string) => Promise<any>;
828
-
829
- /**
830
- * 我的听书记录
831
- * @param pacmtoken 用户token
832
- * @returns 用户听书记录信息和新的pacmtoken
833
- */
834
- declare const getUserAudioBook: (pacmtoken: string, recentListenNum?: number, recommendNum?: number) => Promise<{
835
- data: any;
836
- newPacmToken: string;
837
- }>;
838
-
839
- /**
840
- * 听歌排行
841
- * @param pacmtoken 用户token
842
- * @param type 排行类型: week:最近一周 year:过去三年
843
- * @returns 听歌排行列表,包含新pacmtoken
844
- */
845
- declare const getListenRank: (pacmtoken: string, type: string) => Promise<{
846
- data: any;
847
- newPacmToken: string;
848
- }>;
849
-
850
- /**
851
- * 获取云盘音乐播放地址
852
- * @param pacmtoken 用户token
853
- * @param contentId 云盘音乐contentId
854
- * @param toneFlag 音乐质量 默认PQ
855
- * @returns 地址和新的pacmtoken
856
- */
857
- declare const getCloudUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
858
- data: any;
859
- newPacmToken: string;
860
- }>;
861
-
862
- declare const getDLUrlV1: (songId: string, toneFlag?: string) => Promise<any>;
863
-
864
- declare const getUrlM2: (contentId: string, toneFlag?: string, copyrightId?: string, songId?: string, albumId?: string) => Promise<any>;
865
-
866
- /**
867
- * 歌曲enoji表态
868
- * @param pacmtoken 用户token
869
- * @param contentId 歌曲id
870
- * @param emojiId 表情id
871
- * @param action 表情操作
872
- * @returns 表情数量,包含新pacmtoken
873
- */
874
- declare const emojiAction: (pacmtoken: string, contentId: string, emojiId: string, action: string) => Promise<{
875
- data: any;
876
- newPacmToken: string;
877
- }>;
878
-
879
- /**
880
- * 获取歌曲表情数量
881
- * @param pacmtoken 用户token (可选,传入可看是否发表过表情)
882
- * @param contentIds 歌曲id列表 (逗号分隔)
883
- * @returns 表情数量,包含新pacmtoken
884
- */
885
- declare const getEmojiNum: (pacmtoken: string, contentIds: string) => Promise<{
886
- data: any;
887
- newPacmToken: string | undefined;
888
- }>;
889
-
890
- /**
891
- * 心动模式推荐
892
- * @param pacmtoken 用户token
893
- * @param songId 单个歌曲 ID
894
- * @returns 心动模式推荐歌曲和新pacmtoken
895
- */
896
- declare const getUserHeartthrob: (pacmtoken: string, songId: string) => Promise<{
897
- data: any;
898
- newPacmToken: string;
899
- }>;
900
-
901
- /**
902
- * 删除云盘音乐
903
- * @param pacmtoken 用户token
904
- * @param contentIds 云盘音乐contentId列表 逗号分隔
905
- * @returns 地址和新的pacmtoken
906
- */
907
- declare const deleteCloudMusic: (pacmtoken: string, contentIds: string) => Promise<{
908
- data: {
909
- success: boolean;
910
- error: string;
911
- };
912
- newPacmToken: undefined;
913
- } | {
914
- data: any;
915
- newPacmToken: string;
916
- }>;
917
-
918
- /**
919
- * 用户互动消息
920
- * @param pacmtoken 用户token
921
- * @param page 页码
922
- * @param size 每页大小
923
- * @returns 用户互动和新的pacmtoken
924
- */
925
- declare const getInteractionMsg: (pacmtoken: string, type: string, page?: number, size?: number) => Promise<{
926
- data: {
927
- success: boolean;
928
- error: string;
929
- };
930
- newPacmToken: undefined;
931
- } | {
932
- data: any;
933
- newPacmToken: string;
934
- }>;
935
-
936
- /**
937
- * 用户通知
938
- * @param pacmtoken 用户token
939
- * @param page 页码
940
- * @param size 每页大小
941
- * @returns 用户通知列表和新的pacmtoken
942
- */
943
- declare const getNoticeMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
944
- data: any;
945
- newPacmToken: string;
946
- }>;
947
-
948
- /**
949
- * 用户收到的赞
950
- * @param pacmtoken 用户token
951
- * @param page 页码
952
- * @param size 每页大小
953
- * @returns 用户收到的赞和新的pacmtoken
954
- */
955
- declare const getThumbsMsg: (pacmtoken: string, page?: number, size?: number) => Promise<{
956
- data: any;
957
- newPacmToken: string;
958
- }>;
959
-
960
- declare const getCloudUploadUrl: (pacmtoken: string, file: File) => Promise<{
961
- data: {
962
- success: boolean;
963
- error: string;
964
- };
965
- newPacmToken: undefined;
966
- } | {
967
- data: any;
968
- newPacmToken: string;
969
- }>;
970
-
971
- /**
972
- * 删除评论
973
- * @param pacmtoken 用户token
974
- * @param resourceId 评论id
975
- * @returns 删除结果,包含新pacmtoken
976
- */
977
- declare const deleteComment: (pacmtoken: string, resourceId: string) => Promise<{
978
- data: any;
979
- newPacmToken: string;
980
- }>;
981
-
982
- /**
983
- * 获取歌手情书
984
- * @param singerId 歌手ID
985
- * @returns 歌手情书
986
- */
987
- declare const getSingerLetter: (singerId: string, pageId?: string) => Promise<any>;
988
-
989
- /**
990
- * 获取歌手mv列表页
991
- * @param singerId 歌手ID
992
- * @returns mv列表页
993
- */
994
- declare const getSingerMv: (singerId: string, page?: number) => Promise<any>;
995
-
996
- /**
997
- * AI豆签到
998
- * @param pacmtoken - 用户认证 token
999
- * @returns 签到结果和新的 pacmtoken
1000
- */
1001
- declare const signAiBean: (pacmtoken: string) => Promise<{
1002
- data: any;
1003
- newPacmToken: string;
1004
- }>;
1005
- /**
1006
- * 获取AI豆数量
1007
- * @param pacmtoken - 用户认证 token
1008
- * @returns AI豆数量
1009
- */
1010
- declare const getAiBeanCount: (pacmtoken: string) => Promise<{
1011
- data: any;
1012
- newPacmToken: string;
1013
- }>;
1014
- /**
1015
- * 获取AI豆签到状态
1016
- * @param pacmtoken - 用户认证 token
1017
- * @returns AI豆签到状态
1018
- */
1019
- declare const getAiBeanSignStatus: (pacmtoken: string) => Promise<{
1020
- data: any;
1021
- newPacmToken: string;
1022
- }>;
1023
- /**
1024
- * AI豆-获取一天的天籁会员
1025
- * @param pacmtoken - 用户认证 token
1026
- * @returns AI豆数量
1027
- */
1028
- declare const redeemAiBean: (pacmtoken: string) => Promise<{
1029
- data: any;
1030
- newPacmToken: string;
1031
- }>;
1032
-
1033
- /**
1034
- * 获取云盘音乐下载地址
1035
- * @param pacmtoken 用户token
1036
- * @param contentId 云盘音乐contentId
1037
- * @param toneFlag 音乐质量 默认PQ
1038
- * @returns 地址和新的pacmtoken
1039
- */
1040
- declare const getCloudDLUrl: (pacmtoken: string, contentId: string, toneFlag?: string) => Promise<{
1041
- data: any;
1042
- newPacmToken: string;
1043
- }>;
1044
-
1045
- /**
1046
- * 获取用户手机号,彩铃信息
1047
- * @param pacmtoken 用户token
1048
- * @returns 用户完整手机号,彩铃信息和新的pacmtoken
1049
- */
1050
- declare const getUserPhoneInfo: (pacmtoken: string) => Promise<{
1051
- data: any;
1052
- newPacmToken: string;
1053
- }>;
1054
-
1055
- /**
1056
- * 获取畅听tab
1057
- * @param pacmtoken 可选-登录凭证,用于获取所有场景 (无则3个)
1058
- * @returns 3个听歌模式,多个场景
1059
- */
1060
- declare const getListenFreelyTab: (pacmtoken?: string) => Promise<{
1061
- data: any;
1062
- newPacmToken: string | undefined;
1063
- }>;
1064
-
1065
- /**
1066
- * 获取畅听歌曲
1067
- * @param pacmtoken 必填-登录凭证
1068
- * @param modelId 可选-模型ID,默认701000(默认模式)
1069
- * @returns 5个推荐歌曲
1070
- */
1071
- declare const getListenFreelySongs: (pacmtoken: string, modelId?: string) => Promise<{
1072
- data: {
1073
- success: boolean;
1074
- code: string;
1075
- info: string;
1076
- };
1077
- newPacmToken: undefined;
1078
- } | {
1079
- data: any;
1080
- newPacmToken: string;
1081
- }>;
1082
-
1083
- /**
1084
- * 歌单广场:根据标签获取歌单
1085
- * @returns
1086
- */
1087
- declare const getSquareListByTag: (tagId: string, page: number) => Promise<any>;
1088
-
1089
- /**
1090
- * 网页v5 歌单广场推荐歌单 (5个)
1091
- * @returns
1092
- */
1093
- declare const getSquareRecommend: () => Promise<any>;
1094
-
1095
- /**
1096
- * 网页v5 歌单广场所有标签
1097
- * @returns
1098
- */
1099
- declare const getSquareTag: (needMoreTag?: boolean) => Promise<any>;
1100
-
1101
- /** 获取歌曲详情
1102
- * @param contentIds 歌曲ID列表,多个ID用|分隔 600919000007791840|600929000001520013
1103
- */
1104
- declare const getSongInfo: (contentIds: string) => Promise<any>;
1105
-
1106
- declare const getActivities: () => Promise<any>;
1107
-
1108
- /**
1109
- * 查询已购歌曲
1110
- * @param pacmtoken 用户token
1111
- * @returns 已购歌曲列表
1112
- */
1113
- declare const getUserOrdered: (pacmtoken: string) => Promise<{
1114
- data: {
1115
- success: boolean;
1116
- code: string;
1117
- info: string;
1118
- };
1119
- newPacmToken: undefined;
1120
- } | {
1121
- data: any;
1122
- newPacmToken: string;
1123
- }>;
1124
-
1125
- /**
1126
- * modules 子目录统一入口
1127
- * 汇总导出所有 API 函数
1128
- */
1129
-
1130
- declare const api_YDRZ: typeof YDRZ;
1131
- declare const api_addFollower: typeof addFollower;
1132
- declare const api_addSongToMyList: typeof addSongToMyList;
1133
- declare const api_addUserCollect: typeof addUserCollect;
1134
- declare const api_addUserMyList: typeof addUserMyList;
1135
- declare const api_checkCanListen: typeof checkCanListen;
1136
- declare const api_checkToken: typeof checkToken;
1137
- declare const api_deleteCloudMusic: typeof deleteCloudMusic;
1138
- declare const api_deleteComment: typeof deleteComment;
1139
- declare const api_dislikeSong: typeof dislikeSong;
1140
- declare const api_editUserMyList: typeof editUserMyList;
1141
- declare const api_emojiAction: typeof emojiAction;
1142
- declare const api_getActivities: typeof getActivities;
1143
- declare const api_getAiBeanCount: typeof getAiBeanCount;
1144
- declare const api_getAiBeanSignStatus: typeof getAiBeanSignStatus;
1145
- declare const api_getAlbumInfo: typeof getAlbumInfo;
1146
- declare const api_getAlbumSong: typeof getAlbumSong;
1147
- declare const api_getCloudDLUrl: typeof getCloudDLUrl;
1148
- declare const api_getCloudUploadUrl: typeof getCloudUploadUrl;
1149
- declare const api_getCloudUrl: typeof getCloudUrl;
1150
- declare const api_getColumnInfo: typeof getColumnInfo;
1151
- declare const api_getComment: typeof getComment;
1152
- declare const api_getConcertComment: typeof getConcertComment;
1153
- declare const api_getConcertDetail: typeof getConcertDetail;
1154
- declare const api_getConcertInfo: typeof getConcertInfo;
1155
- declare const api_getConcertRecommendMv: typeof getConcertRecommendMv;
1156
- declare const api_getConcertUrl: typeof getConcertUrl;
1157
- declare const api_getDLUrlV1: typeof getDLUrlV1;
1158
- declare const api_getEmojiNum: typeof getEmojiNum;
1159
- declare const api_getFollowerList: typeof getFollowerList;
1160
- declare const api_getFollowingList: typeof getFollowingList;
1161
- declare const api_getFollowingVra: typeof getFollowingVra;
1162
- declare const api_getInteractionMsg: typeof getInteractionMsg;
1163
- declare const api_getListenFreelySongs: typeof getListenFreelySongs;
1164
- declare const api_getListenFreelyTab: typeof getListenFreelyTab;
1165
- declare const api_getListenRank: typeof getListenRank;
1166
- declare const api_getLyric: typeof getLyric;
1167
- declare const api_getMVRecommend: typeof getMVRecommend;
1168
- declare const api_getMvBySong: typeof getMvBySong;
1169
- declare const api_getMvHls: typeof getMvHls;
1170
- declare const api_getMvInfo: typeof getMvInfo;
1171
- declare const api_getNewCDList: typeof getNewCDList;
1172
- declare const api_getNewSongList: typeof getNewSongList;
1173
- declare const api_getNinanByDate: typeof getNinanByDate;
1174
- declare const api_getNinanSignInfo: typeof getNinanSignInfo;
1175
- declare const api_getNinanSong: typeof getNinanSong;
1176
- declare const api_getNoticeMsg: typeof getNoticeMsg;
1177
- declare const api_getOpNum: typeof getOpNum;
1178
- declare const api_getPacmToken: typeof getPacmToken;
1179
- declare const api_getPageInfo: typeof getPageInfo;
1180
- declare const api_getPageTab: typeof getPageTab;
1181
- declare const api_getPlaylistInfo: typeof getPlaylistInfo;
1182
- declare const api_getPlaylistSong: typeof getPlaylistSong;
1183
- declare const api_getRadioRecommend: typeof getRadioRecommend;
1184
- declare const api_getRadioRecommendAll: typeof getRadioRecommendAll;
1185
- declare const api_getRadioSong: typeof getRadioSong;
1186
- declare const api_getRankIndex: typeof getRankIndex;
1187
- declare const api_getRankInfo: typeof getRankInfo;
1188
- declare const api_getRecommendPlaylist: typeof getRecommendPlaylist;
1189
- declare const api_getRedirectUrl: typeof getRedirectUrl;
1190
- declare const api_getResourceInfo: typeof getResourceInfo;
1191
- declare const api_getSVideoInfo: typeof getSVideoInfo;
1192
- declare const api_getSVideoRecommend: typeof getSVideoRecommend;
1193
- declare const api_getSVideoSearchSuggest: typeof getSVideoSearchSuggest;
1194
- declare const api_getSVideoUrl: typeof getSVideoUrl;
1195
- declare const api_getSVideoUserContent: typeof getSVideoUserContent;
1196
- declare const api_getSVideoUserInfo: typeof getSVideoUserInfo;
1197
- declare const api_getSceneRecommend: typeof getSceneRecommend;
1198
- declare const api_getSearchDefault: typeof getSearchDefault;
1199
- declare const api_getSearchHot: typeof getSearchHot;
1200
- declare const api_getSearchSingerTab: typeof getSearchSingerTab;
1201
- declare const api_getSearchSingerTabList: typeof getSearchSingerTabList;
1202
- declare const api_getSimilarSongRecommend: typeof getSimilarSongRecommend;
1203
- declare const api_getSingerAlbum: typeof getSingerAlbum;
1204
- declare const api_getSingerIndex: typeof getSingerIndex;
1205
- declare const api_getSingerLetter: typeof getSingerLetter;
1206
- declare const api_getSingerMv: typeof getSingerMv;
1207
- declare const api_getSingerSimilar: typeof getSingerSimilar;
1208
- declare const api_getSingerSong: typeof getSingerSong;
1209
- declare const api_getSongInfo: typeof getSongInfo;
1210
- declare const api_getSquareListByTag: typeof getSquareListByTag;
1211
- declare const api_getSquarePage: typeof getSquarePage;
1212
- declare const api_getSquareRecommend: typeof getSquareRecommend;
1213
- declare const api_getSquareTag: typeof getSquareTag;
1214
- declare const api_getThumbsMsg: typeof getThumbsMsg;
1215
- declare const api_getTicketInfo: typeof getTicketInfo;
1216
- declare const api_getTodayRecommend: typeof getTodayRecommend;
1217
- declare const api_getUrlH5V24: typeof getUrlH5V24;
1218
- declare const api_getUrlM2: typeof getUrlM2;
1219
- declare const api_getUrlV1: typeof getUrlV1;
1220
- declare const api_getUrlV2: typeof getUrlV2;
1221
- declare const api_getUserAudioBook: typeof getUserAudioBook;
1222
- declare const api_getUserBadge: typeof getUserBadge;
1223
- declare const api_getUserCollectList: typeof getUserCollectList;
1224
- declare const api_getUserHeader: typeof getUserHeader;
1225
- declare const api_getUserHeartthrob: typeof getUserHeartthrob;
1226
- declare const api_getUserHomePage: typeof getUserHomePage;
1227
- declare const api_getUserMyList: typeof getUserMyList;
1228
- declare const api_getUserOrdered: typeof getUserOrdered;
1229
- declare const api_getUserPhoneInfo: typeof getUserPhoneInfo;
1230
- declare const api_getUserSongPage: typeof getUserSongPage;
1231
- declare const api_getVersion: typeof getVersion;
1232
- declare const api_getVipPlaylist: typeof getVipPlaylist;
1233
- declare const api_getVrbtOpNum: typeof getVrbtOpNum;
1234
- declare const api_getVrbtUrl: typeof getVrbtUrl;
1235
- declare const api_isFollowAuthor: typeof isFollowAuthor;
1236
- declare const api_likeSong: typeof likeSong;
1237
- declare const api_loginNP: typeof loginNP;
1238
- declare const api_loginOneClick: typeof loginOneClick;
1239
- declare const api_loginPhone: typeof loginPhone;
1240
- declare const api_loginSim: typeof loginSim;
1241
- declare const api_logout: typeof logout;
1242
- declare const api_matchPlaylist: typeof matchPlaylist;
1243
- declare const api_queryUserInfo: typeof queryUserInfo;
1244
- declare const api_redeemAiBean: typeof redeemAiBean;
1245
- declare const api_removeFollower: typeof removeFollower;
1246
- declare const api_removeSongFromMyList: typeof removeSongFromMyList;
1247
- declare const api_removeUserCollect: typeof removeUserCollect;
1248
- declare const api_removeUserMyList: typeof removeUserMyList;
1249
- declare const api_searchAlbum: typeof searchAlbum;
1250
- declare const api_searchConcert: typeof searchConcert;
1251
- declare const api_searchLrc: typeof searchLrc;
1252
- declare const api_searchMv: typeof searchMv;
1253
- declare const api_searchPlaylist: typeof searchPlaylist;
1254
- declare const api_searchRbt: typeof searchRbt;
1255
- declare const api_searchSVideo: typeof searchSVideo;
1256
- declare const api_searchSinger: typeof searchSinger;
1257
- declare const api_searchSong: typeof searchSong;
1258
- declare const api_searchSuggest: typeof searchSuggest;
1259
- declare const api_searchTicket: typeof searchTicket;
1260
- declare const api_shareCommon: typeof shareCommon;
1261
- declare const api_shareVideo: typeof shareVideo;
1262
- declare const api_signAiBean: typeof signAiBean;
1263
- declare const api_signNinan: typeof signNinan;
1264
- declare namespace api {
1265
- 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_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 };
1266
- }
1267
-
1268
- declare function getDeviceId(a?: number, b?: number): string;
1269
-
1270
- declare const getPublicKey: () => Promise<{
1271
- publicExponent: string;
1272
- modulus: string;
1273
- }>;
1274
-
1275
- declare class RSAKey {
1276
- private publicKey;
1277
- setPublic(modulus: string, exponent: string): void;
1278
- encrypt(text: string): string | null;
1279
- }
1280
-
1281
- declare function URLParams($: object | string): string;
1282
-
1283
- declare const qualityList: readonly ["LQ", "PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D", "3D60"];
1284
- type Quality = (typeof qualityList)[number];
1285
- declare const toneUrl: {
1286
- LQ: string;
1287
- PQ: string;
1288
- HQ: string;
1289
- SQ: string;
1290
- ZQ24: string;
1291
- ZQ32: string;
1292
- Z3D: string;
1293
- '3D60': string;
1294
- };
1295
- declare const toneFormat: {
1296
- LQ: string;
1297
- PQ: string;
1298
- HQ: string;
1299
- SQ: string;
1300
- ZQ24: string;
1301
- ZQ32: string;
1302
- Z3D: string;
1303
- '3D60': string;
1304
- };
1305
- declare function isQuality(quality: string | undefined): quality is Quality;
1306
- declare function getQuality(url: string): Quality | '';
1307
- declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
1308
-
1309
- declare const getResourceId: (name: string) => "" | "2" | "2021" | "3002" | "2003" | "2002" | "2016" | "6000" | "D" | "M";
1310
-
1311
- type index_Quality = Quality;
1312
- type index_RSAKey = RSAKey;
1313
- declare const index_RSAKey: typeof RSAKey;
1314
- declare const index_URLParams: typeof URLParams;
1315
- declare const index_changeQuality: typeof changeQuality;
1316
- declare const index_getDeviceId: typeof getDeviceId;
1317
- declare const index_getPublicKey: typeof getPublicKey;
1318
- declare const index_getQuality: typeof getQuality;
1319
- declare const index_getResourceId: typeof getResourceId;
1320
- declare const index_isQuality: typeof isQuality;
1321
- declare const index_qualityList: typeof qualityList;
1322
- declare const index_toneFormat: typeof toneFormat;
1323
- declare const index_toneUrl: typeof toneUrl;
1324
- declare namespace index {
1325
- export { type index_Quality as Quality, index_RSAKey as RSAKey, index_URLParams as URLParams, index_changeQuality as changeQuality, 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_toneFormat as toneFormat, index_toneUrl as toneUrl };
1326
- }
1327
-
1328
- /**
1329
- * migu-api-enhanced 包入口
1330
- * 直接复用 modules 导出,提供 createClient 工厂
1331
- */
1332
-
1333
- type ExpandedApi<T> = {
1334
- [P in keyof T]: T[P];
1335
- };
1336
- /**
1337
- * 创建一个咪咕 API 客户端实例
1338
- * 返回对象包含所有 API 方法(直接复用 modules 函数)
1339
- * @returns 包含所有 API 方法的对象
1340
- */
1341
- declare function createClient(): ExpandedApi<typeof api>;
1342
- /** 客户端类型 */
1343
- type MiguClient = ReturnType<typeof createClient>;
1344
-
1345
- export { type MiguClient, index as MiguUtils, type Quality, RSAKey, URLParams, YDRZ, addFollower, addSongToMyList, addUserCollect, addUserMyList, changeQuality, checkCanListen, checkToken, createClient, deleteCloudMusic, deleteComment, dislikeSong, editUserMyList, emojiAction, getActivities, getAiBeanCount, getAiBeanSignStatus, getAlbumInfo, getAlbumSong, getCloudDLUrl, getCloudUploadUrl, getCloudUrl, getColumnInfo, getComment, getConcertComment, getConcertDetail, getConcertInfo, getConcertRecommendMv, getConcertUrl, 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, toneFormat, toneUrl };
1
+ export * from './modules/index';
2
+ export * from './utils/index';