@aelionsdk/sdk 1.0.0-rc.1 → 1.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/default-schemas.js +1 -1
- package/dist/project-builder.d.ts +28 -2
- package/dist/project-builder.d.ts.map +1 -1
- package/dist/project-builder.js +82 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ npm install @aelionsdk/sdk@next
|
|
|
9
9
|
npm install --save-dev @aelionsdk/vite-plugin@next vite
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
`next` currently resolves to `1.
|
|
12
|
+
`next` currently resolves to `1.1.0-rc.1`. Pin the exact version after
|
|
13
13
|
validation instead of following a moving prerelease tag.
|
|
14
14
|
|
|
15
15
|
## Vite setup
|
package/dist/default-schemas.js
CHANGED
|
@@ -6,7 +6,7 @@ function deepFreeze(value) {
|
|
|
6
6
|
}
|
|
7
7
|
return value;
|
|
8
8
|
}
|
|
9
|
-
const projectSchema = JSON.parse(String.raw `{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://schemas.aelion.dev/project/v1.json","title":"Aelion Project Document v1","type":"object","additionalProperties":false,"required":["$schema","schemaVersion","projectId","metadata","settings","assets","sequences","tracks","items","materialInstances","transitions","markers","linkGroups","extensions"],"properties":{"$schema":{"const":"https://schemas.aelion.dev/project/v1.json"},"schemaVersion":{"const":"1.0.0"},"projectId":{"$ref":"#/$defs/entityId"},"metadata":{"$ref":"#/$defs/jsonObject"},"settings":{"$ref":"#/$defs/settings"},"assets":{"$ref":"#/$defs/assetMap"},"sequences":{"$ref":"#/$defs/sequenceMap"},"tracks":{"$ref":"#/$defs/trackMap"},"items":{"$ref":"#/$defs/itemMap"},"materialInstances":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"https://schemas.aelion.dev/material/instance/v1.json"}},"transitions":{"$ref":"#/$defs/transitionMap"},"markers":{"$ref":"#/$defs/markerMap"},"linkGroups":{"$ref":"#/$defs/linkGroupMap"},"extensions":{"$ref":"#/$defs/extensions"}},"$defs":{"entityId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z][A-Za-z0-9._:-]*$"},"safeInteger":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeUs":{"type":"integer","minimum":0,"maximum":9007199254740991},"positiveDurationUs":{"type":"integer","minimum":1,"maximum":9007199254740991},"jsonValue":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","maxItems":16384,"items":{"$ref":"#/$defs/jsonValue"}},{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/jsonValue"}}]},"jsonObject":{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/jsonValue"}},"extensions":{"type":"object","maxProperties":4096,"propertyNames":{"type":"string","pattern":"^[a-z0-9]+(?:\\.[a-z0-9-]+)+$"},"additionalProperties":{"$ref":"#/$defs/jsonValue"}},"rational":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"integer","minimum":1,"maximum":9007199254740991},"denominator":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"range":{"type":"object","additionalProperties":false,"required":["startUs","durationUs"],"properties":{"startUs":{"$ref":"#/$defs/timeUs"},"durationUs":{"$ref":"#/$defs/positiveDurationUs"}}},"color":{"type":"object","additionalProperties":false,"required":["space","rgba"],"properties":{"space":{"enum":["srgb-linear","display-p3-linear","rec2020-linear"]},"rgba":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}}}},"vec2":{"type":"object","additionalProperties":false,"required":["x","y"],"properties":{"x":{"type":"number"},"y":{"type":"number"}}},"animation":{"type":"object","additionalProperties":false,"required":["animation"],"properties":{"animation":{"type":"object","additionalProperties":false,"required":["timeSpace","preInfinity","postInfinity","keyframes"],"properties":{"timeSpace":{"enum":["item","sequence"]},"preInfinity":{"enum":["hold","linear","none","cycle","ping-pong"]},"postInfinity":{"enum":["hold","linear","none","cycle","ping-pong"]},"keyframes":{"type":"array","minItems":1,"maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["timeUs","value","interpolation"],"properties":{"timeUs":{"$ref":"#/$defs/timeUs"},"value":{"$ref":"#/$defs/jsonValue"},"interpolation":{"enum":["hold","linear","cubic-bezier"]},"easing":{"type":"object","required":["type"],"properties":{"type":{"enum":["linear","steps","cubic-bezier"]},"count":{"type":"integer","minimum":1},"position":{"enum":["start","end"]},"x1":{"type":"number"},"y1":{"type":"number"},"x2":{"type":"number"},"y2":{"type":"number"}},"additionalProperties":false}}}}}}}},"animatableNumber":{"oneOf":[{"type":"number"},{"$ref":"#/$defs/animation"}]},"animatableVec2":{"oneOf":[{"$ref":"#/$defs/vec2"},{"$ref":"#/$defs/animation"}]},"settings":{"type":"object","additionalProperties":false,"required":["defaultSequenceId","defaultStillDurationUs","missingAssetPolicy","missingMaterialPolicy","missingPluginPolicy"],"properties":{"defaultSequenceId":{"$ref":"#/$defs/entityId"},"defaultStillDurationUs":{"$ref":"#/$defs/positiveDurationUs"},"locale":{"type":"string","minLength":1,"maxLength":128},"timezone":{"type":"string","minLength":1,"maxLength":128},"missingAssetPolicy":{"enum":["placeholder","error"]},"missingMaterialPolicy":{"enum":["placeholder","error"]},"missingPluginPolicy":{"enum":["placeholder","error"]}}},"assetLocator":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","uri"],"properties":{"type":{"const":"url"},"uri":{"type":"string","minLength":1,"maxLength":8192}}},{"type":"object","additionalProperties":false,"required":["type","bindingId"],"properties":{"type":{"const":"runtime-binding"},"bindingId":{"$ref":"#/$defs/entityId"}}},{"type":"object","additionalProperties":false,"required":["type","path"],"properties":{"type":{"const":"opfs"},"path":{"type":"string","minLength":1,"maxLength":4096}}},{"type":"object","additionalProperties":false,"required":["type","mimeType","base64"],"properties":{"type":{"const":"data"},"mimeType":{"type":"string","minLength":1,"maxLength":256},"base64":{"type":"string","maxLength":349528}}}]},"asset":{"type":"object","additionalProperties":false,"required":["id","kind","locator"],"properties":{"id":{"$ref":"#/$defs/entityId"},"kind":{"enum":["video","audio","image","font","lut","binary"]},"name":{"type":"string","maxLength":256},"locator":{"$ref":"#/$defs/assetLocator"},"contentHash":{"type":"object","additionalProperties":false,"required":["algorithm","value"],"properties":{"algorithm":{"const":"sha256"},"value":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"mimeType":{"type":"string","minLength":1,"maxLength":256},"representations":{"type":"array","maxItems":32,"items":{"type":"object","maxProperties":4096,"additionalProperties":true,"required":["id","role","locator"],"properties":{"id":{"$ref":"#/$defs/entityId"},"role":{"enum":["original","proxy","thumbnail","waveform"]},"locator":{"$ref":"#/$defs/assetLocator"}}}},"probeHint":{"type":"object","additionalProperties":false,"properties":{"durationUs":{"$ref":"#/$defs/positiveDurationUs"},"width":{"type":"integer","minimum":1,"maximum":65535},"height":{"type":"integer","minimum":1,"maximum":65535},"videoCodec":{"type":"string","maxLength":256},"audioCodec":{"type":"string","maxLength":256}}},"metadata":{"$ref":"#/$defs/jsonObject"},"extensions":{"$ref":"#/$defs/extensions"}}},"assetMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/asset"}},"sequence":{"type":"object","additionalProperties":false,"required":["id","format","duration","trackIds","transitionIds","materialInstanceIds","markerIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"name":{"type":"string","maxLength":256},"format":{"type":"object","additionalProperties":false,"required":["width","height","pixelAspectRatio","frameRate","sampleRate","channelLayout","workingColorSpace","backgroundColor"],"properties":{"width":{"type":"integer","minimum":1,"maximum":65535},"height":{"type":"integer","minimum":1,"maximum":65535},"pixelAspectRatio":{"$ref":"#/$defs/rational"},"frameRate":{"$ref":"#/$defs/rational"},"sampleRate":{"enum":[44100,48000,96000]},"channelLayout":{"enum":["mono","stereo","5.1"]},"workingColorSpace":{"enum":["srgb-linear","display-p3-linear","rec2020-linear"]},"transferFunction":{"enum":["srgb","gamma22","pq","hlg"],"default":"srgb"},"colorPrimaries":{"enum":["bt709","display-p3","bt2020"],"default":"bt709"},"matrixCoefficients":{"enum":["rgb","bt709","bt2020-ncl"],"default":"rgb"},"colorRange":{"enum":["full","limited"],"default":"full"},"chromaSubsampling":{"enum":["rgb","4:4:4","4:2:2","4:2:0"],"default":"4:4:4"},"alphaMode":{"enum":["opaque","premultiplied"],"default":"premultiplied"},"toneMapping":{"enum":["none","bt2390","reinhard"],"default":"none"},"bitDepth":{"enum":[8,10],"default":8},"backgroundColor":{"$ref":"#/$defs/color"}}},"duration":{"oneOf":[{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"const":"content"}}},{"type":"object","additionalProperties":false,"required":["mode","durationUs","overflow"],"properties":{"mode":{"const":"fixed"},"durationUs":{"$ref":"#/$defs/timeUs"},"overflow":{"enum":["clip","allow"]}}}]},"trackIds":{"$ref":"#/$defs/idList"},"transitionIds":{"$ref":"#/$defs/idList"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"markerIds":{"$ref":"#/$defs/idList"},"extensions":{"$ref":"#/$defs/extensions"}}},"sequenceMap":{"type":"object","minProperties":1,"maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/sequence"}},"idList":{"type":"array","maxItems":16384,"items":{"$ref":"#/$defs/entityId"}},"track":{"type":"object","additionalProperties":false,"required":["id","sequenceId","kind","enabled","locked","itemIds","materialInstanceIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"sequenceId":{"$ref":"#/$defs/entityId"},"kind":{"enum":["visual","audio","caption"]},"name":{"type":"string","maxLength":256},"enabled":{"type":"boolean"},"locked":{"type":"boolean"},"itemIds":{"$ref":"#/$defs/idList"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"audio":{"type":"object","additionalProperties":false,"required":["gainDb","pan","muted"],"properties":{"gainDb":{"$ref":"#/$defs/animatableNumber"},"pan":{"$ref":"#/$defs/animatableNumber"},"muted":{"type":"boolean"},"solo":{"type":"boolean","default":false}}},"extensions":{"$ref":"#/$defs/extensions"}}},"trackMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/track"}},"baseItem":{"type":"object","required":["id","trackId","type","enabled","range","materialInstanceIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"trackId":{"$ref":"#/$defs/entityId"},"type":{"enum":["video","audio","image","text","caption","shape","generator","nested-sequence","adjustment","material-content"]},"name":{"type":"string","maxLength":256},"enabled":{"type":"boolean"},"range":{"$ref":"#/$defs/range"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"linkGroupId":{"$ref":"#/$defs/entityId"},"markerIds":{"$ref":"#/$defs/idList"},"metadata":{"$ref":"#/$defs/jsonObject"},"extensions":{"$ref":"#/$defs/extensions"}}},"mediaSource":{"type":"object","additionalProperties":false,"required":["assetId","stream","sourceRange","timeMapping"],"properties":{"assetId":{"$ref":"#/$defs/entityId"},"stream":{"type":"object","additionalProperties":false,"required":["type","index"],"properties":{"type":{"enum":["video","audio"]},"index":{"type":"integer","minimum":0,"maximum":1024}}},"sourceRange":{"$ref":"#/$defs/range"},"timeMapping":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","rate","reverse","boundary"],"properties":{"type":{"const":"linear"},"rate":{"$ref":"#/$defs/rational"},"reverse":{"type":"boolean"},"boundary":{"enum":["error","hold","loop","transparent"]}}},{"type":"object","additionalProperties":false,"required":["type","points","boundary"],"properties":{"type":{"const":"curve"},"points":{"type":"array","minItems":2,"maxItems":4096,"items":{"type":"object","maxProperties":4096,"additionalProperties":true,"required":["itemTimeUs","sourceTimeUs","interpolation"],"properties":{"itemTimeUs":{"$ref":"#/$defs/timeUs"},"sourceTimeUs":{"$ref":"#/$defs/timeUs"},"interpolation":{"enum":["linear","hold","cubic"]}}}},"boundary":{"enum":["error","hold","loop","transparent"]}}}]}}},"visual":{"type":"object","additionalProperties":false,"required":["fit","transform","crop","opacity","blendMode"],"properties":{"fit":{"enum":["contain","cover","fill","none"]},"transform":{"type":"object","additionalProperties":false,"required":["positionPx","anchor","scale","rotationDeg","skewDeg"],"properties":{"positionPx":{"$ref":"#/$defs/animatableVec2"},"anchor":{"$ref":"#/$defs/animatableVec2"},"scale":{"$ref":"#/$defs/animatableVec2"},"rotationDeg":{"$ref":"#/$defs/animatableNumber"},"skewDeg":{"$ref":"#/$defs/animatableVec2"}}},"crop":{"oneOf":[{"type":"object","additionalProperties":false,"required":["left","top","right","bottom"],"properties":{"left":{"type":"number","minimum":0,"maximum":1},"top":{"type":"number","minimum":0,"maximum":1},"right":{"type":"number","minimum":0,"maximum":1},"bottom":{"type":"number","minimum":0,"maximum":1}}},{"$ref":"#/$defs/animation"}]},"opacity":{"$ref":"#/$defs/animatableNumber"},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion"]},"mask":{"type":"object","additionalProperties":false,"required":["sourceItemId","channel","invert","featherPx","space","consumeSource"],"properties":{"sourceItemId":{"$ref":"#/$defs/entityId"},"channel":{"enum":["alpha","luma"]},"invert":{"type":"boolean"},"featherPx":{"type":"number","minimum":0,"maximum":4096},"space":{"enum":["source","canvas"]},"consumeSource":{"type":"boolean"}}}}},"audioProperties":{"type":"object","additionalProperties":false,"required":["gainDb","pan"],"properties":{"gainDb":{"$ref":"#/$defs/animatableNumber"},"pan":{"$ref":"#/$defs/animatableNumber"},"fadeInUs":{"$ref":"#/$defs/timeUs"},"fadeOutUs":{"$ref":"#/$defs/timeUs"},"pitchPolicy":{"enum":["varispeed","preserve"],"description":"Varispeed follows source time directly; preserve uses deterministic overlap-add time stretching."},"channelMap":{"type":"array","maxItems":16384,"items":{"type":"array","maxItems":16384,"items":{"type":"number"}}}}},"videoItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"video"},"source":{"$ref":"#/$defs/mediaSource"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"audioItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","audio"],"properties":{"type":{"const":"audio"},"source":{"$ref":"#/$defs/mediaSource"},"audio":{"$ref":"#/$defs/audioProperties"}}}],"unevaluatedProperties":false},"imageItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"image"},"source":{"$ref":"#/$defs/mediaSource"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"textItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["box","overflow","writingMode","paragraphs","visual"],"properties":{"type":{"const":"text"},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"overflow":{"enum":["clip","ellipsis","visible","auto-fit"]},"writingMode":{"enum":["horizontal-tb","vertical-rl","vertical-lr"]},"paragraphs":{"type":"array","minItems":1,"maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["style","runs"],"properties":{"style":{"$ref":"#/$defs/jsonObject"},"runs":{"type":"array","minItems":1,"maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["text","style"],"properties":{"text":{"type":"string","maxLength":1000000},"style":{"$ref":"#/$defs/jsonObject"}}}}}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"captionItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["text","box","style","visual"],"properties":{"type":{"const":"caption"},"text":{"type":"string","maxLength":1000000},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"style":{"$ref":"#/$defs/jsonObject"},"overflow":{"enum":["clip","auto-fit"]},"cueSettings":{"$ref":"#/$defs/jsonObject"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"nestedSequenceItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"nested-sequence"},"source":{"type":"object","additionalProperties":false,"required":["sequenceId","sourceRange","timeMapping"],"properties":{"sequenceId":{"$ref":"#/$defs/entityId"},"sourceRange":{"$ref":"#/$defs/range"},"timeMapping":{"$ref":"#/$defs/mediaSource/properties/timeMapping"}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"generatorItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["generator","visual"],"properties":{"type":{"const":"generator"},"generator":{"type":"object","additionalProperties":false,"required":["kind","colors"],"properties":{"kind":{"enum":["solid","linear-gradient"]},"colors":{"type":"array","minItems":1,"maxItems":16,"items":{"$ref":"#/$defs/color"}},"angleDeg":{"type":"number"}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"adjustmentItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["visual"],"properties":{"type":{"const":"adjustment"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"shapeItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["shape","visual"],"properties":{"type":{"const":"shape"},"shape":{"type":"object","additionalProperties":false,"required":["kind","box","fill"],"properties":{"kind":{"enum":["rectangle","ellipse","polygon"]},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"fill":{"$ref":"#/$defs/color"},"stroke":{"$ref":"#/$defs/color"},"strokeWidthPx":{"type":"number","minimum":0,"maximum":4096},"cornerRadiusPx":{"type":"number","minimum":0,"maximum":32768},"points":{"type":"array","minItems":3,"maxItems":1024,"items":{"$ref":"#/$defs/vec2"}}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"materialContentItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["materialInstanceId","visual"],"properties":{"type":{"const":"material-content"},"materialInstanceId":{"$ref":"#/$defs/entityId"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"item":{"oneOf":[{"$ref":"#/$defs/videoItem"},{"$ref":"#/$defs/audioItem"},{"$ref":"#/$defs/imageItem"},{"$ref":"#/$defs/textItem"},{"$ref":"#/$defs/captionItem"},{"$ref":"#/$defs/nestedSequenceItem"},{"$ref":"#/$defs/generatorItem"},{"$ref":"#/$defs/adjustmentItem"},{"$ref":"#/$defs/materialContentItem"},{"$ref":"#/$defs/shapeItem"}]},"itemMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/item"}},"transition":{"type":"object","additionalProperties":false,"required":["id","sequenceId","trackId","kind","fromItemId","toItemId","range","materialInstanceId"],"properties":{"id":{"$ref":"#/$defs/entityId"},"sequenceId":{"$ref":"#/$defs/entityId"},"trackId":{"$ref":"#/$defs/entityId"},"kind":{"enum":["visual","audio"]},"fromItemId":{"$ref":"#/$defs/entityId"},"toItemId":{"$ref":"#/$defs/entityId"},"range":{"$ref":"#/$defs/range"},"materialInstanceId":{"$ref":"#/$defs/entityId"},"extensions":{"$ref":"#/$defs/extensions"}}},"transitionMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/transition"}},"marker":{"type":"object","additionalProperties":false,"required":["id","owner","timeUs","durationUs"],"properties":{"id":{"$ref":"#/$defs/entityId"},"owner":{"type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"enum":["sequence","item"]},"id":{"$ref":"#/$defs/entityId"}}},"timeUs":{"$ref":"#/$defs/timeUs"},"durationUs":{"$ref":"#/$defs/timeUs"},"label":{"type":"string","maxLength":1024},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$"},"payload":{"$ref":"#/$defs/jsonValue"}}},"markerMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/marker"}},"linkGroup":{"type":"object","additionalProperties":false,"required":["id","kind","itemIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"kind":{"enum":["av-sync","edit-group"]},"itemIds":{"$ref":"#/$defs/idList"},"syncOffsetsUs":{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/safeInteger"}}}},"linkGroupMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/linkGroup"}}}}`);
|
|
9
|
+
const projectSchema = JSON.parse(String.raw `{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://schemas.aelion.dev/project/v1.json","title":"Aelion Project Document v1","type":"object","additionalProperties":false,"required":["$schema","schemaVersion","projectId","metadata","settings","assets","sequences","tracks","items","materialInstances","transitions","markers","linkGroups","extensions"],"properties":{"$schema":{"const":"https://schemas.aelion.dev/project/v1.json"},"schemaVersion":{"const":"1.0.0"},"projectId":{"$ref":"#/$defs/entityId"},"metadata":{"$ref":"#/$defs/jsonObject"},"settings":{"$ref":"#/$defs/settings"},"assets":{"$ref":"#/$defs/assetMap"},"sequences":{"$ref":"#/$defs/sequenceMap"},"tracks":{"$ref":"#/$defs/trackMap"},"items":{"$ref":"#/$defs/itemMap"},"materialInstances":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"https://schemas.aelion.dev/material/instance/v1.json"}},"transitions":{"$ref":"#/$defs/transitionMap"},"markers":{"$ref":"#/$defs/markerMap"},"linkGroups":{"$ref":"#/$defs/linkGroupMap"},"extensions":{"$ref":"#/$defs/extensions"}},"$defs":{"entityId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z][A-Za-z0-9._:-]*$"},"safeInteger":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeUs":{"type":"integer","minimum":0,"maximum":9007199254740991},"positiveDurationUs":{"type":"integer","minimum":1,"maximum":9007199254740991},"jsonValue":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","maxItems":16384,"items":{"$ref":"#/$defs/jsonValue"}},{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/jsonValue"}}]},"jsonObject":{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/jsonValue"}},"extensions":{"type":"object","maxProperties":4096,"propertyNames":{"type":"string","pattern":"^[a-z0-9]+(?:\\.[a-z0-9-]+)+$"},"additionalProperties":{"$ref":"#/$defs/jsonValue"}},"rational":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"integer","minimum":1,"maximum":9007199254740991},"denominator":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"range":{"type":"object","additionalProperties":false,"required":["startUs","durationUs"],"properties":{"startUs":{"$ref":"#/$defs/timeUs"},"durationUs":{"$ref":"#/$defs/positiveDurationUs"}}},"color":{"type":"object","additionalProperties":false,"required":["space","rgba"],"properties":{"space":{"enum":["srgb-linear","display-p3-linear","rec2020-linear"]},"rgba":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}}}},"vec2":{"type":"object","additionalProperties":false,"required":["x","y"],"properties":{"x":{"type":"number"},"y":{"type":"number"}}},"animation":{"type":"object","additionalProperties":false,"required":["animation"],"properties":{"animation":{"type":"object","additionalProperties":false,"required":["timeSpace","preInfinity","postInfinity","keyframes"],"properties":{"timeSpace":{"enum":["item","sequence"]},"preInfinity":{"enum":["hold","linear","none","cycle","ping-pong"]},"postInfinity":{"enum":["hold","linear","none","cycle","ping-pong"]},"keyframes":{"type":"array","minItems":1,"maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["timeUs","value","interpolation"],"properties":{"timeUs":{"$ref":"#/$defs/timeUs"},"value":{"$ref":"#/$defs/jsonValue"},"interpolation":{"enum":["hold","linear","cubic-bezier"]},"easing":{"type":"object","required":["type"],"properties":{"type":{"enum":["linear","steps","cubic-bezier"]},"count":{"type":"integer","minimum":1},"position":{"enum":["start","end"]},"x1":{"type":"number"},"y1":{"type":"number"},"x2":{"type":"number"},"y2":{"type":"number"}},"additionalProperties":false}}}}}}}},"animatableNumber":{"oneOf":[{"type":"number"},{"$ref":"#/$defs/animation"}]},"animatableVec2":{"oneOf":[{"$ref":"#/$defs/vec2"},{"$ref":"#/$defs/animation"}]},"settings":{"type":"object","additionalProperties":false,"required":["defaultSequenceId","defaultStillDurationUs","missingAssetPolicy","missingMaterialPolicy","missingPluginPolicy"],"properties":{"defaultSequenceId":{"$ref":"#/$defs/entityId"},"defaultStillDurationUs":{"$ref":"#/$defs/positiveDurationUs"},"locale":{"type":"string","minLength":1,"maxLength":128},"timezone":{"type":"string","minLength":1,"maxLength":128},"missingAssetPolicy":{"enum":["placeholder","error"]},"missingMaterialPolicy":{"enum":["placeholder","error"]},"missingPluginPolicy":{"enum":["placeholder","error"]}}},"assetLocator":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","uri"],"properties":{"type":{"const":"url"},"uri":{"type":"string","minLength":1,"maxLength":8192}}},{"type":"object","additionalProperties":false,"required":["type","bindingId"],"properties":{"type":{"const":"runtime-binding"},"bindingId":{"$ref":"#/$defs/entityId"}}},{"type":"object","additionalProperties":false,"required":["type","path"],"properties":{"type":{"const":"opfs"},"path":{"type":"string","minLength":1,"maxLength":4096}}},{"type":"object","additionalProperties":false,"required":["type","mimeType","base64"],"properties":{"type":{"const":"data"},"mimeType":{"type":"string","minLength":1,"maxLength":256},"base64":{"type":"string","maxLength":349528}}}]},"asset":{"type":"object","additionalProperties":false,"required":["id","kind","locator"],"properties":{"id":{"$ref":"#/$defs/entityId"},"kind":{"enum":["video","audio","image","font","lut","binary","image-sequence"]},"name":{"type":"string","maxLength":256},"locator":{"$ref":"#/$defs/assetLocator"},"contentHash":{"type":"object","additionalProperties":false,"required":["algorithm","value"],"properties":{"algorithm":{"const":"sha256"},"value":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"mimeType":{"type":"string","minLength":1,"maxLength":256},"representations":{"type":"array","maxItems":32,"items":{"type":"object","maxProperties":4096,"additionalProperties":true,"required":["id","role","locator"],"properties":{"id":{"$ref":"#/$defs/entityId"},"role":{"enum":["original","proxy","thumbnail","waveform"]},"locator":{"$ref":"#/$defs/assetLocator"}}}},"probeHint":{"type":"object","additionalProperties":false,"properties":{"durationUs":{"$ref":"#/$defs/positiveDurationUs"},"width":{"type":"integer","minimum":1,"maximum":65535},"height":{"type":"integer","minimum":1,"maximum":65535},"videoCodec":{"type":"string","maxLength":256},"audioCodec":{"type":"string","maxLength":256}}},"metadata":{"$ref":"#/$defs/jsonObject"},"extensions":{"$ref":"#/$defs/extensions"},"imageSequence":{"type":"object","additionalProperties":false,"required":["frameDurationUs","frameAssetIds"],"properties":{"frameDurationUs":{"$ref":"#/$defs/positiveDurationUs"},"frameAssetIds":{"type":"array","minItems":1,"maxItems":4096,"items":{"$ref":"#/$defs/entityId"}}}}}},"assetMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/asset"}},"sequence":{"type":"object","additionalProperties":false,"required":["id","format","duration","trackIds","transitionIds","materialInstanceIds","markerIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"name":{"type":"string","maxLength":256},"format":{"type":"object","additionalProperties":false,"required":["width","height","pixelAspectRatio","frameRate","sampleRate","channelLayout","workingColorSpace","backgroundColor"],"properties":{"width":{"type":"integer","minimum":1,"maximum":65535},"height":{"type":"integer","minimum":1,"maximum":65535},"pixelAspectRatio":{"$ref":"#/$defs/rational"},"frameRate":{"$ref":"#/$defs/rational"},"sampleRate":{"enum":[44100,48000,96000]},"channelLayout":{"enum":["mono","stereo","5.1"]},"workingColorSpace":{"enum":["srgb-linear","display-p3-linear","rec2020-linear"]},"transferFunction":{"enum":["srgb","gamma22","pq","hlg"],"default":"srgb"},"colorPrimaries":{"enum":["bt709","display-p3","bt2020"],"default":"bt709"},"matrixCoefficients":{"enum":["rgb","bt709","bt2020-ncl"],"default":"rgb"},"colorRange":{"enum":["full","limited"],"default":"full"},"chromaSubsampling":{"enum":["rgb","4:4:4","4:2:2","4:2:0"],"default":"4:4:4"},"alphaMode":{"enum":["opaque","premultiplied"],"default":"premultiplied"},"toneMapping":{"enum":["none","bt2390","reinhard"],"default":"none"},"bitDepth":{"enum":[8,10],"default":8},"backgroundColor":{"$ref":"#/$defs/color"}}},"duration":{"oneOf":[{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"const":"content"}}},{"type":"object","additionalProperties":false,"required":["mode","durationUs","overflow"],"properties":{"mode":{"const":"fixed"},"durationUs":{"$ref":"#/$defs/timeUs"},"overflow":{"enum":["clip","allow"]}}}]},"trackIds":{"$ref":"#/$defs/idList"},"transitionIds":{"$ref":"#/$defs/idList"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"markerIds":{"$ref":"#/$defs/idList"},"extensions":{"$ref":"#/$defs/extensions"}}},"sequenceMap":{"type":"object","minProperties":1,"maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/sequence"}},"idList":{"type":"array","maxItems":16384,"items":{"$ref":"#/$defs/entityId"}},"track":{"type":"object","additionalProperties":false,"required":["id","sequenceId","kind","enabled","locked","itemIds","materialInstanceIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"sequenceId":{"$ref":"#/$defs/entityId"},"kind":{"enum":["visual","audio","caption"]},"name":{"type":"string","maxLength":256},"enabled":{"type":"boolean"},"locked":{"type":"boolean"},"itemIds":{"$ref":"#/$defs/idList"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"audio":{"type":"object","additionalProperties":false,"required":["gainDb","pan","muted"],"properties":{"gainDb":{"$ref":"#/$defs/animatableNumber"},"pan":{"$ref":"#/$defs/animatableNumber"},"muted":{"type":"boolean"},"solo":{"type":"boolean","default":false}}},"extensions":{"$ref":"#/$defs/extensions"}}},"trackMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/track"}},"baseItem":{"type":"object","required":["id","trackId","type","enabled","range","materialInstanceIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"trackId":{"$ref":"#/$defs/entityId"},"type":{"enum":["video","audio","image","text","caption","shape","generator","nested-sequence","adjustment","material-content"]},"name":{"type":"string","maxLength":256},"enabled":{"type":"boolean"},"range":{"$ref":"#/$defs/range"},"materialInstanceIds":{"$ref":"#/$defs/idList"},"linkGroupId":{"$ref":"#/$defs/entityId"},"markerIds":{"$ref":"#/$defs/idList"},"metadata":{"$ref":"#/$defs/jsonObject"},"extensions":{"$ref":"#/$defs/extensions"}}},"mediaSource":{"type":"object","additionalProperties":false,"required":["assetId","stream","sourceRange","timeMapping"],"properties":{"assetId":{"$ref":"#/$defs/entityId"},"stream":{"type":"object","additionalProperties":false,"required":["type","index"],"properties":{"type":{"enum":["video","audio"]},"index":{"type":"integer","minimum":0,"maximum":1024}}},"sourceRange":{"$ref":"#/$defs/range"},"timeMapping":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","rate","reverse","boundary"],"properties":{"type":{"const":"linear"},"rate":{"$ref":"#/$defs/rational"},"reverse":{"type":"boolean"},"boundary":{"enum":["error","hold","loop","transparent"]}}},{"type":"object","additionalProperties":false,"required":["type","points","boundary"],"properties":{"type":{"const":"curve"},"points":{"type":"array","minItems":2,"maxItems":4096,"items":{"type":"object","maxProperties":4096,"additionalProperties":true,"required":["itemTimeUs","sourceTimeUs","interpolation"],"properties":{"itemTimeUs":{"$ref":"#/$defs/timeUs"},"sourceTimeUs":{"$ref":"#/$defs/timeUs"},"interpolation":{"enum":["linear","hold","cubic"]}}}},"boundary":{"enum":["error","hold","loop","transparent"]}}}]}}},"visual":{"type":"object","additionalProperties":false,"required":["fit","transform","crop","opacity","blendMode"],"properties":{"fit":{"enum":["contain","cover","fill","none"]},"transform":{"type":"object","additionalProperties":false,"required":["positionPx","anchor","scale","rotationDeg","skewDeg"],"properties":{"positionPx":{"$ref":"#/$defs/animatableVec2"},"anchor":{"$ref":"#/$defs/animatableVec2"},"scale":{"$ref":"#/$defs/animatableVec2"},"rotationDeg":{"$ref":"#/$defs/animatableNumber"},"skewDeg":{"$ref":"#/$defs/animatableVec2"}}},"crop":{"oneOf":[{"type":"object","additionalProperties":false,"required":["left","top","right","bottom"],"properties":{"left":{"type":"number","minimum":0,"maximum":1},"top":{"type":"number","minimum":0,"maximum":1},"right":{"type":"number","minimum":0,"maximum":1},"bottom":{"type":"number","minimum":0,"maximum":1}}},{"$ref":"#/$defs/animation"}]},"opacity":{"$ref":"#/$defs/animatableNumber"},"blendMode":{"enum":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion"]},"mask":{"type":"object","additionalProperties":false,"required":["sourceItemId","channel","invert","featherPx","space","consumeSource"],"properties":{"sourceItemId":{"$ref":"#/$defs/entityId"},"channel":{"enum":["alpha","luma"]},"invert":{"type":"boolean"},"featherPx":{"type":"number","minimum":0,"maximum":4096},"space":{"enum":["source","canvas"]},"consumeSource":{"type":"boolean"}}}}},"audioProperties":{"type":"object","additionalProperties":false,"required":["gainDb","pan"],"properties":{"gainDb":{"$ref":"#/$defs/animatableNumber"},"pan":{"$ref":"#/$defs/animatableNumber"},"fadeInUs":{"$ref":"#/$defs/timeUs"},"fadeOutUs":{"$ref":"#/$defs/timeUs"},"pitchPolicy":{"enum":["varispeed","preserve"],"description":"Varispeed follows source time directly; preserve uses deterministic overlap-add time stretching."},"channelMap":{"type":"array","maxItems":16384,"items":{"type":"array","maxItems":16384,"items":{"type":"number"}}}}},"videoItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"video"},"source":{"$ref":"#/$defs/mediaSource"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"audioItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","audio"],"properties":{"type":{"const":"audio"},"source":{"$ref":"#/$defs/mediaSource"},"audio":{"$ref":"#/$defs/audioProperties"}}}],"unevaluatedProperties":false},"imageItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"image"},"source":{"$ref":"#/$defs/mediaSource"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"textItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["box","overflow","writingMode","paragraphs","visual"],"properties":{"type":{"const":"text"},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"overflow":{"enum":["clip","ellipsis","visible","auto-fit"]},"writingMode":{"enum":["horizontal-tb","vertical-rl","vertical-lr"]},"paragraphs":{"type":"array","minItems":1,"maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["style","runs"],"properties":{"style":{"$ref":"#/$defs/jsonObject"},"runs":{"type":"array","minItems":1,"maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["text","style"],"properties":{"text":{"type":"string","maxLength":1000000},"style":{"$ref":"#/$defs/jsonObject"}}}}}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"captionItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["text","box","style","visual"],"properties":{"type":{"const":"caption"},"text":{"type":"string","maxLength":1000000},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"style":{"$ref":"#/$defs/jsonObject"},"overflow":{"enum":["clip","auto-fit"]},"cueSettings":{"$ref":"#/$defs/jsonObject"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"nestedSequenceItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["source","visual"],"properties":{"type":{"const":"nested-sequence"},"source":{"type":"object","additionalProperties":false,"required":["sequenceId","sourceRange","timeMapping"],"properties":{"sequenceId":{"$ref":"#/$defs/entityId"},"sourceRange":{"$ref":"#/$defs/range"},"timeMapping":{"$ref":"#/$defs/mediaSource/properties/timeMapping"}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"generatorItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["generator","visual"],"properties":{"type":{"const":"generator"},"generator":{"type":"object","additionalProperties":false,"required":["kind","colors"],"properties":{"kind":{"enum":["solid","linear-gradient"]},"colors":{"type":"array","minItems":1,"maxItems":16,"items":{"$ref":"#/$defs/color"}},"angleDeg":{"type":"number"}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"adjustmentItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["visual"],"properties":{"type":{"const":"adjustment"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"shapeItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["shape","visual"],"properties":{"type":{"const":"shape"},"shape":{"type":"object","additionalProperties":false,"required":["kind","box","fill"],"properties":{"kind":{"enum":["rectangle","ellipse","polygon"]},"box":{"type":"object","additionalProperties":false,"required":["x","y","width","height"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number","exclusiveMinimum":0},"height":{"type":"number","exclusiveMinimum":0}}},"fill":{"$ref":"#/$defs/color"},"stroke":{"$ref":"#/$defs/color"},"strokeWidthPx":{"type":"number","minimum":0,"maximum":4096},"cornerRadiusPx":{"type":"number","minimum":0,"maximum":32768},"points":{"type":"array","minItems":3,"maxItems":1024,"items":{"$ref":"#/$defs/vec2"}}}},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"materialContentItem":{"type":"object","allOf":[{"$ref":"#/$defs/baseItem"},{"type":"object","required":["materialInstanceId","visual"],"properties":{"type":{"const":"material-content"},"materialInstanceId":{"$ref":"#/$defs/entityId"},"visual":{"$ref":"#/$defs/visual"}}}],"unevaluatedProperties":false},"item":{"oneOf":[{"$ref":"#/$defs/videoItem"},{"$ref":"#/$defs/audioItem"},{"$ref":"#/$defs/imageItem"},{"$ref":"#/$defs/textItem"},{"$ref":"#/$defs/captionItem"},{"$ref":"#/$defs/nestedSequenceItem"},{"$ref":"#/$defs/generatorItem"},{"$ref":"#/$defs/adjustmentItem"},{"$ref":"#/$defs/materialContentItem"},{"$ref":"#/$defs/shapeItem"}]},"itemMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/item"}},"transition":{"type":"object","additionalProperties":false,"required":["id","sequenceId","trackId","kind","fromItemId","toItemId","range","materialInstanceId"],"properties":{"id":{"$ref":"#/$defs/entityId"},"sequenceId":{"$ref":"#/$defs/entityId"},"trackId":{"$ref":"#/$defs/entityId"},"kind":{"enum":["visual","audio"]},"fromItemId":{"$ref":"#/$defs/entityId"},"toItemId":{"$ref":"#/$defs/entityId"},"range":{"$ref":"#/$defs/range"},"materialInstanceId":{"$ref":"#/$defs/entityId"},"extensions":{"$ref":"#/$defs/extensions"}}},"transitionMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/transition"}},"marker":{"type":"object","additionalProperties":false,"required":["id","owner","timeUs","durationUs"],"properties":{"id":{"$ref":"#/$defs/entityId"},"owner":{"type":"object","additionalProperties":false,"required":["type","id"],"properties":{"type":{"enum":["sequence","item"]},"id":{"$ref":"#/$defs/entityId"}}},"timeUs":{"$ref":"#/$defs/timeUs"},"durationUs":{"$ref":"#/$defs/timeUs"},"label":{"type":"string","maxLength":1024},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$"},"payload":{"$ref":"#/$defs/jsonValue"}}},"markerMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/marker"}},"linkGroup":{"type":"object","additionalProperties":false,"required":["id","kind","itemIds"],"properties":{"id":{"$ref":"#/$defs/entityId"},"kind":{"enum":["av-sync","edit-group"]},"itemIds":{"$ref":"#/$defs/idList"},"syncOffsetsUs":{"type":"object","maxProperties":4096,"additionalProperties":{"$ref":"#/$defs/safeInteger"}}}},"linkGroupMap":{"type":"object","maxProperties":4096,"propertyNames":{"$ref":"#/$defs/entityId"},"additionalProperties":{"$ref":"#/$defs/linkGroup"}}}}`);
|
|
10
10
|
const materialInstanceSchema = JSON.parse(String.raw `{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://schemas.aelion.dev/material/instance/v1.json","title":"Aelion Project Material Instance v1","type":"object","additionalProperties":false,"required":["id","definition","enabled","parameters"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128},"definition":{"type":"object","additionalProperties":false,"required":["packageId","packageVersion","packageIntegrity","materialId"],"properties":{"packageId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:[._-][a-z0-9]+)*$"},"packageVersion":{"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"},"packageIntegrity":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"materialId":{"type":"string","minLength":1,"maxLength":96,"pattern":"^[A-Za-z][A-Za-z0-9_-]*$"}}},"name":{"type":"string","maxLength":256},"enabled":{"type":"boolean"},"previewPolicy":{"enum":["required","skippable-when-degraded"]},"parameters":{"type":"object","maxProperties":64,"additionalProperties":true},"resourceBindings":{"type":"object","maxProperties":16,"additionalProperties":true},"inputBindings":{"type":"object","maxProperties":16,"additionalProperties":true},"randomSeed":{"type":"integer","minimum":0,"maximum":4294967295},"extensions":{"type":"object","additionalProperties":true}}}`);
|
|
11
11
|
/**
|
|
12
12
|
* The canonical v1 validators bundled into the JavaScript artifact. Consumers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsonObject, type JsonValue, type Rational } from '@aelionsdk/core';
|
|
2
|
-
import { type AelionProject } from '@aelionsdk/project-schema';
|
|
2
|
+
import { type AelionProject, type ImageSequenceReference } from '@aelionsdk/project-schema';
|
|
3
3
|
import type { ProductionMediaProvider, ProductionMediaProbe } from './production-media-provider.js';
|
|
4
4
|
export interface CreateProjectOptions {
|
|
5
5
|
readonly projectId?: string;
|
|
@@ -33,7 +33,7 @@ export interface AddTrackOptions {
|
|
|
33
33
|
}
|
|
34
34
|
export interface AddAssetOptions {
|
|
35
35
|
readonly id: string;
|
|
36
|
-
readonly kind: 'video' | 'audio' | 'image' | 'font' | 'lut' | 'binary';
|
|
36
|
+
readonly kind: 'video' | 'audio' | 'image' | 'font' | 'lut' | 'binary' | 'image-sequence';
|
|
37
37
|
readonly locator?: JsonObject;
|
|
38
38
|
readonly name?: string;
|
|
39
39
|
readonly mimeType?: string;
|
|
@@ -42,6 +42,8 @@ export interface AddAssetOptions {
|
|
|
42
42
|
readonly probeHint?: JsonObject;
|
|
43
43
|
readonly representations?: readonly JsonObject[];
|
|
44
44
|
readonly metadata?: JsonObject;
|
|
45
|
+
/** Required for `kind: 'image-sequence'`; ignored for other kinds. */
|
|
46
|
+
readonly imageSequence?: ImageSequenceReference;
|
|
45
47
|
}
|
|
46
48
|
export interface AddMediaClipOptions {
|
|
47
49
|
readonly id?: string;
|
|
@@ -74,6 +76,24 @@ export interface AddImageClipOptions {
|
|
|
74
76
|
readonly fit?: 'contain' | 'cover' | 'fill' | 'none';
|
|
75
77
|
readonly opacity?: number;
|
|
76
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Options for adding an image-sequence Clip. Registers an `image-sequence`
|
|
81
|
+
* Asset whose frame manifest references the given `image` Assets, then adds an
|
|
82
|
+
* image Item that samples the sequence deterministically through the frame
|
|
83
|
+
* mapping (see `imageSequenceFrameIndex`).
|
|
84
|
+
*/
|
|
85
|
+
export interface AddImageSequenceClipOptions {
|
|
86
|
+
readonly id?: string;
|
|
87
|
+
/** Ordered `image` Assets, one per frame. */
|
|
88
|
+
readonly frameAssetIds: readonly string[];
|
|
89
|
+
readonly frameDurationUs: number;
|
|
90
|
+
readonly trackId: string;
|
|
91
|
+
readonly atUs?: number;
|
|
92
|
+
readonly durationUs?: number;
|
|
93
|
+
readonly name?: string;
|
|
94
|
+
readonly fit?: 'contain' | 'cover' | 'fill' | 'none';
|
|
95
|
+
readonly opacity?: number;
|
|
96
|
+
}
|
|
77
97
|
export interface ClipBox {
|
|
78
98
|
readonly x: number;
|
|
79
99
|
readonly y: number;
|
|
@@ -241,6 +261,12 @@ export declare class ProjectBuilder {
|
|
|
241
261
|
setItemMetadata(itemId: string, metadata: JsonObject): this;
|
|
242
262
|
/** Add a first-class still image Clip backed by an image Asset. */
|
|
243
263
|
addImageClip(options: AddImageClipOptions): string;
|
|
264
|
+
/**
|
|
265
|
+
* Add an image-sequence Clip: registers an `image-sequence` Asset whose frame
|
|
266
|
+
* manifest references existing `image` Assets, then adds an image Clip that
|
|
267
|
+
* samples the sequence deterministically through the frame mapping.
|
|
268
|
+
*/
|
|
269
|
+
addImageSequenceClip(options: AddImageSequenceClipOptions): string;
|
|
244
270
|
addTextClip(options: AddTextClipOptions): string;
|
|
245
271
|
addCaptionClip(options: AddCaptionClipOptions): string;
|
|
246
272
|
addShapeClip(options: AddShapeClipOptions): string;
|
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mBAAmB,GAAG,MAAM;IAuCzD;;;;OAIG;IACI,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,GAAG,MAAM;IAwDlE,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM;IAwEhD,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM;IAmDtD,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM;IA6ClD,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM;IAiDhE,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,IAAI;IAY9D,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM;IA8BpD,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAyBtD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI;IA2C1D,YAAY,CACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,sBAAsB,EAChC,SAAS,EAAE,SAAS,QAAQ,EAAE,GAC7B,IAAI;IAmDM,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAoHtE,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM;IA6B5C,KAAK,IAAI,QAAQ,CAAC,aAAa,CAAC;CAoHxC;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,cAAc,CAEhF"}
|
package/dist/project-builder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AelionError, frameStartUs, normalizeRational, } from '@aelionsdk/core';
|
|
2
|
-
import { ProjectValidator, canonicalClone, } from '@aelionsdk/project-schema';
|
|
2
|
+
import { ProjectValidator, canonicalClone, imageSequenceDurationUs, } from '@aelionsdk/project-schema';
|
|
3
3
|
import { defaultSchemas } from './default-schemas.js';
|
|
4
4
|
const ENTITY_ID = /^[A-Za-z][A-Za-z0-9._:-]*$/u;
|
|
5
5
|
function assertEntityId(value, name) {
|
|
@@ -163,6 +163,9 @@ export class ProjectBuilder {
|
|
|
163
163
|
}
|
|
164
164
|
if (options.byteLength !== undefined)
|
|
165
165
|
assertTime(options.byteLength, 'byteLength');
|
|
166
|
+
if (options.kind === 'image-sequence' && options.imageSequence === undefined) {
|
|
167
|
+
throw new TypeError('image-sequence assets require an imageSequence frame manifest');
|
|
168
|
+
}
|
|
166
169
|
this.#project.assets[options.id] = {
|
|
167
170
|
id: options.id,
|
|
168
171
|
kind: options.kind,
|
|
@@ -178,6 +181,14 @@ export class ProjectBuilder {
|
|
|
178
181
|
? {}
|
|
179
182
|
: { representations: [...options.representations] }),
|
|
180
183
|
...(options.metadata === undefined ? {} : { metadata: options.metadata }),
|
|
184
|
+
...(options.imageSequence === undefined
|
|
185
|
+
? {}
|
|
186
|
+
: {
|
|
187
|
+
imageSequence: {
|
|
188
|
+
...options.imageSequence,
|
|
189
|
+
frameAssetIds: [...options.imageSequence.frameAssetIds],
|
|
190
|
+
},
|
|
191
|
+
}),
|
|
181
192
|
};
|
|
182
193
|
return options.id;
|
|
183
194
|
}
|
|
@@ -332,6 +343,67 @@ export class ProjectBuilder {
|
|
|
332
343
|
track.itemIds.push(id);
|
|
333
344
|
return id;
|
|
334
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Add an image-sequence Clip: registers an `image-sequence` Asset whose frame
|
|
348
|
+
* manifest references existing `image` Assets, then adds an image Clip that
|
|
349
|
+
* samples the sequence deterministically through the frame mapping.
|
|
350
|
+
*/
|
|
351
|
+
addImageSequenceClip(options) {
|
|
352
|
+
const track = this.#project.tracks[options.trackId];
|
|
353
|
+
if (track === undefined)
|
|
354
|
+
throw new ReferenceError(`Unknown Track: ${options.trackId}`);
|
|
355
|
+
if (track.kind !== 'visual')
|
|
356
|
+
throw new TypeError('image-sequence clips require a visual Track');
|
|
357
|
+
if (options.frameAssetIds.length === 0) {
|
|
358
|
+
throw new RangeError('frameAssetIds must contain at least one frame');
|
|
359
|
+
}
|
|
360
|
+
assertTime(options.frameDurationUs, 'frameDurationUs', true);
|
|
361
|
+
for (const frameAssetId of options.frameAssetIds) {
|
|
362
|
+
const frameAsset = this.#project.assets[frameAssetId];
|
|
363
|
+
if (frameAsset === undefined)
|
|
364
|
+
throw new ReferenceError(`Unknown frame Asset: ${frameAssetId}`);
|
|
365
|
+
if (frameAsset.kind !== 'image') {
|
|
366
|
+
throw new TypeError(`frame Asset ${frameAssetId} must be an image Asset`);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
const assetId = options.id ?? this.#nextId('asset_image_sequence');
|
|
370
|
+
this.#assertUnused(assetId);
|
|
371
|
+
const sequence = {
|
|
372
|
+
frameDurationUs: options.frameDurationUs,
|
|
373
|
+
frameAssetIds: [...options.frameAssetIds],
|
|
374
|
+
};
|
|
375
|
+
this.addAsset({ id: assetId, kind: 'image-sequence', imageSequence: sequence });
|
|
376
|
+
const itemId = this.#nextId('item_image_sequence');
|
|
377
|
+
this.#assertUnused(itemId);
|
|
378
|
+
const atUs = options.atUs ?? 0;
|
|
379
|
+
const durationUs = options.durationUs ?? imageSequenceDurationUs(sequence);
|
|
380
|
+
assertTime(atUs, 'atUs');
|
|
381
|
+
assertTime(durationUs, 'durationUs', true);
|
|
382
|
+
const item = {
|
|
383
|
+
id: itemId,
|
|
384
|
+
trackId: track.id,
|
|
385
|
+
type: 'image',
|
|
386
|
+
...(options.name === undefined ? {} : { name: options.name }),
|
|
387
|
+
enabled: true,
|
|
388
|
+
range: { startUs: atUs, durationUs },
|
|
389
|
+
source: {
|
|
390
|
+
assetId,
|
|
391
|
+
stream: { type: 'video', index: 0 },
|
|
392
|
+
sourceRange: { startUs: 0, durationUs },
|
|
393
|
+
timeMapping: {
|
|
394
|
+
type: 'linear',
|
|
395
|
+
rate: { numerator: 1, denominator: 1 },
|
|
396
|
+
reverse: false,
|
|
397
|
+
boundary: 'hold',
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
visual: this.#visual(options.fit ?? 'contain', options.opacity ?? 1),
|
|
401
|
+
materialInstanceIds: [],
|
|
402
|
+
};
|
|
403
|
+
this.#project.items[itemId] = item;
|
|
404
|
+
track.itemIds.push(itemId);
|
|
405
|
+
return itemId;
|
|
406
|
+
}
|
|
335
407
|
addTextClip(options) {
|
|
336
408
|
const track = this.#project.tracks[options.trackId];
|
|
337
409
|
if (track === undefined)
|
|
@@ -735,7 +807,15 @@ export class ProjectBuilder {
|
|
|
735
807
|
kind: importVideo ? 'video' : 'audio',
|
|
736
808
|
...(options.name === undefined ? {} : { name: options.name }),
|
|
737
809
|
mimeType: options.mimeType ??
|
|
738
|
-
`${importVideo ? 'video' : 'audio'}/${probe.index.container === 'mp4'
|
|
810
|
+
`${importVideo ? 'video' : 'audio'}/${probe.index.container === 'mp4'
|
|
811
|
+
? 'mp4'
|
|
812
|
+
: probe.index.container === 'mov'
|
|
813
|
+
? 'quicktime'
|
|
814
|
+
: probe.index.container === 'mkv'
|
|
815
|
+
? 'x-matroska'
|
|
816
|
+
: probe.index.container === 'ts'
|
|
817
|
+
? 'mp2t'
|
|
818
|
+
: 'webm'}`,
|
|
739
819
|
probeHint: {
|
|
740
820
|
durationUs: probe.index.durationUs,
|
|
741
821
|
...(video === undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aelionsdk/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0-rc.1",
|
|
4
4
|
"description": "Browser-first real-time editing, preview and export SDK facade",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=24 <25"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"provenance": true
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@aelionsdk/audio": "1.
|
|
51
|
-
"@aelionsdk/capability": "1.
|
|
52
|
-
"@aelionsdk/core": "1.
|
|
53
|
-
"@aelionsdk/export": "1.
|
|
54
|
-
"@aelionsdk/material-compiler": "1.
|
|
55
|
-
"@aelionsdk/media": "1.
|
|
56
|
-
"@aelionsdk/project-schema": "1.
|
|
57
|
-
"@aelionsdk/render-ir": "1.
|
|
58
|
-
"@aelionsdk/renderer-worker": "1.
|
|
59
|
-
"@aelionsdk/transaction": "1.
|
|
50
|
+
"@aelionsdk/audio": "1.1.0-rc.1",
|
|
51
|
+
"@aelionsdk/capability": "1.1.0-rc.1",
|
|
52
|
+
"@aelionsdk/core": "1.1.0-rc.1",
|
|
53
|
+
"@aelionsdk/export": "1.1.0-rc.1",
|
|
54
|
+
"@aelionsdk/material-compiler": "1.1.0-rc.1",
|
|
55
|
+
"@aelionsdk/media": "1.1.0-rc.1",
|
|
56
|
+
"@aelionsdk/project-schema": "1.1.0-rc.1",
|
|
57
|
+
"@aelionsdk/render-ir": "1.1.0-rc.1",
|
|
58
|
+
"@aelionsdk/renderer-worker": "1.1.0-rc.1",
|
|
59
|
+
"@aelionsdk/transaction": "1.1.0-rc.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsc -b",
|