interface.d.ts 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833
  1. export interface RequestBaseConfig {
  2. cookie?: string
  3. realIP?: string // IPv4/IPv6 filled in X-Real-IP
  4. proxy?: string // HTTP proxy
  5. }
  6. export interface MultiPageConfig {
  7. limit?: string | number
  8. offset?: string | number
  9. }
  10. export interface ImageUploadConfig {
  11. imgFile: {
  12. name: string
  13. data: string | Buffer
  14. }
  15. imgSize?: number
  16. imgX?: number
  17. imgY?: number
  18. }
  19. export interface APIBaseResponse {
  20. code: number
  21. cookie: string
  22. [index: string]: unknown
  23. }
  24. export interface Response<Body = APIBaseResponse> {
  25. status: number // The Http Response Code
  26. body: Body // API Response body
  27. cookie: string[]
  28. }
  29. export const enum SubAction {
  30. sub = 1,
  31. unsub = 0,
  32. }
  33. export function activate_init_profile(
  34. params: { nickname: string } & RequestBaseConfig,
  35. ): Promise<Response>
  36. export function album(
  37. params: { id: string | number } & RequestBaseConfig,
  38. ): Promise<Response>
  39. export function album_detail(
  40. params: { id: string | number } & RequestBaseConfig,
  41. ): Promise<Response>
  42. export function album_detail_dynamic(
  43. params: { id: string | number } & RequestBaseConfig,
  44. ): Promise<Response>
  45. export const enum AlbumListArea {
  46. all = 'ALL',
  47. zh = 'ZH',
  48. ea = 'EA',
  49. kr = 'KR',
  50. jp = 'JP',
  51. }
  52. export const enum ListOrder {
  53. hot = 'hot',
  54. new = 'new',
  55. }
  56. export function album_list(
  57. params: { area?: AlbumListArea; type: string } & MultiPageConfig &
  58. RequestBaseConfig,
  59. ): Promise<Response>
  60. export const enum AlbumListStyleArea {
  61. zh = 'Z_H',
  62. ea = 'E_A',
  63. kr = 'KR',
  64. jp = 'JP',
  65. }
  66. export function album_list_style(
  67. params: { area?: AlbumListStyleArea } & MultiPageConfig & RequestBaseConfig,
  68. ): Promise<Response>
  69. export function album_new(
  70. params: { area?: AlbumListArea } & MultiPageConfig & RequestBaseConfig,
  71. ): Promise<Response>
  72. export function album_newest(params: RequestBaseConfig): Promise<Response>
  73. export const enum AlbumSongsaleboardType {
  74. daily = 'daily',
  75. week = 'week',
  76. year = 'year',
  77. total = 'total',
  78. }
  79. export const enum AlbumSongsaleboardAlbumType {
  80. album = 0,
  81. single = 1,
  82. }
  83. export function album_songsaleboard(
  84. params: {
  85. albumType?: AlbumSongsaleboardAlbumType // 0 为数字专辑,1 为数字单曲
  86. type?: AlbumSongsaleboardType
  87. year?: string | number // 年份,默认本年。 type 为 year 时有效
  88. } & RequestBaseConfig,
  89. ): Promise<Response>
  90. export function album_sub(
  91. params: {
  92. id: string | number
  93. t: SubAction
  94. } & RequestBaseConfig,
  95. ): Promise<Response>
  96. export function album_sublist(
  97. params: MultiPageConfig & RequestBaseConfig,
  98. ): Promise<Response>
  99. export function artist_album(
  100. params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
  101. ): Promise<Response>
  102. export function artist_desc(
  103. params: { id: string | number } & RequestBaseConfig,
  104. ): Promise<Response>
  105. export const enum ArtistListArea {
  106. zh = 'Z_H',
  107. ea = 'E_A',
  108. kr = 'KR',
  109. jp = 'JP',
  110. }
  111. export const enum ArtistArea {
  112. all = '-1',
  113. zh = '7',
  114. ea = '96',
  115. ja = '8',
  116. kr = '16',
  117. other = '0',
  118. }
  119. export const enum ArtistType {
  120. male = '1',
  121. female = '2',
  122. band = '3',
  123. }
  124. export function artist_list(
  125. params: {
  126. area: ArtistArea
  127. initial?:
  128. | 'a'
  129. | 'b'
  130. | 'c'
  131. | 'd'
  132. | 'e'
  133. | 'f'
  134. | 'g'
  135. | 'h'
  136. | 'i'
  137. | 'j'
  138. | 'k'
  139. | 'l'
  140. | 'm'
  141. | 'n'
  142. | 'o'
  143. | 'p'
  144. | 'q'
  145. | 'r'
  146. | 's'
  147. | 't'
  148. | 'u'
  149. | 'v'
  150. | 'w'
  151. | 'x'
  152. | 'y'
  153. | 'z'
  154. | 'A'
  155. | 'B'
  156. | 'C'
  157. | 'D'
  158. | 'E'
  159. | 'F'
  160. | 'G'
  161. | 'H'
  162. | 'I'
  163. | 'J'
  164. | 'K'
  165. | 'L'
  166. | 'M'
  167. | 'N'
  168. | 'O'
  169. | 'P'
  170. | 'Q'
  171. | 'R'
  172. | 'S'
  173. | 'T'
  174. | 'U'
  175. | 'V'
  176. | 'W'
  177. | 'X'
  178. | 'Y'
  179. | 'Z'
  180. type?: ArtistType
  181. } & MultiPageConfig &
  182. RequestBaseConfig,
  183. ): Promise<Response>
  184. export function artist_mv(
  185. params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
  186. ): Promise<Response>
  187. export const enum ArtistSongsOrder {
  188. hot = 'hot',
  189. time = 'time',
  190. }
  191. export function artist_songs(
  192. params: {
  193. id: string | number
  194. order?: ArtistSongsOrder
  195. } & MultiPageConfig &
  196. RequestBaseConfig,
  197. ): Promise<Response>
  198. export function artist_sub(
  199. params: { id: string | number; t: SubAction } & RequestBaseConfig,
  200. ): Promise<Response>
  201. export function artist_sublist(
  202. params: MultiPageConfig & RequestBaseConfig,
  203. ): Promise<Response>
  204. export function artist_top_song(
  205. params: {
  206. id: string | number
  207. } & RequestBaseConfig,
  208. ): Promise<Response>
  209. export function artists(
  210. params: { id: string | number } & RequestBaseConfig,
  211. ): Promise<Response>
  212. export function audio_match(
  213. params: {
  214. duration: string | number
  215. audioFP: string | number
  216. } & RequestBaseConfig,
  217. ): Promise<Response>
  218. export function avatar_upload(
  219. params: ImageUploadConfig & RequestBaseConfig,
  220. ): Promise<Response>
  221. export const enum BannerType {
  222. pc = 0,
  223. android = 1,
  224. iphone = 2,
  225. ipad = 3,
  226. }
  227. export function banner(
  228. params: { type?: BannerType } & RequestBaseConfig,
  229. ): Promise<Response>
  230. export function batch(
  231. params: { [index: string]: unknown } & RequestBaseConfig,
  232. ): Promise<Response>
  233. export function captcha_sent(
  234. params: { phone: string; ctcode?: number | string } & RequestBaseConfig,
  235. ): Promise<Response>
  236. export function captcha_verify(
  237. params: {
  238. ctcode?: number | string
  239. phone: number | string
  240. captcha: string
  241. } & RequestBaseConfig,
  242. ): Promise<Response>
  243. export function cellphone_existence_check(
  244. params: {
  245. phone: number | string
  246. countrycode: number | string
  247. } & RequestBaseConfig,
  248. ): Promise<Response>
  249. export function check_music(
  250. params: { id: string | number; br: string | number } & RequestBaseConfig,
  251. ): Promise<Response>
  252. export const enum SearchType {
  253. single = 1,
  254. album = 10,
  255. artist = 100,
  256. playlist = 1000,
  257. user = 1002,
  258. mv = 1004,
  259. lyric = 1006,
  260. dj = 1009,
  261. video = 1014,
  262. complex = 1018,
  263. }
  264. export function cloudsearch(
  265. params: {
  266. keywords: string
  267. type?: SearchType
  268. } & MultiPageConfig &
  269. RequestBaseConfig,
  270. ): Promise<Response>
  271. export const enum CommentType {
  272. song = 0,
  273. mv = 1,
  274. playlist = 2,
  275. album = 3,
  276. dj = 4,
  277. video = 5,
  278. event = 6,
  279. }
  280. export const enum CommentAction {
  281. add = 1,
  282. delete = 0,
  283. reply = 2,
  284. }
  285. export function comment(
  286. params: {
  287. id: string | number
  288. type: CommentType
  289. t: CommentAction.delete
  290. commentId: string | number
  291. } & RequestBaseConfig,
  292. ): Promise<Response>
  293. export function comment(
  294. params: {
  295. type: CommentType.event
  296. t: CommentAction.delete
  297. threadId: string
  298. commentId: string | number
  299. } & RequestBaseConfig,
  300. ): Promise<Response>
  301. export function comment(
  302. params: {
  303. id: string | number
  304. type: CommentType
  305. t: CommentAction.add
  306. content: string | number
  307. } & RequestBaseConfig,
  308. ): Promise<Response>
  309. export function comment(
  310. params: {
  311. type: CommentType.event
  312. t: CommentAction.add
  313. threadId: string
  314. content: string | number
  315. } & RequestBaseConfig,
  316. ): Promise<Response>
  317. export function comment(
  318. params: {
  319. id: string | number
  320. type: CommentType
  321. t: CommentAction.reply
  322. content: string | number
  323. commentId: string | number
  324. } & RequestBaseConfig,
  325. ): Promise<Response>
  326. export function comment(
  327. params: {
  328. type: CommentType.event
  329. t: CommentAction.reply
  330. threadId: string
  331. content: string | number
  332. commentId: string | number
  333. } & RequestBaseConfig,
  334. ): Promise<Response>
  335. export function comment_album(
  336. params: {
  337. id: string | number
  338. before?: string | number
  339. } & MultiPageConfig &
  340. RequestBaseConfig,
  341. ): Promise<Response>
  342. export function comment_dj(
  343. params: {
  344. id: string | number
  345. before?: string | number
  346. } & MultiPageConfig &
  347. RequestBaseConfig,
  348. ): Promise<Response>
  349. export function comment_event(
  350. params: {
  351. threadId: string
  352. before?: string | number
  353. } & MultiPageConfig &
  354. RequestBaseConfig,
  355. ): Promise<Response>
  356. export function comment_floor(
  357. params: {
  358. id: string | number
  359. parentCommentId: string | number
  360. type: CommentType
  361. limit?: string | number
  362. time?: string | number
  363. } & RequestBaseConfig,
  364. ): Promise<Response>
  365. export function comment_hot(
  366. params: {
  367. id: string | number
  368. type: CommentType
  369. before?: string | number
  370. } & MultiPageConfig &
  371. RequestBaseConfig,
  372. ): Promise<Response>
  373. export function comment_hotwall_list(
  374. params: RequestBaseConfig,
  375. ): Promise<Response>
  376. export function comment_like(
  377. params: {
  378. id: string | number
  379. type: CommentType
  380. t: SubAction
  381. cid: string | number
  382. threadId?: string
  383. } & RequestBaseConfig,
  384. ): Promise<Response>
  385. export function comment_music(
  386. params: {
  387. id: string | number
  388. before?: string | number
  389. } & MultiPageConfig &
  390. RequestBaseConfig,
  391. ): Promise<Response>
  392. export function comment_mv(
  393. params: {
  394. id: string | number
  395. before?: string | number
  396. } & MultiPageConfig &
  397. RequestBaseConfig,
  398. ): Promise<Response>
  399. export function comment_playlist(
  400. params: {
  401. id: string | number
  402. before?: string | number
  403. } & MultiPageConfig &
  404. RequestBaseConfig,
  405. ): Promise<Response>
  406. export function comment_video(
  407. params: {
  408. id: string | number
  409. before?: string | number
  410. } & MultiPageConfig &
  411. RequestBaseConfig,
  412. ): Promise<Response>
  413. export function countries_code_list(
  414. params: RequestBaseConfig,
  415. ): Promise<Response>
  416. export const enum DailySigninType {
  417. android = 0,
  418. pc = 1,
  419. }
  420. export function daily_signin(
  421. params: { type?: DailySigninType } & RequestBaseConfig,
  422. ): Promise<Response>
  423. export function digitalAlbum_ordering(
  424. params: {
  425. payment: string
  426. id: string | number
  427. quantity: string
  428. } & RequestBaseConfig,
  429. ): Promise<Response>
  430. export function digitalAlbum_purchased(
  431. params: MultiPageConfig & RequestBaseConfig,
  432. ): Promise<Response>
  433. export function dj_banner(params: RequestBaseConfig): Promise<Response>
  434. export function dj_category_excludehot(
  435. params: RequestBaseConfig,
  436. ): Promise<Response>
  437. export function dj_category_recommend(
  438. params: RequestBaseConfig,
  439. ): Promise<Response>
  440. export function dj_catelist(params: RequestBaseConfig): Promise<Response>
  441. export function dj_detail(
  442. params: { rid: string | number } & RequestBaseConfig,
  443. ): Promise<Response>
  444. export function dj_hot(
  445. params: MultiPageConfig & RequestBaseConfig,
  446. ): Promise<Response>
  447. export function dj_paygift(
  448. params: MultiPageConfig & RequestBaseConfig,
  449. ): Promise<Response>
  450. export function dj_personalize_recommend(
  451. params: { limit?: string | number } & RequestBaseConfig,
  452. ): Promise<Response>
  453. export function dj_program(
  454. params: {
  455. rid: string | number
  456. asc: 'true' | 1 | 'false' | 0
  457. } & MultiPageConfig &
  458. RequestBaseConfig,
  459. ): Promise<Response>
  460. export function dj_program_detail(
  461. params: { id: string | number } & RequestBaseConfig,
  462. ): Promise<Response>
  463. export function dj_program_toplist(
  464. params: MultiPageConfig & RequestBaseConfig,
  465. ): Promise<Response>
  466. export function dj_program_toplist_hours(
  467. params: { limit?: string | number } & RequestBaseConfig,
  468. ): Promise<Response>
  469. export function dj_radio_hot(
  470. params: {
  471. cateId: string | number
  472. } & MultiPageConfig &
  473. RequestBaseConfig,
  474. ): Promise<Response>
  475. export function dj_recommend(params: RequestBaseConfig): Promise<Response>
  476. /*
  477. 有声书 10001
  478. 知识技能 453050
  479. 商业财经 453051
  480. 人文历史 11
  481. 外语世界 13
  482. 亲子宝贝 14
  483. 创作|翻唱 2001
  484. 音乐故事 2
  485. 3D|电子 10002
  486. 相声曲艺 8
  487. 情感调频 3
  488. 美文读物 6
  489. 脱口秀 5
  490. 广播剧 7
  491. 二次元 3001
  492. 明星做主播 1
  493. 娱乐|影视 4
  494. 科技科学 453052
  495. 校园|教育 4001
  496. 旅途|城市 12
  497. */
  498. export function dj_recommend_type(
  499. params: { type: number } & RequestBaseConfig,
  500. ): Promise<Response>
  501. export function dj_sub(
  502. params: { t: SubAction; rid: string | number } & RequestBaseConfig,
  503. ): Promise<Response>
  504. export function dj_sublist(
  505. params: MultiPageConfig & RequestBaseConfig,
  506. ): Promise<Response>
  507. export function dj_today_perfered(
  508. params: { page?: string | number } & RequestBaseConfig,
  509. ): Promise<Response>
  510. export function dj_toplist(
  511. params: { type?: ListOrder } & MultiPageConfig & RequestBaseConfig,
  512. ): Promise<Response>
  513. export function dj_toplist_hours(
  514. params: { limit?: string | number } & RequestBaseConfig,
  515. ): Promise<Response>
  516. export function dj_toplist_newcomer(
  517. params: MultiPageConfig & RequestBaseConfig,
  518. ): Promise<Response>
  519. export function dj_toplist_pay(
  520. params: { limit?: string | number } & RequestBaseConfig,
  521. ): Promise<Response>
  522. export function dj_toplist_popular(
  523. params: { limit?: string | number } & RequestBaseConfig,
  524. ): Promise<Response>
  525. export function event(
  526. params: { pagesize?: number; lasttime?: number } & RequestBaseConfig,
  527. ): Promise<Response>
  528. export function event_del(
  529. params: { evId: string | number } & RequestBaseConfig,
  530. ): Promise<Response>
  531. export function event_forward(
  532. params: {
  533. forwords: string
  534. evId: string | number
  535. uid: string | number
  536. } & RequestBaseConfig,
  537. ): Promise<Response>
  538. export function fm_trash(
  539. params: { id: string | number; time?: string | number } & RequestBaseConfig,
  540. ): Promise<Response>
  541. export function follow(
  542. params: { t: SubAction; id: string | number } & RequestBaseConfig,
  543. ): Promise<Response>
  544. export function history_recommend_songs(
  545. params: RequestBaseConfig,
  546. ): Promise<Response>
  547. export function history_recommend_songs_detail(
  548. params: { date?: string } & RequestBaseConfig,
  549. ): Promise<Response>
  550. export function homepage_block_page(
  551. params: {
  552. refresh?: 'true' | 'false' | boolean
  553. cursor?: string
  554. } & RequestBaseConfig,
  555. ): Promise<Response>
  556. export function homepage_dragon_ball(
  557. params: RequestBaseConfig,
  558. ): Promise<Response>
  559. export function hot_topic(
  560. params: MultiPageConfig & RequestBaseConfig,
  561. ): Promise<Response>
  562. export function like(
  563. params: {
  564. like?: 'true' | 'false' | boolean
  565. id: string | number
  566. alg?: string
  567. time?: string | number
  568. } & RequestBaseConfig,
  569. ): Promise<Response>
  570. export function likelist(
  571. params: { uid: string | number } & RequestBaseConfig,
  572. ): Promise<Response>
  573. export function login(
  574. params: { email: string; password: string } & RequestBaseConfig,
  575. ): Promise<Response>
  576. export function login(
  577. params: { email: string; md5_password: string } & RequestBaseConfig,
  578. ): Promise<Response>
  579. export function login_cellphone(
  580. params: {
  581. phone: number | string
  582. countrycode?: number | string
  583. password: string
  584. } & RequestBaseConfig,
  585. ): Promise<Response>
  586. export function login_cellphone(
  587. params: {
  588. phone: number | string
  589. countrycode?: number | string
  590. md5_password: string
  591. } & RequestBaseConfig,
  592. ): Promise<Response>
  593. export function login_cellphone(
  594. params: {
  595. phone: number | string
  596. countrycode?: number | string
  597. captcha: number | string
  598. } & RequestBaseConfig,
  599. ): Promise<Response>
  600. export function login_refresh(params: RequestBaseConfig): Promise<Response>
  601. export function login_status(params: RequestBaseConfig): Promise<Response>
  602. export function logout(params: RequestBaseConfig): Promise<Response>
  603. export function lyric(
  604. params: { id: string | number } & RequestBaseConfig,
  605. ): Promise<Response>
  606. export function lyric_new(
  607. params: { id: string | number } & RequestBaseConfig,
  608. ): Promise<Response>
  609. export function msg_comments(
  610. params: {
  611. uid: string | number
  612. before?: string | number
  613. limit?: string | number
  614. } & RequestBaseConfig,
  615. ): Promise<Response>
  616. export function msg_forwards(
  617. params: MultiPageConfig & RequestBaseConfig,
  618. ): Promise<Response>
  619. export function msg_notices(
  620. params: {
  621. limit?: string | number
  622. lasttime?: string | number
  623. } & RequestBaseConfig,
  624. ): Promise<Response>
  625. export function msg_private(
  626. params: MultiPageConfig & RequestBaseConfig,
  627. ): Promise<Response>
  628. export function msg_private_history(
  629. params: {
  630. before?: string | number
  631. limit?: string | number
  632. uid: string | number
  633. } & RequestBaseConfig,
  634. ): Promise<Response>
  635. export const enum MvArea {
  636. all = '全部',
  637. zh = '内地',
  638. hk = '港台',
  639. ea = '欧美',
  640. kr = '韩国',
  641. jp = '日本',
  642. }
  643. export const enum MvType {
  644. all = '全部',
  645. offical = '官方版',
  646. raw = '原生',
  647. live = '现场版',
  648. netease = '网易出品',
  649. }
  650. export const enum MvOrder {
  651. trend = '上升最快',
  652. hot = '最热',
  653. new = '最新',
  654. }
  655. export function mv_all(
  656. params: {
  657. area?: MvArea
  658. type?: MvType
  659. order?: MvOrder
  660. } & MultiPageConfig &
  661. RequestBaseConfig,
  662. ): Promise<Response>
  663. export function mv_detail(
  664. params: { mvid?: string | number } & RequestBaseConfig,
  665. ): Promise<Response>
  666. export function mv_detail_info(
  667. params: { mvid: string | number } & RequestBaseConfig,
  668. ): Promise<Response>
  669. export function mv_exclusive_rcmd(
  670. params: MultiPageConfig & RequestBaseConfig,
  671. ): Promise<Response>
  672. export function mv_first(
  673. params: { area?: MvArea; limit?: string | number } & RequestBaseConfig,
  674. ): Promise<Response>
  675. export function mv_sub(
  676. params: { t: SubAction; mvid: string | number } & RequestBaseConfig,
  677. ): Promise<Response>
  678. export function mv_sublist(
  679. params: MultiPageConfig & RequestBaseConfig,
  680. ): Promise<Response>
  681. export function mv_url(
  682. params: { id?: string | number; r?: string | number } & RequestBaseConfig,
  683. ): Promise<Response>
  684. export function personal_fm(params: RequestBaseConfig): Promise<Response>
  685. export function personalized(
  686. params: { limit?: string | number } & RequestBaseConfig,
  687. ): Promise<Response>
  688. export function personalized_djprogram(
  689. params: RequestBaseConfig,
  690. ): Promise<Response>
  691. export function personalized_mv(params: RequestBaseConfig): Promise<Response>
  692. export function personalized_newsong(
  693. params: {
  694. area?: string | number
  695. limit?: string | number
  696. } & RequestBaseConfig,
  697. ): Promise<Response>
  698. export function personalized_privatecontent(
  699. params: RequestBaseConfig,
  700. ): Promise<Response>
  701. export function personalized_privatecontent_list(
  702. params: MultiPageConfig & RequestBaseConfig,
  703. ): Promise<Response>
  704. export function playlist_catlist(params: RequestBaseConfig): Promise<Response>
  705. export function playlist_cover_update(
  706. params: { id: string } & ImageUploadConfig & RequestBaseConfig,
  707. ): Promise<Response>
  708. export function playlist_create(
  709. params: {
  710. name: string
  711. privacy: 0 | 10
  712. type?: PlaylistType
  713. } & RequestBaseConfig,
  714. ): Promise<Response>
  715. export function playlist_delete(
  716. params: { id: string | number } & RequestBaseConfig,
  717. ): Promise<Response>
  718. export function playlist_desc_update(
  719. params: { id: string | number; desc: string } & RequestBaseConfig,
  720. ): Promise<Response>
  721. export function playlist_detail(
  722. params: { id: string | number; s?: string | number } & RequestBaseConfig,
  723. ): Promise<Response>
  724. export function playlist_highquality_tags(
  725. params: RequestBaseConfig,
  726. ): Promise<Response>
  727. export function playlist_hot(params: RequestBaseConfig): Promise<Response>
  728. export function playlist_name_update(
  729. params: { id: string | number; name: string } & RequestBaseConfig,
  730. ): Promise<Response>
  731. export function playlist_order_update(
  732. params: { ids: string } & RequestBaseConfig,
  733. ): Promise<Response>
  734. export function playlist_subscribe(
  735. params: { t: SubAction; id: string | number } & RequestBaseConfig,
  736. ): Promise<Response>
  737. export function playlist_subscribers(
  738. params: { id?: string | number } & MultiPageConfig & RequestBaseConfig,
  739. ): Promise<Response>
  740. export function playlist_tags_update(
  741. params: { id: string | number; tags: string } & RequestBaseConfig,
  742. ): Promise<Response>
  743. export function playlist_tracks(
  744. params: {
  745. op: 'add' | 'del'
  746. pid: string | number
  747. tracks: string
  748. } & RequestBaseConfig,
  749. ): Promise<Response>
  750. export function playlist_update(
  751. params: {
  752. id: string | number
  753. name: string
  754. desc?: string
  755. tags?: string
  756. } & RequestBaseConfig,
  757. ): Promise<Response>
  758. export function playmode_intelligence_list(
  759. params: {
  760. id: string | number
  761. pid: string | number
  762. sid?: string | number
  763. count?: string | number
  764. } & RequestBaseConfig,
  765. ): Promise<Response>
  766. export function program_recommend(
  767. params: { type: string } & MultiPageConfig & RequestBaseConfig,
  768. ): Promise<Response>
  769. export function rebind(
  770. params: {
  771. captcha: string
  772. phone: string
  773. oldcaptcha: string
  774. ctcode?: number | string
  775. } & RequestBaseConfig,
  776. ): Promise<Response>
  777. export function recommend_resource(params: RequestBaseConfig): Promise<Response>
  778. export function recommend_songs(params: RequestBaseConfig): Promise<Response>
  779. export function register_cellphone(
  780. params: {
  781. captcha: string
  782. phone: string
  783. password: string
  784. nickname: string
  785. } & RequestBaseConfig,
  786. ): Promise<Response>
  787. export function related_allvideo(
  788. params: { id: string | number } & RequestBaseConfig,
  789. ): Promise<Response>
  790. export function related_playlist(
  791. params: { id: string | number } & RequestBaseConfig,
  792. ): Promise<Response>
  793. export const enum ResourceType {
  794. mv = 1,
  795. dj = 4,
  796. video = 5,
  797. event = 6,
  798. }
  799. type PlaylistType = 'NROMAL' | 'VIDEO'
  800. export function resource_like(
  801. params: {
  802. t: SubAction
  803. type: ResourceType
  804. id?: string | number
  805. threadId?: string
  806. } & RequestBaseConfig,
  807. ): Promise<Response>
  808. export function scrobble(
  809. params: {
  810. id: string | number
  811. sourceid: string | number
  812. time: string | number
  813. } & RequestBaseConfig,
  814. ): Promise<Response>
  815. export function search(
  816. params: {
  817. keywords: string
  818. type?: SearchType
  819. } & MultiPageConfig &
  820. RequestBaseConfig,
  821. ): Promise<Response>
  822. export function search_default(params: RequestBaseConfig): Promise<Response>
  823. export function search_hot(params: RequestBaseConfig): Promise<Response>
  824. export function search_hot_detail(params: RequestBaseConfig): Promise<Response>
  825. export function search_multimatch(
  826. params: { type?: number; keywords: string } & RequestBaseConfig,
  827. ): Promise<Response>
  828. export const enum SearchSuggestType {
  829. mobile = 'mobile',
  830. web = 'web',
  831. }
  832. export function search_suggest(
  833. params: { keywords: string; type?: SearchSuggestType } & RequestBaseConfig,
  834. ): Promise<Response>
  835. export function send_playlist(
  836. params: {
  837. playlist: string | number
  838. msg: string
  839. user_ids: string
  840. } & RequestBaseConfig,
  841. ): Promise<Response>
  842. export function send_text(
  843. params: { msg: string; user_ids: string } & RequestBaseConfig,
  844. ): Promise<Response>
  845. export function setting(params: RequestBaseConfig): Promise<Response>
  846. export const enum ShareResourceType {
  847. song = 'song',
  848. playlist = 'playlist',
  849. mv = 'mv',
  850. djprogram = 'djprogram',
  851. djradio = 'djradio',
  852. }
  853. export function share_resource(
  854. params: {
  855. type?: ShareResourceType
  856. msg?: string
  857. id?: string | number
  858. } & RequestBaseConfig,
  859. ): Promise<Response>
  860. export function simi_artist(
  861. params: { id: string | number } & RequestBaseConfig,
  862. ): Promise<Response>
  863. export function simi_mv(
  864. params: { mvid: string | number } & RequestBaseConfig,
  865. ): Promise<Response>
  866. export function simi_playlist(
  867. params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
  868. ): Promise<Response>
  869. export function simi_song(
  870. params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
  871. ): Promise<Response>
  872. export function simi_user(
  873. params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
  874. ): Promise<Response>
  875. export function song_detail(
  876. params: { ids: string } & RequestBaseConfig,
  877. ): Promise<
  878. Response<{
  879. songs: SongDetail[]
  880. privileges: unknown[]
  881. code: number
  882. }>
  883. >
  884. type SongDetail = {
  885. name: string
  886. id: number
  887. pst: number
  888. t: number
  889. ar: SongDetailArtist[]
  890. alia: string[]
  891. pop: number
  892. st: number
  893. rt: string | null
  894. fee: SongDetailFee
  895. v: number
  896. crbt: string | null
  897. cf: string
  898. al: SongDetailAlbum
  899. dt: number
  900. h: SongDetailQuality | null
  901. m: SongDetailQuality | null
  902. l: SongDetailQuality | null
  903. sq: SongDetailQuality | null
  904. hr: SongDetailQuality | null
  905. a: unknown | null
  906. cd: string
  907. no: number
  908. rtUrl: unknown | null
  909. ftype: number
  910. rtUrls: unknown[]
  911. djId: number
  912. copyright: SongDetailCopyright
  913. s_id: number
  914. mark: number
  915. originCoverType: SongDetailOriginCoverType
  916. originSongSimpleData: unknown | null
  917. tagPicList: unknown | null
  918. resourceState: boolean
  919. version: number
  920. songJumpInfo: unknown | null
  921. entertainmentTags: unknown | null
  922. awardTags: unknown | null
  923. single: number
  924. noCopyrightRcmd: unknown | null
  925. mv: number
  926. rtype: number
  927. rurl: unknown | null
  928. mst: number
  929. cp: number
  930. publishTime: number
  931. }
  932. type SongDetailArtist = {
  933. id: number
  934. name: string
  935. tns: unknown[]
  936. alias: unknown[]
  937. }
  938. type SongDetailFee = 0 | 1 | 4 | 8
  939. type SongDetailAlbum = {
  940. id: number
  941. name: string
  942. picUrl: string
  943. tns: unknown[]
  944. pic: number
  945. }
  946. type SongDetailQuality = {
  947. br: number
  948. fid: number
  949. size: number
  950. vd: number
  951. sr: number
  952. }
  953. type SongDetailCopyright = 0 | 1 | 2
  954. type SongDetailOriginCoverType = 0 | 1 | 2
  955. export function song_order_update(
  956. params: { pid: string | number; ids: string } & RequestBaseConfig,
  957. ): Promise<Response>
  958. export function song_url(
  959. params: { id: string | number; br?: string | number } & RequestBaseConfig,
  960. ): Promise<Response>
  961. export const enum SoundQualityType {
  962. standard = 'standard',
  963. exhigh = 'exhigh',
  964. lossless = 'lossless',
  965. hires = 'hires',
  966. jyeffect = 'jyeffect',
  967. jymaster = 'jymaster',
  968. sky = 'sky',
  969. }
  970. export function song_url_v1(
  971. params: { id: string | number; level: SoundQualityType } & RequestBaseConfig,
  972. ): Promise<Response>
  973. export function top_album(
  974. params: {
  975. area?: AlbumListArea
  976. type?: ListOrder
  977. year?: string
  978. mouth?: string
  979. } & MultiPageConfig &
  980. RequestBaseConfig,
  981. ): Promise<Response>
  982. export function top_artists(
  983. params: MultiPageConfig & RequestBaseConfig,
  984. ): Promise<Response>
  985. export function top_list(
  986. params: { id: string | number } & RequestBaseConfig,
  987. ): Promise<Response>
  988. export function top_mv(
  989. params: { area?: MvArea } & MultiPageConfig & RequestBaseConfig,
  990. ): Promise<Response>
  991. export function top_playlist(
  992. params: { cat?: string; order?: ListOrder } & MultiPageConfig &
  993. RequestBaseConfig,
  994. ): Promise<Response>
  995. export function top_playlist_highquality(
  996. params: {
  997. cat?: string
  998. before?: string | number
  999. limit?: string | number
  1000. } & RequestBaseConfig,
  1001. ): Promise<Response>
  1002. export const enum TopSongType {
  1003. all = 0,
  1004. zh = 7,
  1005. ea = 96,
  1006. kr = 16,
  1007. ja = 8,
  1008. }
  1009. export function top_song(
  1010. params: { type: TopSongType } & RequestBaseConfig,
  1011. ): Promise<Response>
  1012. export function toplist(params: RequestBaseConfig): Promise<Response>
  1013. export const enum ToplistArtistType {
  1014. zh = 1,
  1015. ea = 2,
  1016. kr = 3,
  1017. ja = 4,
  1018. }
  1019. export function toplist_artist(
  1020. params: { type?: ToplistArtistType } & RequestBaseConfig,
  1021. ): Promise<Response>
  1022. export function toplist_detail(params: RequestBaseConfig): Promise<Response>
  1023. export function user_audio(
  1024. params: { uid: string | number } & RequestBaseConfig,
  1025. ): Promise<Response>
  1026. export function user_cloud(
  1027. params: MultiPageConfig & RequestBaseConfig,
  1028. ): Promise<Response>
  1029. export function user_cloud_del(
  1030. params: { id: string | number } & RequestBaseConfig,
  1031. ): Promise<Response>
  1032. export function user_cloud_detail(
  1033. params: { id: string | number } & RequestBaseConfig,
  1034. ): Promise<Response>
  1035. export function user_detail(
  1036. params: { uid: string | number } & RequestBaseConfig,
  1037. ): Promise<Response>
  1038. export function user_dj(
  1039. params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
  1040. ): Promise<Response>
  1041. export function user_event(
  1042. params: {
  1043. lasttime?: string | number
  1044. limit?: string | number
  1045. uid: string | number
  1046. } & RequestBaseConfig,
  1047. ): Promise<Response>
  1048. export function user_followeds(
  1049. params: {
  1050. uid: string | number
  1051. lasttime?: string | number
  1052. limit?: string | number
  1053. } & RequestBaseConfig,
  1054. ): Promise<Response>
  1055. export function user_follows(
  1056. params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
  1057. ): Promise<Response>
  1058. export function user_level(params: RequestBaseConfig): Promise<Response>
  1059. export function user_playlist(
  1060. params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
  1061. ): Promise<Response>
  1062. export const enum UserRecordType {
  1063. all = 0,
  1064. weekly = 1,
  1065. }
  1066. export function user_record(
  1067. params: { uid: string | number; type?: UserRecordType } & RequestBaseConfig,
  1068. ): Promise<Response>
  1069. export function user_subcount(params: RequestBaseConfig): Promise<Response>
  1070. export function user_update(
  1071. params: {
  1072. birthday: string
  1073. city: string
  1074. gender: string
  1075. nickname: string
  1076. province: string
  1077. signature: string
  1078. } & RequestBaseConfig,
  1079. ): Promise<Response>
  1080. export function video_category_list(
  1081. params: MultiPageConfig & RequestBaseConfig,
  1082. ): Promise<Response>
  1083. export function video_detail(
  1084. params: { id: string } & RequestBaseConfig,
  1085. ): Promise<Response>
  1086. export function video_detail_info(
  1087. params: { vid: string } & RequestBaseConfig,
  1088. ): Promise<Response>
  1089. export function video_group(
  1090. params: { id: string; offset?: string | number } & RequestBaseConfig,
  1091. ): Promise<Response>
  1092. export function video_group_list(params: RequestBaseConfig): Promise<Response>
  1093. export function video_sub(
  1094. params: { t?: SubAction; id: string } & RequestBaseConfig,
  1095. ): Promise<Response>
  1096. export function video_timeline_all(
  1097. params: { offset?: string | number } & RequestBaseConfig,
  1098. ): Promise<Response>
  1099. export function video_timeline_recommend(
  1100. params: { offset?: string | number } & RequestBaseConfig,
  1101. ): Promise<Response>
  1102. export function video_url(
  1103. params: { id: string | number; res?: number } & RequestBaseConfig,
  1104. ): Promise<Response>
  1105. export function weblog(
  1106. params: { data?: { [index: string]: unknown } } & RequestBaseConfig,
  1107. ): Promise<Response>
  1108. export function playlist_mylike(
  1109. params: {
  1110. time?: number | string
  1111. limit: number | string
  1112. } & RequestBaseConfig,
  1113. ): Promise<Response>
  1114. export function playlist_track_add(
  1115. params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
  1116. ): Promise<Response>
  1117. export function playlist_track_delete(
  1118. params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
  1119. ): Promise<Response>
  1120. export function comment_new(
  1121. params: {
  1122. type?: number | string
  1123. id: number | string
  1124. pageNo?: number | string
  1125. pageSize?: number | string
  1126. sortType?: number | string
  1127. } & RequestBaseConfig,
  1128. ): Promise<Response>
  1129. export function calendar(
  1130. params: {
  1131. startTime?: number | string
  1132. endTime: number | string
  1133. } & RequestBaseConfig,
  1134. ): Promise<Response>
  1135. export function playlist_video_recent(
  1136. params: RequestBaseConfig,
  1137. ): Promise<Response>
  1138. export function user_binding(
  1139. params: { uid?: number | string } & RequestBaseConfig,
  1140. ): Promise<Response>
  1141. export function user_replacephone(
  1142. params: {
  1143. phone: number | string
  1144. captcha: number | string
  1145. oldcaptcha: number | string
  1146. countrycode?: number | string
  1147. } & RequestBaseConfig,
  1148. ): Promise<Response>
  1149. export function user_safe(params: RequestBaseConfig): Promise<Response>
  1150. export function dj_subscriber(
  1151. params: {
  1152. id: number | string
  1153. limit?: number | string
  1154. time?: number | string
  1155. } & RequestBaseConfig,
  1156. ): Promise<Response>
  1157. export function user_account(params: RequestBaseConfig): Promise<Response>
  1158. export function yunbei(params: RequestBaseConfig): Promise<Response>
  1159. export function yunbei_info(params: RequestBaseConfig): Promise<Response>
  1160. export function yunbei_sign(params: RequestBaseConfig): Promise<Response>
  1161. export function yunbei_receipt(
  1162. params: MultiPageConfig & RequestBaseConfig,
  1163. ): Promise<Response>
  1164. export function yunbei_expense(
  1165. params: MultiPageConfig & RequestBaseConfig,
  1166. ): Promise<Response>
  1167. export function yunbei_tasks(params: RequestBaseConfig): Promise<Response>
  1168. export function yunbei_today(params: RequestBaseConfig): Promise<Response>
  1169. export function yunbei_tasks_todo(params: RequestBaseConfig): Promise<Response>
  1170. export function yunbei_task_finish(
  1171. params: {
  1172. userTaskId: number | string
  1173. depositCode?: number | string
  1174. } & RequestBaseConfig,
  1175. ): Promise<Response>
  1176. export function msg_recentcontact(params: RequestBaseConfig): Promise<Response>
  1177. export function hug_comment(
  1178. params: {
  1179. uid: number | string
  1180. cid: number | string
  1181. sid: number | string
  1182. } & RequestBaseConfig,
  1183. ): Promise<Response>
  1184. export function comment_hug_list(
  1185. params: {
  1186. page: number | string
  1187. cursor: number | string
  1188. idCursor: number | string
  1189. pageSize?: number | string
  1190. } & RequestBaseConfig,
  1191. ): Promise<Response>
  1192. export function topic_sublist(
  1193. params: MultiPageConfig & RequestBaseConfig,
  1194. ): Promise<Response>
  1195. export function topic_sublist(
  1196. params: MultiPageConfig & RequestBaseConfig,
  1197. ): Promise<Response>
  1198. export function artist_new_mv(
  1199. params: {
  1200. limit?: number | string
  1201. startTimestamp?: number | string
  1202. } & RequestBaseConfig,
  1203. ): Promise<Response>
  1204. export function artist_new_song(
  1205. params: {
  1206. limit?: number | string
  1207. startTimestamp?: number | string
  1208. } & RequestBaseConfig,
  1209. ): Promise<Response>
  1210. export function artist_detail(
  1211. params: {
  1212. id: number | string
  1213. } & RequestBaseConfig,
  1214. ): Promise<Response>
  1215. export function cloud(
  1216. params: {
  1217. songFile: {
  1218. name: string
  1219. data: Buffer
  1220. }
  1221. } & RequestBaseConfig,
  1222. ): Promise<Response>
  1223. export function topic_detail(
  1224. params: {
  1225. actid?: number | string
  1226. } & RequestBaseConfig,
  1227. ): Promise<Response>
  1228. export function topic_detail_event_hot(
  1229. params: {
  1230. actid?: number | string
  1231. } & RequestBaseConfig,
  1232. ): Promise<Response>
  1233. export function login_qr_key(params: RequestBaseConfig): Promise<Response>
  1234. export function login_qr_create(
  1235. params: {
  1236. key?: number | string
  1237. qrimg?: boolean | string
  1238. } & RequestBaseConfig,
  1239. ): Promise<Response>
  1240. export function login_qr_check(
  1241. params: {
  1242. key?: number | string
  1243. } & RequestBaseConfig,
  1244. ): Promise<Response>
  1245. export function playlist_detail_dynamic(
  1246. params: { id: string | number } & RequestBaseConfig,
  1247. ): Promise<Response>
  1248. export function user_bindingcellphone(
  1249. params: {
  1250. phone: number | string
  1251. captcha: number | string
  1252. countrycode?: number | string
  1253. password?: string
  1254. } & RequestBaseConfig,
  1255. ): Promise<Response>
  1256. export function listen_together_status(
  1257. params: RequestBaseConfig,
  1258. ): Promise<Response>
  1259. export function user_comment_history(
  1260. params: {
  1261. limit?: number | string
  1262. uid: number | string
  1263. time?: number | string
  1264. } & RequestBaseConfig,
  1265. ): Promise<Response>
  1266. export function cloud_match(
  1267. params: {
  1268. uid: number | string
  1269. sid: number | string
  1270. asid: number | string
  1271. } & RequestBaseConfig,
  1272. ): Promise<Response>
  1273. export function yunbei_rcmd_song(
  1274. params: {
  1275. id: number | string
  1276. reason?: number | string
  1277. } & RequestBaseConfig,
  1278. ): Promise<Response>
  1279. export function yunbei_rcmd_song_history(
  1280. params: {
  1281. size?: number | string
  1282. cursor?: number | string
  1283. } & RequestBaseConfig,
  1284. ): Promise<Response>
  1285. export function song_purchased(
  1286. params: MultiPageConfig & RequestBaseConfig,
  1287. ): Promise<Response>
  1288. export function mlog_url(
  1289. params: {
  1290. id?: number | string
  1291. res?: number | string
  1292. } & RequestBaseConfig,
  1293. ): Promise<Response>
  1294. export function mlog_to_video(
  1295. params: {
  1296. id?: number | string
  1297. } & RequestBaseConfig,
  1298. ): Promise<Response>
  1299. export function vip_growthpoint(params: RequestBaseConfig): Promise<Response>
  1300. export function vip_growthpoint_details(
  1301. params: MultiPageConfig & RequestBaseConfig,
  1302. ): Promise<Response>
  1303. export function vip_tasks(params: RequestBaseConfig): Promise<Response>
  1304. export function vip_growthpoint_get(
  1305. params: {
  1306. ids?: number | string
  1307. } & RequestBaseConfig,
  1308. ): Promise<Response>
  1309. export function artist_fans(
  1310. params: { id: number | string } & MultiPageConfig & RequestBaseConfig,
  1311. ): Promise<Response>
  1312. export function digitalAlbum_detail(
  1313. params: {
  1314. id: number | string
  1315. } & RequestBaseConfig,
  1316. ): Promise<Response>
  1317. export function digitalAlbum_sales(
  1318. params: {
  1319. ids: number | string
  1320. } & RequestBaseConfig,
  1321. ): Promise<Response>
  1322. export function musician_data_overview(
  1323. params: RequestBaseConfig,
  1324. ): Promise<Response>
  1325. export function musician_play_trend(
  1326. params: {
  1327. startTime: number | string
  1328. endTime: number | string
  1329. } & RequestBaseConfig,
  1330. ): Promise<Response>
  1331. export function musician_tasks(params: RequestBaseConfig): Promise<Response>
  1332. export function musician_cloudbean(params: RequestBaseConfig): Promise<Response>
  1333. export function musician_cloudbean_obtain(
  1334. params: {
  1335. id: number | string
  1336. period: number | string
  1337. } & RequestBaseConfig,
  1338. ): Promise<Response>
  1339. export function vip_info(
  1340. params: {
  1341. uid?: number | string
  1342. } & RequestBaseConfig,
  1343. ): Promise<Response>
  1344. export function vip_info_v2(
  1345. params: {
  1346. uid?: number | string
  1347. } & RequestBaseConfig,
  1348. ): Promise<Response>
  1349. export function musician_sign(params: RequestBaseConfig): Promise<Response>
  1350. export function song_download_url(
  1351. params: {
  1352. id: number | string
  1353. br?: number | string
  1354. } & RequestBaseConfig,
  1355. ): Promise<Response>
  1356. export function playlist_track_all(
  1357. params: {
  1358. id: number | string
  1359. s?: number | string
  1360. } & MultiPageConfig &
  1361. RequestBaseConfig,
  1362. ): Promise<Response>
  1363. export function artist_video(
  1364. params: {
  1365. id: number | string
  1366. size?: number | string
  1367. cursor?: number | string
  1368. order?: number | string
  1369. } & RequestBaseConfig,
  1370. ): Promise<Response>
  1371. export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
  1372. export function record_recent_song(
  1373. params: {
  1374. limit?: number | string
  1375. } & RequestBaseConfig,
  1376. ): Promise<Response>
  1377. export function record_recent_video(
  1378. params: {
  1379. limit?: number | string
  1380. } & RequestBaseConfig,
  1381. ): Promise<Response>
  1382. export function record_recent_voice(
  1383. params: {
  1384. limit?: number | string
  1385. } & RequestBaseConfig,
  1386. ): Promise<Response>
  1387. export function record_recent_playlist(
  1388. params: {
  1389. limit?: number | string
  1390. } & RequestBaseConfig,
  1391. ): Promise<Response>
  1392. export function record_recent_album(
  1393. params: {
  1394. limit?: number | string
  1395. } & RequestBaseConfig,
  1396. ): Promise<Response>
  1397. export function record_recent_dj(
  1398. params: {
  1399. limit?: number | string
  1400. } & RequestBaseConfig,
  1401. ): Promise<Response>
  1402. export function signin_progress(
  1403. params: {
  1404. moduleId?: string
  1405. } & RequestBaseConfig,
  1406. ): Promise<Response>
  1407. export function nickname_check(
  1408. params: {
  1409. nickname: string
  1410. } & RequestBaseConfig,
  1411. ): Promise<Response>
  1412. export function musician_tasks_new(params: RequestBaseConfig): Promise<Response>
  1413. export function playlist_update_playcount(
  1414. params: {
  1415. id?: number | string
  1416. } & RequestBaseConfig,
  1417. ): Promise<Response>
  1418. export function vip_timemachine(
  1419. params: {
  1420. startTime?: number | string
  1421. endTime?: number | string
  1422. limit?: number | string
  1423. } & RequestBaseConfig,
  1424. ): Promise<Response>
  1425. export function song_wiki_summary(
  1426. params: {
  1427. id: number | string
  1428. } & RequestBaseConfig,
  1429. ): Promise<Response>
  1430. export function sheet_list(
  1431. params: {
  1432. id: number | string
  1433. abTest?: 'a' | 'b'
  1434. } & RequestBaseConfig,
  1435. ): Promise<Response>
  1436. export function sheet_preview(
  1437. params: {
  1438. id: number | string
  1439. } & RequestBaseConfig,
  1440. ): Promise<Response>
  1441. export function style_list(params: RequestBaseConfig): Promise<Response>
  1442. export function style_preference(params: RequestBaseConfig): Promise<Response>
  1443. export function style_detail(
  1444. params: {
  1445. tagId: number | string
  1446. } & RequestBaseConfig,
  1447. ): Promise<Response>
  1448. export function style_song(
  1449. params: {
  1450. tagId: number | string
  1451. size?: number | string
  1452. cursor?: number | string
  1453. sort?: number | string
  1454. } & RequestBaseConfig,
  1455. ): Promise<Response>
  1456. export function style_album(
  1457. params: {
  1458. tagId: number | string
  1459. size?: number | string
  1460. cursor?: number | string
  1461. sort?: number | string
  1462. } & RequestBaseConfig,
  1463. ): Promise<Response>
  1464. export function style_playlist(
  1465. params: {
  1466. tagId: number | string
  1467. size?: number | string
  1468. cursor?: number | string
  1469. } & RequestBaseConfig,
  1470. ): Promise<Response>
  1471. export function style_artist(
  1472. params: {
  1473. tagId: number | string
  1474. size?: number | string
  1475. cursor?: number | string
  1476. } & RequestBaseConfig,
  1477. ): Promise<Response>
  1478. export function pl_count(params: RequestBaseConfig): Promise<Response>
  1479. export function get_userids(
  1480. params: {
  1481. nicknames: string
  1482. } & RequestBaseConfig,
  1483. ): Promise<Response>
  1484. export function voicelist_list_search(
  1485. params: {
  1486. limit?: string | number
  1487. offset?: string | number
  1488. name?: string
  1489. displayStatus?: string
  1490. type?: string
  1491. voiceFeeType?: string | number
  1492. radioId?: string
  1493. } & RequestBaseConfig,
  1494. ): Promise<Response>
  1495. export function voice_delete(
  1496. params: {
  1497. ids: number | string
  1498. } & RequestBaseConfig,
  1499. ): Promise<Response>
  1500. export function djRadio_top(
  1501. params: {
  1502. djRadioId?: number | string
  1503. sortIndex?: number | string
  1504. dataGapDays?: number | string
  1505. dataType?: number | string
  1506. } & RequestBaseConfig,
  1507. ): Promise<Response>
  1508. export function voice_lyric(
  1509. params: {
  1510. id: number | string
  1511. } & RequestBaseConfig,
  1512. ): Promise<Response>