feat: add adaptive soundtrack layer assets

This commit is contained in:
2026-09-04 15:13:38 +03:00
parent 0b52d75f01
commit 3d01b3ec07
16 changed files with 119 additions and 5 deletions

View File

@@ -202,6 +202,8 @@ const portfolioContentSchema = z.object({
soundtrack: z.object({
intro: soundtrackAssetSourcesSchema,
main: soundtrackAssetSourcesSchema,
afterglow: soundtrackAssetSourcesSchema,
driveLift: soundtrackAssetSourcesSchema,
}).strict().optional(),
sceneDescription: visibleString,
}).strict().superRefine((content, context) => {
@@ -321,6 +323,10 @@ export const parseProductionInputSnapshot = (input: unknown): ProductionInputs =
content.soundtrack.intro.mp3AssetId,
content.soundtrack.main.opusAssetId,
content.soundtrack.main.mp3AssetId,
content.soundtrack.afterglow.opusAssetId,
content.soundtrack.afterglow.mp3AssetId,
content.soundtrack.driveLift.opusAssetId,
content.soundtrack.driveLift.mp3AssetId,
]),
];
const seenReferences = new Set<string>();

View File

@@ -141,6 +141,8 @@ export interface SoundtrackAssetSources {
export interface SoundtrackContent {
intro: SoundtrackAssetSources;
main: SoundtrackAssetSources;
afterglow: SoundtrackAssetSources;
driveLift: SoundtrackAssetSources;
}
export interface PortfolioContent {