071faa482c
纳入 AGC Cargo workspace 的统一 rustfmt 检查与格式化入口 完成项目 TypeScript/Prettier 与 Rust 全量格式化 修复 Pingora expected executable 门禁的空白敏感误报 同步开发运维文档与 AGC skill pack 格式化忽略规则
57 lines
1.2 KiB
TypeScript
57 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;
|
|
}
|