{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://2b-entertainment.com/schemas/2b-studio-session.json", "title": "2BStudioSession", "type": "object", "additionalProperties": false, "required": ["id", "created_at", "locale", "create", "master", "tracks", "chat"], "properties": { "id": { "type": "string", "minLength": 8 }, "created_at": { "type": "string", "format": "date-time" }, "locale": { "type": "string", "enum": ["de", "en"] }, "create": { "type": "object", "additionalProperties": false, "required": ["genre_style_instruments", "lyrics", "negative", "duration_s", "model_id"], "properties": { "genre_style_instruments": { "type": "string", "maxLength": 4000 }, "lyrics": { "type": "string", "maxLength": 8000 }, "negative": { "type": "string", "maxLength": 1500 }, "idea": { "type": "string", "maxLength": 2000, "description": "Rohidee aus dem Chat, nicht als eigenes UI-Feld. Speist die drei Promptboxen." }, "duration_s": { "type": "integer", "minimum": 5, "maximum": 300 }, "model_id": { "type": "string" }, "mode": { "type": "string", "enum": ["simple", "studio"] }, "negative_terms": { "type": "array", "items": { "type": "string" }, "maxItems": 24 }, "studio": { "type": "object", "additionalProperties": false, "properties": { "global_metadata": { "type": "string" }, "vocal_details": { "type": "string" }, "arrangement": { "type": "string" } } }, "renderings": { "type": "object", "additionalProperties": false, "properties": { "musicgen_prompt": { "type": "string", "maxLength": 1500 }, "short_caption": { "type": "string", "maxLength": 800 } } }, "last_job_id": { "type": ["string", "null"] } } }, "master": { "type": "object", "additionalProperties": false, "required": ["profile", "purity_mode"], "properties": { "source_track_id": { "type": ["string", "null"] }, "profile": { "type": "string", "enum": [ "streaming_safe", "streaming_loud", "club", "dynamic_hifi", "premium_clarity", "audiophile_preserve" ] }, "purity_mode": { "type": "string", "enum": ["soft_keep_air", "strict", "off"] }, "keep_air_db": { "type": "number", "minimum": -48, "maximum": 0 }, "margin": { "type": "number", "minimum": 0.5, "maximum": 2.9 }, "intensity": { "type": "integer", "minimum": 0, "maximum": 100 }, "last_report_id": { "type": ["string", "null"] }, "human_approval": { "type": "string", "enum": ["pending", "approved", "rejected", "n/a"] } } }, "tracks": { "type": "array", "items": { "$ref": "#/$defs/track" } }, "chat": { "type": "array", "items": { "$ref": "#/$defs/chat_turn" } } }, "$defs": { "track": { "type": "object", "additionalProperties": false, "required": ["id", "role", "path"], "properties": { "id": { "type": "string" }, "role": { "type": "string", "enum": ["draft", "clean", "residual", "master", "upload"] }, "path": { "type": "string" }, "engine": { "type": "string" }, "duration_s": { "type": "number" }, "sample_rate": { "type": "integer" }, "parent_id": { "type": ["string", "null"] }, "metrics": { "type": "object" } } }, "chat_turn": { "type": "object", "additionalProperties": false, "required": ["role", "text"], "properties": { "role": { "type": "string", "enum": ["user", "prompt_agent", "master_agent", "system"] }, "text": { "type": "string" }, "actions": { "type": "array", "items": { "$ref": "#/$defs/action" } } } }, "action": { "type": "object", "additionalProperties": false, "required": ["type"], "properties": { "type": { "type": "string", "enum": [ "fill_create_fields", "fill_master_params", "propose_model", "start_job", "explain_metrics", "ask_user" ] }, "payload": { "type": "object" }, "preview": { "type": "string" }, "rationale": { "type": "string" } } } } }