{"openapi":"3.1.0","info":{"title":"Graphic Center production tools","version":"1.1.0","description":"Create or update fictional production graphics. Read live schema, validate, then write. Existing work requires exact project and graphic IDs. Preserve requestId on retry. Publishing requires publish:true. Does not execute code or deploy software."},"servers":[{"url":"https://graphic.burningtoastproject.com"}],"paths":{"/api/automation/schema":{"get":{"operationId":"getGraphicSchema","summary":"Read supported templates and current configuration schema","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}}}},"/api/automation/validate":{"post":{"operationId":"validateGraphicProject","summary":"Validate a new production project without saving","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Manifest"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":false}},"/api/automation/import":{"post":{"operationId":"importGraphicProject","summary":"Create a project and graphics; publish only if explicitly requested","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Manifest"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":true}},"/api/automation/validate-update":{"post":{"operationId":"validateGraphicProjectUpdate","summary":"Validate changes to an existing project without saving","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateManifest"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":false}},"/api/automation/update":{"post":{"operationId":"updateGraphicProject","summary":"Update exact graphics or add graphics to an existing project","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateManifest"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":true}},"/api/automation/assets":{"post":{"operationId":"uploadGraphicAsset","summary":"Upload a validated production asset and return its stable asset URL","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["requestId","file"],"properties":{"requestId":{"type":"string","minLength":8,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"projectId":{"type":"string","format":"uuid"},"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":true}},"/api/automation/publish":{"post":{"operationId":"publishGraphicSelection","summary":"Publish reviewed graphics by exact ID and return public playback URLs","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishSelection"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"409":{"description":"Idempotency conflict, missing target, or missing asset"},"422":{"description":"Invalid manifest"}},"x-openai-isConsequential":true}}},"components":{"schemas":{"Manifest":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"requestId":{"type":"string","minLength":8,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"publish":{"default":false,"type":"boolean"},"project":{"type":"object","properties":{"directoryVisible":{"default":false,"type":"boolean"},"demo":{"default":false,"type":"boolean"},"name":{"type":"string","minLength":1,"maxLength":150},"code":{"type":"string","minLength":1,"maxLength":20},"status":{"default":"Active","type":"string","enum":["Active","Paused","Archived"]},"shootDate":{"default":"","type":"string"},"cover":{"default":"","type":"string","maxLength":300},"theme":{"default":"device","type":"string","enum":["device","light","dark","scene"]}},"required":["name","code"]},"scenes":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"number":{"type":"string","minLength":1,"maxLength":30},"name":{"type":"string","minLength":1,"maxLength":120},"graphics":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"type":{"type":"string","enum":["call","messages","news","livestream","social","computer","lockscreen","alarm","dialer","countdown","notification","photos","blackout","damaged","custom"]},"category":{"default":"Phone","type":"string","enum":["Phone","Tablet","Desktop","News","Message","Call","Livestream","Social Media","Custom"]},"device":{"default":"iPhone 16 Pro","type":"string","maxLength":60},"width":{"default":1206,"type":"integer","minimum":200,"maximum":8000},"height":{"default":2622,"type":"integer","minimum":200,"maximum":8000},"orientation":{"default":"portrait","type":"string","enum":["portrait","landscape"]},"config":{"type":"object","properties":{"customTemplate":{"default":"dj-console","type":"string","enum":["dj-console"]},"customData":{"default":{"title":"STUDIO / MIX","leftTrack":"Midnight Transit","rightTrack":"After Hours","bpm":124},"type":"object","properties":{"title":{"default":"STUDIO / MIX","type":"string","maxLength":100},"leftTrack":{"default":"Midnight Transit","type":"string","maxLength":120},"rightTrack":{"default":"After Hours","type":"string","maxLength":120},"bpm":{"default":124,"type":"number","minimum":40,"maximum":240}}},"incomingAfter":{"default":0,"type":"number","minimum":0,"maximum":3600},"lockTime":{"default":"9:41","type":"string","maxLength":10},"lockDate":{"default":"Tuesday, September 17","type":"string","maxLength":100},"lockNotification":{"default":"","type":"string","maxLength":1000},"alarmTime":{"default":"07:00","type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"alarmLabel":{"default":"Alarm","type":"string","maxLength":100},"alarmDelay":{"default":0,"type":"number","minimum":0,"maximum":3600},"snoozeSeconds":{"default":540,"type":"integer","minimum":1,"maximum":3600},"countdownSeconds":{"default":60,"type":"integer","minimum":1,"maximum":86400},"countdownLabel":{"default":"COUNTDOWN","type":"string","maxLength":200},"notificationTitle":{"default":"Messages","type":"string","maxLength":100},"notificationText":{"default":"I will be there soon.","type":"string","maxLength":1000},"damageMode":{"default":"combined","type":"string","enum":["combined","glass","panel","leak"]},"damageIntensity":{"default":0.7,"type":"number","minimum":0.1,"maximum":1},"damageFlicker":{"default":true,"type":"boolean"},"photos":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"image":{"type":"string","pattern":"^\\/(assets\\/[a-zA-Z0-9-]+|demo\\/[a-zA-Z0-9.-]+)$"},"caption":{"default":"","type":"string","maxLength":500}},"required":["image"]}},"appearance":{"default":"device","type":"string","enum":["device","light","dark","scene"]},"accent":{"default":"#0a84ff","type":"string","pattern":"^#[0-9a-f]{6}$"},"contacts":{"default":[],"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"phone":{"default":"","type":"string","maxLength":40},"outcome":{"default":"connected","type":"string","enum":["connected","no-answer","unavailable"]},"delay":{"default":3,"type":"number","minimum":0,"maximum":120}},"required":["name"]}},"draft":{"default":"","type":"string","maxLength":2000},"participants":{"default":"Alex","type":"string","maxLength":200},"messages":{"default":[],"maxItems":300,"type":"array","items":{"type":"object","properties":{"sender":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":2000},"delay":{"default":2,"type":"number","minimum":0,"maximum":3600},"outgoing":{"default":false,"type":"boolean"}},"required":["sender","text"]}},"autoMessages":{"default":false,"type":"boolean"},"receipt":{"default":"Delivered","type":"string","enum":["Delivered","Read"]},"agency":{"default":"THE DAILY","type":"string","maxLength":200},"headline":{"default":"A new story begins.","type":"string","maxLength":1000},"subtitle":{"default":"","type":"string","maxLength":1000},"image":{"default":"","type":"string","maxLength":300},"breaking":{"default":true,"type":"boolean"},"speed":{"default":1,"type":"number","minimum":0.2,"maximum":10},"username":{"default":"Alex Morgan","type":"string","maxLength":100},"caption":{"default":"A moment to remember.","type":"string","maxLength":2000},"views":{"default":1248,"type":"integer","minimum":0,"maximum":1000000000},"comments":{"default":["What a beautiful evening.","Watching live from home.","Incredible!"],"maxItems":100,"type":"array","items":{"type":"string","maxLength":300}},"mailItems":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"sender":{"type":"string","maxLength":100},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":5000},"mailbox":{"default":"Inbox","type":"string","enum":["Inbox","Flagged","Drafts","Sent","Archive"]}},"required":["sender","subject","body"]}},"fileItems":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"folder":{"default":"Documents","type":"string","maxLength":150},"body":{"default":"","type":"string","maxLength":5000}},"required":["name"]}},"computerMode":{"default":"desktop","type":"string","enum":["desktop","mail","files","news","login","custom"]},"socialMode":{"default":"post","type":"string","enum":["post","story","profile","comments","dm"]},"statusBar":{"default":"hidden","type":"string","enum":["hidden","template","custom"]},"statusTime":{"default":"9:41","type":"string","maxLength":10},"battery":{"default":100,"type":"number","minimum":0,"maximum":100},"network":{"default":"5G","type":"string","maxLength":10},"charging":{"default":false,"type":"boolean"}}},"remote":{"default":true,"type":"boolean"},"order":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","type","config"]}}},"required":["number","name","graphics"],"additionalProperties":false}}},"required":["schemaVersion","requestId","project","scenes"],"additionalProperties":false},"UpdateManifest":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"requestId":{"type":"string","minLength":8,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"projectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publish":{"default":false,"type":"boolean"},"project":{"type":"object","properties":{"directoryVisible":{"default":false,"type":"boolean"},"demo":{"default":false,"type":"boolean"},"name":{"type":"string","minLength":1,"maxLength":150},"code":{"type":"string","minLength":1,"maxLength":20},"status":{"default":"Active","type":"string","enum":["Active","Paused","Archived"]},"shootDate":{"default":"","type":"string"},"cover":{"default":"","type":"string","maxLength":300},"theme":{"default":"device","type":"string","enum":["device","light","dark","scene"]}},"additionalProperties":false},"scenes":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"number":{"type":"string","minLength":1,"maxLength":30},"name":{"type":"string","minLength":1,"maxLength":120},"create":{"default":false,"type":"boolean"},"graphics":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"graphicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"create":{"default":false,"type":"boolean"},"data":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"type":{"type":"string","enum":["call","messages","news","livestream","social","computer","lockscreen","alarm","dialer","countdown","notification","photos","blackout","damaged","custom"]},"category":{"default":"Phone","type":"string","enum":["Phone","Tablet","Desktop","News","Message","Call","Livestream","Social Media","Custom"]},"device":{"default":"iPhone 16 Pro","type":"string","maxLength":60},"width":{"default":1206,"type":"integer","minimum":200,"maximum":8000},"height":{"default":2622,"type":"integer","minimum":200,"maximum":8000},"orientation":{"default":"portrait","type":"string","enum":["portrait","landscape"]},"config":{"type":"object","properties":{"customTemplate":{"default":"dj-console","type":"string","enum":["dj-console"]},"customData":{"default":{"title":"STUDIO / MIX","leftTrack":"Midnight Transit","rightTrack":"After Hours","bpm":124},"type":"object","properties":{"title":{"default":"STUDIO / MIX","type":"string","maxLength":100},"leftTrack":{"default":"Midnight Transit","type":"string","maxLength":120},"rightTrack":{"default":"After Hours","type":"string","maxLength":120},"bpm":{"default":124,"type":"number","minimum":40,"maximum":240}}},"incomingAfter":{"default":0,"type":"number","minimum":0,"maximum":3600},"lockTime":{"default":"9:41","type":"string","maxLength":10},"lockDate":{"default":"Tuesday, September 17","type":"string","maxLength":100},"lockNotification":{"default":"","type":"string","maxLength":1000},"alarmTime":{"default":"07:00","type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"alarmLabel":{"default":"Alarm","type":"string","maxLength":100},"alarmDelay":{"default":0,"type":"number","minimum":0,"maximum":3600},"snoozeSeconds":{"default":540,"type":"integer","minimum":1,"maximum":3600},"countdownSeconds":{"default":60,"type":"integer","minimum":1,"maximum":86400},"countdownLabel":{"default":"COUNTDOWN","type":"string","maxLength":200},"notificationTitle":{"default":"Messages","type":"string","maxLength":100},"notificationText":{"default":"I will be there soon.","type":"string","maxLength":1000},"damageMode":{"default":"combined","type":"string","enum":["combined","glass","panel","leak"]},"damageIntensity":{"default":0.7,"type":"number","minimum":0.1,"maximum":1},"damageFlicker":{"default":true,"type":"boolean"},"photos":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"image":{"type":"string","pattern":"^\\/(assets\\/[a-zA-Z0-9-]+|demo\\/[a-zA-Z0-9.-]+)$"},"caption":{"default":"","type":"string","maxLength":500}},"required":["image"]}},"appearance":{"default":"device","type":"string","enum":["device","light","dark","scene"]},"accent":{"default":"#0a84ff","type":"string","pattern":"^#[0-9a-f]{6}$"},"contacts":{"default":[],"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"phone":{"default":"","type":"string","maxLength":40},"outcome":{"default":"connected","type":"string","enum":["connected","no-answer","unavailable"]},"delay":{"default":3,"type":"number","minimum":0,"maximum":120}},"required":["name"]}},"draft":{"default":"","type":"string","maxLength":2000},"participants":{"default":"Alex","type":"string","maxLength":200},"messages":{"default":[],"maxItems":300,"type":"array","items":{"type":"object","properties":{"sender":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":2000},"delay":{"default":2,"type":"number","minimum":0,"maximum":3600},"outgoing":{"default":false,"type":"boolean"}},"required":["sender","text"]}},"autoMessages":{"default":false,"type":"boolean"},"receipt":{"default":"Delivered","type":"string","enum":["Delivered","Read"]},"agency":{"default":"THE DAILY","type":"string","maxLength":200},"headline":{"default":"A new story begins.","type":"string","maxLength":1000},"subtitle":{"default":"","type":"string","maxLength":1000},"image":{"default":"","type":"string","maxLength":300},"breaking":{"default":true,"type":"boolean"},"speed":{"default":1,"type":"number","minimum":0.2,"maximum":10},"username":{"default":"Alex Morgan","type":"string","maxLength":100},"caption":{"default":"A moment to remember.","type":"string","maxLength":2000},"views":{"default":1248,"type":"integer","minimum":0,"maximum":1000000000},"comments":{"default":["What a beautiful evening.","Watching live from home.","Incredible!"],"maxItems":100,"type":"array","items":{"type":"string","maxLength":300}},"mailItems":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"sender":{"type":"string","maxLength":100},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":5000},"mailbox":{"default":"Inbox","type":"string","enum":["Inbox","Flagged","Drafts","Sent","Archive"]}},"required":["sender","subject","body"]}},"fileItems":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"folder":{"default":"Documents","type":"string","maxLength":150},"body":{"default":"","type":"string","maxLength":5000}},"required":["name"]}},"computerMode":{"default":"desktop","type":"string","enum":["desktop","mail","files","news","login","custom"]},"socialMode":{"default":"post","type":"string","enum":["post","story","profile","comments","dm"]},"statusBar":{"default":"hidden","type":"string","enum":["hidden","template","custom"]},"statusTime":{"default":"9:41","type":"string","maxLength":10},"battery":{"default":100,"type":"number","minimum":0,"maximum":100},"network":{"default":"5G","type":"string","maxLength":10},"charging":{"default":false,"type":"boolean"}}},"remote":{"default":true,"type":"boolean"},"order":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","type","config"]}},"required":["data"],"additionalProperties":false}}},"required":["number","graphics"],"additionalProperties":false}}},"required":["schemaVersion","requestId","projectId","scenes"],"additionalProperties":false},"PublishSelection":{"type":"object","properties":{"requestId":{"type":"string","minLength":8,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"projectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"graphicIds":{"minItems":1,"maxItems":300,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["requestId","projectId","graphicIds"],"additionalProperties":false}},"securitySchemes":{"automationToken":{"type":"http","scheme":"bearer"}}},"security":[]}