1 parent
ffdf6cbbdf
commit
a46fc4ef3c
237 files changed
+9933
-4641
No files matched your search
@@ -12,5 +12,6 @@ export * from './user';
|
||||
export * from './service';
|
||||
export * from './credential';
|
||||
export * from './qrart';
|
||||
export * from './suno';
|
||||
export * from './site';
|
||||
export * from './exchange';
|
||||
@@ -3,6 +3,7 @@ export interface ISiteFeatures {
|
||||
midjourney?: any;
|
||||
chatdoc?: any;
|
||||
qrart?: any;
|
||||
suno?: any;
|
||||
support?: any;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
export interface Song {
|
||||
id?: string;
|
||||
audio_url?: string;
|
||||
created_at?: string;
|
||||
image_url?: string;
|
||||
lyric?: string;
|
||||
video_url?: string;
|
||||
model?: string;
|
||||
prompt?: string;
|
||||
style?: string;
|
||||
title?: string;
|
||||
duration?: number;
|
||||
}
|
||||
|
||||
export interface PlayListDetail {
|
||||
task_id: string;
|
||||
name: string;
|
||||
coverImgId: number;
|
||||
coverImgUrl: string;
|
||||
coverImgId_str: string;
|
||||
adType: number;
|
||||
userId: number;
|
||||
createTime: number;
|
||||
status: number;
|
||||
opRecommend: boolean;
|
||||
highQuality: boolean;
|
||||
newImported: boolean;
|
||||
updateTime: number;
|
||||
trackCount: number;
|
||||
specialType: number;
|
||||
privacy: number;
|
||||
trackUpdateTime: number;
|
||||
commentThreadId: string;
|
||||
playCount: number;
|
||||
trackNumberUpdateTime: number;
|
||||
subscribedCount: number;
|
||||
cloudTrackCount: number;
|
||||
ordered: boolean;
|
||||
description: string;
|
||||
tags: string[];
|
||||
updateFrequency?: any;
|
||||
backgroundCoverId: number;
|
||||
backgroundCoverUrl?: any;
|
||||
titleImage: number;
|
||||
titleImageUrl?: any;
|
||||
englishTitle?: any;
|
||||
officialPlaylistType?: any;
|
||||
videoIds?: any;
|
||||
videos?: any;
|
||||
shareCount: number;
|
||||
commentCount: number;
|
||||
remixVideo?: any;
|
||||
sharedUsers?: any;
|
||||
historySharedUsers?: any;
|
||||
}
|
||||
|
||||
export interface ISunoConfig {
|
||||
prompt?: string;
|
||||
model?: string;
|
||||
lyric?: string;
|
||||
custom?: boolean;
|
||||
instrumental?: boolean;
|
||||
title?: string;
|
||||
style?: string;
|
||||
action?: string;
|
||||
}
|
||||
export interface ISunoAudioRequest {
|
||||
action?: string;
|
||||
prompt?: string;
|
||||
model?: string;
|
||||
lyric?: string;
|
||||
custom?: boolean;
|
||||
title?: string;
|
||||
style?: string;
|
||||
}
|
||||
|
||||
export interface ISunoLyricRequest {
|
||||
prompt?: string;
|
||||
}
|
||||
|
||||
export interface ISunoAudio {
|
||||
id?: string;
|
||||
lyric?: string;
|
||||
volume?: number;
|
||||
progress?: number;
|
||||
model?: string;
|
||||
style?: string;
|
||||
title?: string;
|
||||
prompt?: string;
|
||||
audio_url?: string;
|
||||
video_url?: string;
|
||||
image_url?: string;
|
||||
created_at?: string;
|
||||
duration?: number;
|
||||
state?: 'playing' | 'paused';
|
||||
object?: any;
|
||||
}
|
||||
|
||||
export interface ISunoAudioLyric {
|
||||
text?: string;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export interface ISunoAudioResponse {
|
||||
success?: boolean;
|
||||
task_id: string;
|
||||
data: ISunoAudio[];
|
||||
}
|
||||
|
||||
export interface ISunoLyricResponse {
|
||||
success?: boolean;
|
||||
task_id: string;
|
||||
data: ISunoAudioLyric;
|
||||
}
|
||||
|
||||
export interface ISunoTask {
|
||||
map(arg0: (song: any) => any): any;
|
||||
id: string;
|
||||
created_at?: string;
|
||||
request?: ISunoAudioRequest | ISunoLyricRequest;
|
||||
response?: ISunoAudioResponse | ISunoLyricResponse;
|
||||
}
|
||||
|
||||
export type ISunoTaskResponse = ISunoTask;
|
||||
|
||||
export interface ISunoTasksResponse {
|
||||
count: number;
|
||||
items: ISunoTask[];
|
||||
}
|
||||
Reference in new issue
Block a user