{"providers":[{"id":"openai","name":"OpenAI (ChatGPT)","baseUrl":"https://api.openai.com/v1","model":"gpt-4.1","detail":"Designs, images & speech","protocol":"openai"},{"id":"anthropic","name":"Anthropic","baseUrl":"https://api.anthropic.com/v1","model":"claude-sonnet-4-20250514","detail":"Design generation with Claude","protocol":"anthropic"},{"id":"gemini","name":"Google Gemini","baseUrl":"https://generativelanguage.googleapis.com/v1beta","model":"gemini-2.5-flash","detail":"Designs & images","protocol":"gemini"},{"id":"openrouter","name":"OpenRouter","baseUrl":"https://openrouter.ai/api/v1","model":"openai/gpt-4.1","detail":"Your choice of language model","protocol":"openai"},{"id":"fal","name":"fal.ai","baseUrl":"https://queue.fal.run","model":"fal-ai/kling-video/v2.5-turbo/pro/text-to-video","detail":"Images, video, music & effects","protocol":"openai"},{"id":"deepseek","name":"DeepSeek","baseUrl":"https://api.deepseek.com","model":"deepseek-flash","detail":"Design generation with the official DeepSeek API","protocol":"openai"},{"id":"leonardo","name":"LeonardoAI","baseUrl":"https://cloud.leonardo.ai/api/rest/v1","model":"de7d3faf-762f-48e0-b3b7-9d0ac3a3fcf3","detail":"Image generation with background jobs","protocol":"openai"},{"id":"grok","name":"Grok (xAI)","baseUrl":"https://api.x.ai/v1","model":"grok-imagine-image-2.0","detail":"Image generation","protocol":"openai"}],"providerId":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string","enum":["openai","anthropic","gemini","openrouter","fal","deepseek","leonardo","grok"]},{"type":"string","pattern":"^custom-[a-z0-9][a-z0-9-]{0,55}$"}]},"providerSettings":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"apiKey":{"type":"string","minLength":1,"maxLength":4096,"pattern":"^[^\\r\\n\\x00-\\x1f\\x7f]+$"},"baseUrl":{"type":"string","maxLength":2048,"format":"uri"},"model":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":80},"protocol":{"type":"string","enum":["openai","anthropic","gemini"]},"authMethod":{"type":"string","enum":["bearer","api-key","basic","none"]},"authHeader":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9-]{0,79}$"}},"additionalProperties":false},"mediaInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["image","audio","video"]},"prompt":{"type":"string","minLength":1,"maxLength":4000},"provider":{"anyOf":[{"type":"string","enum":["openai","gemini","fal","leonardo","grok"]},{"type":"string","pattern":"^custom-[a-z0-9][a-z0-9-]{0,55}$"}]},"model":{"type":"string","minLength":1,"maxLength":200},"voice":{"type":"string","enum":["alloy","ash","ballad","coral","echo","fable","nova","onyx","sage","shimmer"]},"sourceAssetId":{"type":"string","maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"durationSeconds":{"type":"integer","minimum":1,"maximum":190},"strength":{"type":"number","minimum":0,"maximum":1}},"required":["kind","prompt","provider"],"additionalProperties":false},"generationInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":12000},"provider":{"anyOf":[{"type":"string","enum":["openai","anthropic","gemini","openrouter","deepseek"]},{"type":"string","pattern":"^custom-[a-z0-9][a-z0-9-]{0,55}$"}]},"model":{"type":"string","minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["prompt","provider","expectedRevision"],"additionalProperties":false},"providerInterview":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"provider":{"anyOf":[{"type":"string","enum":["openai","anthropic","gemini","openrouter","deepseek"]},{"type":"string","pattern":"^custom-[a-z0-9][a-z0-9-]{0,55}$"}]},"model":{"type":"string","minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["provider","expectedRevision"],"additionalProperties":false},"document":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":1},"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["web","slides","report","wireframe","3d","video"]},"theme":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"colors":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"type":"string","maxLength":80}},"fonts":{"type":"object","properties":{"heading":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":200}},"required":["heading","body"],"additionalProperties":false},"spacing":{"maxItems":32,"type":"array","items":{"type":"number","minimum":0,"maximum":1000}},"radius":{"type":"number","minimum":0,"maximum":1000}},"required":["id","name","colors","fonts","spacing","radius"],"additionalProperties":false},"pages":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":200},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"background":{"type":"string","maxLength":80},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"notes":{"type":"string","maxLength":20000},"scene":{"type":"object","properties":{"camera":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","minimum":10,"maximum":120}},"required":["position","target","fov"],"additionalProperties":false},"ambient":{"type":"number","minimum":0,"maximum":10},"light":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"intensity":{"type":"number","minimum":0,"maximum":20},"color":{"type":"string","maxLength":80}},"required":["position","intensity","color"],"additionalProperties":false}},"required":["camera","ambient","light"],"additionalProperties":false},"nodes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","enum":["frame","group","component","text","image","shape","icon","chart","model3d","video","audio"]},"name":{"type":"string","maxLength":200},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"rotation":{"type":"number","minimum":-36000,"maximum":36000},"opacity":{"type":"number","minimum":0,"maximum":1},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"position":{"type":"string","enum":["flow","absolute"]},"pivot":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":0,"maximum":1}],"items":false,"minItems":2,"maxItems":2},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"interactions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","enum":["click","hover"]},"action":{"type":"string","enum":["navigate","toggle","url"]},"target":{"type":"string","maxLength":2000}},"required":["trigger","action","target"],"additionalProperties":false}},"scene":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"scale":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"mesh":{"type":"object","properties":{"positions":{"minItems":9,"maxItems":900000,"type":"array","items":{"type":"number","minimum":-100000,"maximum":100000}},"indices":{"minItems":3,"maxItems":1800000,"type":"array","items":{"type":"integer","minimum":0,"maximum":299999}},"uv":{"maxItems":600000,"type":"array","items":{"type":"number","minimum":-100,"maximum":100}},"skinIndices":{"maxItems":1200000,"type":"array","items":{"type":"integer","minimum":0,"maximum":255}},"skinWeights":{"maxItems":1200000,"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"required":["positions","indices"],"additionalProperties":false},"material":{"type":"object","properties":{"color":{"type":"string","maxLength":80},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"wireframe":{"type":"boolean"},"doubleSided":{"type":"boolean"},"textureAssetId":{"type":"string","maxLength":120}},"additionalProperties":false},"bones":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"parent":{"type":"integer","minimum":-1,"maximum":255},"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3}},"required":["name","parent","position"],"additionalProperties":false}}},"additionalProperties":false},"parentId":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"locked":{"type":"boolean"},"visible":{"type":"boolean"},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"data":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"required":["id","type","name","x","y","width","height"],"additionalProperties":false}}},"required":["id","name","width","height","background","nodes"],"additionalProperties":false}},"assets":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":300},"type":{"type":"string","maxLength":80},"mimeType":{"type":"string","maxLength":100},"url":{"type":"string","maxLength":2000000},"size":{"type":"number","minimum":0}},"required":["id","name","type","mimeType","url"],"additionalProperties":false}},"designSystem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"name":{"type":"string","maxLength":200}},"required":["id","version","name"],"additionalProperties":false},"presentation":{"type":"object","properties":{"interval":{"type":"number","minimum":1,"maximum":600},"loop":{"type":"boolean"}},"required":["interval","loop"],"additionalProperties":false},"timeline":{"type":"object","properties":{"duration":{"type":"number","minimum":0.1,"maximum":3600},"fps":{"type":"number","minimum":1,"maximum":60},"tracks":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"nodeId":{"type":"string","minLength":1,"maxLength":120},"keyframes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"time":{"type":"number","minimum":0,"maximum":3600},"values":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"easing":{"anyOf":[{"type":"string","enum":["linear","easeIn","easeOut","easeInOut","bounce","spring","step"]},{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5},{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5}],"items":false,"minItems":4,"maxItems":4}]}},"required":["time","values"],"additionalProperties":false}},"muted":{"type":"boolean"},"locked":{"type":"boolean"}},"required":["id","nodeId","keyframes"],"additionalProperties":false}}},"required":["duration","fps","tracks"],"additionalProperties":false},"metadata":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["createdAt","updatedAt"],"additionalProperties":false}},"required":["schemaVersion","id","name","kind","theme","pages","assets","metadata"],"additionalProperties":false},"operations":{"$schema":"https://json-schema.org/draft/2020-12/schema","minItems":1,"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"add-node"},"pageId":{"type":"string"},"node":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","enum":["frame","group","component","text","image","shape","icon","chart","model3d","video","audio"]},"name":{"type":"string","maxLength":200},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"rotation":{"type":"number","minimum":-36000,"maximum":36000},"opacity":{"type":"number","minimum":0,"maximum":1},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"position":{"type":"string","enum":["flow","absolute"]},"pivot":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":0,"maximum":1}],"items":false,"minItems":2,"maxItems":2},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"interactions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","enum":["click","hover"]},"action":{"type":"string","enum":["navigate","toggle","url"]},"target":{"type":"string","maxLength":2000}},"required":["trigger","action","target"],"additionalProperties":false}},"scene":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"scale":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"mesh":{"type":"object","properties":{"positions":{"minItems":9,"maxItems":900000,"type":"array","items":{"type":"number","minimum":-100000,"maximum":100000}},"indices":{"minItems":3,"maxItems":1800000,"type":"array","items":{"type":"integer","minimum":0,"maximum":299999}},"uv":{"maxItems":600000,"type":"array","items":{"type":"number","minimum":-100,"maximum":100}},"skinIndices":{"maxItems":1200000,"type":"array","items":{"type":"integer","minimum":0,"maximum":255}},"skinWeights":{"maxItems":1200000,"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"required":["positions","indices"],"additionalProperties":false},"material":{"type":"object","properties":{"color":{"type":"string","maxLength":80},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"wireframe":{"type":"boolean"},"doubleSided":{"type":"boolean"},"textureAssetId":{"type":"string","maxLength":120}},"additionalProperties":false},"bones":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"parent":{"type":"integer","minimum":-1,"maximum":255},"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3}},"required":["name","parent","position"],"additionalProperties":false}}},"additionalProperties":false},"parentId":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"locked":{"type":"boolean"},"visible":{"type":"boolean"},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"data":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"required":["id","type","name","x","y","width","height"],"additionalProperties":false}},"required":["op","pageId","node"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"update-node"},"nodeId":{"type":"string"},"changes":{"type":"object","properties":{"type":{"type":"string","enum":["frame","group","component","text","image","shape","icon","chart","model3d","video","audio"]},"name":{"type":"string","maxLength":200},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"rotation":{"type":"number","minimum":-36000,"maximum":36000},"opacity":{"type":"number","minimum":0,"maximum":1},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"position":{"type":"string","enum":["flow","absolute"]},"pivot":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":0,"maximum":1}],"items":false,"minItems":2,"maxItems":2},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"interactions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","enum":["click","hover"]},"action":{"type":"string","enum":["navigate","toggle","url"]},"target":{"type":"string","maxLength":2000}},"required":["trigger","action","target"],"additionalProperties":false}},"scene":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"scale":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"mesh":{"type":"object","properties":{"positions":{"minItems":9,"maxItems":900000,"type":"array","items":{"type":"number","minimum":-100000,"maximum":100000}},"indices":{"minItems":3,"maxItems":1800000,"type":"array","items":{"type":"integer","minimum":0,"maximum":299999}},"uv":{"maxItems":600000,"type":"array","items":{"type":"number","minimum":-100,"maximum":100}},"skinIndices":{"maxItems":1200000,"type":"array","items":{"type":"integer","minimum":0,"maximum":255}},"skinWeights":{"maxItems":1200000,"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"required":["positions","indices"],"additionalProperties":false},"material":{"type":"object","properties":{"color":{"type":"string","maxLength":80},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"wireframe":{"type":"boolean"},"doubleSided":{"type":"boolean"},"textureAssetId":{"type":"string","maxLength":120}},"additionalProperties":false},"bones":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"parent":{"type":"integer","minimum":-1,"maximum":255},"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3}},"required":["name","parent","position"],"additionalProperties":false}}},"additionalProperties":false},"parentId":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"locked":{"type":"boolean"},"visible":{"type":"boolean"},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"data":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"additionalProperties":false}},"required":["op","nodeId","changes"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove-node"},"nodeId":{"type":"string"}},"required":["op","nodeId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"duplicate-node"},"nodeId":{"type":"string"},"duplicateId":{"type":"string"},"offset":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}},"required":["op","nodeId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"add-page"},"page":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":200},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"background":{"type":"string","maxLength":80},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"notes":{"type":"string","maxLength":20000},"scene":{"type":"object","properties":{"camera":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","minimum":10,"maximum":120}},"required":["position","target","fov"],"additionalProperties":false},"ambient":{"type":"number","minimum":0,"maximum":10},"light":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"intensity":{"type":"number","minimum":0,"maximum":20},"color":{"type":"string","maxLength":80}},"required":["position","intensity","color"],"additionalProperties":false}},"required":["camera","ambient","light"],"additionalProperties":false},"nodes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","enum":["frame","group","component","text","image","shape","icon","chart","model3d","video","audio"]},"name":{"type":"string","maxLength":200},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"rotation":{"type":"number","minimum":-36000,"maximum":36000},"opacity":{"type":"number","minimum":0,"maximum":1},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"position":{"type":"string","enum":["flow","absolute"]},"pivot":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":0,"maximum":1}],"items":false,"minItems":2,"maxItems":2},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"interactions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","enum":["click","hover"]},"action":{"type":"string","enum":["navigate","toggle","url"]},"target":{"type":"string","maxLength":2000}},"required":["trigger","action","target"],"additionalProperties":false}},"scene":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"scale":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"mesh":{"type":"object","properties":{"positions":{"minItems":9,"maxItems":900000,"type":"array","items":{"type":"number","minimum":-100000,"maximum":100000}},"indices":{"minItems":3,"maxItems":1800000,"type":"array","items":{"type":"integer","minimum":0,"maximum":299999}},"uv":{"maxItems":600000,"type":"array","items":{"type":"number","minimum":-100,"maximum":100}},"skinIndices":{"maxItems":1200000,"type":"array","items":{"type":"integer","minimum":0,"maximum":255}},"skinWeights":{"maxItems":1200000,"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"required":["positions","indices"],"additionalProperties":false},"material":{"type":"object","properties":{"color":{"type":"string","maxLength":80},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"wireframe":{"type":"boolean"},"doubleSided":{"type":"boolean"},"textureAssetId":{"type":"string","maxLength":120}},"additionalProperties":false},"bones":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"parent":{"type":"integer","minimum":-1,"maximum":255},"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3}},"required":["name","parent","position"],"additionalProperties":false}}},"additionalProperties":false},"parentId":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"locked":{"type":"boolean"},"visible":{"type":"boolean"},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"data":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"required":["id","type","name","x","y","width","height"],"additionalProperties":false}}},"required":["id","name","width","height","background","nodes"],"additionalProperties":false}},"required":["op","page"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove-page"},"pageId":{"type":"string"}},"required":["op","pageId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set-theme"},"theme":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"colors":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"type":"string","maxLength":80}},"fonts":{"type":"object","properties":{"heading":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":200}},"required":["heading","body"],"additionalProperties":false},"spacing":{"maxItems":32,"type":"array","items":{"type":"number","minimum":0,"maximum":1000}},"radius":{"type":"number","minimum":0,"maximum":1000}},"required":["id","name","colors","fonts","spacing","radius"],"additionalProperties":false}},"required":["op","theme"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"apply-theme"},"themeId":{"type":"string"}},"required":["op","themeId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"insert-block"},"pageId":{"type":"string"},"blockId":{"type":"string"},"offset":{"type":"number"}},"required":["op","pageId","blockId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"rename"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["op","name"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set-timeline"},"timeline":{"type":"object","properties":{"duration":{"type":"number","minimum":0.1,"maximum":3600},"fps":{"type":"number","minimum":1,"maximum":60},"tracks":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"nodeId":{"type":"string","minLength":1,"maxLength":120},"keyframes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"time":{"type":"number","minimum":0,"maximum":3600},"values":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"easing":{"anyOf":[{"type":"string","enum":["linear","easeIn","easeOut","easeInOut","bounce","spring","step"]},{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5},{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5}],"items":false,"minItems":4,"maxItems":4}]}},"required":["time","values"],"additionalProperties":false}},"muted":{"type":"boolean"},"locked":{"type":"boolean"}},"required":["id","nodeId","keyframes"],"additionalProperties":false}}},"required":["duration","fps","tracks"],"additionalProperties":false}},"required":["op","timeline"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upsert-track"},"track":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120},"nodeId":{"type":"string","minLength":1,"maxLength":120},"keyframes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"time":{"type":"number","minimum":0,"maximum":3600},"values":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"easing":{"anyOf":[{"type":"string","enum":["linear","easeIn","easeOut","easeInOut","bounce","spring","step"]},{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5},{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5}],"items":false,"minItems":4,"maxItems":4}]}},"required":["time","values"],"additionalProperties":false}},"muted":{"type":"boolean"},"locked":{"type":"boolean"}},"required":["id","nodeId","keyframes"],"additionalProperties":false}},"required":["op","track"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove-track"},"trackId":{"type":"string"}},"required":["op","trackId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upsert-keyframe"},"trackId":{"type":"string"},"keyframe":{"type":"object","properties":{"time":{"type":"number","minimum":0,"maximum":3600},"values":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"easing":{"anyOf":[{"type":"string","enum":["linear","easeIn","easeOut","easeInOut","bounce","spring","step"]},{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5},{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":-5,"maximum":5}],"items":false,"minItems":4,"maxItems":4}]}},"required":["time","values"],"additionalProperties":false},"previousTime":{"type":"number","minimum":0}},"required":["op","trackId","keyframe"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove-keyframe"},"trackId":{"type":"string"},"time":{"type":"number","minimum":0}},"required":["op","trackId","time"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"reparent-node"},"nodeId":{"type":"string"},"parentId":{"type":["string","null"]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["op","nodeId","parentId","index"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"group-nodes"},"pageId":{"type":"string"},"nodeIds":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string"}},"groupId":{"type":"string"},"name":{"type":"string","maxLength":200},"bounds":{"maxItems":2001,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000}},"required":["id","x","y","width","height"],"additionalProperties":false}}},"required":["op","pageId","nodeIds"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"ungroup-node"},"nodeId":{"type":"string"}},"required":["op","nodeId"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"update-page"},"pageId":{"type":"string"},"changes":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"background":{"type":"string","maxLength":80},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"notes":{"type":"string","maxLength":20000},"scene":{"type":"object","properties":{"camera":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","minimum":10,"maximum":120}},"required":["position","target","fov"],"additionalProperties":false},"ambient":{"type":"number","minimum":0,"maximum":10},"light":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"intensity":{"type":"number","minimum":0,"maximum":20},"color":{"type":"string","maxLength":80}},"required":["position","intensity","color"],"additionalProperties":false}},"required":["camera","ambient","light"],"additionalProperties":false}},"additionalProperties":false}},"required":["op","pageId","changes"],"additionalProperties":false}]}},"designSystem":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"default":"","type":"string","maxLength":2000},"system":{"type":"string","enum":["antd","shadcn"]},"theme":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"colors":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"type":"string","maxLength":80}},"fonts":{"type":"object","properties":{"heading":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":200}},"required":["heading","body"],"additionalProperties":false},"spacing":{"maxItems":32,"type":"array","items":{"type":"number","minimum":0,"maximum":1000}},"radius":{"type":"number","minimum":0,"maximum":1000}},"required":["id","name","colors","fonts","spacing","radius"],"additionalProperties":false},"components":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000}},"required":["id","name","component"],"additionalProperties":false}},"compositions":{"default":[],"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":200},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"background":{"type":"string","maxLength":80},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"notes":{"type":"string","maxLength":20000},"scene":{"type":"object","properties":{"camera":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","minimum":10,"maximum":120}},"required":["position","target","fov"],"additionalProperties":false},"ambient":{"type":"number","minimum":0,"maximum":10},"light":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"intensity":{"type":"number","minimum":0,"maximum":20},"color":{"type":"string","maxLength":80}},"required":["position","intensity","color"],"additionalProperties":false}},"required":["camera","ambient","light"],"additionalProperties":false},"nodes":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","enum":["frame","group","component","text","image","shape","icon","chart","model3d","video","audio"]},"name":{"type":"string","maxLength":200},"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000},"width":{"type":"number","minimum":0,"maximum":20000},"height":{"type":"number","minimum":0,"maximum":20000},"rotation":{"type":"number","minimum":-36000,"maximum":36000},"opacity":{"type":"number","minimum":0,"maximum":1},"layout":{"type":"object","properties":{"mode":{"type":"string","enum":["absolute","flex","grid"]},"direction":{"type":"string","enum":["row","column"]},"gap":{"type":"number","minimum":0,"maximum":20000},"padding":{"type":"number","minimum":0,"maximum":20000},"columns":{"type":"integer","minimum":1,"maximum":24},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","space-between"]},"wrap":{"type":"boolean"}},"required":["mode"],"additionalProperties":false},"sizing":{"type":"object","properties":{"width":{"type":"string","enum":["fixed","hug","fill"]},"height":{"type":"string","enum":["fixed","hug","fill"]},"minWidth":{"type":"number","minimum":0,"maximum":20000},"maxWidth":{"type":"number","minimum":0,"maximum":20000},"minHeight":{"type":"number","minimum":0,"maximum":20000},"maxHeight":{"type":"number","minimum":0,"maximum":20000}},"additionalProperties":false},"position":{"type":"string","enum":["flow","absolute"]},"pivot":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":1},{"type":"number","minimum":0,"maximum":1}],"items":false,"minItems":2,"maxItems":2},"component":{"type":"object","properties":{"name":{"type":"string","enum":["Button","Checkbox","Input","InputNumber","Slider","Image","Avatar","List","Statistics","Chart","Table","Select","Switch","Textarea","Card","Badge","Progress","Tabs","Dialog","Radio"]},"system":{"default":"shadcn","type":"string","enum":["shadcn","antd"]},"variant":{"type":"string","maxLength":80},"props":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"maxItems":1000,"type":"array","items":{"type":"string","maxLength":2000}}]}}},"required":["name","system"],"additionalProperties":false},"interactions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"trigger":{"type":"string","enum":["click","hover"]},"action":{"type":"string","enum":["navigate","toggle","url"]},"target":{"type":"string","maxLength":2000}},"required":["trigger","action","target"],"additionalProperties":false}},"scene":{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"scale":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"mesh":{"type":"object","properties":{"positions":{"minItems":9,"maxItems":900000,"type":"array","items":{"type":"number","minimum":-100000,"maximum":100000}},"indices":{"minItems":3,"maxItems":1800000,"type":"array","items":{"type":"integer","minimum":0,"maximum":299999}},"uv":{"maxItems":600000,"type":"array","items":{"type":"number","minimum":-100,"maximum":100}},"skinIndices":{"maxItems":1200000,"type":"array","items":{"type":"integer","minimum":0,"maximum":255}},"skinWeights":{"maxItems":1200000,"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"required":["positions","indices"],"additionalProperties":false},"material":{"type":"object","properties":{"color":{"type":"string","maxLength":80},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"wireframe":{"type":"boolean"},"doubleSided":{"type":"boolean"},"textureAssetId":{"type":"string","maxLength":120}},"additionalProperties":false},"bones":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"parent":{"type":"integer","minimum":-1,"maximum":255},"position":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3},"rotation":{"type":"array","prefixItems":[{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000},{"type":"number","minimum":-100000,"maximum":100000}],"items":false,"minItems":3,"maxItems":3}},"required":["name","parent","position"],"additionalProperties":false}}},"additionalProperties":false},"parentId":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[a-zA-Z0-9_-]+$"},"locked":{"type":"boolean"},"visible":{"type":"boolean"},"text":{"type":"string","maxLength":50000},"src":{"type":"string","maxLength":2000000},"style":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"}]}},"data":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"required":["id","type","name","x","y","width","height"],"additionalProperties":false}}},"required":["id","name","width","height","background","nodes"],"additionalProperties":false}}},"required":["name","description","system","theme","components","compositions"],"additionalProperties":false},"interview":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":3000},"questions":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"title":{"type":"string","minLength":1,"maxLength":240},"description":{"default":"","type":"string","maxLength":600},"type":{"type":"string","enum":["text","single","multiple"]},"options":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}},"required":{"default":true,"type":"boolean"}},"required":["id","title","description","type","options","required"],"additionalProperties":false}},"scope":{"anyOf":[{"type":"object","properties":{"objective":{"type":"string","minLength":1,"maxLength":2000},"audience":{"type":"string","minLength":1,"maxLength":1000},"direction":{"type":"string","minLength":1,"maxLength":2000},"deliverables":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"constraints":{"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"acceptanceCriteria":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["objective","audience","direction","deliverables","constraints","acceptanceCriteria"],"additionalProperties":false},{"type":"null"}]}},"required":["message","questions","scope"],"additionalProperties":false},"scope":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"objective":{"type":"string","minLength":1,"maxLength":2000},"audience":{"type":"string","minLength":1,"maxLength":1000},"direction":{"type":"string","minLength":1,"maxLength":2000},"deliverables":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"constraints":{"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"acceptanceCriteria":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["objective","audience","direction","deliverables","constraints","acceptanceCriteria"],"additionalProperties":false},"observabilityQuery":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scope":{"default":"owner","type":"string","enum":["owner","all"]},"days":{"default":7,"type":"integer","minimum":1,"maximum":30},"projectId":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","minLength":1,"maxLength":120},"channel":{"type":"string","enum":["browser","api","oauth","mcp","cli","webmcp","anonymous"]},"kind":{"type":"string","enum":["http","provider","mcp","client","export"]},"status":{"type":"string","enum":["running","success","error","interrupted"]},"action":{"type":"string","maxLength":160,"pattern":"^[a-zA-Z0-9_./:* -]+$"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"cursor":{"type":"string","maxLength":160}},"required":["scope","days","limit"],"additionalProperties":false},"clientEvent":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"event":{"type":"string","enum":["page_view","project_open","project_create","project_save","template_open","design_system_open","design_system_apply","export_start","export_finish","generation_start","generation_finish","editor_action","client_error"]},"page":{"type":"string","enum":["home","projects","templates","design-systems","editor","observability","settings","docs","guide"]},"action":{"type":"string","enum":["select","multiselect","move","resize","rotate","text_edit","font_change","duplicate","delete","group","ungroup","undo","redo","save","export","generate","navigate"]},"projectId":{"type":"string","minLength":1,"maxLength":120},"requestId":{"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)$"},"outcome":{"type":"string","enum":["success","error"]},"errorCode":{"type":"string","enum":["request_failed","network_error","unexpected_error","validation_error","revision_conflict"]}},"required":["event"],"additionalProperties":false}}