feat: add custom world opening cg contract

This commit is contained in:
Hermes Agent
2026-05-04 03:02:24 +08:00
parent 8e6d1971ea
commit 46d240e37d
3 changed files with 42 additions and 2 deletions

View File

@@ -253,6 +253,38 @@ export type CustomWorldThemeMode =
export type CustomWorldProfileRecord = JsonObject & {
id?: string;
openingCg?: CustomWorldOpeningCgProfile | null;
};
export type CustomWorldOpeningCgStatus =
| 'not_started'
| 'storyboard_generating'
| 'video_generating'
| 'ready'
| 'failed';
export type CustomWorldOpeningCgProfile = {
id: string;
status: CustomWorldOpeningCgStatus;
storyboardImageSrc?: string | null;
storyboardAssetId?: string | null;
videoSrc?: string | null;
videoAssetId?: string | null;
posterImageSrc?: string | null;
posterAssetId?: string | null;
storyboardPrompt?: string | null;
videoPrompt?: string | null;
imageModel: 'gpt-image-2';
videoModel: string;
aspectRatio: '16:9';
imageSize: '2k';
videoResolution: '480p';
durationSeconds: 15;
pointCost: 80;
estimatedWaitMinutes: 10;
generatedAt?: string | null;
updatedAt: string;
errorMessage?: string | null;
};
export type CustomWorldLibraryEntry<TProfile = CustomWorldProfileRecord> = {