mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-08-12 08:50:38 +00:00
perf: 更新接口定义
This commit is contained in:
parent
a8b45a8b8b
commit
8f4873f2e2
220
interface.d.ts
vendored
220
interface.d.ts
vendored
@ -37,6 +37,33 @@ export const enum SubAction {
|
|||||||
unsub = 0,
|
unsub = 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function ad_get(
|
||||||
|
params: { type_ids?: string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function ad_listening_rights(
|
||||||
|
params: RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function ad_listening_rights_gain(
|
||||||
|
params: {
|
||||||
|
reqUid?: string
|
||||||
|
creativeType?: string | number
|
||||||
|
exposureTime?: string | number
|
||||||
|
clickTime?: string | number
|
||||||
|
rightsGainMethod?: string | number
|
||||||
|
rightsGainDuration?: string | number
|
||||||
|
extraRightsGainMethod?: string | number
|
||||||
|
extraRightsGainDuration?: string | number
|
||||||
|
nextRightsGainDuration?: string | number
|
||||||
|
source?: string
|
||||||
|
rightsExtJson?: string
|
||||||
|
appInfo?: string
|
||||||
|
installed?: string | number
|
||||||
|
type_ids?: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function activate_init_profile(
|
export function activate_init_profile(
|
||||||
params: { nickname: string } & RequestBaseConfig,
|
params: { nickname: string } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
@ -119,6 +146,14 @@ export function album_sublist(
|
|||||||
params: MultiPageConfig & RequestBaseConfig,
|
params: MultiPageConfig & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function api(
|
||||||
|
params: {
|
||||||
|
uri: string
|
||||||
|
data?: string | Record<string, unknown>
|
||||||
|
crypto?: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function artist_album(
|
export function artist_album(
|
||||||
params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
|
params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
@ -271,10 +306,21 @@ export function batch(
|
|||||||
params: { [index: string]: unknown } & RequestBaseConfig,
|
params: { [index: string]: unknown } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function captcha_safe_sent(
|
||||||
|
params: { ctcode?: number | string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function captcha_sent(
|
export function captcha_sent(
|
||||||
params: { phone: string; ctcode?: number | string } & RequestBaseConfig,
|
params: { phone: string; ctcode?: number | string } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function captcha_sent_v1(
|
||||||
|
params: {
|
||||||
|
phone: number | string
|
||||||
|
ctcode?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function captcha_verify(
|
export function captcha_verify(
|
||||||
params: {
|
params: {
|
||||||
ctcode?: number | string
|
ctcode?: number | string
|
||||||
@ -387,6 +433,14 @@ export function comment(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function comment_add(
|
||||||
|
params: {
|
||||||
|
id: string | number
|
||||||
|
type: CommentType
|
||||||
|
content: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function comment_album(
|
export function comment_album(
|
||||||
params: {
|
params: {
|
||||||
id: string | number
|
id: string | number
|
||||||
@ -395,6 +449,14 @@ export function comment_album(
|
|||||||
RequestBaseConfig,
|
RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function comment_delete(
|
||||||
|
params: {
|
||||||
|
id: string | number
|
||||||
|
type: CommentType
|
||||||
|
cid: string | number
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function comment_dj(
|
export function comment_dj(
|
||||||
params: {
|
params: {
|
||||||
id: string | number
|
id: string | number
|
||||||
@ -469,6 +531,15 @@ export function comment_playlist(
|
|||||||
RequestBaseConfig,
|
RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function comment_reply(
|
||||||
|
params: {
|
||||||
|
id: string | number
|
||||||
|
type: CommentType
|
||||||
|
cid: string | number
|
||||||
|
content: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function comment_video(
|
export function comment_video(
|
||||||
params: {
|
params: {
|
||||||
id: string | number
|
id: string | number
|
||||||
@ -490,6 +561,21 @@ export function daily_signin(
|
|||||||
params: { type?: DailySigninType } & RequestBaseConfig,
|
params: { type?: DailySigninType } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function decrypt(
|
||||||
|
params: {
|
||||||
|
crypto?: string
|
||||||
|
data?: string
|
||||||
|
hexString?: string
|
||||||
|
isReq?: boolean | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function device_kickoff(
|
||||||
|
params: { deviceKey: string | number; captcha?: string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function device_list(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export function digitalAlbum_ordering(
|
export function digitalAlbum_ordering(
|
||||||
params: {
|
params: {
|
||||||
payment: string
|
payment: string
|
||||||
@ -618,6 +704,10 @@ export function dj_toplist_popular(
|
|||||||
params: { limit?: string | number } & RequestBaseConfig,
|
params: { limit?: string | number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function eapi_decrypt(
|
||||||
|
params: { hexString: string; isReq?: boolean | string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function event(
|
export function event(
|
||||||
params: { pagesize?: number; lasttime?: number } & RequestBaseConfig,
|
params: { pagesize?: number; lasttime?: number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
@ -679,6 +769,8 @@ export function hot_topic(
|
|||||||
params: MultiPageConfig & RequestBaseConfig,
|
params: MultiPageConfig & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function inner_version(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export function like(
|
export function like(
|
||||||
params: {
|
params: {
|
||||||
like?: 'true' | 'false' | boolean
|
like?: 'true' | 'false' | boolean
|
||||||
@ -692,6 +784,10 @@ export function likelist(
|
|||||||
params: { uid: string | number } & RequestBaseConfig,
|
params: { uid: string | number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function listentogether_status(
|
||||||
|
params: RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function login(
|
export function login(
|
||||||
params: { email: string; password: string } & RequestBaseConfig,
|
params: { email: string; password: string } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
@ -738,6 +834,17 @@ export function lyric_new(
|
|||||||
params: { id: string | number } & RequestBaseConfig,
|
params: { id: string | number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function middle_play_do_lottery(
|
||||||
|
params: {
|
||||||
|
activityId?: string | number
|
||||||
|
drawCount?: string | number
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function middle_play_lottery_remain_chance(
|
||||||
|
params: { activityId?: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function msg_comments(
|
export function msg_comments(
|
||||||
params: {
|
params: {
|
||||||
uid: string | number
|
uid: string | number
|
||||||
@ -960,6 +1067,18 @@ export function register_cellphone(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function register_checktoken_v2(
|
||||||
|
params: { refresh?: boolean | string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function register_checktoken_v3(
|
||||||
|
params: { refresh?: boolean | string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function register_xeapikey(
|
||||||
|
params: { deviceId?: string; currentKeyVersion?: string } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function related_allvideo(
|
export function related_allvideo(
|
||||||
params: { id: string | number } & RequestBaseConfig,
|
params: { id: string | number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
@ -968,6 +1087,67 @@ export function related_playlist(
|
|||||||
params: { id: string | number } & RequestBaseConfig,
|
params: { id: string | number } & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function relay_play_state_submit(
|
||||||
|
params: {
|
||||||
|
id: string | number
|
||||||
|
sessionId?: string
|
||||||
|
progress?: string | number
|
||||||
|
playMode?: string
|
||||||
|
type?: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_activity_collect(
|
||||||
|
params: { activityId?: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_activity_get(
|
||||||
|
params: RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_exam_info_get(
|
||||||
|
params: { examType: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_exam_question_single_get(
|
||||||
|
params: {
|
||||||
|
examType: string | number
|
||||||
|
taskId: string | number
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_exam_result_get(
|
||||||
|
params: {
|
||||||
|
examType: string | number
|
||||||
|
taskId: string | number
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_exam_start(
|
||||||
|
params: { examType: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_exam_submit(
|
||||||
|
params: {
|
||||||
|
examType: string | number
|
||||||
|
taskId: string | number
|
||||||
|
questionId: string | number
|
||||||
|
answer: string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
declare const rep_ugc_user_collect_vip: (
|
||||||
|
params: { activityId?: string | number } & RequestBaseConfig,
|
||||||
|
) => Promise<Response>
|
||||||
|
|
||||||
|
export { rep_ugc_user_collect_vip as 'rep_ugc_user_collect-vip' }
|
||||||
|
|
||||||
|
export function rep_ugc_user_get(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_user_sign(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
|
export function rep_ugc_user_vip(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export const enum ResourceType {
|
export const enum ResourceType {
|
||||||
mv = 1,
|
mv = 1,
|
||||||
dj = 4,
|
dj = 4,
|
||||||
@ -993,6 +1173,22 @@ export function scrobble(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function scrobble_v1(
|
||||||
|
params: {
|
||||||
|
id: string | number
|
||||||
|
time: string | number
|
||||||
|
total?: string | number
|
||||||
|
sourceid?: string | number
|
||||||
|
sourceId?: string | number
|
||||||
|
source?: string
|
||||||
|
name?: string
|
||||||
|
artist?: string
|
||||||
|
bitrate?: string | number
|
||||||
|
level?: string
|
||||||
|
vip?: boolean | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function search(
|
export function search(
|
||||||
params: {
|
params: {
|
||||||
keywords: string
|
keywords: string
|
||||||
@ -2325,6 +2521,10 @@ export function song_chorus(
|
|||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function song_cloud_download(
|
||||||
|
params: { id: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function song_creators(
|
export function song_creators(
|
||||||
params: {
|
params: {
|
||||||
id: string | number
|
id: string | number
|
||||||
@ -2436,6 +2636,18 @@ export function threshold_detail_get(
|
|||||||
params: RequestBaseConfig,
|
params: RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function thinktank_audit_resource_detail(
|
||||||
|
params: { type?: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function thinktank_audit_resource_update(
|
||||||
|
params: {
|
||||||
|
type?: string | number
|
||||||
|
taskId: string | number
|
||||||
|
judgement: string | number
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function toplist_detail_v2(params: RequestBaseConfig): Promise<Response>
|
export function toplist_detail_v2(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export function ugc_album_get(
|
export function ugc_album_get(
|
||||||
@ -2562,6 +2774,14 @@ export function verify_qrcodestatus(
|
|||||||
|
|
||||||
export function vip_sign(params: RequestBaseConfig): Promise<Response>
|
export function vip_sign(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
|
export function vip_sign_detail(
|
||||||
|
params: { timestamp: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function vip_sign_history(
|
||||||
|
params: { type?: string | number } & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
export function vip_sign_info(params: RequestBaseConfig): Promise<Response>
|
export function vip_sign_info(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export function vip_tasks_v1(
|
export function vip_tasks_v1(
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { banner, lyric } from '@neteasecloudmusicapienhanced/api'
|
import { banner, lyric } from '@neteasecloudmusicapienhanced/api'
|
||||||
import { logger } from '../util/logger.js'
|
import type { Response } from '@neteasecloudmusicapienhanced/api'
|
||||||
banner({ type: 0 }).then((res) => {
|
import logger from '../util/logger.js'
|
||||||
|
banner({ type: 0 }).then((res: Response) => {
|
||||||
logger.info(res)
|
logger.info(res)
|
||||||
})
|
})
|
||||||
lyric({
|
lyric({
|
||||||
id: '33894312',
|
id: '33894312',
|
||||||
}).then((res) => {
|
}).then((res: Response) => {
|
||||||
logger.info(res)
|
logger.info(res)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,31 +1,21 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2015",
|
"target": "ES2015",
|
||||||
"module": "commonjs",
|
"module": "node16",
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"ignoreDeprecations": "6.0",
|
"moduleResolution": "node16",
|
||||||
"moduleResolution": "node",
|
"lib": ["esnext", "esnext.asynciterable", "dom"],
|
||||||
"lib": [
|
"esModuleInterop": true,
|
||||||
"esnext",
|
"allowJs": true,
|
||||||
"esnext.asynciterable",
|
"sourceMap": true,
|
||||||
"dom"
|
"strict": true,
|
||||||
],
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"baseUrl": ".",
|
||||||
"allowJs": true,
|
"paths": {
|
||||||
"sourceMap": true,
|
"~/*": ["./*"],
|
||||||
"strict": true,
|
"@/*": ["./*"],
|
||||||
"noEmit": true,
|
"@neteasecloudmusicapienhanced/api": ["./interface.d.ts"]
|
||||||
"baseUrl": ".",
|
}
|
||||||
"paths": {
|
},
|
||||||
"~/*": [
|
"exclude": ["node_modules"]
|
||||||
"./*"
|
}
|
||||||
],
|
|
||||||
"@/*": [
|
|
||||||
"./*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user