59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
export type CreationAudioGenerationKind =
|
|
| 'background_music'
|
|
| 'sound_effect';
|
|
|
|
export interface CreationAudioAsset {
|
|
taskId: string;
|
|
provider: string;
|
|
assetObjectId?: string | null;
|
|
assetKind?: string | null;
|
|
audioSrc: string;
|
|
prompt?: string | null;
|
|
title?: string | null;
|
|
updatedAt?: string | null;
|
|
}
|
|
|
|
export interface CreateBackgroundMusicRequest {
|
|
prompt: string;
|
|
title: string;
|
|
tags?: string | null;
|
|
model?: string | null;
|
|
}
|
|
|
|
export interface CreateSoundEffectRequest {
|
|
prompt: string;
|
|
duration?: number | null;
|
|
seed?: number | null;
|
|
}
|
|
|
|
export interface AudioGenerationTaskResponse {
|
|
kind: CreationAudioGenerationKind;
|
|
taskId: string;
|
|
provider: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface PublishGeneratedAudioAssetRequest {
|
|
entityKind: string;
|
|
entityId: string;
|
|
slot: string;
|
|
assetKind: string;
|
|
profileId?: string | null;
|
|
storagePrefix?:
|
|
| 'puzzle_assets'
|
|
| 'match3d_assets'
|
|
| 'wooden_fish_assets'
|
|
| 'custom_world_scenes'
|
|
| null;
|
|
}
|
|
|
|
export interface GeneratedAudioAssetResponse {
|
|
kind: CreationAudioGenerationKind;
|
|
taskId: string;
|
|
provider: string;
|
|
status: string;
|
|
assetObjectId?: string | null;
|
|
assetKind?: string | null;
|
|
audioSrc?: string | null;
|
|
}
|