@slidevideo/cli 0.1.2 → 0.2.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/CHANGELOG.md +41 -0
- package/IMPRESSUM.md +18 -4
- package/LICENSE-TERMS.md +46 -13
- package/README.md +5 -5
- package/addons/slidevideo/geometry.ts +63 -30
- package/addons/slidevideo/global-top.vue +41 -9
- package/addons/slidevideo/playback-entries.ts +17 -6
- package/addons/slidevideo/preview.ts +27 -15
- package/dist/adapters/browser-runtime.d.ts +3 -0
- package/dist/adapters/elevenlabs.d.ts +1 -0
- package/dist/adapters/elevenlabs.js +8 -4
- package/dist/adapters/powerpoint.d.ts +7 -4
- package/dist/adapters/powerpoint.js +123 -34
- package/dist/adapters/slidev-inspection.d.ts +5 -2
- package/dist/adapters/slidev-inspection.js +5 -6
- package/dist/adapters/slidev-server.js +136 -15
- package/dist/adapters/slidev.d.ts +12 -4
- package/dist/adapters/slidev.js +356 -70
- package/dist/annotation-paint.d.ts +65 -11
- package/dist/annotation-paint.js +290 -10
- package/dist/annotations.d.ts +13 -8
- package/dist/annotations.js +620 -89
- package/dist/assembly.d.ts +48 -40
- package/dist/assembly.js +72 -28
- package/dist/calibration.js +5 -4
- package/dist/cli.js +180 -39
- package/dist/compositor.d.ts +38 -6
- package/dist/compositor.js +299 -46
- package/dist/contracts.d.ts +96 -35
- package/dist/contracts.js +2 -1
- package/dist/executables.d.ts +2 -0
- package/dist/executables.js +27 -8
- package/dist/media.d.ts +12 -1
- package/dist/media.js +53 -4
- package/dist/pipeline.d.ts +36 -10
- package/dist/pipeline.js +163 -46
- package/dist/preview/contracts.d.ts +3 -3
- package/dist/preview/player.js +20 -15
- package/dist/preview/server.d.ts +2 -1
- package/dist/preview/server.js +8 -7
- package/dist/run.d.ts +1 -1
- package/dist/run.js +8 -3
- package/dist/setup-install.d.ts +1 -0
- package/dist/setup-install.js +8 -1
- package/dist/setup.d.ts +29 -8
- package/dist/setup.js +183 -76
- package/dist/skill-install.d.ts +35 -0
- package/dist/skill-install.js +132 -0
- package/dist/speech.js +10 -6
- package/dist/storyboard.js +12 -6
- package/dist/timing.js +2 -2
- package/package.json +4 -3
- package/schemas/annotation-geometry.v1.json +260 -28
- package/schemas/run-manifest.v1.json +31 -0
- package/schemas/schedule.v1.json +655 -1
- package/schemas/storyboard.v1.json +558 -33
- package/skills/slidevideo/SKILL.md +11 -9
- package/skills/slidevideo/references/decks.md +228 -0
- package/skills/slidevideo/references/production.md +17 -12
- package/skills/slidevideo/references/storyboard.md +71 -38
- package/tools/powerpoint/powerpoint.ps1 +52 -41
- package/tools/powerpoint/preview.ps1 +5 -5
- package/schemas/schedule.v2.json +0 -496
- package/schemas/storyboard.v2.json +0 -802
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { access, lstat, mkdir, readlink, realpath, stat, symlink, unlink } from 'node:fs/promises';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { delimiter, dirname, isAbsolute, join, resolve } from 'node:path';
|
|
4
|
+
import { ProductionError, requireCondition } from './errors.js';
|
|
5
|
+
import { findOnPath, isExecutable } from './executables.js';
|
|
6
|
+
import { packagePath } from './installation.js';
|
|
7
|
+
const windows = process.platform === 'win32';
|
|
8
|
+
const macosExtraDirectories = process.platform === 'darwin' ? ['/opt/homebrew/bin', '/usr/local/bin'] : [];
|
|
9
|
+
async function inspectDirectoryStep(path) {
|
|
10
|
+
let entry;
|
|
11
|
+
try {
|
|
12
|
+
entry = await lstat(path);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
const code = error.code;
|
|
16
|
+
if (code === 'ENOENT')
|
|
17
|
+
return 'missing';
|
|
18
|
+
if (code === 'ENOTDIR' || code === 'ELOOP' || code === 'EACCES' || code === 'EPERM')
|
|
19
|
+
return 'conflict';
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
if (entry.isDirectory())
|
|
23
|
+
return 'directory';
|
|
24
|
+
if (!entry.isSymbolicLink())
|
|
25
|
+
return 'conflict';
|
|
26
|
+
try {
|
|
27
|
+
return (await stat(path)).isDirectory() ? 'directory' : 'conflict';
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return 'conflict';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function claudeOnPath() {
|
|
34
|
+
if (!windows)
|
|
35
|
+
return Boolean(findOnPath('claude', macosExtraDirectories));
|
|
36
|
+
const directories = (process.env.PATH ?? '').split(delimiter).filter(isAbsolute);
|
|
37
|
+
const configured = (process.env.PATHEXT ?? '').split(';').map(ext => ext.trim()).filter(ext => ext.startsWith('.') && ext.length > 1 && !/[\\/]/.test(ext));
|
|
38
|
+
const extensions = [...new Set([...configured, '.COM', '.EXE', '.BAT', '.CMD'].flatMap(ext => [ext, ext.toLowerCase()]))];
|
|
39
|
+
return directories.some(directory => extensions.some(ext => isExecutable(join(directory, `claude${ext}`))));
|
|
40
|
+
}
|
|
41
|
+
async function inspectTarget(agent, scope, root, agentDirectory, source) {
|
|
42
|
+
const baseDirectory = join(root, agentDirectory);
|
|
43
|
+
const skillsDirectory = join(baseDirectory, 'skills');
|
|
44
|
+
const path = join(skillsDirectory, 'slidevideo');
|
|
45
|
+
for (const parent of [baseDirectory, skillsDirectory]) {
|
|
46
|
+
const step = await inspectDirectoryStep(parent);
|
|
47
|
+
if (step === 'missing')
|
|
48
|
+
return { agent, scope, path, status: 'missing' };
|
|
49
|
+
if (step === 'conflict')
|
|
50
|
+
return { agent, scope, path, status: 'conflict', conflict_path: parent };
|
|
51
|
+
}
|
|
52
|
+
let entry;
|
|
53
|
+
try {
|
|
54
|
+
entry = await lstat(path);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
const code = error.code;
|
|
58
|
+
if (code === 'ENOENT')
|
|
59
|
+
return { agent, scope, path, status: 'missing' };
|
|
60
|
+
if (code === 'ENOTDIR' || code === 'ELOOP' || code === 'EACCES' || code === 'EPERM') {
|
|
61
|
+
return { agent, scope, path, status: 'conflict', conflict_path: path };
|
|
62
|
+
}
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
if (!entry.isSymbolicLink())
|
|
66
|
+
return { agent, scope, path, status: 'conflict', conflict_path: path };
|
|
67
|
+
try {
|
|
68
|
+
const resolved = await realpath(path);
|
|
69
|
+
const matches = windows ? resolved.toLowerCase() === source.toLowerCase() : resolved === source;
|
|
70
|
+
return { agent, scope, path, status: matches ? 'installed' : 'outdated', target: resolved };
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
const raw = await readlink(path).catch(() => undefined);
|
|
74
|
+
return { agent, scope, path, status: 'broken', ...(raw ? { target: raw } : {}) };
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export async function inspectSkillStatus(scope = 'user') {
|
|
78
|
+
const directory = packagePath('skills', 'slidevideo');
|
|
79
|
+
let source;
|
|
80
|
+
try {
|
|
81
|
+
source = await realpath(directory);
|
|
82
|
+
await access(join(source, 'SKILL.md'));
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
throw new ProductionError('MISSING_SKILL', `Bundled skill is unavailable at ${directory}`, 3);
|
|
86
|
+
}
|
|
87
|
+
const root = scope === 'user' ? homedir() : resolve('.');
|
|
88
|
+
const specs = [{ agent: 'agents', directory: '.agents' }];
|
|
89
|
+
const claudeStep = await inspectDirectoryStep(join(root, '.claude'));
|
|
90
|
+
if (claudeStep === 'directory' || (scope === 'user' && claudeOnPath())) {
|
|
91
|
+
specs.push({ agent: 'claude', directory: '.claude' });
|
|
92
|
+
}
|
|
93
|
+
const targets = await Promise.all(specs.map(spec => inspectTarget(spec.agent, scope, root, spec.directory, source)));
|
|
94
|
+
return {
|
|
95
|
+
status: targets.length > 0 && targets.every(target => target.status === 'installed') ? 'installed' : 'not_installed',
|
|
96
|
+
source,
|
|
97
|
+
targets,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export async function installSkill(scope = 'user') {
|
|
101
|
+
const readiness = await inspectSkillStatus(scope);
|
|
102
|
+
const conflict = readiness.targets.find(target => target.status === 'conflict');
|
|
103
|
+
requireCondition(!conflict, 'SKILL_CONFLICT', `Cannot link skill at ${conflict?.path} because ${conflict?.conflict_path ?? conflict?.path} already exists and is not a skill link. Remove or move it and rerun slidevideo skill --install.`, 3);
|
|
104
|
+
const linkType = windows ? 'junction' : 'dir';
|
|
105
|
+
const targets = [];
|
|
106
|
+
for (const item of readiness.targets) {
|
|
107
|
+
if (item.status === 'installed') {
|
|
108
|
+
targets.push({ agent: item.agent, scope: item.scope, path: item.path, action: 'unchanged', target: readiness.source });
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
await mkdir(dirname(item.path), { recursive: true });
|
|
112
|
+
if (item.status === 'broken' || item.status === 'outdated')
|
|
113
|
+
await unlink(item.path);
|
|
114
|
+
await symlink(readiness.source, item.path, linkType);
|
|
115
|
+
targets.push({
|
|
116
|
+
agent: item.agent,
|
|
117
|
+
scope: item.scope,
|
|
118
|
+
path: item.path,
|
|
119
|
+
action: item.status === 'missing' ? 'installed' : 'updated',
|
|
120
|
+
target: readiness.source,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
version: 1,
|
|
125
|
+
command: 'skill',
|
|
126
|
+
action: 'install',
|
|
127
|
+
status: 'completed',
|
|
128
|
+
scope,
|
|
129
|
+
source: readiness.source,
|
|
130
|
+
targets,
|
|
131
|
+
};
|
|
132
|
+
}
|
package/dist/speech.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdir, copyFile, readFile } from 'node:fs/promises';
|
|
2
2
|
import { join, resolve, dirname } from 'node:path';
|
|
3
3
|
import { Ajv } from 'ajv';
|
|
4
|
-
import { digest, json, saveJson, probe, hashFile, decode,
|
|
4
|
+
import { digest, json, saveJson, probe, hashFile, decode, executionSignal, audioDuration } from './media.js';
|
|
5
5
|
import { requireCondition, ProductionError } from './errors.js';
|
|
6
6
|
const speechSchema = JSON.parse(await readFile(new URL('../schemas/speech.v1.json', import.meta.url), 'utf8'));
|
|
7
7
|
const validateSpeech = new Ajv({ allErrors: true }).compile(speechSchema);
|
|
@@ -14,6 +14,12 @@ export function speechKey(segment, voice, adapter) {
|
|
|
14
14
|
const options = Object.fromEntries(Object.entries(voice.options ?? {}).sort(([a], [b]) => a.localeCompare(b)));
|
|
15
15
|
return digest(JSON.stringify({ text: segment.text, provider: voice.provider, voice: voice.voice, options, adapter: adapter.id, version: adapter.version }));
|
|
16
16
|
}
|
|
17
|
+
function matchesSpeechCache(asset, segment, voice, adapter) {
|
|
18
|
+
const key = speechKey(segment, voice, adapter);
|
|
19
|
+
const provenance = asset.provenance;
|
|
20
|
+
const provenanceKey = speechKey({ ...segment, text: asset.transcript.original }, { provider: provenance.provider, voice: provenance.voice, options: provenance.options }, { id: provenance.adapter, version: provenance.version });
|
|
21
|
+
return asset.key === key && provenanceKey === key && asset.transcript.original === segment.text;
|
|
22
|
+
}
|
|
17
23
|
function checkAlignment(asset) {
|
|
18
24
|
if (asset.alignment) {
|
|
19
25
|
const alignment = asset.alignment;
|
|
@@ -44,9 +50,7 @@ export async function retainedSpeechTiming(segment, voice, adapter, cache) {
|
|
|
44
50
|
const manifest = { version: 1, assets: [entry] };
|
|
45
51
|
requireCondition(validateSpeech(manifest), 'CACHE_INPUT', `Invalid speech cache entry for ${segment.id}: ${cached}`);
|
|
46
52
|
const asset = manifest.assets[0];
|
|
47
|
-
|
|
48
|
-
const provenanceKey = speechKey({ ...segment, text: asset.transcript.original }, { provider: provenance.provider, voice: provenance.voice, options: provenance.options }, { id: provenance.adapter, version: provenance.version });
|
|
49
|
-
if (asset.key !== key || provenanceKey !== key || asset.transcript.original !== segment.text)
|
|
53
|
+
if (!matchesSpeechCache(asset, segment, voice, adapter))
|
|
50
54
|
return undefined;
|
|
51
55
|
requireCondition(Number.isFinite(asset.duration_ms) && asset.duration_ms > 0, 'SPEECH_DURATION', `Invalid retained speech duration: ${segment.id}`);
|
|
52
56
|
checkAlignment(asset);
|
|
@@ -71,7 +75,7 @@ export async function generateSpeech(story, directory, adapters, cache, progress
|
|
|
71
75
|
const assets = [];
|
|
72
76
|
progress?.(`Speech: ${story.narration.length} segments`);
|
|
73
77
|
for (const segment of story.narration) {
|
|
74
|
-
|
|
78
|
+
executionSignal()?.throwIfAborted();
|
|
75
79
|
const voice = segment.voice ?? story.voice;
|
|
76
80
|
requireCondition(voice, 'VOICE_REQUIRED', `Narration ${segment.id} needs a voice`);
|
|
77
81
|
const adapter = adapters.get(voice.provider);
|
|
@@ -98,7 +102,7 @@ export async function generateSpeech(story, directory, adapters, cache, progress
|
|
|
98
102
|
if (asset) {
|
|
99
103
|
progress?.(`Reusing cached speech ${segment.id} (${assets.length + 1}/${story.narration.length})`);
|
|
100
104
|
asset.audio = resolve(dirname(cached), asset.audio);
|
|
101
|
-
requireCondition(asset
|
|
105
|
+
requireCondition(matchesSpeechCache(asset, segment, voice, adapter), 'CACHE_MISMATCH', `Cache does not match ${segment.id}`);
|
|
102
106
|
await checkSpeech(asset);
|
|
103
107
|
await decode(asset.audio);
|
|
104
108
|
const destination = speechPath(directory, segment.id, asset.format);
|
package/dist/storyboard.js
CHANGED
|
@@ -5,7 +5,7 @@ import { parse } from 'yaml';
|
|
|
5
5
|
import { Ajv } from 'ajv';
|
|
6
6
|
import { requireCondition, ProductionError } from './errors.js';
|
|
7
7
|
import { hashFile, digest } from './media.js';
|
|
8
|
-
const
|
|
8
|
+
const validate = new Ajv({ allErrors: true }).compile(JSON.parse(await readFile(fileURLToPath(new URL('../schemas/storyboard.v1.json', import.meta.url)), 'utf8')));
|
|
9
9
|
export async function loadStoryboard(file) {
|
|
10
10
|
let data;
|
|
11
11
|
try {
|
|
@@ -14,14 +14,11 @@ export async function loadStoryboard(file) {
|
|
|
14
14
|
catch (error) {
|
|
15
15
|
throw new ProductionError('STORYBOARD', `Cannot read storyboard: ${String(error)}`);
|
|
16
16
|
}
|
|
17
|
-
const version = data && typeof data === 'object' && 'version' in data ? data.version : undefined;
|
|
18
|
-
requireCondition(version === 1 || version === 2, 'SCHEMA', 'Storyboard version must be 1 or 2');
|
|
19
|
-
const validate = validators[version - 1];
|
|
20
17
|
requireCondition(validate(data), 'SCHEMA', JSON.stringify(validate.errors));
|
|
21
18
|
data.deck = resolve(dirname(file), data.deck);
|
|
22
19
|
data.media = data.media.map(media => ({ ...media, src: resolve(dirname(file), media.src) }));
|
|
23
20
|
const ids = new Set();
|
|
24
|
-
for (const item of [...data.scenes, ...data.narration, ...data.media, ...data.cues, ...
|
|
21
|
+
for (const item of [...data.scenes, ...data.narration, ...data.media, ...data.cues, ...data.annotations, ...(data.overlays ?? []), ...data.scenes.flatMap(s => s.actions)]) {
|
|
25
22
|
requireCondition(!ids.has(item.id), 'DUPLICATE_ID', `Duplicate stable ID ${item.id}`);
|
|
26
23
|
ids.add(item.id);
|
|
27
24
|
}
|
|
@@ -43,13 +40,22 @@ export async function loadStoryboard(file) {
|
|
|
43
40
|
if (cue.action.type === 'play')
|
|
44
41
|
requireCondition(mediaIds.has(cue.action.media), 'MEDIA_REFERENCE', `Unknown media ${cue.action.media}`);
|
|
45
42
|
}
|
|
46
|
-
for (const annotation of data.annotations
|
|
43
|
+
for (const annotation of data.annotations) {
|
|
47
44
|
const context = { annotation: annotation.id, target: annotation.target };
|
|
48
45
|
requireCondition(data.scenes.some(scene => scene.id === annotation.scene), 'ANNOTATION_SCENE', `Annotation ${annotation.id}: unknown scene ${annotation.scene}`, 2, context);
|
|
49
46
|
requireCondition(segments.has(annotation.at.segment), 'CUE_REFERENCE', `Annotation ${annotation.id}: unknown narration ${annotation.at.segment}`, 2, context);
|
|
50
47
|
if (annotation.target.type === 'region') {
|
|
51
48
|
const { x, y, width, height } = annotation.target;
|
|
52
49
|
requireCondition(x + width <= 1 && y + height <= 1, 'ANNOTATION_BOUNDS', `Annotation ${annotation.id}: region exceeds normalized slide bounds`, 2, context);
|
|
50
|
+
if (annotation.effect === 'underline') {
|
|
51
|
+
const top = y + height + (annotation.appearance.offset ?? 0);
|
|
52
|
+
requireCondition(top < 1 && top + annotation.appearance.width > 0, 'ANNOTATION_BOUNDS', `Annotation ${annotation.id}: underline offset places stroke outside normalized slide bounds`, 2, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (annotation.effect === 'underline' && annotation.motion) {
|
|
56
|
+
const inMs = annotation.motion.in_ms ?? 0;
|
|
57
|
+
const outMs = annotation.motion.out_ms ?? 0;
|
|
58
|
+
requireCondition(inMs + outMs <= annotation.duration_ms, 'ANNOTATION_MOTION', `Annotation ${annotation.id}: wipe motion exceeds annotation duration`, 2, context);
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
const scenes = new Set(data.scenes.map(scene => scene.id));
|
package/dist/timing.js
CHANGED
|
@@ -117,7 +117,7 @@ async function resolveSchedule(story, speech) {
|
|
|
117
117
|
requireCondition(other.start_ms >= item.end_ms, 'MEDIA_NAVIGATION', `Slide ${other.id} interrupts media ${item.id}`);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const annotations =
|
|
120
|
+
const annotations = story.annotations.map(annotation => {
|
|
121
121
|
const { time, segment, context, cue_span } = phrase(annotation, annotation.target);
|
|
122
122
|
const end = time + annotation.duration_ms;
|
|
123
123
|
const range = sceneRanges.get(annotation.scene);
|
|
@@ -155,7 +155,7 @@ async function resolveSchedule(story, speech) {
|
|
|
155
155
|
return { id, src, box, opacity, visible, hidden };
|
|
156
156
|
});
|
|
157
157
|
return {
|
|
158
|
-
version:
|
|
158
|
+
version: 1, annotations,
|
|
159
159
|
duration_ms: cursor, actions, media: media.map(({ id, src, duration_ms, has_audio }) => ({ id, src, duration_ms, has_audio })),
|
|
160
160
|
...(overlays.length ? { overlays } : {}),
|
|
161
161
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidevideo/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Turn a slide deck into a narrated video.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE-TERMS.md",
|
|
6
6
|
"type": "module",
|
|
@@ -98,6 +98,8 @@
|
|
|
98
98
|
"dist/setup-license.js",
|
|
99
99
|
"dist/setup.d.ts",
|
|
100
100
|
"dist/setup.js",
|
|
101
|
+
"dist/skill-install.d.ts",
|
|
102
|
+
"dist/skill-install.js",
|
|
101
103
|
"dist/speech.d.ts",
|
|
102
104
|
"dist/speech.js",
|
|
103
105
|
"dist/storyboard.d.ts",
|
|
@@ -112,12 +114,11 @@
|
|
|
112
114
|
"schemas/revoked-keys.schema.json",
|
|
113
115
|
"schemas/run-manifest.v1.json",
|
|
114
116
|
"schemas/schedule.v1.json",
|
|
115
|
-
"schemas/schedule.v2.json",
|
|
116
117
|
"schemas/speech.v1.json",
|
|
117
118
|
"schemas/storyboard.v1.json",
|
|
118
|
-
"schemas/storyboard.v2.json",
|
|
119
119
|
"schemas/timing-evidence.v1.json",
|
|
120
120
|
"skills/slidevideo/SKILL.md",
|
|
121
|
+
"skills/slidevideo/references/decks.md",
|
|
121
122
|
"skills/slidevideo/references/production.md",
|
|
122
123
|
"skills/slidevideo/references/storyboard.md",
|
|
123
124
|
"tools/edge-tts/edge-tts.py",
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
"items": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
8
|
+
"key": {
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
|
+
"target": {
|
|
12
|
+
"type": "object"
|
|
13
|
+
},
|
|
11
14
|
"scene": {
|
|
12
15
|
"type": "string"
|
|
13
16
|
},
|
|
@@ -79,31 +82,34 @@
|
|
|
79
82
|
],
|
|
80
83
|
"additionalProperties": false
|
|
81
84
|
},
|
|
82
|
-
"
|
|
83
|
-
"type": "
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
85
|
+
"fragments": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"x": {
|
|
91
|
+
"type": "number"
|
|
92
|
+
},
|
|
93
|
+
"y": {
|
|
94
|
+
"type": "number"
|
|
95
|
+
},
|
|
96
|
+
"width": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"exclusiveMinimum": 0
|
|
99
|
+
},
|
|
100
|
+
"height": {
|
|
101
|
+
"type": "number",
|
|
102
|
+
"exclusiveMinimum": 0
|
|
103
|
+
}
|
|
94
104
|
},
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
"width",
|
|
104
|
-
"height"
|
|
105
|
-
],
|
|
106
|
-
"additionalProperties": false
|
|
105
|
+
"required": [
|
|
106
|
+
"x",
|
|
107
|
+
"y",
|
|
108
|
+
"width",
|
|
109
|
+
"height"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
}
|
|
107
113
|
},
|
|
108
114
|
"samples": {
|
|
109
115
|
"type": "integer",
|
|
@@ -111,7 +117,8 @@
|
|
|
111
117
|
}
|
|
112
118
|
},
|
|
113
119
|
"required": [
|
|
114
|
-
"
|
|
120
|
+
"key",
|
|
121
|
+
"target",
|
|
115
122
|
"scene",
|
|
116
123
|
"slide",
|
|
117
124
|
"visit",
|
|
@@ -122,9 +129,234 @@
|
|
|
122
129
|
"observed_end_ms",
|
|
123
130
|
"viewport",
|
|
124
131
|
"content",
|
|
125
|
-
"
|
|
132
|
+
"fragments",
|
|
126
133
|
"samples"
|
|
127
134
|
],
|
|
128
|
-
"additionalProperties": false
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"oneOf": [
|
|
137
|
+
{
|
|
138
|
+
"properties": {
|
|
139
|
+
"target": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"type": {
|
|
143
|
+
"const": "slide"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"type"
|
|
148
|
+
],
|
|
149
|
+
"additionalProperties": false
|
|
150
|
+
},
|
|
151
|
+
"fragments": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"x": {
|
|
157
|
+
"type": "number"
|
|
158
|
+
},
|
|
159
|
+
"y": {
|
|
160
|
+
"type": "number"
|
|
161
|
+
},
|
|
162
|
+
"width": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"exclusiveMinimum": 0
|
|
165
|
+
},
|
|
166
|
+
"height": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"exclusiveMinimum": 0
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"x",
|
|
173
|
+
"y",
|
|
174
|
+
"width",
|
|
175
|
+
"height"
|
|
176
|
+
],
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
},
|
|
179
|
+
"maxItems": 0
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"properties": {
|
|
185
|
+
"target": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"properties": {
|
|
189
|
+
"type": {
|
|
190
|
+
"const": "region"
|
|
191
|
+
},
|
|
192
|
+
"units": {
|
|
193
|
+
"const": "normalized"
|
|
194
|
+
},
|
|
195
|
+
"x": {
|
|
196
|
+
"type": "number",
|
|
197
|
+
"minimum": 0,
|
|
198
|
+
"maximum": 1
|
|
199
|
+
},
|
|
200
|
+
"y": {
|
|
201
|
+
"type": "number",
|
|
202
|
+
"minimum": 0,
|
|
203
|
+
"maximum": 1
|
|
204
|
+
},
|
|
205
|
+
"width": {
|
|
206
|
+
"type": "number",
|
|
207
|
+
"exclusiveMinimum": 0,
|
|
208
|
+
"maximum": 1
|
|
209
|
+
},
|
|
210
|
+
"height": {
|
|
211
|
+
"type": "number",
|
|
212
|
+
"exclusiveMinimum": 0,
|
|
213
|
+
"maximum": 1
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"type",
|
|
218
|
+
"units",
|
|
219
|
+
"x",
|
|
220
|
+
"y",
|
|
221
|
+
"width",
|
|
222
|
+
"height"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"fragments": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"x": {
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
"y": {
|
|
234
|
+
"type": "number"
|
|
235
|
+
},
|
|
236
|
+
"width": {
|
|
237
|
+
"type": "number",
|
|
238
|
+
"exclusiveMinimum": 0
|
|
239
|
+
},
|
|
240
|
+
"height": {
|
|
241
|
+
"type": "number",
|
|
242
|
+
"exclusiveMinimum": 0
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"x",
|
|
247
|
+
"y",
|
|
248
|
+
"width",
|
|
249
|
+
"height"
|
|
250
|
+
],
|
|
251
|
+
"additionalProperties": false
|
|
252
|
+
},
|
|
253
|
+
"minItems": 1,
|
|
254
|
+
"maxItems": 1
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"properties": {
|
|
260
|
+
"target": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"properties": {
|
|
264
|
+
"type": {
|
|
265
|
+
"const": "element"
|
|
266
|
+
},
|
|
267
|
+
"selector": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"minLength": 1
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"required": [
|
|
273
|
+
"type",
|
|
274
|
+
"selector"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"fragments": {
|
|
278
|
+
"type": "array",
|
|
279
|
+
"items": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"x": {
|
|
283
|
+
"type": "number"
|
|
284
|
+
},
|
|
285
|
+
"y": {
|
|
286
|
+
"type": "number"
|
|
287
|
+
},
|
|
288
|
+
"width": {
|
|
289
|
+
"type": "number",
|
|
290
|
+
"exclusiveMinimum": 0
|
|
291
|
+
},
|
|
292
|
+
"height": {
|
|
293
|
+
"type": "number",
|
|
294
|
+
"exclusiveMinimum": 0
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"x",
|
|
299
|
+
"y",
|
|
300
|
+
"width",
|
|
301
|
+
"height"
|
|
302
|
+
],
|
|
303
|
+
"additionalProperties": false
|
|
304
|
+
},
|
|
305
|
+
"minItems": 1
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"properties": {
|
|
311
|
+
"target": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"additionalProperties": false,
|
|
314
|
+
"properties": {
|
|
315
|
+
"type": {
|
|
316
|
+
"const": "shape"
|
|
317
|
+
},
|
|
318
|
+
"id": {
|
|
319
|
+
"type": "integer",
|
|
320
|
+
"minimum": 1
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"type",
|
|
325
|
+
"id"
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"fragments": {
|
|
329
|
+
"type": "array",
|
|
330
|
+
"items": {
|
|
331
|
+
"type": "object",
|
|
332
|
+
"properties": {
|
|
333
|
+
"x": {
|
|
334
|
+
"type": "number"
|
|
335
|
+
},
|
|
336
|
+
"y": {
|
|
337
|
+
"type": "number"
|
|
338
|
+
},
|
|
339
|
+
"width": {
|
|
340
|
+
"type": "number",
|
|
341
|
+
"exclusiveMinimum": 0
|
|
342
|
+
},
|
|
343
|
+
"height": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"exclusiveMinimum": 0
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"required": [
|
|
349
|
+
"x",
|
|
350
|
+
"y",
|
|
351
|
+
"width",
|
|
352
|
+
"height"
|
|
353
|
+
],
|
|
354
|
+
"additionalProperties": false
|
|
355
|
+
},
|
|
356
|
+
"minItems": 1
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
]
|
|
129
361
|
}
|
|
130
362
|
}
|
|
@@ -75,6 +75,37 @@
|
|
|
75
75
|
"verify_timing": {
|
|
76
76
|
"type": "boolean"
|
|
77
77
|
},
|
|
78
|
+
"video": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"width": {
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": 640,
|
|
84
|
+
"maximum": 3840,
|
|
85
|
+
"multipleOf": 2
|
|
86
|
+
},
|
|
87
|
+
"height": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 360,
|
|
90
|
+
"maximum": 2160,
|
|
91
|
+
"multipleOf": 2
|
|
92
|
+
},
|
|
93
|
+
"fps": {
|
|
94
|
+
"enum": [
|
|
95
|
+
15,
|
|
96
|
+
24,
|
|
97
|
+
30,
|
|
98
|
+
60
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": [
|
|
103
|
+
"width",
|
|
104
|
+
"height",
|
|
105
|
+
"fps"
|
|
106
|
+
],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
78
109
|
"assembly_licensed": {
|
|
79
110
|
"type": "boolean"
|
|
80
111
|
},
|