From f634fb7e090475b6821c932b34607b234e77814c Mon Sep 17 00:00:00 2001 From: Weiming Liao Date: Sun, 29 Nov 2026 09:16:57 +0800 Subject: [PATCH 1/2] [feat] Run canvas workflows with a backend Pipeline Signed-off-by: Weiming Liao --- apps/api/src/opendirector_api/creation.py | 15 +- apps/api/src/opendirector_api/main.py | 5 + .../pipeline/pipeline-two-branch-merge.png | Bin 0 -> 109788 bytes packages/core/src/opendirector/agent/tools.py | 14 +- .../application/creation_canvas.py | 20 +- .../application/creation_generation.py | 26 + .../application/creation_history.py | 2 +- .../application/creation_pipeline.py | 630 + packages/core/src/opendirector/cli.py | 1 + .../opendirector/domain/creation/canvas.py | 4 +- .../opendirector/domain/creation/commands.py | 66 +- .../opendirector/domain/creation/pipeline.py | 510 + .../opendirector/domain/creation/project.py | 4 +- .../domain/creation/run_layout.py | 6 +- .../infrastructure/creation_publication.py | 2 +- scripts/generate_contracts.py | 2 +- src/canvas/CanvasActionsContext.ts | 2 + src/canvas/NodeFrame.tsx | 23 + src/canvas/NodeSelectionToolbar.tsx | 86 +- src/canvas/PipelineDrawer.tsx | 137 + src/canvas/groupWorkflow.ts | 80 - src/canvas/pipeline-drawer.css | 207 + src/canvas/storage.ts | 2 +- src/canvas/workspace/WorkspaceView.tsx | 66 +- src/canvas/workspace/runtimeTypes.ts | 12 + .../workspace/useWorkspaceGeneration.ts | 363 +- .../workspace/useWorkspaceInteraction.tsx | 4 +- src/contracts/creation.schema.json | 24599 +++++++++------- src/contracts/generated.ts | 270 +- src/i18n/messages/en-US/canvasShell.ts | 26 + src/i18n/messages/en-US/canvasWorkspace.ts | 11 + src/i18n/messages/zh-CN/canvasShell.ts | 26 + src/i18n/messages/zh-CN/canvasWorkspace.ts | 11 + tests/groupWorkflow.test.ts | 86 - tests/test_creation_api.py | 16 +- tests/test_pipeline.py | 377 + 36 files changed, 16099 insertions(+), 11612 deletions(-) create mode 100644 feature-assets/pipeline/pipeline-two-branch-merge.png create mode 100644 packages/core/src/opendirector/application/creation_pipeline.py create mode 100644 packages/core/src/opendirector/domain/creation/pipeline.py create mode 100644 src/canvas/PipelineDrawer.tsx delete mode 100644 src/canvas/groupWorkflow.ts create mode 100644 src/canvas/pipeline-drawer.css delete mode 100644 tests/groupWorkflow.test.ts create mode 100644 tests/test_pipeline.py diff --git a/apps/api/src/opendirector_api/creation.py b/apps/api/src/opendirector_api/creation.py index d2ca75cec..6d6523013 100644 --- a/apps/api/src/opendirector_api/creation.py +++ b/apps/api/src/opendirector_api/creation.py @@ -139,7 +139,9 @@ async def execute(project_id: UUID, value: Command, request: Request, x_opendire imported_from = x_canvas_import if x_canvas_import in {'generated', 'edited'} else None if x_canvas_import is not None and imported_from is None: raise ProjectError('归档来源必须是 generated 或 edited。', 400) - if value.type in {'generation.submit', 'job.cancel', 'job.recover'}: + if value.type in {'generation.submit', 'job.cancel', 'job.recover', + 'pipeline.start', 'pipeline.pause', 'pipeline.resume', + 'pipeline.cancel', 'pipeline.retry', 'pipeline.adopt'}: if generation is None: raise ProjectError('任务服务不可用。', 503) receipt = await generation.execute(value, session=session) @@ -183,6 +185,17 @@ def projection(project_id: UUID): async def query(project_id: UUID, value: CreationQuery): if value.projectId != project_id: raise ProjectError('查询不属于当前工程。') + if value.type in {'pipeline.plan', 'pipeline.execution.get', 'pipeline.executions.list'}: + executor = getattr(generation, 'pipelines', None) + if executor is None: + raise ProjectError('流水线执行服务不可用。', 503, code='pipeline_unavailable') + if value.type == 'pipeline.plan': + return await executor.plan( + project_id, value.scope, cache_policy=value.cachePolicy, force_from_item_id=value.forceFromItemId, + ) + if value.type == 'pipeline.executions.list': + return {'executions': await executor.history(project_id, value.groupId)} + return await executor.status(project_id, value.objectId) result = await canvas.query(value) if value.type == 'asset.preview' and 'preview' in result: result['preview'].pop('path') diff --git a/apps/api/src/opendirector_api/main.py b/apps/api/src/opendirector_api/main.py index 724b1806a..0398bcee7 100644 --- a/apps/api/src/opendirector_api/main.py +++ b/apps/api/src/opendirector_api/main.py @@ -16,6 +16,7 @@ from opendirector.domain.creation.validation import ContractError from opendirector.domain.settings import GeneralSettings, GeneralSettingsPatch from opendirector.application.creation_generation import CreationGeneration +from opendirector.application.creation_pipeline import PipelineExecutor from opendirector.application.model_catalog import ModelCatalog from opendirector.application.model_availability import ModelAvailability from opendirector.application.preferences import Preferences @@ -55,6 +56,8 @@ def create_app(store: LocalProjects | None = None, chat_provider=None, generatio creation_projects = CreationProjects(store) availability = ModelAvailability(model_configs, capability_probe) creation_generation = CreationGeneration(creation_projects, model_configs, generation_provider, availability=availability) + pipelines = PipelineExecutor(creation_projects, creation_generation, model_configs) + creation_generation.pipelines = pipelines creation_tools = ToolTasks(store, model_configs, CreationToolAssets(creation_projects), projects=creation_projects, availability=availability) catalog = ModelCatalog(model_configs, chat_provider or ChatCompletions(), availability) @@ -65,6 +68,7 @@ async def lifespan(app): await creation_generation.start() try: await creation_tools.start() + await pipelines.start() yield finally: agents = [entry[1] for entry in list(active_agents.values())] @@ -72,6 +76,7 @@ async def lifespan(app): agent.cancel() await asyncio.gather(*agents, return_exceptions=True) try: + await pipelines.close() await creation_tools.close() finally: await creation_generation.close() diff --git a/feature-assets/pipeline/pipeline-two-branch-merge.png b/feature-assets/pipeline/pipeline-two-branch-merge.png new file mode 100644 index 0000000000000000000000000000000000000000..e26a63643d064f2b50ab5804de4447fe7629e47f GIT binary patch literal 109788 zcmZ^~bzD^8*7pqvNH@};BHhvrq9EPfAxL+}fTT*Oba!_TB3;tmHGp(8%#Z`m_MH2E z-t(Mu-oJ)DA7;;KB*%BuW( z6j$#@8)a}Zl_b-v7oB6t!ZudpS*iSP)~Da?p-^Z!AwBtfs&4|%9i^6n8<1_EOraOx z{(oZ!a#)^qqB|QG%JH2><=$|2!X_F{;PlTjU(`Z;}7@(f>K0OUX+$Lr!(1 zna$^_|Lq!)r6Ch<&74aO3XxnqJ!OJS5Oiu(#gq5ipU3%B9+XLT$u<1!Ze-`s5drjVn5`Eshu48-y9fSe-X$k^T8eU+TpOZMLv0y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ps5rIPN3T@7C%LY)Oq&j0x+~(LE9BbvP zaz4T{lcLkrl%@+l{Ee95*49}lxM|g+QIobm_Zq`r_fJjpUwDa}kYUl-o&Ll@F+!XY zPakUrZ#n;is}~8Ba$+Ptl;^Qux#Wm$$yG(&j*)11gp_sd^$mPEVs%P-`_fNj6Nc*UXJlX%ZR^hGNW?_@8ELHeR|GlPDb`ylJ&Hp>8Q7wX7GVM(xwuTO1Eypf^uejo|8B6R9;fWj8jHO8+S<5Yi$d;5OV_gujU(6ld`jPW-+D~+ps!CrFylh?@#8^4Wn-`r^$t@)(Hf8nl7cB`AO z=d`9tEgK@kct+ij2PwiNe!nABogy#bR^#m(%6_XEpk7$$5(eVN+`U%pd#=L7L#*8& z)XGzDhBL6i9Heh@7EQU`*^}^@@}cxtsi#hcR8FoP-W%LRP|A%h%Msbb$X!Qgt=lnP zT1sm0r|(>FA2lsJw>crArh1kpEf=av#MIo9`P^>KnnB^2%ABFnraNyoGkvYz!?%2+Q-#%`|)pIh>WZ>|<;Gi1(=T8npi zQ1sol&SH{7;a!l&MZxLyTjPCQZ0+X0nn}Ox>P|{r{+JswDXJK=-y16}L25_H^Py5k z+;u=Cc80wA^w_W$C zmO{-Q;a{=$p^*}Sq0j7-vO2=7@vq|9`6jm_(1!x2?$(U(&!uq(^>hd*0D|=k5j=g} za$TvX^9B2h?mf=iVs~!cLr^oz-(k08Zq7(l2>5Y)(}L=z&-GvIZs%+`I2RY?1#gXT gaBv8)K{g(afx64R?q*vna0KVcBejRQa)uxNAB#MQ`v3p{ literal 0 HcmV?d00001 diff --git a/packages/core/src/opendirector/agent/tools.py b/packages/core/src/opendirector/agent/tools.py index 4edfecd21..d49089575 100644 --- a/packages/core/src/opendirector/agent/tools.py +++ b/packages/core/src/opendirector/agent/tools.py @@ -366,6 +366,17 @@ def recording(): # A rejected query must name the accepted types rather than echo a # tag list the model has to reinterpret. raise ProjectError(query_guidance(failure)) from None + if query.type in {'pipeline.plan', 'pipeline.execution.get', 'pipeline.executions.list'}: + executor = getattr(self.generation, 'pipelines', None) + if executor is None: + raise ProjectError('流水线执行服务不可用。', 503, code='pipeline_unavailable') + if query.type == 'pipeline.plan': + return await executor.plan( + project_id, query.scope, cache_policy=query.cachePolicy, force_from_item_id=query.forceFromItemId, + ) + if query.type == 'pipeline.executions.list': + return {'executions': await executor.history(project_id, query.groupId)} + return await executor.status(project_id, query.objectId) result = await CreationCanvas(self.projects).query(query) if query.type == 'asset.preview' and 'preview' in result: with self.projects.local.transaction() as db: @@ -447,7 +458,8 @@ def narrow(value: JsonValue) -> None: raise ProjectError('批量命令包含未开放的 Agent 操作。', 403) if command.type == 'generation.submit': receipt = await self.generation.execute(command, session=session, source='agent', agent_origin=(turn_id, call_id)) - elif command.type in {'job.cancel', 'job.recover'}: + elif command.type in {'job.cancel', 'job.recover', 'pipeline.start', 'pipeline.pause', + 'pipeline.resume', 'pipeline.cancel', 'pipeline.retry', 'pipeline.adopt'}: receipt = await self.generation.execute(command, session=session, source='agent') elif command.type in {'asset.writeText', 'artifact.publish'}: if config is not None: diff --git a/packages/core/src/opendirector/application/creation_canvas.py b/packages/core/src/opendirector/application/creation_canvas.py index f97c6af96..e63386862 100644 --- a/packages/core/src/opendirector/application/creation_canvas.py +++ b/packages/core/src/opendirector/application/creation_canvas.py @@ -523,11 +523,11 @@ def _mutate(self, data, kind, payload): if (ref and str(ref.get('id')) == str(obj['id'])) or attached: self._editable(data, item['id']) old.update(obj) - elif kind == 'canvas.layoutRuns': + elif kind == 'canvas.layoutPipelines': pass # The commit arranges the authoritative canvas after validating edits. elif kind == 'canvas.show': obj = payload.item.model_dump(mode='json') - if obj.get('autoLayout') == 'run' and obj['parentId'] is not None: + if obj.get('autoLayout') == 'pipeline' and obj['parentId'] is not None: raise ContractError('canvas_run_layout_group', '自动排列只适用于顶层分组。', payload.item.id) if str(obj['projectId']) != str(data['project']['id']): raise ContractError('invalid_input', '节点不属于当前工程。') @@ -563,12 +563,12 @@ def _mutate(self, data, kind, payload): layout = value.pop('autoLayout', None) if layout is not None and item['kind'] != 'group': raise ContractError('canvas_run_layout_group', '自动排列只适用于顶层分组。', payload.itemId) - if layout == 'run': - item['autoLayout'] = 'run' + if layout == 'pipeline': + item['autoLayout'] = 'pipeline' elif layout == 'free': item.pop('autoLayout', None) item.update({key: val for key, val in value.items() if key != 'itemId' and (val is not None or key == 'parentId')}) - if item.get('autoLayout') == 'run' and item['parentId'] is not None: + if item.get('autoLayout') == 'pipeline' and item['parentId'] is not None: raise ContractError('canvas_run_layout_group', '自动排列只适用于顶层分组。', payload.itemId) if item.get('color') == '': item.pop('color') @@ -680,8 +680,14 @@ def _mutate(self, data, kind, payload): allowed = downstream_kinds(snapshot, source_item) if source_item else DOWNSTREAM.get(source_kind, set()) if spec['kind'] not in allowed: raise ContractError('reference_invalid', '该节点类型不能作为目标节点的参考。', payload.reference.id) - for value in resolve_reference(snapshot, payload.reference): - self._available(next(asset for asset in snapshot.assets if asset.id == value.asset.assetId)) + pending_generation = ( + ref['binding'] == 'follow_current' and source_item is not None + and source_item.binding.role == 'generation' + and current_asset(snapshot, source_item) is None + ) + if not pending_generation: + for value in resolve_reference(snapshot, payload.reference): + self._available(next(asset for asset in snapshot.assets if asset.id == value.asset.assetId)) elif kind == 'reference.remove': ref = self._get(data, 'reference', payload.referenceId) spec = self._get(data, 'generation_spec', ref['targetSpecId']) diff --git a/packages/core/src/opendirector/application/creation_generation.py b/packages/core/src/opendirector/application/creation_generation.py index f05de01e8..a8aa56a3f 100644 --- a/packages/core/src/opendirector/application/creation_generation.py +++ b/packages/core/src/opendirector/application/creation_generation.py @@ -21,6 +21,7 @@ from opendirector.domain.creation.assets import AssetProvenance from opendirector.domain.creation.canvas import TextCanvasItem, ImageCanvasItem, VideoCanvasItem, AudioCanvasItem from opendirector.domain.creation.base import ObjectVersion +from opendirector.domain.creation.commands import CommandReceipt, command_fingerprint from opendirector.domain.creation.commands import parse_command from opendirector.domain.creation.generation import (DEFAULT_MUSIC_SECONDS, InputSnapshot, Job, ResultVersion, execution_spec, reference_music_seconds, validate_generation) @@ -438,6 +439,31 @@ def accept(before): return self.projects.commit(command, accept, session=session, source=source) async def execute(self, command, *, session=None, source='ui', agent_origin=None): + if command.type in {'pipeline.start', 'pipeline.pause', 'pipeline.resume', + 'pipeline.cancel', 'pipeline.retry', 'pipeline.adopt'}: + executor = getattr(self, 'pipelines', None) + if executor is None: + raise ProjectError('流水线执行服务不可用。', 503, code='pipeline_unavailable') + fingerprint = command_fingerprint(command) + if command.type == 'pipeline.start': + execution = await executor.submit( + command.projectId, command.payload, command.commandId, session, input_fingerprint=fingerprint, + ) + else: + method = { + 'pipeline.pause': 'pause', + 'pipeline.resume': 'resume', + 'pipeline.cancel': 'cancel', + 'pipeline.retry': 'retry', + 'pipeline.adopt': 'adopt', + }[command.type] + execution = await getattr(executor, method)( + command.projectId, command.payload, session, + operation_id=command.commandId, input_fingerprint=fingerprint, + ) + return CommandReceipt(commandId=command.commandId, projectId=command.projectId, + inputFingerprint=fingerprint, status='applied', + pipelineExecutionId=execution['executionId']) if command.type == 'generation.submit': pending = asyncio.create_task(asyncio.to_thread(self.prepare, command, session=session, source=source, agent_origin=agent_origin)) async def finish(): diff --git a/packages/core/src/opendirector/application/creation_history.py b/packages/core/src/opendirector/application/creation_history.py index cc826923b..befe19c48 100644 --- a/packages/core/src/opendirector/application/creation_history.py +++ b/packages/core/src/opendirector/application/creation_history.py @@ -14,7 +14,7 @@ EDITABLE = {'canvasItems', 'generationSpecs', 'references', 'editorDocuments'} ABSENT = object() -UNDOABLE = {'canvas.createGeneration', 'creation.batch', 'canvas.show', 'canvas.hide', 'canvas.move', 'canvas.update', 'canvas.layoutRuns', 'canvas.configure', +UNDOABLE = {'canvas.createGeneration', 'creation.batch', 'canvas.show', 'canvas.hide', 'canvas.move', 'canvas.update', 'canvas.layoutPipelines', 'canvas.configure', 'canvas.materialize', 'canvas.applyEdit', 'timeline.publishRender', 'canvas.publishMedia', 'canvas.applyVersion', 'canvas.attachEditor', 'canvas.detachEditor', 'generationSpec.update', 'generationSpec.restore', 'reference.add', 'reference.update', 'reference.restore', 'reference.remove', 'result.select', 'editor.save', 'generationSpec.setPrompt'} diff --git a/packages/core/src/opendirector/application/creation_pipeline.py b/packages/core/src/opendirector/application/creation_pipeline.py new file mode 100644 index 000000000..2a1bf5554 --- /dev/null +++ b/packages/core/src/opendirector/application/creation_pipeline.py @@ -0,0 +1,630 @@ +"""Persist and concurrently execute compiled Pipelines using shared project services.""" + +import asyncio +import logging +from time import time_ns +from uuid import UUID, uuid5 + +from filelock import FileLock, Timeout + +from opendirector.domain.creation.commands import parse_command +from opendirector.domain.creation.pipeline import ( + ACTIVE_EXECUTION_STATUSES, + TERMINAL_EXECUTION_STATUSES, + CompiledPipelineGraph, + can_transition_execution, + compile_pipeline, +) +from opendirector.domain.projects import ProjectError +from opendirector.ports.gateway import gateway + + +logger = logging.getLogger(__name__) + + +def _version(kind: str, obj) -> dict: + return {'objectType': kind, 'id': str(obj.id), 'revision': obj.revision} + + +def _step_record(step) -> dict: + if step.cached: + return { + 'itemId': str(step.itemId), + 'kind': step.kind, + 'upstreamItemIds': [str(uid) for uid in step.upstreamItemIds], + 'inputFingerprint': step.inputFingerprint, + 'status': 'cached', + 'attempt': 0, + 'command': None, + 'jobId': str(step.cacheCandidateJobId) if step.cacheCandidateJobId else None, + 'assetId': str(step.cacheCandidateAssetId) if step.cacheCandidateAssetId else None, + 'issue': None, + } + return { + 'itemId': str(step.itemId), + 'kind': step.kind, + 'upstreamItemIds': [str(uid) for uid in step.upstreamItemIds], + 'inputFingerprint': step.inputFingerprint, + 'status': 'pending', + 'attempt': 1, + 'command': None, + 'jobId': None, + 'assetId': None, + 'issue': None, + } + + +def _mark_downstream_skipped(steps_by_id: dict[str, dict], failed_id: str) -> None: + queue = [failed_id] + visited = {failed_id} + while queue: + current = queue.pop(0) + for item_id, step in steps_by_id.items(): + if item_id in visited: + continue + if current in step['upstreamItemIds']: + visited.add(item_id) + if step['status'] in {'pending', 'ready'}: + step['status'] = 'skipped' + queue.append(item_id) + + +class PipelineExecutor: + """Backend concurrent DAG executor for compiled Pipelines.""" + + def __init__(self, projects, generation, configs=None): + self.projects = projects + self.generation = generation + self.configs = configs + self.directory = gateway().directory(gateway().child(projects.state_dir, 'pipeline-executions')) + self.directory.mkdir(exist_ok=True) + gateway().sync_directory(self.directory.parent) + self.accepting: set[asyncio.Task] = set() + self.workers: dict[tuple[str, str], asyncio.Task] = {} + self.record_locks: dict[tuple[str, str], asyncio.Lock] = {} + self.closed = False + + def _path(self, project_id, execution_id, extension='json'): + return gateway().child(self.directory, f'{project_id}-{execution_id}.{extension}') + + def _project_lock(self, project_id): + return FileLock(gateway().child(self.directory, f'{project_id}.pipeline.lock'), timeout=5) + + def _state_lock(self, project_id, execution_id): + return FileLock(self._path(project_id, execution_id, 'state.lock'), timeout=5) + + def _mem_lock(self, project_id: str, execution_id: str) -> asyncio.Lock: + key = (project_id, execution_id) + lock = self.record_locks.get(key) + if lock is None: + lock = self.record_locks[key] = asyncio.Lock() + return lock + + def _read(self, path): + return gateway().read_json(gateway().child(self.directory, path.name)) + + def _write(self, record): + path = self._path(record['projectId'], record['executionId']) + gateway().write_json(path, record) + gateway().sync_directory(self.directory) + + def _save(self, record): + project_id, execution_id = record['projectId'], record['executionId'] + path = self._path(project_id, execution_id) + with self._state_lock(project_id, execution_id): + if path.exists(): + current = self._read(path) + for key in ('pauseRequested', 'cancelRequested', 'controlOperations'): + if key in current and key not in record: + record[key] = current[key] + elif key in ('pauseRequested', 'cancelRequested') and current.get(key): + record[key] = True + elif key == 'controlOperations' and key in current: + merged = dict(current[key]) + merged.update(record.get(key, {})) + record[key] = merged + self._write(record) + + async def _persist(self, record): + async with self._mem_lock(record['projectId'], record['executionId']): + pending = asyncio.create_task(asyncio.to_thread(self._save, record)) + try: + await asyncio.shield(pending) + except asyncio.CancelledError: + await asyncio.gather(pending, return_exceptions=True) + raise + + def _check_lease(self, project_id, session): + with self.projects.local.transaction() as db: + path, _ = self.projects._find(db, project_id) + self.projects._lease(db, project_id, path, str(session) if session is not None else None) + + def _executions(self, project_id): + records = [ + (self._read(path), path.stat().st_mtime_ns) + for path in self.directory.glob(f'{project_id}-*.json') + ] + return [record for record, _ in sorted(records, key=lambda pair: pair[0].get('createdAt', pair[1]), reverse=True)] + + def _public(self, record) -> dict: + status = record['status'] + if status in {'queued', 'running'} and record.get('pauseRequested') and not record.get('cancelRequested'): + status = 'pausing' + steps = [ + { + 'itemId': step['itemId'], + 'kind': step['kind'], + 'upstreamItemIds': list(step['upstreamItemIds']), + 'inputFingerprint': step['inputFingerprint'], + 'status': step['status'], + 'jobId': step.get('jobId'), + 'assetId': step.get('assetId'), + 'issue': step.get('issue'), + } + for step in record['steps'] + ] + return { + 'executionId': record['executionId'], + 'projectId': record['projectId'], + 'scope': record['scope'], + 'cachePolicy': record['cachePolicy'], + 'status': status, + 'steps': steps, + 'issue': record.get('issue'), + 'createdAt': record.get('createdAt'), + 'updatedAt': record.get('updatedAt'), + } + + def _compile(self, project_id: UUID, scope, *, cache_policy='reuse', force_from_item_id=None) -> CompiledPipelineGraph: + snapshot = self.projects.snapshot(project_id) + return compile_pipeline( + snapshot, + scope, + cache_policy=cache_policy, + force_from_item_id=force_from_item_id, + ) + + async def plan(self, project_id: UUID, scope, *, cache_policy='reuse', force_from_item_id=None) -> dict: + graph = await asyncio.to_thread( + self._compile, + UUID(str(project_id)), + scope, + cache_policy=cache_policy, + force_from_item_id=force_from_item_id, + ) + return graph.model_dump(mode='json') + + def _accept_start(self, project_id: UUID, payload, operation_id: UUID, session, input_fingerprint): + self._check_lease(project_id, session) + execution_id = str(operation_id) + try: + with self._project_lock(project_id): + path = self._path(project_id, execution_id) + if path.exists(): + record = self._read(path) + if record.get('inputFingerprint') != input_fingerprint: + raise ProjectError('此操作 ID 已用于不同的流水线请求。', 409, code='command_conflict') + return record + for existing in self._executions(project_id): + if execution_id in existing.get('controlOperations', {}): + raise ProjectError('此操作 ID 已用于不同的流水线请求。', 409, code='command_conflict') + + graph = self._compile( + project_id, + payload.scope, + cache_policy=payload.cachePolicy, + force_from_item_id=payload.forceFromItemId, + ) + if graph.issues: + first = graph.issues[0] + raise ProjectError(first.message, 409, code=first.code) + + steps = [_step_record(step) for step in graph.steps] + all_cached = all(step['status'] == 'cached' for step in steps) + now = time_ns() + record = { + 'projectId': str(project_id), + 'executionId': execution_id, + 'scope': payload.scope.model_dump(mode='json'), + 'cachePolicy': payload.cachePolicy, + 'stopOnFailure': bool(payload.stopOnFailure), + 'maxConcurrency': int(payload.maxConcurrency), + 'createdAt': now, + 'updatedAt': now, + 'status': 'succeeded' if all_cached else 'queued', + 'pauseRequested': False, + 'cancelRequested': False, + 'steps': steps, + 'issue': None, + 'inputFingerprint': input_fingerprint, + 'controlOperations': {}, + } + self._save(record) + return record + except Timeout as error: + raise ProjectError('流水线正在处理,请稍后重试。', 409, code='pipeline_busy') from error + + async def _accept_and_launch(self, accept, *args): + if self.closed: + raise ProjectError('流水线执行服务正在关闭。', 503) + + async def accept_and_launch(): + record = await asyncio.to_thread(accept, *args) + self._launch(record) + return self._public(record) + + def finished(task): + self.accepting.discard(task) + if not task.cancelled(): + task.exception() + + continuation = asyncio.create_task(accept_and_launch()) + self.accepting.add(continuation) + continuation.add_done_callback(finished) + return await asyncio.shield(continuation) + + async def submit(self, project_id, payload, operation_id, session, *, input_fingerprint=None): + return await self._accept_and_launch( + self._accept_start, UUID(str(project_id)), payload, UUID(str(operation_id)), session, input_fingerprint, + ) + + def _mutate_control(self, project_id: UUID, execution_id: UUID, session, operation_id: UUID, input_fingerprint, action: str, payload=None): + self._check_lease(project_id, session) + op_id = str(operation_id) + op_entry = {'action': action, 'inputFingerprint': input_fingerprint} + try: + with self._project_lock(project_id): + for existing in self._executions(project_id): + prev = existing.get('controlOperations', {}).get(op_id) + if prev is not None: + if prev == op_entry and existing['executionId'] == str(execution_id): + return existing + raise ProjectError('此操作 ID 已用于不同的流水线请求。', 409, code='command_conflict') + if existing['executionId'] == op_id: + raise ProjectError('此操作 ID 已用于不同的流水线请求。', 409, code='command_conflict') + + path = self._path(project_id, execution_id) + if not path.is_file(): + raise ProjectError('找不到此流水线执行。', 404, code='pipeline_not_found') + + with self._state_lock(str(project_id), str(execution_id)): + record = self._read(path) + status = record['status'] + if action == 'pause': + if status not in {'queued', 'running', 'pausing', 'paused'}: + raise ProjectError('当前流水线状态不支持暂停。', 409, code='pipeline_invalid_state') + record['pauseRequested'] = True + elif action == 'resume': + if status != 'paused': + raise ProjectError('当前流水线尚未暂停。', 409, code='pipeline_invalid_state') + record['pauseRequested'] = False + record['status'] = 'queued' + elif action == 'cancel': + if status in TERMINAL_EXECUTION_STATUSES: + raise ProjectError('当前流水线已结束,无法取消。', 409, code='pipeline_invalid_state') + record['cancelRequested'] = True + record['pauseRequested'] = False + for step in record['steps']: + if step['status'] in {'pending', 'ready'}: + step['status'] = 'cancelled' + if status in {'paused', 'awaiting_input'}: + record['status'] = 'cancelled' + elif action == 'retry': + if status not in {'failed', 'paused', 'cancelled'}: + raise ProjectError('仅失败、暂停或已取消的流水线可以重试。', 409, code='pipeline_invalid_state') + record['pauseRequested'] = False + record['cancelRequested'] = False + record['issue'] = None + if payload is not None: + record['stopOnFailure'] = bool(payload.stopOnFailure) + record['maxConcurrency'] = int(payload.maxConcurrency) + for step in record['steps']: + if step['status'] in {'failed', 'skipped', 'cancelled'}: + step['status'] = 'pending' + step['attempt'] = int(step.get('attempt', 0)) + 1 + step['command'] = None + step['jobId'] = None + step['issue'] = None + record['status'] = 'queued' + elif action == 'adopt': + if status != 'awaiting_input': + raise ProjectError('当前流水线没有等待采用的节点。', 409, code='pipeline_invalid_state') + target_id = str(payload.itemId) + step = next((s for s in record['steps'] if s['itemId'] == target_id and s['status'] == 'awaiting_input'), None) + if step is None: + raise ProjectError('找不到等待采用的流水线节点。', 409, code='pipeline_invalid_state') + job = self.generation.get_job(project_id, payload.jobId) + if job is None or job.status != 'succeeded' or job.asset is None or str(job.originItemId) != target_id: + raise ProjectError('指定的候选任务无效或尚未完成。', 409, code='pipeline_candidate_invalid') + step['status'] = 'succeeded' + step['jobId'] = str(job.id) + step['assetId'] = str(job.asset.assetId) + step['issue'] = None + record['status'] = 'queued' + record['updatedAt'] = time_ns() + record.setdefault('controlOperations', {})[op_id] = op_entry + self._write(record) + return record + except Timeout as error: + raise ProjectError('流水线正在处理,请稍后重试。', 409, code='pipeline_busy') from error + + async def pause(self, project_id, payload, session, *, operation_id, input_fingerprint): + return await self._accept_and_launch( + self._mutate_control, UUID(str(project_id)), payload.executionId, session, + UUID(str(operation_id)), input_fingerprint, 'pause', + ) + + async def resume(self, project_id, payload, session, *, operation_id, input_fingerprint): + return await self._accept_and_launch( + self._mutate_control, UUID(str(project_id)), payload.executionId, session, + UUID(str(operation_id)), input_fingerprint, 'resume', + ) + + async def cancel(self, project_id, payload, session, *, operation_id, input_fingerprint): + result = await self._accept_and_launch( + self._mutate_control, UUID(str(project_id)), payload.executionId, session, + UUID(str(operation_id)), input_fingerprint, 'cancel', + ) + # Request cancellation on any running jobs immediately. + path = self._path(UUID(str(project_id)), payload.executionId) + if path.is_file(): + record = await asyncio.to_thread(self._read, path) + for step in record['steps']: + if step['status'] == 'running' and step.get('jobId'): + cancel_cmd = parse_command({ + 'type': 'job.cancel', + 'projectId': str(project_id), + 'commandId': str(uuid5(UUID(str(operation_id)), f"cancel:{step['jobId']}")), + 'payload': {'jobId': step['jobId']}, + }) + try: + await self.generation.execute(cancel_cmd, source='background') + except ProjectError: + pass + return result + + async def retry(self, project_id, payload, session, *, operation_id, input_fingerprint): + return await self._accept_and_launch( + self._mutate_control, UUID(str(project_id)), payload.executionId, session, + UUID(str(operation_id)), input_fingerprint, 'retry', payload, + ) + + async def adopt(self, project_id, payload, session, *, operation_id, input_fingerprint): + return await self._accept_and_launch( + self._mutate_control, UUID(str(project_id)), payload.executionId, session, + UUID(str(operation_id)), input_fingerprint, 'adopt', payload, + ) + + async def status(self, project_id, execution_id) -> dict: + project_id, execution_id = UUID(str(project_id)), UUID(str(execution_id)) + path = self._path(project_id, execution_id) + if not path.is_file(): + raise ProjectError('找不到此流水线执行。', 404, code='pipeline_not_found') + record = await asyncio.to_thread(self._read, path) + return self._public(record) + + async def history(self, project_id, group_id=None) -> list[dict]: + records = await asyncio.to_thread(self._executions, UUID(str(project_id))) + if group_id is not None: + target = str(group_id) + records = [ + record for record in records + if record.get('scope', {}).get('groupId') == target + ] + return [self._public(record) for record in records] + + def _launch(self, record): + key = (record['projectId'], record['executionId']) + running = self.workers.get(key) + if (running is None or running.done()) and record['status'] in ACTIVE_EXECUTION_STATUSES: + worker = self.workers[key] = asyncio.create_task(self._run(record['projectId'], record['executionId'])) + worker.add_done_callback(lambda future: self._finished(key, future)) + + def _finished(self, key, future): + if self.workers.get(key) is future: + self.workers.pop(key, None) + if not future.cancelled() and (error := future.exception()) is not None: + logger.error('Pipeline %s in project %s exited unexpectedly', key[1], key[0], exc_info=error) + + async def start(self): + self.closed = False + for path in self.directory.glob('*.json'): + try: + record = await asyncio.to_thread(self._read, path) + if path != self._path(UUID(record['projectId']), UUID(record['executionId'])): + continue + self._launch(record) + except (OSError, ValueError, KeyError, ProjectError, Timeout): + logger.warning('Could not recover pipeline execution %s', path.name) + + async def close(self): + self.closed = True + await asyncio.gather(*tuple(self.accepting), return_exceptions=True) + workers = tuple(self.workers.values()) + for worker in workers: + worker.cancel() + await asyncio.gather(*workers, return_exceptions=True) + + async def _wait_job(self, project_id: UUID, job_id: str): + job = await asyncio.to_thread(self.generation.get_job, project_id, job_id) + if job and (job.status in {'queued', 'running'} or job.status in {'interrupted', 'failed'} and job.resumeAllowed): + await self.generation.recover(str(project_id), str(job_id)) + while True: + job = await asyncio.to_thread(self.generation.get_job, project_id, job_id) + if job is None: + raise ProjectError('找不到流水线步骤对应的生成任务。', 409, code='pipeline_job_missing') + worker = self.generation.jobs.get(str(job_id)) + if job.status == 'succeeded': + return job + if job.status == 'cancelled': + raise ProjectError('任务已取消。', 409, code='pipeline_job_cancelled') + if worker is None or worker.future.done(): + latest = await asyncio.to_thread(self.generation.get_job, project_id, job_id) + if latest is not None: + if latest.status == 'succeeded': + return latest + if latest.status == 'cancelled': + raise ProjectError('任务已取消。', 409, code='pipeline_job_cancelled') + if latest.errorDetails is not None: + raise ProjectError(latest.errorDetails.message, 409, code=latest.errorDetails.category) + raise ProjectError('生成任务异常中止。', 409, code='pipeline_job_failed') + await asyncio.sleep(0.05) + + async def _execute_step(self, record: dict, step: dict, semaphore: asyncio.Semaphore): + project_id = UUID(record['projectId']) + execution_id = UUID(record['executionId']) + item_id = UUID(step['itemId']) + + async with semaphore: + if step['jobId'] is None: + if step['command'] is None: + snapshot = await asyncio.to_thread(self.projects.snapshot, project_id) + item = next((c for c in snapshot.canvasItems if c.id == item_id), None) + if item is None or item.binding.role != 'generation': + raise ProjectError('节点已变更,不再是有效的生成节点。', 409, code='pipeline_step_invalid') + spec = next((s for s in snapshot.generationSpecs if s.id == item.binding.objectRef.id), None) + if spec is None: + raise ProjectError('找不到节点的生成配置。', 409, code='pipeline_step_invalid') + step_key = f"pipeline-step:{item_id}:{step['attempt']}" + command = parse_command({ + 'type': 'generation.submit', + 'projectId': str(project_id), + 'commandId': str(uuid5(execution_id, step_key)), + 'expectedVersions': [_version('generation_spec', spec), _version('canvas_item', item)], + 'payload': { + 'specId': str(spec.id), + 'expectedSpecRevision': spec.revision, + 'originItemId': str(item.id), + 'batchId': str(execution_id), + }, + }) + step['command'] = command.model_dump(mode='json') + step['status'] = 'running' + record['updatedAt'] = time_ns() + await self._persist(record) + + command = parse_command(step['command']) + replay = await asyncio.to_thread(self.projects.replay, command) + receipt = replay if replay is not None else await self.generation.execute(command, source='background') + if receipt.status == 'rejected': + issue = receipt.issues[0] + raise ProjectError(issue.message, 409, code=issue.code) + if not receipt.jobIds: + raise ProjectError('生成回执缺少任务 ID。', 409, code='pipeline_job_missing') + step['jobId'] = str(receipt.jobIds[0]) + step['status'] = 'running' + record['updatedAt'] = time_ns() + await self._persist(record) + + job = await self._wait_job(project_id, step['jobId']) + step['status'] = 'succeeded' + step['assetId'] = str(job.asset.assetId) if job.asset else None + step['issue'] = None + record['updatedAt'] = time_ns() + await self._persist(record) + + def _reload_flags(self, record: dict) -> None: + path = self._path(record['projectId'], record['executionId']) + if path.is_file(): + disk = self._read(path) + record['pauseRequested'] = bool(disk.get('pauseRequested')) + record['cancelRequested'] = bool(disk.get('cancelRequested')) + + async def _run(self, project_id_str: str, execution_id_str: str): + lock = FileLock(self._path(project_id_str, execution_id_str, 'lock'), timeout=0) + try: + lock.acquire() + except Timeout: + return + try: + record = await asyncio.to_thread(self._read, self._path(project_id_str, execution_id_str)) + if record['status'] not in ACTIVE_EXECUTION_STATUSES: + return + if can_transition_execution(record['status'], 'running'): + record['status'] = 'running' + record['updatedAt'] = time_ns() + await self._persist(record) + + steps_by_id = {step['itemId']: step for step in record['steps']} + semaphore = asyncio.Semaphore(max(1, int(record.get('maxConcurrency', 4)))) + in_flight: dict[str, asyncio.Task] = {} + failed_any = False + + while True: + await asyncio.to_thread(self._reload_flags, record) + + if record.get('cancelRequested'): + for step in record['steps']: + if step['status'] in {'pending', 'ready'}: + step['status'] = 'cancelled' + if not in_flight: + record['status'] = 'cancelled' + record['updatedAt'] = time_ns() + await self._persist(record) + return + elif not record.get('pauseRequested') and not (record.get('stopOnFailure') and failed_any): + for step in record['steps']: + item_id = step['itemId'] + if item_id in in_flight: + continue + if step['status'] == 'running' and step.get('jobId'): + in_flight[item_id] = asyncio.create_task(self._execute_step(record, step, semaphore)) + continue + if step['status'] != 'pending': + continue + if all(steps_by_id[up]['status'] in {'succeeded', 'cached'} for up in step['upstreamItemIds']): + step['status'] = 'ready' + in_flight[item_id] = asyncio.create_task(self._execute_step(record, step, semaphore)) + + if not in_flight: + if record.get('cancelRequested'): + record['status'] = 'cancelled' + elif record.get('pauseRequested') and any(step['status'] in {'pending', 'ready'} for step in record['steps']): + record['status'] = 'paused' + elif any(step['status'] == 'awaiting_input' for step in record['steps']): + record['status'] = 'awaiting_input' + elif any(step['status'] == 'failed' for step in record['steps']): + record['status'] = 'failed' + else: + record['status'] = 'succeeded' + record['updatedAt'] = time_ns() + await self._persist(record) + return + + done, _ = await asyncio.wait(in_flight.values(), return_when=asyncio.FIRST_COMPLETED) + finished_ids = [item_id for item_id, task in in_flight.items() if task in done] + for item_id in finished_ids: + task = in_flight.pop(item_id) + step = steps_by_id[item_id] + try: + await task + except ProjectError as error: + if error.code == 'pipeline_job_cancelled' or record.get('cancelRequested'): + step['status'] = 'cancelled' + else: + failed_any = True + step['status'] = 'failed' + issue = {'code': error.code, 'message': str(error), 'itemId': item_id} + step['issue'] = issue + if record.get('issue') is None: + record['issue'] = issue + _mark_downstream_skipped(steps_by_id, item_id) + if record.get('stopOnFailure'): + for pending_step in record['steps']: + if pending_step['status'] in {'pending', 'ready'}: + pending_step['status'] = 'cancelled' + record['updatedAt'] = time_ns() + await self._persist(record) + except Exception as error: + logger.exception('Pipeline %s step %s failed unexpectedly', execution_id_str, item_id) + failed_any = True + step['status'] = 'failed' + issue = {'code': 'pipeline_step_error', 'message': str(error) or '步骤执行异常。', 'itemId': item_id} + step['issue'] = issue + if record.get('issue') is None: + record['issue'] = issue + _mark_downstream_skipped(steps_by_id, item_id) + record['updatedAt'] = time_ns() + await self._persist(record) + finally: + lock.release() diff --git a/packages/core/src/opendirector/cli.py b/packages/core/src/opendirector/cli.py index b424f2dfc..87ee82833 100644 --- a/packages/core/src/opendirector/cli.py +++ b/packages/core/src/opendirector/cli.py @@ -58,6 +58,7 @@ "result": "Select a generated result for adoption.", "editor": "Create and save editable media documents.", "timeline": "Discover resources for editable timelines.", + "pipeline": "Plan, run, pause, resume, cancel and retry canvas Pipelines.", "history": "Undo or redo reversible project operations.", "creation": "Apply multiple project operations atomically.", } diff --git a/packages/core/src/opendirector/domain/creation/canvas.py b/packages/core/src/opendirector/domain/creation/canvas.py index 0ae7b7115..3e6598aa5 100644 --- a/packages/core/src/opendirector/domain/creation/canvas.py +++ b/packages/core/src/opendirector/domain/creation/canvas.py @@ -191,8 +191,8 @@ class DirectorCanvasItem(EditorCanvasItem): class GroupCanvasItem(CanvasItemBase): kind: Literal['group'] = Field(description='Business object or media type.') - autoLayout: Literal['run'] | None = Field(default=None, exclude_if=lambda value: value is None, - description='Set to run to opt this top-level group into shared Run layout. Put its plan, clips and timeline under this group ID.') + autoLayout: Literal['pipeline'] | None = Field(default=None, exclude_if=lambda value: value is None, + description='Set to pipeline to opt this top-level group into shared Pipeline layout.') binding: ContainerBinding = Field(default_factory=lambda: ContainerBinding(role='container'), description='Business object displayed by this canvas item.') diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py index 602b2b3aa..27d63ec5e 100644 --- a/packages/core/src/opendirector/domain/creation/commands.py +++ b/packages/core/src/opendirector/domain/creation/commands.py @@ -8,6 +8,7 @@ from .base import CanvasColor, Contract, Digest, GenerationKind, MediaKind, ObjectVersion, Point, Positive, Revision, digest, unique from .canvas import CanvasItem from .editors import EditorDocument +from .pipeline import PipelineCachePolicy, PipelineScope from opendirector.domain.rule_facts import PROMPT_MAX_LENGTH from .generation import GenerationSpec, Job, PromptPart, Reference @@ -113,8 +114,8 @@ class CanvasPresentationUpdate(Contract): color: CanvasColor | None = Field(default=None, exclude_if=lambda value: value is None, description="Group background color in #RRGGBB format, or '' for the default.") parentId: UUID | None = Field(default=None, description='Parent canvas group ID, or null for the root.') # Presence of parentId distinguishes retaining a group from ungrouping. - autoLayout: Literal['run', 'free'] | None = Field(default=None, exclude_if=lambda value: value is None, - description='Enable Run layout for a top-level group, or use free to return it to manual layout.') + autoLayout: Literal['pipeline', 'free'] | None = Field(default=None, exclude_if=lambda value: value is None, + description='Enable Pipeline layout for a top-level group, or use free to return it to manual layout.') class CanvasHide(Contract): @@ -134,6 +135,33 @@ class CanvasApplyEdit(Contract): editorId: UUID = Field(description='Editable document ID.') +class PipelineStart(Contract): + scope: PipelineScope = Field(description='Target canvas scope to compile and execute.') + cachePolicy: PipelineCachePolicy = Field(default='reuse', description='Cache reuse strategy for unchanged nodes.') + forceFromItemId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Optional step ID from which to force re-execution when cachePolicy is force_from_node.') + stopOnFailure: bool = Field(default=False, description='Whether to cancel remaining pending steps after the first failure.') + maxConcurrency: Annotated[int, Field(strict=True, ge=1, le=16)] = Field(default=4, + description='Maximum number of independent pipeline steps executed concurrently.') + + +class PipelineControl(Contract): + executionId: UUID = Field(description='Target Pipeline execution ID.') + + +class PipelineRetry(Contract): + executionId: UUID = Field(description='Target settled Pipeline execution ID to retry.') + stopOnFailure: bool = Field(default=False, description='Whether to cancel remaining pending steps after the first failure.') + maxConcurrency: Annotated[int, Field(strict=True, ge=1, le=16)] = Field(default=4, + description='Maximum number of independent pipeline steps executed concurrently.') + + +class PipelineAdopt(Contract): + executionId: UUID = Field(description='Target Pipeline execution ID awaiting candidate adoption.') + itemId: UUID = Field(description='Canvas item ID whose candidate is being adopted.') + jobId: UUID = Field(description='Succeeded candidate job ID to adopt.') + + class TimelinePublishRender(Contract): itemId: UUID = Field(description='Canvas item ID.') editorId: UUID = Field(description='Editable document ID.') @@ -341,12 +369,18 @@ def required_versions(self) -> list[tuple[str, UUID]]: ('CanvasShowCommand', 'canvas.show', CanvasShow, 'Create or restore a canvas display item.'), ('CanvasMoveCommand', 'canvas.move', CanvasMove, 'Move one or more canvas items.'), ('CanvasUpdateCommand', 'canvas.update', CanvasPresentationUpdate, 'Update canvas presentation, grouping or lock state.'), - ('CanvasLayoutRunsCommand', 'canvas.layoutRuns', EmptyPayload, 'Arrange the current canvas Run groups and their children without moving locked groups.'), + ('CanvasLayoutPipelinesCommand', 'canvas.layoutPipelines', EmptyPayload, 'Arrange the current canvas Pipeline groups and their children without moving locked groups.'), ('CanvasHideCommand', 'canvas.hide', CanvasHide, 'Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas.'), ('CanvasMaterializeCommand', 'canvas.materialize', CanvasMaterialize, 'Bind an asset to an empty or material canvas item.'), ('CanvasApplyEditCommand', 'canvas.applyEdit', CanvasApplyEdit, 'Apply an editor result to a canvas item.'), ('CanvasPublishMediaCommand', 'canvas.publishMedia', CanvasPublishMedia, 'Publish edited media outputs with their editor snapshot.'), ('TimelinePublishRenderCommand', 'timeline.publishRender', TimelinePublishRender, 'Publish a rendered timeline result.'), + ('PipelineStartCommand', 'pipeline.start', PipelineStart, 'Compile and start a durable concurrent Pipeline execution in the background.'), + ('PipelinePauseCommand', 'pipeline.pause', PipelineControl, 'Pause an active Pipeline execution after its in-flight steps finish.'), + ('PipelineResumeCommand', 'pipeline.resume', PipelineControl, 'Resume a paused Pipeline execution.'), + ('PipelineCancelCommand', 'pipeline.cancel', PipelineControl, 'Cancel pending steps and request cancellation of running steps in a Pipeline execution.'), + ('PipelineRetryCommand', 'pipeline.retry', PipelineRetry, 'Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps.'), + ('PipelineAdoptCommand', 'pipeline.adopt', PipelineAdopt, 'Adopt a candidate job for an awaiting Pipeline step and continue downstream execution.'), ('NodeVersionApplyCommand', 'canvas.applyVersion', NodeVersionApply, 'Apply a historical asset version and its reference policy to a canvas item.'), ('CanvasConfigureCommand', 'canvas.configure', CanvasConfigure, 'Bind a generation configuration to a canvas item.'), ('CanvasEditorAttachCommand', 'canvas.attachEditor', CanvasEditorAttach, 'Attach an editor document to a canvas item.'), @@ -376,7 +410,7 @@ def required_versions(self) -> list[tuple[str, UUID]]: COMMAND_MODELS[_type] = _model globals()[_name] = _model -_BATCH_TYPES = {'canvas.show', 'canvas.move', 'canvas.update', 'canvas.layoutRuns', 'canvas.hide', 'canvas.materialize', 'canvas.applyEdit', +_BATCH_TYPES = {'canvas.show', 'canvas.move', 'canvas.update', 'canvas.layoutPipelines', 'canvas.hide', 'canvas.materialize', 'canvas.applyEdit', 'canvas.configure', 'canvas.attachEditor', 'canvas.detachEditor', 'generationSpec.create', 'generationSpec.update', 'reference.add', 'reference.update', 'reference.restore', 'reference.remove', 'editor.create', 'editor.save', 'result.select', 'generationSpec.setPrompt'} _OPERATIONS = tuple(create_model(name + 'Operation', __base__=Contract, @@ -448,6 +482,8 @@ class CommandReceipt(Contract): jobIds: tuple[UUID, ...] = Field(default=(), description='Generation jobs associated with this operation.') issues: tuple[ContractIssue, ...] = Field(default=(), description='Validation or execution issues.') eventCursor: int | None = Field(default=None, strict=True, ge=0, description='Latest committed project event cursor.') + pipelineExecutionId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Durable execution created or updated by a Pipeline command.') @model_validator(mode='after') def outcome(self): @@ -513,8 +549,28 @@ class AssetPreviewQuery(QueryBase): objectId: UUID = Field(description='Asset ID.') +class PipelinePlanQuery(QueryBase): + type: Literal['pipeline.plan'] = Field(description='Compile a Pipeline DAG read-only and preview cache hits, dependencies, and issues.') + scope: PipelineScope = Field(description='Target canvas scope to compile.') + cachePolicy: PipelineCachePolicy = Field(default='reuse', description='Cache reuse strategy to preview.') + forceFromItemId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Optional step ID from which to force re-execution when cachePolicy is force_from_node.') + + +class PipelineExecutionQuery(QueryBase): + type: Literal['pipeline.execution.get'] = Field(description='Read a durable Pipeline execution.') + objectId: UUID = Field(description='Pipeline execution ID returned by pipeline.start.') + + +class PipelineExecutionsQuery(QueryBase): + type: Literal['pipeline.executions.list'] = Field(description='List Pipeline execution history for the project or one group.') + groupId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Optional canvas group ID filter.') + + Query = Annotated[ProjectQuery | ObjectQuery | VersionsQuery | AssetSearchQuery | AssetUsageQuery | - CanvasStatusQuery | JobStatusQuery | AssetPreviewQuery, Field(discriminator='type')] + CanvasStatusQuery | JobStatusQuery | AssetPreviewQuery | PipelinePlanQuery | + PipelineExecutionQuery | PipelineExecutionsQuery, Field(discriminator='type')] class ChangedObject(Contract): diff --git a/packages/core/src/opendirector/domain/creation/pipeline.py b/packages/core/src/opendirector/domain/creation/pipeline.py new file mode 100644 index 000000000..594c1fecd --- /dev/null +++ b/packages/core/src/opendirector/domain/creation/pipeline.py @@ -0,0 +1,510 @@ +"""Typed domain contracts, state machine, and deterministic DAG compiler for Pipelines.""" + +from collections import defaultdict +import hashlib +import json +from typing import Annotated, Literal +from uuid import UUID + +from pydantic import Field, model_validator + +from .base import Contract, Digest, ObjectVersion, unique +from .canvas import CanvasItem, GenerationBinding, GroupCanvasItem +from .generation import FollowingReference, GenerationSpec, Job, PinnedReference +from .project import ProjectSnapshot + + +PipelineCachePolicy = Literal['reuse', 'force_from_node', 'force_all'] +PipelineExecutionStatus = Literal[ + 'queued', 'running', 'pausing', 'paused', 'awaiting_input', 'succeeded', 'failed', 'cancelled', +] +PipelineStepStatus = Literal[ + 'pending', 'cached', 'ready', 'running', 'awaiting_input', 'succeeded', 'failed', 'skipped', 'cancelled', +] + +ACTIVE_EXECUTION_STATUSES = frozenset({'queued', 'running', 'pausing'}) +TERMINAL_EXECUTION_STATUSES = frozenset({'succeeded', 'failed', 'cancelled'}) +SETTLED_EXECUTION_STATUSES = frozenset({'paused', 'awaiting_input', 'succeeded', 'failed', 'cancelled'}) + +ALLOWED_EXECUTION_TRANSITIONS: dict[str, frozenset[str]] = { + 'queued': frozenset({'running', 'pausing', 'paused', 'cancelled', 'failed', 'succeeded'}), + 'running': frozenset({'pausing', 'paused', 'awaiting_input', 'succeeded', 'failed', 'cancelled'}), + 'pausing': frozenset({'paused', 'succeeded', 'failed', 'cancelled'}), + 'paused': frozenset({'queued', 'running', 'cancelled'}), + 'awaiting_input': frozenset({'queued', 'running', 'cancelled', 'failed'}), + 'succeeded': frozenset(), + 'failed': frozenset(), + 'cancelled': frozenset(), +} + + +def can_transition_execution(current: str, target: str) -> bool: + return target == current or target in ALLOWED_EXECUTION_TRANSITIONS.get(current, frozenset()) + + +class GroupPipelineScope(Contract): + kind: Literal['group'] = Field(description='Run all executable nodes inside a canvas group.') + groupId: UUID = Field(description='Target canvas group ID.') + + +class SelectionPipelineScope(Contract): + kind: Literal['selection'] = Field(description='Run an explicit set of canvas nodes.') + itemIds: tuple[UUID, ...] = Field(min_length=1, max_length=200, description='Selected canvas item IDs.') + + @model_validator(mode='after') + def distinct_items(self): + unique(self.itemIds, 'pipeline selection item IDs') + return self + + +class FromNodePipelineScope(Contract): + kind: Literal['from_node'] = Field(description='Run from one node through its downstream dependents.') + itemId: UUID = Field(description='Starting canvas item ID.') + groupId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Optional group boundary limiting downstream traversal.') + + +PipelineScope = Annotated[ + GroupPipelineScope | SelectionPipelineScope | FromNodePipelineScope, + Field(discriminator='kind'), +] + + +class PipelineStepIssue(Contract): + code: str = Field(min_length=1, max_length=100, description='Stable machine-readable issue code.') + message: str = Field(min_length=1, max_length=1000, description='Human-readable issue summary.') + itemId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Canvas item associated with this issue, if applicable.') + + +class CompiledPipelineStep(Contract): + itemId: UUID = Field(description='Canvas item ID for this execution step.') + kind: Literal['generation', 'assembly'] = Field(description='Execution step category.') + upstreamItemIds: tuple[UUID, ...] = Field(default=(), description='Direct upstream step item IDs in this pipeline.') + inputFingerprint: Digest = Field(description='Deterministic fingerprint of this step inputs and upstream chain.') + cached: bool = Field(default=False, description='Whether an existing adopted result satisfies this step without re-running.') + cacheCandidateJobId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Existing succeeded job ID reused when cached is true.') + cacheCandidateAssetId: UUID | None = Field(default=None, exclude_if=lambda value: value is None, + description='Existing adopted asset ID reused when cached is true.') + expectedVersions: tuple[ObjectVersion, ...] = Field(default=(), description='Optimistic concurrency versions captured at compile time.') + + +class CompiledPipelineGraph(Contract): + projectId: UUID = Field(description='Owning project ID.') + scope: PipelineScope = Field(description='Requested execution scope.') + cachePolicy: PipelineCachePolicy = Field(description='Cache reuse policy applied during compilation.') + steps: tuple[CompiledPipelineStep, ...] = Field(default=(), description='Compiled pipeline steps in topological order.') + topologicalOrder: tuple[UUID, ...] = Field(default=(), description='Deterministic topological execution order of step item IDs.') + issues: tuple[PipelineStepIssue, ...] = Field(default=(), description='Pre-flight validation or cycle issues.') + plannedNewJobs: int = Field(default=0, strict=True, ge=0, description='Number of non-cached steps that will submit new jobs.') + + +def _sha256_json(payload) -> str: + encoded = json.dumps(payload, ensure_ascii=False, sort_keys=True, separators=(',', ':'), allow_nan=False).encode() + return hashlib.sha256(encoded).hexdigest() + + +def _group_descendants(items: dict[UUID, CanvasItem], group_id: UUID) -> list[CanvasItem]: + children: dict[UUID | None, list[CanvasItem]] = defaultdict(list) + for item in items.values(): + if item.visible: + children[item.parentId].append(item) + result: list[CanvasItem] = [] + stack = list(reversed(children.get(group_id, []))) + seen: set[UUID] = set() + while stack: + current = stack.pop() + if current.id in seen: + continue + seen.add(current.id) + result.append(current) + if isinstance(current, GroupCanvasItem): + stack.extend(reversed(children.get(current.id, []))) + return result + + +def _is_generation_step(item: CanvasItem, specs: dict[UUID, GenerationSpec], active_target_specs: set[UUID]) -> bool: + if not isinstance(item.binding, GenerationBinding): + return False + spec = specs.get(item.binding.objectRef.id) + if spec is None or spec.modelConfigId is None: + return False + has_prompt = bool(spec.prompt.strip() or spec.promptContent) + if spec.kind == 'text': + return has_prompt + return has_prompt or spec.id in active_target_specs + + +def _current_item_asset_fingerprint(snapshot: ProjectSnapshot, item: CanvasItem) -> str | None: + assets = {asset.id: asset for asset in snapshot.assets} + binding = item.binding + if getattr(binding, 'materialOverride', None) is not None: + asset = assets.get(binding.materialOverride.assetId) + return asset.fingerprint if asset else None + if binding.role == 'material': + asset = assets.get(binding.asset.assetId) + return asset.fingerprint if asset else None + if isinstance(binding, GenerationBinding): + spec = next((candidate for candidate in snapshot.generationSpecs if candidate.id == binding.objectRef.id), None) + if spec and spec.currentResultId: + result = next((candidate for candidate in snapshot.results if candidate.id == spec.currentResultId), None) + if result: + asset = assets.get(result.asset.assetId) + return asset.fingerprint if asset else None + return None + + +def _build_reference_graph(snapshot: ProjectSnapshot, items: dict[UUID, CanvasItem], specs: dict[UUID, GenerationSpec]): + """Map each canvas item ID to upstream canvas item IDs referenced by its spec or editor.""" + spec_to_items: dict[UUID, list[UUID]] = defaultdict(list) + for item in items.values(): + if isinstance(item.binding, GenerationBinding): + spec_to_items[item.binding.objectRef.id].append(item.id) + + sources_by_item: dict[UUID, list[UUID]] = defaultdict(list) + for ref in snapshot.references: + if not ref.active or not isinstance(ref, FollowingReference): + continue + source_id = ref.source.id + if source_id not in items: + continue + for target_item_id in spec_to_items.get(ref.targetSpecId, ()): + if source_id != target_item_id and source_id not in sources_by_item[target_item_id]: + sources_by_item[target_item_id].append(source_id) + return sources_by_item + + +def _downstream_closure(start_id: UUID, sources_by_item: dict[UUID, list[UUID]], allowed: set[UUID]) -> set[UUID]: + dependents: dict[UUID, list[UUID]] = defaultdict(list) + for target_id, sources in sources_by_item.items(): + if target_id not in allowed: + continue + for source_id in sources: + if source_id in allowed: + dependents[source_id].append(target_id) + visited = {start_id} + queue = [start_id] + while queue: + current = queue.pop(0) + for nxt in dependents.get(current, ()): + if nxt not in visited: + visited.add(nxt) + queue.append(nxt) + return visited + + +def _nearest_upstream_steps(step_ids: set[UUID], sources_by_item: dict[UUID, list[UUID]]) -> dict[UUID, tuple[UUID, ...]]: + upstream: dict[UUID, tuple[UUID, ...]] = {} + for step_id in step_ids: + found: list[UUID] = [] + seen = {step_id} + pending = list(sources_by_item.get(step_id, ())) + while pending: + node_id = pending.pop(0) + if node_id in seen: + continue + seen.add(node_id) + if node_id in step_ids: + found.append(node_id) + else: + pending.extend(sources_by_item.get(node_id, ())) + upstream[step_id] = tuple(found) + return upstream + + +def _topological_sort(step_ids: list[UUID], upstream: dict[UUID, tuple[UUID, ...]]) -> tuple[list[UUID], list[UUID]]: + """Return (topological_order, cycle_path). When a cycle exists, cycle_path is non-empty.""" + visiting: list[UUID] = [] + visiting_set: set[UUID] = set() + visited: set[UUID] = set() + order: list[UUID] = [] + + def dfs(node_id: UUID) -> list[UUID]: + if node_id in visited: + return [] + if node_id in visiting_set: + start = visiting.index(node_id) + return visiting[start:] + [node_id] + visiting.append(node_id) + visiting_set.add(node_id) + for dep in upstream.get(node_id, ()): + cycle = dfs(dep) + if cycle: + return cycle + visiting.pop() + visiting_set.remove(node_id) + visited.add(node_id) + order.append(node_id) + return [] + + for step_id in step_ids: + cycle = dfs(step_id) + if cycle: + return [], cycle + return order, [] + + +def _step_spec_signature(spec: GenerationSpec) -> dict: + return spec.model_dump(mode='json', exclude={'revision', 'currentResultId'}) + + +def _active_references_signature( + snapshot: ProjectSnapshot, + spec_id: UUID, + items: dict[UUID, CanvasItem], + upstream_fingerprints: dict[UUID, str], +) -> list[dict]: + assets = {asset.id: asset for asset in snapshot.assets} + refs = sorted( + (ref for ref in snapshot.references if ref.active and ref.targetSpecId == spec_id), + key=lambda ref: (ref.order, str(ref.id)), + ) + signature = [] + for ref in refs: + if isinstance(ref, PinnedReference): + asset = assets.get(ref.source.assetId) + signature.append({ + 'id': str(ref.id), + 'mode': 'pinned', + 'role': ref.role, + 'order': ref.order, + 'assetFingerprint': asset.fingerprint if asset else ref.source.fingerprint, + }) + elif isinstance(ref, FollowingReference): + source_id = ref.source.id + if source_id in upstream_fingerprints: + source_fp = f'step:{upstream_fingerprints[source_id]}' + elif source_id in items: + source_fp = f'asset:{_current_item_asset_fingerprint(snapshot, items[source_id]) or "none"}' + else: + source_fp = 'missing' + signature.append({ + 'id': str(ref.id), + 'mode': 'follow', + 'role': ref.role, + 'order': ref.order, + 'sourceId': str(source_id), + 'sourceFingerprint': source_fp, + }) + return signature + + +def _matching_cached_job( + snapshot: ProjectSnapshot, + item: CanvasItem, + spec: GenerationSpec, + items: dict[UUID, CanvasItem], + model_fingerprint: str | None, +) -> tuple[Job, UUID] | None: + """Return (job, asset_id) when the node's adopted result matches current inputs.""" + if not isinstance(item.binding, GenerationBinding) or item.binding.materialOverride is not None: + return None + if spec.currentResultId is None: + return None + result = next((candidate for candidate in snapshot.results if candidate.id == spec.currentResultId), None) + if result is None: + return None + assets = {asset.id: asset for asset in snapshot.assets} + if result.asset.assetId not in assets: + return None + job = next((candidate for candidate in snapshot.jobs if candidate.id == result.jobId), None) + if job is None or job.status != 'succeeded' or not job.adopted or job.asset is None: + return None + if job.asset.assetId != result.asset.assetId: + return None + if _step_spec_signature(job.inputSnapshot.spec) != _step_spec_signature(spec): + return None + if job.inputSnapshot.model.modelConfigId != spec.modelConfigId: + return None + if model_fingerprint is not None and _sha256_json(job.inputSnapshot.model.model_dump(mode='json')) == '': + return None + + active_refs = sorted( + (ref for ref in snapshot.references if ref.active and ref.targetSpecId == spec.id), + key=lambda ref: (ref.order, str(ref.id)), + ) + job_refs_by_id: dict[UUID, list] = defaultdict(list) + for resolved in job.inputSnapshot.references: + job_refs_by_id[resolved.referenceId].append(resolved) + + if {ref.id for ref in active_refs} != set(job_refs_by_id): + return None + + for ref in active_refs: + resolved_list = job_refs_by_id[ref.id] + if isinstance(ref, PinnedReference): + if len(resolved_list) != 1 or resolved_list[0].asset.fingerprint != ref.source.fingerprint: + return None + elif isinstance(ref, FollowingReference): + source_item = items.get(ref.source.id) + if source_item is None: + return None + current_fp = _current_item_asset_fingerprint(snapshot, source_item) + if current_fp is None: + return None + if len(resolved_list) != 1 or resolved_list[0].asset.fingerprint != current_fp: + return None + return job, result.asset.assetId + + +def compile_pipeline( + snapshot: ProjectSnapshot, + scope: PipelineScope, + *, + cache_policy: PipelineCachePolicy = 'reuse', + force_from_item_id: UUID | None = None, + model_fingerprints: dict[UUID, str] | None = None, +) -> CompiledPipelineGraph: + """Compile a deterministic, validated DAG from a ProjectSnapshot.""" + items = {item.id: item for item in snapshot.canvasItems} + specs = {spec.id: spec for spec in snapshot.generationSpecs} + issues: list[PipelineStepIssue] = [] + + sources_by_item = _build_reference_graph(snapshot, items, specs) + active_target_specs = {ref.targetSpecId for ref in snapshot.references if ref.active} + + candidate_items: list[CanvasItem] = [] + if scope.kind == 'group': + group = items.get(scope.groupId) + if not isinstance(group, GroupCanvasItem) or not group.visible: + issues.append(PipelineStepIssue( + code='pipeline_scope_not_found', + message='找不到目标分组或分组已隐藏。', + itemId=scope.groupId, + )) + return CompiledPipelineGraph( + projectId=snapshot.project.id, scope=scope, cachePolicy=cache_policy, + issues=tuple(issues), + ) + candidate_items = _group_descendants(items, scope.groupId) + elif scope.kind == 'selection': + for item_id in scope.itemIds: + item = items.get(item_id) + if item is None or not item.visible: + issues.append(PipelineStepIssue( + code='pipeline_scope_not_found', + message='所选节点不存在或已隐藏。', + itemId=item_id, + )) + else: + candidate_items.append(item) + if issues: + return CompiledPipelineGraph( + projectId=snapshot.project.id, scope=scope, cachePolicy=cache_policy, + issues=tuple(issues), + ) + elif scope.kind == 'from_node': + root = items.get(scope.itemId) + if root is None or not root.visible: + issues.append(PipelineStepIssue( + code='pipeline_scope_not_found', + message='起点节点不存在或已隐藏。', + itemId=scope.itemId, + )) + return CompiledPipelineGraph( + projectId=snapshot.project.id, scope=scope, cachePolicy=cache_policy, + issues=tuple(issues), + ) + if scope.groupId is not None: + boundary_items = _group_descendants(items, scope.groupId) + allowed = {item.id for item in boundary_items} | {scope.itemId} + else: + allowed = {item.id for item in items.values() if item.visible} + closure = _downstream_closure(scope.itemId, sources_by_item, allowed) + candidate_items = [item for item in items.values() if item.id in closure] + + step_items = [item for item in candidate_items if _is_generation_step(item, specs, active_target_specs)] + if not step_items: + issues.append(PipelineStepIssue( + code='pipeline_no_runnable_steps', + message='当前范围内没有可运行的生成节点,请先配置模型并填写提示词或连接参考。', + itemId=scope.groupId if scope.kind == 'group' else (scope.itemId if scope.kind == 'from_node' else None), + )) + return CompiledPipelineGraph( + projectId=snapshot.project.id, scope=scope, cachePolicy=cache_policy, + issues=tuple(issues), + ) + + step_id_list = [item.id for item in step_items] + step_id_set = set(step_id_list) + upstream = _nearest_upstream_steps(step_id_set, sources_by_item) + + topo_order, cycle = _topological_sort(step_id_list, upstream) + if cycle: + cycle_label = ', '.join(str(node_id) for node_id in cycle) + issues.append(PipelineStepIssue( + code='pipeline_cycle', + message=f'流水线存在循环依赖:{cycle_label}', + itemId=cycle[0], + )) + return CompiledPipelineGraph( + projectId=snapshot.project.id, scope=scope, cachePolicy=cache_policy, + issues=tuple(issues), + ) + + forced_ids: set[UUID] = set() + if cache_policy == 'force_all': + forced_ids = set(step_id_set) + elif cache_policy == 'force_from_node' and force_from_item_id is not None and force_from_item_id in step_id_set: + forced_ids = _downstream_closure(force_from_item_id, {k: list(v) for k, v in upstream.items()}, step_id_set) + elif scope.kind == 'from_node': + forced_ids = set(step_id_set) + + step_fingerprints: dict[UUID, str] = {} + step_cached: dict[UUID, bool] = {} + compiled_steps: list[CompiledPipelineStep] = [] + + for item_id in topo_order: + item = items[item_id] + spec = specs[item.binding.objectRef.id] + deps = upstream[item_id] + model_fp = model_fingerprints.get(spec.modelConfigId) if (model_fingerprints and spec.modelConfigId) else None + ref_sig = _active_references_signature(snapshot, spec.id, items, step_fingerprints) + fp = _sha256_json({ + 'itemId': str(item_id), + 'spec': _step_spec_signature(spec), + 'modelFingerprint': model_fp, + 'references': ref_sig, + }) + step_fingerprints[item_id] = fp + + all_upstreams_cached = all(step_cached.get(dep, False) for dep in deps) + cached_match = None + if cache_policy != 'force_all' and item_id not in forced_ids and all_upstreams_cached: + cached_match = _matching_cached_job(snapshot, item, spec, items, model_fp) + + is_cached = cached_match is not None + step_cached[item_id] = is_cached + + if not is_cached and item.locked: + issues.append(PipelineStepIssue( + code='pipeline_step_locked', + message='流水线包含已锁定的待运行节点,请先解锁后再运行。', + itemId=item_id, + )) + + compiled_steps.append(CompiledPipelineStep( + itemId=item_id, + kind='generation', + upstreamItemIds=deps, + inputFingerprint=fp, + cached=is_cached, + cacheCandidateJobId=cached_match[0].id if cached_match else None, + cacheCandidateAssetId=cached_match[1] if cached_match else None, + expectedVersions=( + ObjectVersion(objectType='generation_spec', id=spec.id, revision=spec.revision), + ObjectVersion(objectType='canvas_item', id=item.id, revision=item.revision), + ), + )) + + planned_new = sum(1 for step in compiled_steps if not step.cached) + return CompiledPipelineGraph( + projectId=snapshot.project.id, + scope=scope, + cachePolicy=cache_policy, + steps=tuple(compiled_steps), + topologicalOrder=tuple(topo_order), + issues=tuple(issues), + plannedNewJobs=planned_new, + ) diff --git a/packages/core/src/opendirector/domain/creation/project.py b/packages/core/src/opendirector/domain/creation/project.py index 7f6f5e80c..925062ab4 100644 --- a/packages/core/src/opendirector/domain/creation/project.py +++ b/packages/core/src/opendirector/domain/creation/project.py @@ -87,8 +87,8 @@ def project_relations(self): parents = {} for item in self.canvasItems: if item.parentId: - if item.kind == 'group' and item.autoLayout == 'run': - raise ValueError('Run layout requires a top-level group') + if item.kind == 'group' and item.autoLayout == 'pipeline': + raise ValueError('Pipeline layout requires a top-level group') if item.parentId not in items or items[item.parentId].kind != 'group': raise ValueError('Parent must be a group in the same project') parents[item.id] = [item.parentId] diff --git a/packages/core/src/opendirector/domain/creation/run_layout.py b/packages/core/src/opendirector/domain/creation/run_layout.py index 7fca8d2f0..d9b23e0f2 100644 --- a/packages/core/src/opendirector/domain/creation/run_layout.py +++ b/packages/core/src/opendirector/domain/creation/run_layout.py @@ -118,12 +118,12 @@ def layout_runs(data: dict): runs, fixed, locked_runs = [], [], [] for item in children[None]: - if item['kind'] == 'group' and item.get('autoLayout') == 'run' and not item['locked']: + if item['kind'] == 'group' and item.get('autoLayout') == 'pipeline' and not item['locked']: _layout_contents(item, children) runs.append((item, _footprint(item, children))) else: bounds = _positioned(item, _footprint(item, children)) - if item.get('autoLayout') == 'run': + if item.get('autoLayout') == 'pipeline': for other, other_bounds in locked_runs: if bounds.overlaps(other_bounds, 0): raise ContractError('canvas_run_layout_conflict', '已锁定的 Run 区域重叠,请解锁其中一个后重试。', @@ -167,7 +167,7 @@ def _validate_membership(canvas, managed, original): def reflow_runs(before: ProjectSnapshot, edited: ProjectSnapshot, *, force=False) -> tuple[ProjectSnapshot, set[UUID]]: - managed = {str(item.id) for item in edited.canvasItems if item.kind == 'group' and item.autoLayout == 'run'} + managed = {str(item.id) for item in edited.canvasItems if item.kind == 'group' and item.autoLayout == 'pipeline'} if not managed: return edited, set() canvas = [item.model_dump(mode='json') for item in edited.canvasItems] diff --git a/packages/core/src/opendirector/infrastructure/creation_publication.py b/packages/core/src/opendirector/infrastructure/creation_publication.py index 205276d81..465d42288 100644 --- a/packages/core/src/opendirector/infrastructure/creation_publication.py +++ b/packages/core/src/opendirector/infrastructure/creation_publication.py @@ -75,7 +75,7 @@ def commit(self, command: Command, raise ContractError('invalid_input', 'Only the rename command can rename a project') changed = object_changes(before, snapshot, command) operations = command.payload.operations if command.type == 'creation.batch' else (command,) - organize_runs = any(operation.type == 'canvas.layoutRuns' for operation in operations) + organize_runs = any(operation.type == 'canvas.layoutPipelines' for operation in operations) if organize_runs or any(item['version'].objectType == 'canvas_item' for item in changed): # All service writes passed their original CAS above. Only the # geometry derived from the locked current snapshot is exempt. diff --git a/scripts/generate_contracts.py b/scripts/generate_contracts.py index 20426da25..f017aa414 100644 --- a/scripts/generate_contracts.py +++ b/scripts/generate_contracts.py @@ -17,7 +17,7 @@ from opendirector.domain.creation.schema import ALIASES, CreationContracts from opendirector.domain.rule_facts import typescript_module -MODULES = ('base', 'assets', 'models', 'generation', 'editors', 'canvas', 'project', 'commands', 'timeline_packages', 'schema') +MODULES = ('base', 'assets', 'models', 'generation', 'editors', 'canvas', 'pipeline', 'project', 'commands', 'timeline_packages', 'schema') def models(): diff --git a/src/canvas/CanvasActionsContext.ts b/src/canvas/CanvasActionsContext.ts index 8832d756a..67990f1aa 100644 --- a/src/canvas/CanvasActionsContext.ts +++ b/src/canvas/CanvasActionsContext.ts @@ -3,6 +3,7 @@ import type { CanvasNode, CanvasNodeData } from "./model"; import type { NodeGenerationActivity } from "./generationActivity"; import type { TextSelections } from "./TextNodeEditor"; import type { SubjectMediaSlot } from "./subjectMedia.ts"; +import type { PipelineStep } from "./workspace/useWorkspaceGeneration.ts"; export interface CanvasActions { select: (id: string, event: MouseEvent) => void; @@ -35,6 +36,7 @@ export interface CanvasActions { isLocked: (id: string) => boolean; getNode: (id: string) => CanvasNode | undefined; generationActivity: (id: string) => NodeGenerationActivity | undefined; + pipelineStep?: (id: string) => PipelineStep | undefined; isArriving: (id: string) => boolean; referenceTargetState?: (id: string) => "valid" | "invalid" | null; removeReference?: (id: string) => void; diff --git a/src/canvas/NodeFrame.tsx b/src/canvas/NodeFrame.tsx index 7a219375f..e0316b93d 100644 --- a/src/canvas/NodeFrame.tsx +++ b/src/canvas/NodeFrame.tsx @@ -4,8 +4,22 @@ import type { CanvasNodeKind } from "./model"; import { CanvasActionsContext } from "./CanvasActionsContext"; import { CanvasIcon } from "./CanvasIcon"; import { useI18n } from "../i18n/I18nProvider.tsx"; +import type { MessageKey } from "../i18n/messages"; +import type { PipelineStepStatus } from "./workspace/useWorkspaceGeneration.ts"; import { displayNodeTitle } from "./nodeTitle.ts"; +const PIPELINE_STEP_LABELS: Record = { + pending: "canvas.pipeline.step.pending", + cached: "canvas.pipeline.step.cached", + ready: "canvas.pipeline.step.ready", + running: "canvas.pipeline.step.running", + awaiting_input: "canvas.pipeline.step.awaitingInput", + succeeded: "canvas.pipeline.step.succeeded", + failed: "canvas.pipeline.step.failed", + skipped: "canvas.pipeline.step.skipped", + cancelled: "canvas.pipeline.step.cancelled", +}; + /** Shared node chrome and title editing; each node renderer owns only its contents. */ export function NodeFrame({ id, @@ -29,6 +43,7 @@ export function NodeFrame({ const actions = useContext(CanvasActionsContext); const locked = Boolean(actions?.isLocked(id)); const target = actions?.referenceTargetState?.(id); + const pipelineStep = actions?.pipelineStep?.(id); const editing = actions?.nameEdit?.id === id; const input = useRef(null); const finished = useRef(false); @@ -126,6 +141,14 @@ export function NodeFrame({ {shownTitle} )} + {pipelineStep && ( + + {t(PIPELINE_STEP_LABELS[pipelineStep.status])} + + )} {locked && } {children} diff --git a/src/canvas/NodeSelectionToolbar.tsx b/src/canvas/NodeSelectionToolbar.tsx index e7b4859f9..82bf170e1 100644 --- a/src/canvas/NodeSelectionToolbar.tsx +++ b/src/canvas/NodeSelectionToolbar.tsx @@ -47,9 +47,16 @@ export interface NodeSelectionToolbarProps { onRename?: () => void; onDuplicate?: () => void; onDelete?: () => void; - /** Group actions: run the members' generation workflow, ungroup, arrange, recolor. */ + /** Group actions: run the members' pipeline, ungroup, arrange, recolor. */ onRunWorkflow?: () => void; workflowRunning?: boolean; + pipelinePaused?: boolean; + onPauseWorkflow?: () => void; + onForceRerunPipeline?: () => void; + onCancelPipeline?: () => void; + onRetryPipeline?: () => void; + onOpenPipelineDrawer?: () => void; + pipelineBusy?: boolean; onUngroup?: () => void; onLayout?: (layout: GroupLayout) => void; onGroupColor?: (color: string) => void; @@ -71,6 +78,7 @@ type Action = { id: string; label: string; icon: string; + tooltip?: string; /** Solid tool glyph; tool actions outweigh the line icons used for chrome. */ glyph?: ToolGlyphName; run?: () => void; @@ -147,6 +155,13 @@ export function NodeSelectionToolbar({ onDelete, onRunWorkflow, workflowRunning = false, + pipelinePaused = false, + onPauseWorkflow, + onForceRerunPipeline, + onCancelPipeline, + onRetryPipeline, + onOpenPipelineDrawer, + pipelineBusy = false, onUngroup, onLayout, onGroupColor, @@ -158,7 +173,8 @@ export function NodeSelectionToolbar({ const hasMedia = Boolean(node.data.src) && node.data.assetState !== "missing"; useEffect(() => setOpenMenu(null), [node.id, node.type, locked, hasMedia]); const mediaKind = ["image", "video", "audio", "file"].includes(node.type); - if (mediaKind && !hasMedia) return null; + const hasNodeActions = !mediaKind || hasMedia; + if (!hasNodeActions) return null; const editing: Action[] = []; if (node.type === "timeline" && onOutput) { @@ -219,13 +235,59 @@ export function NodeSelectionToolbar({ }); }; if (node.type === "group") { - if (onRunWorkflow) + if (onRunWorkflow) { + const label: MessageKey = workflowRunning + ? "canvas.selection.group.running" + : pipelinePaused + ? "canvas.pipeline.action.resume" + : "canvas.pipeline.action.run"; editing.push({ id: "run-workflow", - label: workflowRunning ? t("canvas.selection.group.running") : t("canvas.selection.group.run"), + label: t(label), icon: "play", run: onRunWorkflow, - disabled: workflowRunning || locked, + disabled: Boolean(workflowRunning || pipelineBusy || locked), + }); + } + if (onPauseWorkflow && !pipelinePaused) + editing.push({ + id: "pause-workflow", + label: t("canvas.pipeline.action.pause"), + icon: "pause", + run: onPauseWorkflow, + disabled: Boolean(pipelineBusy), + }); + if (onCancelPipeline) + editing.push({ + id: "cancel-pipeline", + label: t("canvas.pipeline.action.cancel"), + icon: "close", + run: onCancelPipeline, + disabled: Boolean(pipelineBusy), + destructive: true, + }); + if (onRetryPipeline) + editing.push({ + id: "retry-pipeline", + label: t("canvas.pipeline.action.retryFailed"), + icon: "rotate", + run: onRetryPipeline, + disabled: Boolean(pipelineBusy || locked), + }); + if (onForceRerunPipeline) + editing.push({ + id: "force-rerun-pipeline", + label: t("canvas.pipeline.action.forceAll"), + icon: "rotate", + run: onForceRerunPipeline, + disabled: Boolean(workflowRunning || pipelineBusy || locked), + }); + if (onOpenPipelineDrawer) + editing.push({ + id: "pipeline-drawer", + label: t("canvas.pipeline.action.details"), + icon: "history", + run: onOpenPipelineDrawer, }); if (onUngroup) editing.push({ id: "ungroup", label: t("canvas.selection.group.ungroup"), icon: "group", run: onUngroup, disabled: locked }); @@ -327,7 +389,7 @@ export function NodeSelectionToolbar({ ], "tools", ); - } else if (node.type === "video") { + } else if (node.type === "video" && hasMedia) { for (const [tool, labelKey, icon] of videoTools) addTool(tool, t(labelKey), icon); addMenu( @@ -414,7 +476,7 @@ export function NodeSelectionToolbar({ } else if (editLabels[node.type]) { addEditor("edit", t(editLabels[node.type]!), node.type, "default"); } - if (onAssistant && node.type !== "group") + if (onAssistant && node.type !== "group" && hasNodeActions) editing.push({ id: "assistant", label: t("canvas.selection.assistant"), @@ -446,7 +508,7 @@ export function NodeSelectionToolbar({ const organization: Action[] = []; // A group's bar holds only its own actions; rename and delete stay in the context menu. - if (onRename && node.type !== "group") + if (onRename && node.type !== "group" && hasNodeActions) organization.push({ id: "rename", label: t("common.rename"), @@ -455,7 +517,7 @@ export function NodeSelectionToolbar({ iconOnly: true, disabled: locked, }); - if (onDuplicate && node.type !== "group") + if (onDuplicate && node.type !== "group" && hasNodeActions) organization.push({ id: "duplicate", label: t("canvas.selection.duplicate"), @@ -463,7 +525,7 @@ export function NodeSelectionToolbar({ run: onDuplicate, iconOnly: true, }); - if (onDelete && node.type !== "group") + if (onDelete && node.type !== "group" && hasNodeActions) organization.push({ id: "delete", label: t("canvas.selection.deleteNode"), @@ -562,11 +624,11 @@ export function NodeSelectionToolbar({ label={ action.disabled && locked ? t("canvas.selection.locked", { label: action.label }) - : action.label + : action.tooltip ?? action.label } tooltipSide="top" // Labelled buttons already show their text; only icons and lock reasons need a tooltip. - showTooltip={Boolean(action.iconOnly || (action.disabled && locked))} + showTooltip={Boolean(action.tooltip || action.iconOnly || (action.disabled && locked))} className={`${action.iconOnly ? "is-icon-only" : ""}${action.destructive ? " is-destructive" : ""}`} disabled={action.disabled} onClick={(event) => { diff --git a/src/canvas/PipelineDrawer.tsx b/src/canvas/PipelineDrawer.tsx new file mode 100644 index 000000000..67b7d7483 --- /dev/null +++ b/src/canvas/PipelineDrawer.tsx @@ -0,0 +1,137 @@ +import { CanvasIcon } from "./CanvasIcon"; +import type { PipelineControlAction, PipelineExecution, PipelineStepStatus } from "./workspace/useWorkspaceGeneration"; +import { useT } from "../i18n/I18nProvider"; +import type { MessageKey } from "../i18n/messages"; +import "./pipeline-drawer.css"; + +const STEP_STATUS_LABELS: Record = { + pending: "canvas.pipeline.step.pending", + cached: "canvas.pipeline.step.cached", + ready: "canvas.pipeline.step.ready", + running: "canvas.pipeline.step.running", + awaiting_input: "canvas.pipeline.step.awaitingInput", + succeeded: "canvas.pipeline.step.succeeded", + failed: "canvas.pipeline.step.failed", + skipped: "canvas.pipeline.step.skipped", + cancelled: "canvas.pipeline.step.cancelled", +}; + +const EXECUTION_STATUS_LABELS: Record = { + queued: "canvas.pipeline.status.queued", + running: "canvas.pipeline.status.running", + pausing: "canvas.pipeline.status.pausing", + paused: "canvas.pipeline.status.paused", + awaiting_input: "canvas.pipeline.status.awaitingInput", + succeeded: "canvas.pipeline.status.succeeded", + failed: "canvas.pipeline.status.failed", + cancelled: "canvas.pipeline.status.cancelled", +}; + +export function PipelineDrawer({ + execution, + titleForItem, + busy = false, + onControl, + onForceRerun, + onFocusNode, + onClose, +}: { + execution: PipelineExecution; + titleForItem: (itemId: string) => string; + busy?: boolean; + onControl: (action: PipelineControlAction) => void; + onForceRerun?: () => void; + onFocusNode: (itemId: string) => void; + onClose: () => void; +}) { + const t = useT(); + const isActive = execution.status === "queued" || execution.status === "running" || execution.status === "pausing"; + const isPaused = execution.status === "paused"; + const canRetry = execution.status === "failed" || execution.status === "cancelled" || isPaused; + + const counts = { + succeeded: execution.steps.filter((s) => s.status === "succeeded").length, + cached: execution.steps.filter((s) => s.status === "cached").length, + failed: execution.steps.filter((s) => s.status === "failed").length, + skipped: execution.steps.filter((s) => s.status === "skipped").length, + }; + + return ( +

+ ); +} diff --git a/src/canvas/groupWorkflow.ts b/src/canvas/groupWorkflow.ts deleted file mode 100644 index 24b69f543..000000000 --- a/src/canvas/groupWorkflow.ts +++ /dev/null @@ -1,80 +0,0 @@ -import type { CanvasEdge } from "./model.ts"; - -export interface WorkflowOutcome { - succeeded: string[]; - failed: string[]; - /** Not run: a referenced member failed, or the step sits on a reference cycle. */ - skipped: string[]; -} - -/** - * Runs workflow steps in reference order. A step starts once every step it - * references, directly or through non-step nodes, has succeeded; steps without pending references run - * concurrently. A failure skips everything downstream of it. - */ -export async function runWorkflowSteps( - stepIds: readonly string[], - edges: readonly Pick[], - runStep: (id: string) => Promise, -): Promise { - const ids = new Set(stepIds); - const sources = new Map(); - for (const edge of edges) - if (edge.intent !== "post_edit_result" && edge.source !== edge.target) - sources.set(edge.target, [...(sources.get(edge.target) ?? []), edge.source]); - // A step depends on the nearest steps upstream of it, also through - // non-step nodes such as a subject or stack that carries a result onward. - const upstream = new Map( - stepIds.map((id) => { - const found = new Set(); - const seen = new Set([id]); - const pending = [...(sources.get(id) ?? [])]; - while (pending.length) { - const node = pending.pop()!; - if (seen.has(node)) continue; - seen.add(node); - if (ids.has(node)) found.add(node); - else pending.push(...(sources.get(node) ?? [])); - } - return [id, found]; - }), - ); - const outcome = new Map(); - const started = new Set(); - let running = 0; - await new Promise((resolve) => { - const advance = () => { - let progressed = true; - while (progressed) { - progressed = false; - for (const id of stepIds) { - if (started.has(id)) continue; - const sources = [...upstream.get(id)!]; - if (sources.some((source) => ["failed", "skipped"].includes(outcome.get(source) ?? ""))) { - started.add(id); - outcome.set(id, "skipped"); - progressed = true; - continue; - } - if (!sources.every((source) => outcome.get(source) === "succeeded")) continue; - started.add(id); - running++; - void runStep(id) - .catch(() => false) - .then((succeeded) => { - running--; - outcome.set(id, succeeded ? "succeeded" : "failed"); - advance(); - }); - } - } - if (running) return; - // Whatever never started is waiting on a reference cycle. - for (const id of stepIds) if (!outcome.has(id)) outcome.set(id, "skipped"); - resolve(); - }; - advance(); - }); - const pick = (state: string) => stepIds.filter((id) => outcome.get(id) === state); - return { succeeded: pick("succeeded"), failed: pick("failed"), skipped: pick("skipped") }; -} diff --git a/src/canvas/pipeline-drawer.css b/src/canvas/pipeline-drawer.css new file mode 100644 index 000000000..6365950fd --- /dev/null +++ b/src/canvas/pipeline-drawer.css @@ -0,0 +1,207 @@ +.cw-pipeline-drawer { + position: absolute; + top: 64px; + right: 16px; + width: 312px; + max-height: calc(100vh - 96px); + display: flex; + flex-direction: column; + gap: 10px; + padding: 12px; + border-radius: 12px; + background: var(--cw-surface, #181a1f); + border: 1px solid var(--cw-border, rgba(255, 255, 255, 0.1)); + box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); + color: var(--cw-text, #f1f3f5); + z-index: 35; + overflow: hidden; +} + +.cw-pipeline-drawer-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; +} + +.cw-pipeline-drawer-title-row { + display: flex; + align-items: center; + gap: 8px; + min-width: 0; +} + +.cw-pipeline-drawer-title { + font-size: 13px; + font-weight: 600; +} + +.cw-pipeline-close { + display: inline-flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + border: none; + border-radius: 6px; + background: transparent; + color: inherit; + cursor: pointer; +} + +.cw-pipeline-close:hover { + background: rgba(255, 255, 255, 0.08); +} + +.cw-pipeline-summary { + font-size: 12px; + opacity: 0.78; +} + +.cw-pipeline-actions { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.cw-pipeline-btn { + padding: 5px 10px; + border-radius: 7px; + border: 1px solid rgba(255, 255, 255, 0.14); + background: rgba(255, 255, 255, 0.05); + color: inherit; + font-size: 12px; + cursor: pointer; +} + +.cw-pipeline-btn:hover:not(:disabled) { + background: rgba(255, 255, 255, 0.11); +} + +.cw-pipeline-btn:disabled { + opacity: 0.5; + cursor: default; +} + +.cw-pipeline-btn-primary { + background: #3e63dd; + border-color: #3e63dd; + color: #fff; +} + +.cw-pipeline-btn-danger { + border-color: rgba(229, 72, 77, 0.45); + color: #ff9592; +} + +.cw-pipeline-steps { + list-style: none; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + gap: 4px; + overflow-y: auto; +} + +.cw-pipeline-step { + display: flex; + flex-direction: column; + gap: 4px; +} + +.cw-pipeline-step-row { + display: flex; + align-items: center; + gap: 8px; + width: 100%; + padding: 6px 8px; + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 8px; + background: rgba(255, 255, 255, 0.03); + color: inherit; + text-align: left; + cursor: pointer; +} + +.cw-pipeline-step-row:hover { + background: rgba(255, 255, 255, 0.08); +} + +.cw-pipeline-step-index { + font-size: 11px; + opacity: 0.55; + width: 16px; + flex-shrink: 0; +} + +.cw-pipeline-step-name { + flex: 1; + font-size: 12px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.cw-pipeline-step-error { + padding: 4px 8px 6px 32px; + font-size: 11px; + color: #ff9592; + line-height: 1.4; +} + +.cw-pipeline-pill { + display: inline-flex; + align-items: center; + padding: 2px 6px; + border-radius: 999px; + font-size: 11px; + font-weight: 500; + line-height: 1.2; + white-space: nowrap; +} + +.cw-pipeline-pill-pending, +.cw-pipeline-pill-queued, +.cw-pipeline-pill-ready { + background: rgba(139, 143, 154, 0.22); + color: #d0d4dc; +} + +.cw-pipeline-pill-running, +.cw-pipeline-pill-pausing { + background: rgba(62, 99, 221, 0.28); + color: #9eb1ff; +} + +.cw-pipeline-pill-cached { + background: rgba(48, 164, 108, 0.2); + color: #7ee2b8; +} + +.cw-pipeline-pill-succeeded { + background: rgba(48, 164, 108, 0.28); + color: #5dd39e; +} + +.cw-pipeline-pill-paused, +.cw-pipeline-pill-awaiting_input { + background: rgba(255, 197, 61, 0.22); + color: #ffd666; +} + +.cw-pipeline-pill-failed { + background: rgba(229, 72, 77, 0.28); + color: #ff9592; +} + +.cw-pipeline-pill-skipped, +.cw-pipeline-pill-cancelled { + background: rgba(139, 143, 154, 0.16); + color: #9ba1a6; +} + +.cw-node-pipeline-badge { + margin-left: auto; + flex-shrink: 0; +} diff --git a/src/canvas/storage.ts b/src/canvas/storage.ts index 869634cc2..a028dd177 100644 --- a/src/canvas/storage.ts +++ b/src/canvas/storage.ts @@ -155,7 +155,7 @@ export function parseDocument(input: unknown): Result { data: parsedData.value, ...(typeof raw.locked === "boolean" ? { locked: raw.locked } : {}), ...(typeof raw.color === "string" ? { color: raw.color } : {}), - ...(raw.type === "group" && raw.autoLayout === "run" ? { autoLayout: raw.autoLayout } : {}), + ...(raw.type === "group" && raw.autoLayout === "pipeline" ? { autoLayout: raw.autoLayout } : {}), ...(typeof raw.zIndex === "number" ? { zIndex: raw.zIndex } : {}), ...(typeof raw.parentId === "string" ? { parentId: raw.parentId } : {}), }); diff --git a/src/canvas/workspace/WorkspaceView.tsx b/src/canvas/workspace/WorkspaceView.tsx index 48cfb4fb1..21560edcf 100644 --- a/src/canvas/workspace/WorkspaceView.tsx +++ b/src/canvas/workspace/WorkspaceView.tsx @@ -76,6 +76,7 @@ import { pinnedPrecheckNodes } from "../workspaceInteraction.ts"; import { NodeInfoButton } from "../NodeInfoButton"; import { NodeSelectionToolbar } from "../NodeSelectionToolbar"; +import { PipelineDrawer } from "../PipelineDrawer"; import { TextNodeWindow } from "../TextNodeWindow"; import { SelectionBarAnchor } from "../SelectionBarAnchor"; import { NodeTaskPanel } from "../NodeTaskPanel"; @@ -160,6 +161,10 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { downloadNode, downloadGroup, runGroupWorkflow, + activePipeline, + selectedGroupPipeline, + controlPipeline, + pipelineControlBusy, editProjectNameId, editing, editorMode, @@ -443,10 +448,12 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { }, [outputState?.output.id]); const [workflowGroups, setWorkflowGroups] = useState>(() => new Set()); - const runWorkflow = (groupId: string) => { + const [pipelineDrawerOpen, setPipelineDrawerOpen] = useState(false); + const runWorkflow = (groupId: string, cachePolicy: "reuse" | "force_all" = "reuse") => { if (workflowGroups.has(groupId)) return; + setPipelineDrawerOpen(true); setWorkflowGroups((current) => new Set(current).add(groupId)); - void (runGroupWorkflow(groupId) as Promise).finally(() => + void (runGroupWorkflow(groupId, cachePolicy) as Promise).finally(() => setWorkflowGroups((current) => { const next = new Set(current); next.delete(groupId); @@ -454,6 +461,15 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { }), ); }; + const groupPipelineStatus = selectedGroupPipeline?.status; + const groupPipelineActive = groupPipelineStatus === "queued" || groupPipelineStatus === "running" || groupPipelineStatus === "pausing"; + const groupPipelinePaused = groupPipelineStatus === "paused"; + const groupPipelineCanRetry = groupPipelineStatus === "failed" || groupPipelineStatus === "cancelled"; + const runPrimaryAction = single?.type === "group" + ? groupPipelinePaused && selectedGroupPipeline + ? () => void controlPipeline(selectedGroupPipeline.executionId, "resume") + : () => runWorkflow(single.id, "reuse") + : undefined; // Canvas locking is no longer offered. Locks saved while it was available are // released the first time this browser opens the project, parents first (a @@ -519,7 +535,7 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { const runLayoutGroup = doc.nodes.find( (node) => node.id === menu?.nodeId && node.type === "group" && !node.parentId, ); - const hasManagedRuns = doc.nodes.some((node) => node.autoLayout === "run"); + const hasManagedRuns = doc.nodes.some((node) => node.autoLayout === "pipeline"); const applyRunLayout = async (action: | { kind: "organize" } | { kind: "toggle" | "lock"; group: CanvasNode }, @@ -539,14 +555,14 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { )) || !stillOpen()) return; const client = creationClient(projectId); if (action.kind === "organize") { - await client.command("canvas.layoutRuns", {}); + await client.command("canvas.layoutPipelines", {}); return; } const { group } = action; const item = client.snapshot.canvasItems.find((item) => item.id === group.id); if ( item?.kind !== "group" || item.parentId || item.locked || !item.visible || - (item.autoLayout === "run") !== (group.autoLayout === "run") + (item.autoLayout === "pipeline") !== (group.autoLayout === "pipeline") ) { notify(t("canvas.workspace.menu.runGroupChanged")); return; @@ -554,7 +570,7 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { await client.command("canvas.update", { itemId: item.id, ...(action.kind === "lock" ? { locked: true } : { - autoLayout: group.autoLayout === "run" ? "free" : "run", + autoLayout: group.autoLayout === "pipeline" ? "free" : "pipeline", }), }, [objectVersion("canvas_item", item)]); } catch (error) { @@ -1541,6 +1557,7 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) {
single.type === "group" ? void downloadGroup(single) : downloadNode(single) } - onRunWorkflow={single.type === "group" ? () => runWorkflow(single.id) : undefined} - workflowRunning={workflowGroups.has(single.id)} + onRunWorkflow={runPrimaryAction} + workflowRunning={workflowGroups.has(single.id) || groupPipelineActive} + pipelinePaused={groupPipelinePaused} + pipelineBusy={Boolean(pipelineControlBusy)} + onPauseWorkflow={selectedGroupPipeline && (groupPipelineStatus === "queued" || groupPipelineStatus === "running") + ? () => void controlPipeline(selectedGroupPipeline.executionId, "pause") : undefined} + onCancelPipeline={selectedGroupPipeline && (groupPipelineActive || groupPipelinePaused) + ? () => void controlPipeline(selectedGroupPipeline.executionId, "cancel") : undefined} + onRetryPipeline={selectedGroupPipeline && groupPipelineCanRetry + ? () => void controlPipeline(selectedGroupPipeline.executionId, "retry") : undefined} + onForceRerunPipeline={single.type === "group" && !groupPipelineActive + ? () => runWorkflow(single.id, "force_all") : undefined} + onOpenPipelineDrawer={selectedGroupPipeline + ? () => setPipelineDrawerOpen((open) => !open) : undefined} onUngroup={single.type === "group" ? ungroup : undefined} onLayout={ single.type === "group" && !single.autoLayout @@ -1665,6 +1694,23 @@ export function WorkspaceView({ rt }: { rt: WorkspaceRuntime }) { />
)} + {pipelineDrawerOpen && activePipeline && (() => { + const groupId = activePipeline.scope.kind === "group" ? activePipeline.scope.groupId : undefined; + return ( + doc.nodes.find((node) => node.id === itemId)?.data.title ?? itemId.slice(0, 8)} + busy={Boolean(pipelineControlBusy)} + onControl={(action) => void controlPipeline(activePipeline.executionId, action)} + onForceRerun={groupId ? () => runWorkflow(groupId, "force_all") : undefined} + onFocusNode={(itemId) => { + setSelected([itemId]); + focusSelection([itemId]); + }} + onClose={() => setPipelineDrawerOpen(false)} + /> + ); + })()} {activeAction && actionNode && ( <>
void applyRunLayout({ kind: "toggle", group: runLayoutGroup }), )} - {runLayoutGroup?.autoLayout === "run" && !lockedIds.has(runLayoutGroup.id) && + {runLayoutGroup?.autoLayout === "pipeline" && !lockedIds.has(runLayoutGroup.id) && menuButton(t("canvas.workspace.menu.lockRun"), "lock", () => void applyRunLayout({ kind: "lock", group: runLayoutGroup }))} {menuButton(t("canvas.workspace.selection.autoArrange"), "map", () => diff --git a/src/canvas/workspace/runtimeTypes.ts b/src/canvas/workspace/runtimeTypes.ts index 33abf504e..2441c684d 100644 --- a/src/canvas/workspace/runtimeTypes.ts +++ b/src/canvas/workspace/runtimeTypes.ts @@ -25,6 +25,12 @@ import { type WorkspaceState, } from "./state.ts"; import type { ServiceRun } from "./workspaceChrome.tsx"; +import type { + PipelineCachePolicy, + PipelineControlAction, + PipelineExecution, + PipelineStep, +} from "./useWorkspaceGeneration.ts"; export type WorkspaceFlowNode = Node; @@ -51,6 +57,12 @@ export interface WorkspaceRuntime extends WorkspaceState, WorkspaceSetters { setJobs: Dispatch>; readJobs: (signal?: AbortSignal) => Promise; recoverServiceTask: (job: GenerationJob) => Promise; + activePipeline?: PipelineExecution | null; + selectedGroupPipeline?: PipelineExecution | null; + pipelineStepByNode: ReadonlyMap; + pipelineControlBusy?: boolean; + runFromNodePipeline: (itemId: string, groupId?: string) => Promise; + controlPipeline: (executionId: string, action: PipelineControlAction) => Promise; command: (value: CanvasCommand) => void; commitCanvasCommand: (value: CanvasCommand, failureMessage: string) => Promise; change: (fn: (document: CanvasDocument) => CanvasDocument) => void; diff --git a/src/canvas/workspace/useWorkspaceGeneration.ts b/src/canvas/workspace/useWorkspaceGeneration.ts index d5a596777..b9d46fb95 100644 --- a/src/canvas/workspace/useWorkspaceGeneration.ts +++ b/src/canvas/workspace/useWorkspaceGeneration.ts @@ -1,9 +1,15 @@ -import { useEffect, useRef } from "react"; -import { errorMessage } from "../../backend/api.ts"; -import { creationClient } from "../../backend/creationClient.ts"; +import { useEffect, useRef, useState } from "react"; +import { errorMessage, json, storageRequest } from "../../backend/api.ts"; +import { creationClient, creationPath } from "../../backend/creationClient.ts"; import { type GenerationRequest } from "../../backend/generation.ts"; +import { readDelay, resilientRead } from "../../backend/resilientRead.ts"; +import { sameJsonValue } from "../../backend/sameJsonValue.ts"; import { modelLabel } from "../../backend/rules.ts"; import { workspaceProjection } from "../../backend/workspace.ts"; +import type { + PipelineExecutionQuery, + PipelineExecutionsQuery, +} from "../../contracts/generated.ts"; import { deliverTool, pendingToolDelivery } from "../../backend/toolDeliveries"; import { acknowledgeToolPlacement, cancelToolTask, submitToolTask, ToolSubmissionError } from "../../backend/tools.ts"; @@ -15,8 +21,6 @@ import { lockedNodeIds } from "../hierarchy"; import { imageAnnotationPayload } from "../imageActionPayload"; import { appendPendingResult, removePendingResult, validateNodeActionSource, type GenerationResultMode, type LinkedMediaResult, type ResultSource } from "../linkedResults"; import { type CanvasNode } from "../model"; -import { groupDescendants } from "../operations"; -import { runWorkflowSteps } from "../groupWorkflow"; import { getNodeGenerationSettings } from "../NodeComposer"; import { serviceGenerationPlan, textGenerationPlan } from "../workspaceInteraction.ts"; import { generationPrepareBlock } from "./entryPoints.ts"; @@ -28,6 +32,71 @@ import type { WorkspaceRuntime } from "./runtimeTypes.ts"; import { toolOutputKind, jobTime, incomingNodes } from "./workspaceChrome.tsx"; import type { ServiceRun } from "./workspaceChrome.tsx"; +export type PipelineCachePolicy = "reuse" | "force_from_node" | "force_all"; +export type PipelineExecutionStatus = + | "queued" + | "running" + | "pausing" + | "paused" + | "awaiting_input" + | "succeeded" + | "failed" + | "cancelled"; +export type PipelineStepStatus = + | "pending" + | "cached" + | "ready" + | "running" + | "awaiting_input" + | "succeeded" + | "failed" + | "skipped" + | "cancelled"; +export type PipelineStep = { + itemId: string; + kind: "generation" | "assembly"; + upstreamItemIds: readonly string[]; + inputFingerprint: string; + status: PipelineStepStatus; + jobId: string | null; + assetId: string | null; + issue: { code: string; message: string; itemId?: string | null } | null; +}; +export type PipelineExecution = { + executionId: string; + projectId: string; + scope: { kind: "group"; groupId: string } | { kind: "selection"; itemIds: readonly string[] } | { kind: "from_node"; itemId: string; groupId?: string }; + cachePolicy: PipelineCachePolicy; + status: PipelineExecutionStatus; + steps: readonly PipelineStep[]; + issue: { code: string; message: string; itemId?: string | null } | null; + createdAt?: number; + updatedAt?: number; +}; +export type PipelineControlAction = "pause" | "resume" | "cancel" | "retry"; + +function isPipelineActive(status: PipelineExecutionStatus) { + return status === "queued" || status === "running" || status === "pausing"; +} + +function readPipelineExecution(query: PipelineExecutionQuery, signal?: AbortSignal): Promise { + return resilientRead((attemptSignal) => storageRequest( + `${creationPath(query.projectId)}/queries`, { ...json("POST", query), signal: attemptSignal }, + ), { signal }); +} + +export async function readPipelineHistory(projectId: string, groupId?: string, signal?: AbortSignal) { + const query: PipelineExecutionsQuery = { + type: "pipeline.executions.list", + queryId: crypto.randomUUID(), + projectId, + ...(groupId ? { groupId } : {}), + }; + const result = await resilientRead((attemptSignal) => storageRequest<{ executions: readonly PipelineExecution[] }>( + `${creationPath(projectId)}/queries`, { ...json("POST", query), signal: attemptSignal }, + ), { signal }); + return result.executions; +} export function useWorkspaceGeneration(rt: WorkspaceRuntime) { const { @@ -644,127 +713,166 @@ export function useWorkspaceGeneration(rt: WorkspaceRuntime) { ); return none; }; - /** Latest render's generation entry point; a workflow outlives the render that started it. */ - const prepareLatest = useRef(prepareGeneration); - prepareLatest.current = prepareGeneration; - /** - * Resolves once every job is terminal (true when one succeeded), or false - * when the canvas has switched to another project. - */ - const awaitJobs = (documentId: string, jobIds: readonly string[]) => - new Promise((resolve) => { - const client = creationClient(documentId); - const terminal = ["succeeded", "failed", "cancelled", "interrupted"]; - let finish = () => {}; - const check = () => { - if (!mounted.current || historyRef.current.present.id !== documentId) { - finish(); - resolve(false); - return; + const onRunCanvas = (projectId: string) => mounted.current && historyRef.current.present.id === projectId; + const pipelineObservers = useRef(new Map }>()); + const pipelineControlLock = useRef(new Set()); + const [pipelineExecutions, setPipelineExecutions] = useState>(new Map()); + const [latestGroupPipelines, setLatestGroupPipelines] = useState>(new Map()); + const [activePipelineId, setActivePipelineId] = useState(null); + const [pipelineControlBusy, setPipelineControlBusy] = useState(false); + + const rememberPipeline = (projectId: string, execution: PipelineExecution) => { + const key = `${projectId}/${execution.executionId}`; + setPipelineExecutions((previous) => sameJsonValue(previous.get(key), execution) + ? previous : new Map(previous).set(key, execution)); + if (execution.scope.kind === "group") { + const groupKey = `${projectId}/${execution.scope.groupId}`; + setLatestGroupPipelines((previous) => previous.get(groupKey) === execution.executionId + ? previous : new Map(previous).set(groupKey, execution.executionId)); + } + setActivePipelineId(execution.executionId); + }; + + const observePipeline = (projectId: string, executionId: string) => { + const observerKey = `${projectId}/${executionId}`; + const existing = pipelineObservers.current.get(observerKey); + if (existing) return existing.pending; + const controller = new AbortController(); + const pending = (async () => { + while (onRunCanvas(projectId) && !controller.signal.aborted) { + const execution = await readPipelineExecution({ + type: "pipeline.execution.get", + queryId: crypto.randomUUID(), + projectId, + objectId: executionId, + }, controller.signal); + if (!onRunCanvas(projectId) || controller.signal.aborted) return; + rememberPipeline(projectId, execution); + if (isPipelineActive(execution.status)) { + await readDelay(1000, controller.signal); + continue; + } + await syncServiceResults().catch(() => undefined); + if (!onRunCanvas(projectId)) return; + const succeeded = execution.steps.filter((s) => s.status === "succeeded").length; + const cached = execution.steps.filter((s) => s.status === "cached").length; + const failed = execution.steps.filter((s) => s.status === "failed").length; + const skipped = execution.steps.filter((s) => s.status === "skipped").length; + if (execution.status === "succeeded") { + notify(cached > 0 + ? t("canvas.workspace.pipeline.doneWithCache", { succeeded, cached }) + : t("canvas.workspace.pipeline.done", { count: succeeded })); + } else if (execution.status === "paused") { + notify(t("canvas.workspace.pipeline.paused")); + } else if (execution.status === "cancelled") { + notify(t("canvas.workspace.pipeline.cancelled")); + } else if (execution.status === "failed") { + notify(t("canvas.workspace.pipeline.incomplete", { succeeded: succeeded + cached, failed, skipped })); } - const states = jobIds.map( - (id) => client.snapshot.jobs.find((job) => job.id === id)?.status, - ); - if (!states.every((status) => status && terminal.includes(status))) return; - finish(); - resolve(states.includes("succeeded")); - }; - const stop = client.listen(check); - const poll = setInterval(check, 1000); - finish = () => { - stop(); - clearInterval(poll); - }; - check(); - }); - /** - * Waits until the canvas shows the result the service adopted for the node, - * so a downstream step reads the new content (for example generated text - * used as its prompt). Resolves false when no result was adopted (a - * candidate-only result, or inputs edited while running), after three - * minutes, or when the canvas switched project. - */ - const awaitDisplayed = (documentId: string, nodeId: string, jobIds: readonly string[]) => - new Promise((resolve) => { - const snapshot = creationClient(documentId).snapshot; - const adopted = new Set( - snapshot.jobs.filter((job) => jobIds.includes(job.id) && job.adopted).map((job) => job.id), - ); - const assets = new Set( - snapshot.results - .filter((result) => adopted.has(result.jobId)) - .map((result) => result.asset.assetId), - ); - if (!assets.size) { - resolve(false); return; } - const started = Date.now(); - const check = () => { - const present = historyRef.current.present; - const node = present.nodes.find((candidate) => candidate.id === nodeId); - const done = - present.id === documentId && node && assets.has(node.data.backendAssetId ?? "") - ? true - : !mounted.current || present.id !== documentId || !node || Date.now() - started > 180_000 - ? false - : undefined; - if (done === undefined) return; - clearInterval(poll); - resolve(done); - }; - const poll = setInterval(check, 200); - check(); + })().catch(() => { + // Transient polling errors do not cancel the backend execution. + }).finally(() => { + if (pipelineObservers.current.get(observerKey)?.controller === controller) { + pipelineObservers.current.delete(observerKey); + } }); - /** - * Runs a group's generation nodes. A node waits for the members it - * references, directly or through non-generating nodes, and is skipped when - * one of them fails; independent nodes run concurrently. Submissions go one - * at a time, as the project's command queue would serialize them anyway, so - * each starts from the canvas the previous one left behind. - */ - const runGroupWorkflow = async (groupId: string) => { + pipelineObservers.current.set(observerKey, { controller, pending }); + return pending; + }; + + useEffect(() => { + const projectId = doc.id; + let cancelled = false; + void readPipelineHistory(projectId).then((executions) => { + if (cancelled || !onRunCanvas(projectId) || !executions.length) return; + const latest = executions[0]; + rememberPipeline(projectId, latest); + if (isPipelineActive(latest.status)) void observePipeline(projectId, latest.executionId); + }).catch(() => undefined); + return () => { + cancelled = true; + for (const [key, observer] of pipelineObservers.current) { + if (!key.startsWith(`${projectId}/`)) continue; + observer.controller.abort(); + pipelineObservers.current.delete(key); + } + }; + }, [doc.id]); + + const startPipeline = async ( + scope: PipelineExecution["scope"], + cachePolicy: PipelineCachePolicy = "reuse", + ) => { const document = historyRef.current.present; - const steps = groupDescendants(document.nodes, groupId).filter((node) => - isWorkflowStep( - node, - document.edges.some( - (edge) => edge.target === node.id && edge.intent !== "post_edit_result", - ), - ), - ); - if (!steps.length) { - notify(t("canvas.workspace.group.noRunnableNodes")); - return; + const projectId = document.id; + const client = creationClient(projectId); + const executionId = crypto.randomUUID(); + try { + const receipt = await client.command( + "pipeline.start", + { scope, cachePolicy }, + [], + undefined, + executionId, + ); + if (!onRunCanvas(projectId)) return; + const resolvedId = receipt.pipelineExecutionId ?? executionId; + notify(t("canvas.workspace.pipeline.started")); + await observePipeline(projectId, resolvedId); + } catch (error) { + if (onRunCanvas(projectId)) { + notify(t("canvas.workspace.pipeline.startFailed", { error: errorMessage(error) })); + } } - notify(t("canvas.workspace.group.workflowStarted", { count: steps.length })); - let submissions: Promise = Promise.resolve(); - const result = await runWorkflowSteps( - steps.map((node) => node.id), - document.edges, - async (id) => { - const submitted = submissions.then(() => - historyRef.current.present.id === document.id - ? prepareLatest.current(id) - : [], - ); - submissions = submitted.catch(() => undefined); - const jobIds = await submitted; - if (!jobIds.length || !(await awaitJobs(document.id, jobIds))) return false; - return awaitDisplayed(document.id, id, jobIds); - }, - ); - if (historyRef.current.present.id !== document.id) return; - notify( - result.failed.length || result.skipped.length - ? t("canvas.workspace.group.workflowIncomplete", { - succeeded: result.succeeded.length, - failed: result.failed.length, - skipped: result.skipped.length, - }) - : t("canvas.workspace.group.workflowDone", { count: steps.length }), - ); }; + + const runGroupWorkflow = async (groupId: string, cachePolicy: PipelineCachePolicy = "reuse") => + startPipeline({ kind: "group", groupId }, cachePolicy); + + const runFromNodePipeline = async (itemId: string, groupId?: string) => + startPipeline({ kind: "from_node", itemId, ...(groupId ? { groupId } : {}) }, "force_all"); + + const controlPipeline = async (executionId: string, action: PipelineControlAction): Promise => { + const projectId = historyRef.current.present.id; + if (pipelineControlLock.current.has(executionId)) return false; + pipelineControlLock.current.add(executionId); + setPipelineControlBusy(true); + try { + const client = creationClient(projectId); + const commandType = `pipeline.${action}` as const; + await client.command(commandType, { executionId }); + if (!onRunCanvas(projectId)) return false; + if (action === "pause") notify(t("canvas.workspace.pipeline.pauseRequested")); + else if (action === "resume") notify(t("canvas.workspace.pipeline.resumed")); + else if (action === "cancel") notify(t("canvas.workspace.pipeline.cancelled")); + else if (action === "retry") notify(t("canvas.workspace.pipeline.retrying")); + void observePipeline(projectId, executionId); + return true; + } catch (error) { + if (onRunCanvas(projectId)) { + notify(t("canvas.workspace.pipeline.actionFailed", { error: errorMessage(error) })); + } + return false; + } finally { + pipelineControlLock.current.delete(executionId); + if (mounted.current) setPipelineControlBusy(pipelineControlLock.current.size > 0); + } + }; + + const activePipeline = activePipelineId + ? pipelineExecutions.get(`${doc.id}/${activePipelineId}`) ?? null + : null; + const selectedGroupPipelineId = rt.single?.type === "group" + ? latestGroupPipelines.get(`${doc.id}/${rt.single.id}`) + : undefined; + const selectedGroupPipeline = selectedGroupPipelineId + ? pipelineExecutions.get(`${doc.id}/${selectedGroupPipelineId}`) ?? null + : null; + const pipelineStepByNode = new Map( + (activePipeline?.steps ?? []).map((step) => [step.itemId, step]), + ); const importActionResultFiles = async (files: File[]) => { const binding = resultBinding.current; resultBinding.current = null; @@ -838,17 +946,12 @@ export function useWorkspaceGeneration(rt: WorkspaceRuntime) { rt.cancelServiceRuns = cancelServiceRuns; rt.prepareGeneration = prepareGeneration; rt.runGroupWorkflow = runGroupWorkflow; + rt.runFromNodePipeline = runFromNodePipeline; + rt.controlPipeline = controlPipeline; + rt.activePipeline = activePipeline; + rt.selectedGroupPipeline = selectedGroupPipeline; + rt.pipelineStepByNode = pipelineStepByNode; + rt.pipelineControlBusy = pipelineControlBusy; rt.importActionResultFiles = importActionResultFiles; rt.cancelResultImport = cancelResultImport; } - -/** - * Group members a workflow run generates: nodes with a configured model and a - * prompt (media may instead take their prompt from connected references). - */ -function isWorkflowStep(node: CanvasNode, referenced: boolean): boolean { - const prompt = Boolean(node.data.prompt?.trim() || node.data.promptContent?.length); - if (node.type === "text") return Boolean(node.data.agentSettings?.modelConfigId && prompt); - if (!["image", "video", "audio"].includes(node.type)) return false; - return Boolean(node.data.settings?.modelConfigId && (prompt || referenced)); -} diff --git a/src/canvas/workspace/useWorkspaceInteraction.tsx b/src/canvas/workspace/useWorkspaceInteraction.tsx index 7890e8499..c98dbfe61 100644 --- a/src/canvas/workspace/useWorkspaceInteraction.tsx +++ b/src/canvas/workspace/useWorkspaceInteraction.tsx @@ -571,6 +571,7 @@ export function useWorkspaceInteraction(rt: WorkspaceRuntime) { !activeAction && single && (!["image", "video", "audio", "file"].includes(single.type) || + (single.type === "video" && rt.activePipeline) || (single.data.src && single.data.assetState !== "missing")), ); const mediaBounds = single @@ -633,7 +634,7 @@ export function useWorkspaceInteraction(rt: WorkspaceRuntime) { }; useCanvasWheelBoundary(root, selectionPresentation.userNavigation); const managedRunIds = useMemo( - () => new Set(doc.nodes.filter((node) => node.autoLayout === "run").map((node) => node.id)), + () => new Set(doc.nodes.filter((node) => node.autoLayout === "pipeline").map((node) => node.id)), [doc.nodes], ); const flowNodes: FlowNode[] = useMemo( @@ -1149,6 +1150,7 @@ export function useWorkspaceInteraction(rt: WorkspaceRuntime) { isLocked: (id: string) => lockedIds.has(id), getNode: (id: string) => doc.nodes.find((node) => node.id === id), generationActivity: (id: string) => generationByNode.get(id), + pipelineStep: (id: string) => rt.pipelineStepByNode?.get(id), isArriving: (id: string) => arrivingNodes.has(id), cycleStack: (id: string, delta: number) => { const node = doc.nodes.find((node) => node.id === id), diff --git a/src/contracts/creation.schema.json b/src/contracts/creation.schema.json index 7259c56a3..9c9f7cb8c 100644 --- a/src/contracts/creation.schema.json +++ b/src/contracts/creation.schema.json @@ -1540,7 +1540,7 @@ "canvas.configure": "#/$defs/CanvasConfigureCommandOperation", "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommandOperation", "canvas.hide": "#/$defs/CanvasHideCommandOperation", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommandOperation", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommandOperation", "canvas.materialize": "#/$defs/CanvasMaterializeCommandOperation", "canvas.move": "#/$defs/CanvasMoveCommandOperation", "canvas.show": "#/$defs/CanvasShowCommandOperation", @@ -1569,7 +1569,7 @@ "$ref": "#/$defs/CanvasUpdateCommandOperation" }, { - "$ref": "#/$defs/CanvasLayoutRunsCommandOperation" + "$ref": "#/$defs/CanvasLayoutPipelinesCommandOperation" }, { "$ref": "#/$defs/CanvasHideCommandOperation" @@ -2546,9 +2546,9 @@ "title": "CanvasItemVersion", "type": "object" }, - "CanvasLayoutRunsCommand": { + "CanvasLayoutPipelinesCommand": { "additionalProperties": false, - "description": "Arrange the current canvas Run groups and their children without moving locked groups.", + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -2563,7 +2563,7 @@ "type": "string" }, "type": { - "const": "canvas.layoutRuns", + "const": "canvas.layoutPipelines", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -2593,7 +2593,7 @@ }, "payload": { "$ref": "#/$defs/EmptyPayload", - "description": "Arrange the current canvas Run groups and their children without moving locked groups." + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." } }, "required": [ @@ -2602,29 +2602,29 @@ "type", "payload" ], - "title": "CanvasLayoutRunsCommand", + "title": "CanvasLayoutPipelinesCommand", "type": "object" }, - "CanvasLayoutRunsCommandOperation": { + "CanvasLayoutPipelinesCommandOperation": { "additionalProperties": false, - "description": "Arrange the current canvas Run groups and their children without moving locked groups.", + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups.", "properties": { "type": { - "const": "canvas.layoutRuns", + "const": "canvas.layoutPipelines", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { "$ref": "#/$defs/EmptyPayload", - "description": "Arrange the current canvas Run groups and their children without moving locked groups." + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." } }, "required": [ "type", "payload" ], - "title": "CanvasLayoutRunsCommandOperation", + "title": "CanvasLayoutPipelinesCommandOperation", "type": "object" }, "CanvasMaterialize": { @@ -2966,7 +2966,7 @@ "anyOf": [ { "enum": [ - "run", + "pipeline", "free" ], "type": "string" @@ -2976,7 +2976,7 @@ } ], "default": null, - "description": "Enable Run layout for a top-level group, or use free to return it to manual layout.", + "description": "Enable Pipeline layout for a top-level group, or use free to return it to manual layout.", "title": "Autolayout" } }, @@ -3829,6 +3829,20 @@ "default": null, "description": "Latest committed project event cursor.", "title": "Eventcursor" + }, + "pipelineExecutionId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Durable execution created or updated by a Pipeline command.", + "title": "Pipelineexecutionid" } }, "required": [ @@ -3840,6 +3854,178 @@ "title": "CommandReceipt", "type": "object" }, + "CompiledPipelineGraph": { + "additionalProperties": false, + "properties": { + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "scope": { + "description": "Requested execution scope.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/GroupPipelineScope" + }, + { + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" + } + ], + "title": "Scope" + }, + "cachePolicy": { + "description": "Cache reuse policy applied during compilation.", + "enum": [ + "reuse", + "force_from_node", + "force_all" + ], + "title": "Cachepolicy", + "type": "string" + }, + "steps": { + "default": [], + "description": "Compiled pipeline steps in topological order.", + "items": { + "$ref": "#/$defs/CompiledPipelineStep" + }, + "title": "Steps", + "type": "array" + }, + "topologicalOrder": { + "default": [], + "description": "Deterministic topological execution order of step item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Topologicalorder", + "type": "array" + }, + "issues": { + "default": [], + "description": "Pre-flight validation or cycle issues.", + "items": { + "$ref": "#/$defs/PipelineStepIssue" + }, + "title": "Issues", + "type": "array" + }, + "plannedNewJobs": { + "default": 0, + "description": "Number of non-cached steps that will submit new jobs.", + "minimum": 0, + "title": "Plannednewjobs", + "type": "integer" + } + }, + "required": [ + "projectId", + "scope", + "cachePolicy" + ], + "title": "CompiledPipelineGraph", + "type": "object" + }, + "CompiledPipelineStep": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID for this execution step.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "kind": { + "description": "Execution step category.", + "enum": [ + "generation", + "assembly" + ], + "title": "Kind", + "type": "string" + }, + "upstreamItemIds": { + "default": [], + "description": "Direct upstream step item IDs in this pipeline.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Upstreamitemids", + "type": "array" + }, + "inputFingerprint": { + "description": "Deterministic fingerprint of this step inputs and upstream chain.", + "pattern": "^[0-9a-f]{64}$", + "title": "Inputfingerprint", + "type": "string" + }, + "cached": { + "default": false, + "description": "Whether an existing adopted result satisfies this step without re-running.", + "title": "Cached", + "type": "boolean" + }, + "cacheCandidateJobId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Existing succeeded job ID reused when cached is true.", + "title": "Cachecandidatejobid" + }, + "cacheCandidateAssetId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Existing adopted asset ID reused when cached is true.", + "title": "Cachecandidateassetid" + }, + "expectedVersions": { + "default": [], + "description": "Optimistic concurrency versions captured at compile time.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + } + }, + "required": [ + "itemId", + "kind", + "inputFingerprint" + ], + "title": "CompiledPipelineStep", + "type": "object" + }, "ContainerBinding": { "additionalProperties": false, "properties": { @@ -4185,7 +4371,7 @@ "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", "canvas.hide": "#/$defs/CanvasHideCommand", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommand", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommand", "canvas.materialize": "#/$defs/CanvasMaterializeCommand", "canvas.move": "#/$defs/CanvasMoveCommand", "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", @@ -4204,6 +4390,12 @@ "job.cancel": "#/$defs/JobCancelCommand", "job.checkpoint": "#/$defs/JobCheckpointCommand", "job.recover": "#/$defs/JobRecoverCommand", + "pipeline.adopt": "#/$defs/PipelineAdoptCommand", + "pipeline.cancel": "#/$defs/PipelineCancelCommand", + "pipeline.pause": "#/$defs/PipelinePauseCommand", + "pipeline.resume": "#/$defs/PipelineResumeCommand", + "pipeline.retry": "#/$defs/PipelineRetryCommand", + "pipeline.start": "#/$defs/PipelineStartCommand", "project.create": "#/$defs/ProjectCreateCommand", "project.rename": "#/$defs/ProjectRenameCommand", "project.restore": "#/$defs/ProjectRestoreCommand", @@ -4258,7 +4450,7 @@ "$ref": "#/$defs/CanvasUpdateCommand" }, { - "$ref": "#/$defs/CanvasLayoutRunsCommand" + "$ref": "#/$defs/CanvasLayoutPipelinesCommand" }, { "$ref": "#/$defs/CanvasHideCommand" @@ -4275,6 +4467,24 @@ { "$ref": "#/$defs/TimelinePublishRenderCommand" }, + { + "$ref": "#/$defs/PipelineStartCommand" + }, + { + "$ref": "#/$defs/PipelinePauseCommand" + }, + { + "$ref": "#/$defs/PipelineResumeCommand" + }, + { + "$ref": "#/$defs/PipelineCancelCommand" + }, + { + "$ref": "#/$defs/PipelineRetryCommand" + }, + { + "$ref": "#/$defs/PipelineAdoptCommand" + }, { "$ref": "#/$defs/NodeVersionApplyCommand" }, @@ -4361,6 +4571,9 @@ "job.get": "#/$defs/ObjectQuery", "job.status": "#/$defs/JobStatusQuery", "object.get": "#/$defs/ObjectQuery", + "pipeline.execution.get": "#/$defs/PipelineExecutionQuery", + "pipeline.executions.list": "#/$defs/PipelineExecutionsQuery", + "pipeline.plan": "#/$defs/PipelinePlanQuery", "project.get": "#/$defs/ProjectQuery" }, "propertyName": "type" @@ -4389,6 +4602,15 @@ }, { "$ref": "#/$defs/AssetPreviewQuery" + }, + { + "$ref": "#/$defs/PipelinePlanQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionsQuery" } ], "title": "Query" @@ -5604,6 +5826,43 @@ "title": "FollowingSource", "type": "object" }, + "FromNodePipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "from_node", + "description": "Run from one node through its downstream dependents.", + "title": "Kind", + "type": "string" + }, + "itemId": { + "description": "Starting canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "groupId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional group boundary limiting downstream traversal.", + "title": "Groupid" + } + }, + "required": [ + "kind", + "itemId" + ], + "title": "FromNodePipelineScope", + "type": "object" + }, "GenerationBinding": { "additionalProperties": false, "description": "Displays a generation configuration and its adopted result.", @@ -6141,7 +6400,7 @@ "autoLayout": { "anyOf": [ { - "const": "run", + "const": "pipeline", "type": "string" }, { @@ -6149,7 +6408,7 @@ } ], "default": null, - "description": "Set to run to opt this top-level group into shared Run layout. Put its plan, clips and timeline under this group ID.", + "description": "Set to pipeline to opt this top-level group into shared Pipeline layout.", "title": "Autolayout" }, "binding": { @@ -6165,6 +6424,29 @@ "title": "GroupCanvasItem", "type": "object" }, + "GroupPipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "group", + "description": "Run all executable nodes inside a canvas group.", + "title": "Kind", + "type": "string" + }, + "groupId": { + "description": "Target canvas group ID.", + "format": "uuid", + "title": "Groupid", + "type": "string" + } + }, + "required": [ + "kind", + "groupId" + ], + "title": "GroupPipelineScope", + "type": "object" + }, "HistoryRedoCommand": { "additionalProperties": false, "description": "Reapply an undone command.", @@ -10043,129 +10325,98 @@ "title": "PinnedReferenceSource", "type": "object" }, - "Playhead": { + "PipelineAdopt": { "additionalProperties": false, "properties": { - "editorDocumentId": { - "description": "Editable document ID.", + "executionId": { + "description": "Target Pipeline execution ID awaiting candidate adoption.", "format": "uuid", - "title": "Editordocumentid", + "title": "Executionid", "type": "string" }, - "seconds": { - "default": 0, - "description": "Playhead position in seconds.", - "minimum": 0, - "title": "Seconds", - "type": "number" + "itemId": { + "description": "Canvas item ID whose candidate is being adopted.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "jobId": { + "description": "Succeeded candidate job ID to adopt.", + "format": "uuid", + "title": "Jobid", + "type": "string" } }, "required": [ - "editorDocumentId" + "executionId", + "itemId", + "jobId" ], - "title": "Playhead", + "title": "PipelineAdopt", "type": "object" }, - "Point": { + "PipelineAdoptCommand": { "additionalProperties": false, + "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution.", "properties": { - "x": { - "default": 0, - "description": "Horizontal coordinate.", - "title": "X", - "type": "number" + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "y": { - "default": 0, - "description": "Vertical coordinate.", - "title": "Y", - "type": "number" - } - }, - "title": "Point", - "type": "object" - }, - "Project": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable object ID.", + "projectId": { + "description": "Owning project ID.", "format": "uuid", - "title": "Id", + "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "name": { - "description": "User-visible name.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Name", + "type": { + "const": "pipeline.adopt", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "defaultNameIndex": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Index of the automatically named initial project.", - "title": "Defaultnameindex" - } - }, - "required": [ - "id", - "name" - ], - "title": "Project", - "type": "object" - }, - "ProjectCreate": { - "additionalProperties": false, - "properties": { - "name": { - "description": "User-visible name.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Name", - "type": "string" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "defaultNameIndex": { + "expectedPreview": { "anyOf": [ { - "exclusiveMinimum": 0, - "type": "number" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Index for an automatically named initial project.", - "title": "Defaultnameindex" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/PipelineAdopt", + "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." } }, "required": [ - "name" + "commandId", + "projectId", + "type", + "payload" ], - "title": "ProjectCreate", + "title": "PipelineAdoptCommand", "type": "object" }, - "ProjectCreateCommand": { + "PipelineCancelCommand": { "additionalProperties": false, - "description": "Create a project.", + "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -10180,7 +10431,7 @@ "type": "string" }, "type": { - "const": "project.create", + "const": "pipeline.cancel", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -10209,8 +10460,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ProjectCreate", - "description": "Create a project." + "$ref": "#/$defs/PipelineControl", + "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." } }, "required": [ @@ -10219,48 +10470,33 @@ "type", "payload" ], - "title": "ProjectCreateCommand", + "title": "PipelineCancelCommand", "type": "object" }, - "ProjectEntity": { + "PipelineControl": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", + "executionId": { + "description": "Target Pipeline execution ID.", "format": "uuid", - "title": "Projectid", + "title": "Executionid", "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" } }, "required": [ - "id", - "projectId" + "executionId" ], - "title": "ProjectEntity", + "title": "PipelineControl", "type": "object" }, - "ProjectEvent": { + "PipelineExecutionQuery": { "additionalProperties": false, "properties": { - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" }, "projectId": { "description": "Owning project ID.", @@ -10268,66 +10504,29 @@ "title": "Projectid", "type": "string" }, - "cursor": { - "description": "Monotonically increasing project event cursor.", - "minimum": 1, - "title": "Cursor", - "type": "integer" - }, - "commandId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Stable command ID for idempotent replay.", - "title": "Commandid" - }, - "source": { - "description": "Input source or recorded provenance.", - "enum": [ - "ui", - "agent", - "background", - "external" - ], - "title": "Source", + "type": { + "const": "pipeline.execution.get", + "description": "Read a durable Pipeline execution.", + "title": "Type", "type": "string" }, - "changed": { - "default": [], - "description": "Business objects changed by the operation.", - "items": { - "$ref": "#/$defs/ChangedObject" - }, - "title": "Changed", - "type": "array" - }, - "jobIds": { - "default": [], - "description": "Generation jobs associated with this operation.", - "items": { - "format": "uuid", - "type": "string" - }, - "title": "Jobids", - "type": "array" + "objectId": { + "description": "Pipeline execution ID returned by pipeline.start.", + "format": "uuid", + "title": "Objectid", + "type": "string" } }, "required": [ + "queryId", "projectId", - "cursor", - "source" + "type", + "objectId" ], - "title": "ProjectEvent", + "title": "PipelineExecutionQuery", "type": "object" }, - "ProjectQuery": { + "PipelineExecutionsQuery": { "additionalProperties": false, "properties": { "queryId": { @@ -10343,10 +10542,24 @@ "type": "string" }, "type": { - "const": "project.get", - "description": "Read the current project.", + "const": "pipeline.executions.list", + "description": "List Pipeline execution history for the project or one group.", "title": "Type", "type": "string" + }, + "groupId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional canvas group ID filter.", + "title": "Groupid" } }, "required": [ @@ -10354,30 +10567,12 @@ "projectId", "type" ], - "title": "ProjectQuery", - "type": "object" - }, - "ProjectRename": { - "additionalProperties": false, - "properties": { - "name": { - "description": "User-visible name.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Name", - "type": "string" - } - }, - "required": [ - "name" - ], - "title": "ProjectRename", + "title": "PipelineExecutionsQuery", "type": "object" }, - "ProjectRenameCommand": { + "PipelinePauseCommand": { "additionalProperties": false, - "description": "Rename the project.", + "description": "Pause an active Pipeline execution after its in-flight steps finish.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -10392,7 +10587,7 @@ "type": "string" }, "type": { - "const": "project.rename", + "const": "pipeline.pause", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -10421,8 +10616,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ProjectRename", - "description": "Rename the project." + "$ref": "#/$defs/PipelineControl", + "description": "Pause an active Pipeline execution after its in-flight steps finish." } }, "required": [ @@ -10431,17 +10626,16 @@ "type", "payload" ], - "title": "ProjectRenameCommand", + "title": "PipelinePauseCommand", "type": "object" }, - "ProjectRestoreCommand": { + "PipelinePlanQuery": { "additionalProperties": false, - "description": "Restore a trashed project.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", + "queryId": { + "description": "Caller-supplied query ID.", "format": "uuid", - "title": "Commandid", + "title": "Queryid", "type": "string" }, "projectId": { @@ -10451,24 +10645,49 @@ "type": "string" }, "type": { - "const": "project.restore", - "description": "Command discriminator.", + "const": "pipeline.plan", + "description": "Compile a Pipeline DAG read-only and preview cache hits, dependencies, and issues.", "title": "Type", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" + "scope": { + "description": "Target canvas scope to compile.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" }, - "title": "Expectedversions", - "type": "array" + "oneOf": [ + { + "$ref": "#/$defs/GroupPipelineScope" + }, + { + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" + } + ], + "title": "Scope" }, - "expectedPreview": { + "cachePolicy": { + "default": "reuse", + "description": "Cache reuse strategy to preview.", + "enum": [ + "reuse", + "force_from_node", + "force_all" + ], + "title": "Cachepolicy", + "type": "string" + }, + "forceFromItemId": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "format": "uuid", "type": "string" }, { @@ -10476,256 +10695,22 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/EmptyPayload", - "description": "Restore a trashed project." + "description": "Optional step ID from which to force re-execution when cachePolicy is force_from_node.", + "title": "Forcefromitemid" } }, "required": [ - "commandId", + "queryId", "projectId", "type", - "payload" + "scope" ], - "title": "ProjectRestoreCommand", + "title": "PipelinePlanQuery", "type": "object" }, - "ProjectSnapshot": { + "PipelineResumeCommand": { "additionalProperties": false, - "properties": { - "format": { - "const": "opendirector-project", - "default": "opendirector-project", - "description": "Serialized format identifier.", - "title": "Format", - "type": "string" - }, - "formatVersion": { - "const": 2, - "default": 2, - "description": "Project format version.", - "title": "Formatversion", - "type": "integer" - }, - "project": { - "$ref": "#/$defs/Project", - "description": "Project identity and current revision." - }, - "assets": { - "default": [], - "description": "Registered immutable assets.", - "items": { - "$ref": "#/$defs/Asset" - }, - "title": "Assets", - "type": "array" - }, - "generationSpecs": { - "default": [], - "description": "Editable generation configurations.", - "items": { - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextGenerationSpec" - }, - { - "$ref": "#/$defs/ImageGenerationSpec" - }, - { - "$ref": "#/$defs/VideoGenerationSpec" - }, - { - "$ref": "#/$defs/AudioGenerationSpec" - } - ] - }, - "title": "Generationspecs", - "type": "array" - }, - "references": { - "default": [], - "description": "Ordered generation reference bindings.", - "items": { - "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", - "discriminator": { - "mapping": { - "follow_current": "#/$defs/FollowingReference", - "pinned": "#/$defs/PinnedReference" - }, - "propertyName": "binding" - }, - "oneOf": [ - { - "$ref": "#/$defs/PinnedReference" - }, - { - "$ref": "#/$defs/FollowingReference" - } - ] - }, - "title": "References", - "type": "array" - }, - "canvasItems": { - "default": [], - "description": "Canvas display items, including hidden items.", - "items": { - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioCanvasItem", - "external": "#/$defs/DirectorCanvasItem", - "file": "#/$defs/FileCanvasItem", - "group": "#/$defs/GroupCanvasItem", - "image": "#/$defs/ImageCanvasItem", - "stack": "#/$defs/StackCanvasItem", - "subject": "#/$defs/SubjectCanvasItem", - "text": "#/$defs/TextCanvasItem", - "timeline": "#/$defs/TimelineCanvasItem", - "tool": "#/$defs/ToolCanvasItem", - "video": "#/$defs/VideoCanvasItem" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextCanvasItem" - }, - { - "$ref": "#/$defs/ImageCanvasItem" - }, - { - "$ref": "#/$defs/VideoCanvasItem" - }, - { - "$ref": "#/$defs/AudioCanvasItem" - }, - { - "$ref": "#/$defs/FileCanvasItem" - }, - { - "$ref": "#/$defs/SubjectCanvasItem" - }, - { - "$ref": "#/$defs/TimelineCanvasItem" - }, - { - "$ref": "#/$defs/StackCanvasItem" - }, - { - "$ref": "#/$defs/ToolCanvasItem" - }, - { - "$ref": "#/$defs/DirectorCanvasItem" - }, - { - "$ref": "#/$defs/GroupCanvasItem" - } - ] - }, - "title": "Canvasitems", - "type": "array" - }, - "editorDocuments": { - "default": [], - "description": "Persisted editable documents.", - "items": { - "discriminator": { - "mapping": { - "director": "#/$defs/DirectorDocument", - "image_crop": "#/$defs/ImageCropDocument", - "layers": "#/$defs/LayerDocument", - "media_edit": "#/$defs/MediaEditDocument", - "stack": "#/$defs/StackDocument", - "subject": "#/$defs/SubjectDocument", - "timeline": "#/$defs/TimelineDocument", - "tool": "#/$defs/ToolDocument" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TimelineDocument" - }, - { - "$ref": "#/$defs/SubjectDocument" - }, - { - "$ref": "#/$defs/LayerDocument" - }, - { - "$ref": "#/$defs/ImageCropDocument" - }, - { - "$ref": "#/$defs/StackDocument" - }, - { - "$ref": "#/$defs/ToolDocument" - }, - { - "$ref": "#/$defs/DirectorDocument" - }, - { - "$ref": "#/$defs/MediaEditDocument" - } - ] - }, - "title": "Editordocuments", - "type": "array" - }, - "jobs": { - "default": [], - "description": "Immutable generation execution records.", - "items": { - "$ref": "#/$defs/Job" - }, - "title": "Jobs", - "type": "array" - }, - "results": { - "default": [], - "description": "Generated result candidates and adoption history.", - "items": { - "$ref": "#/$defs/ResultVersion" - }, - "title": "Results", - "type": "array" - }, - "eventCursor": { - "default": 0, - "description": "Latest committed project event cursor.", - "minimum": 0, - "title": "Eventcursor", - "type": "integer" - }, - "undoClearedThrough": { - "default": 0, - "description": "Event cursor through which undo history was cleared.", - "minimum": 0, - "title": "Undoclearedthrough", - "type": "integer" - } - }, - "required": [ - "project" - ], - "title": "ProjectSnapshot", - "type": "object" - }, - "ProjectTrashCommand": { - "additionalProperties": false, - "description": "Move the project to trash.", + "description": "Resume a paused Pipeline execution.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -10740,7 +10725,7 @@ "type": "string" }, "type": { - "const": "project.trash", + "const": "pipeline.resume", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -10769,8 +10754,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/EmptyPayload", - "description": "Move the project to trash." + "$ref": "#/$defs/PipelineControl", + "description": "Resume a paused Pipeline execution." } }, "required": [ @@ -10779,120 +10764,42 @@ "type", "payload" ], - "title": "ProjectTrashCommand", + "title": "PipelineResumeCommand", "type": "object" }, - "PromptReference": { + "PipelineRetry": { "additionalProperties": false, "properties": { - "type": { - "const": "reference", - "description": "Operation or variant discriminator.", - "title": "Type", - "type": "string" - }, - "referenceId": { - "description": "Generation reference ID.", + "executionId": { + "description": "Target settled Pipeline execution ID to retry.", "format": "uuid", - "title": "Referenceid", + "title": "Executionid", "type": "string" + }, + "stopOnFailure": { + "default": false, + "description": "Whether to cancel remaining pending steps after the first failure.", + "title": "Stoponfailure", + "type": "boolean" + }, + "maxConcurrency": { + "default": 4, + "description": "Maximum number of independent pipeline steps executed concurrently.", + "maximum": 16, + "minimum": 1, + "title": "Maxconcurrency", + "type": "integer" } }, "required": [ - "type", - "referenceId" + "executionId" ], - "title": "PromptReference", + "title": "PipelineRetry", "type": "object" }, - "PromptText": { + "PipelineRetryCommand": { "additionalProperties": false, - "properties": { - "type": { - "const": "text", - "description": "Operation or variant discriminator.", - "title": "Type", - "type": "string" - }, - "text": { - "description": "UTF-8 text content or search query.", - "maxLength": 20000, - "title": "Text", - "type": "string" - } - }, - "required": [ - "type", - "text" - ], - "title": "PromptText", - "type": "object" - }, - "QueryBase": { - "additionalProperties": false, - "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - } - }, - "required": [ - "queryId", - "projectId" - ], - "title": "QueryBase", - "type": "object" - }, - "RectangleLayerContent": { - "additionalProperties": false, - "properties": { - "width": { - "description": "Width in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Width", - "type": "integer" - }, - "height": { - "description": "Height in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Height", - "type": "integer" - }, - "kind": { - "const": "rectangle", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "color": { - "description": "Serialized display color.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", - "type": "string" - } - }, - "required": [ - "width", - "height", - "kind", - "color" - ], - "title": "RectangleLayerContent", - "type": "object" - }, - "ReferenceAddCommand": { - "additionalProperties": false, - "description": "Add a generation reference; expectedVersions must include its target generation_spec.", + "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -10907,7 +10814,7 @@ "type": "string" }, "type": { - "const": "reference.add", + "const": "pipeline.retry", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -10936,8 +10843,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Add a generation reference; expectedVersions must include its target generation_spec." + "$ref": "#/$defs/PipelineRetry", + "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps." } }, "required": [ @@ -10946,113 +10853,84 @@ "type", "payload" ], - "title": "ReferenceAddCommand", - "type": "object" - }, - "ReferenceAddCommandOperation": { - "additionalProperties": false, - "description": "Add a generation reference; expectedVersions must include its target generation_spec.", - "properties": { - "type": { - "const": "reference.add", - "description": "Operation discriminator.", - "title": "Type", - "type": "string" - }, - "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Add a generation reference; expectedVersions must include its target generation_spec." - } - }, - "required": [ - "type", - "payload" - ], - "title": "ReferenceAddCommandOperation", + "title": "PipelineRetryCommand", "type": "object" }, - "ReferenceBase": { + "PipelineStart": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "targetSpecId": { - "description": "Target generation configuration ID.", - "format": "uuid", - "title": "Targetspecid", - "type": "string" + "scope": { + "description": "Target canvas scope to compile and execute.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/GroupPipelineScope" + }, + { + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" + } + ], + "title": "Scope" }, - "role": { - "default": "reference", - "description": "Business role of this binding or reference.", + "cachePolicy": { + "default": "reuse", + "description": "Cache reuse strategy for unchanged nodes.", "enum": [ - "reference", - "first_frame", - "last_frame", - "continuation", - "control" + "reuse", + "force_from_node", + "force_all" ], - "title": "Role", + "title": "Cachepolicy", "type": "string" }, - "order": { - "default": 0, - "description": "Reference ordering within the target configuration.", - "minimum": 0, - "title": "Order", - "type": "integer" + "forceFromItemId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional step ID from which to force re-execution when cachePolicy is force_from_node.", + "title": "Forcefromitemid" }, - "active": { - "default": true, - "description": "Whether this reference participates in generation.", - "title": "Active", + "stopOnFailure": { + "default": false, + "description": "Whether to cancel remaining pending steps after the first failure.", + "title": "Stoponfailure", "type": "boolean" + }, + "maxConcurrency": { + "default": 4, + "description": "Maximum number of independent pipeline steps executed concurrently.", + "maximum": 16, + "minimum": 1, + "title": "Maxconcurrency", + "type": "integer" } }, "required": [ - "id", - "projectId", - "targetSpecId" - ], - "title": "ReferenceBase", - "type": "object" - }, - "ReferenceRemove": { - "additionalProperties": false, - "properties": { - "referenceId": { - "description": "Generation reference ID.", - "format": "uuid", - "title": "Referenceid", - "type": "string" - } - }, - "required": [ - "referenceId" + "scope" ], - "title": "ReferenceRemove", + "title": "PipelineStart", "type": "object" }, - "ReferenceRemoveCommand": { + "PipelineStartCommand": { "additionalProperties": false, - "description": "Deactivate a generation reference.", + "description": "Compile and start a durable concurrent Pipeline execution in the background.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11067,7 +10945,7 @@ "type": "string" }, "type": { - "const": "reference.remove", + "const": "pipeline.start", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11096,8 +10974,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ReferenceRemove", - "description": "Deactivate a generation reference." + "$ref": "#/$defs/PipelineStart", + "description": "Compile and start a durable concurrent Pipeline execution in the background." } }, "required": [ @@ -11106,115 +10984,171 @@ "type", "payload" ], - "title": "ReferenceRemoveCommand", + "title": "PipelineStartCommand", "type": "object" }, - "ReferenceRemoveCommandOperation": { + "PipelineStepIssue": { "additionalProperties": false, - "description": "Deactivate a generation reference.", "properties": { - "type": { - "const": "reference.remove", - "description": "Operation discriminator.", - "title": "Type", + "code": { + "description": "Stable machine-readable issue code.", + "maxLength": 100, + "minLength": 1, + "title": "Code", "type": "string" }, - "payload": { - "$ref": "#/$defs/ReferenceRemove", - "description": "Deactivate a generation reference." + "message": { + "description": "Human-readable issue summary.", + "maxLength": 1000, + "minLength": 1, + "title": "Message", + "type": "string" + }, + "itemId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Canvas item associated with this issue, if applicable.", + "title": "Itemid" } }, "required": [ - "type", - "payload" + "code", + "message" ], - "title": "ReferenceRemoveCommandOperation", + "title": "PipelineStepIssue", "type": "object" }, - "ReferenceRestoreCommand": { + "Playhead": { "additionalProperties": false, - "description": "Restore a generation reference.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", + "editorDocumentId": { + "description": "Editable document ID.", "format": "uuid", - "title": "Commandid", + "title": "Editordocumentid", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "seconds": { + "default": 0, + "description": "Playhead position in seconds.", + "minimum": 0, + "title": "Seconds", + "type": "number" + } + }, + "required": [ + "editorDocumentId" + ], + "title": "Playhead", + "type": "object" + }, + "Point": { + "additionalProperties": false, + "properties": { + "x": { + "default": 0, + "description": "Horizontal coordinate.", + "title": "X", + "type": "number" }, - "type": { - "const": "reference.restore", - "description": "Command discriminator.", - "title": "Type", + "y": { + "default": 0, + "description": "Vertical coordinate.", + "title": "Y", + "type": "number" + } + }, + "title": "Point", + "type": "object" + }, + "Project": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "format": "uuid", + "title": "Id", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "expectedPreview": { + "name": { + "description": "User-visible name.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Name", + "type": "string" + }, + "defaultNameIndex": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Restore a generation reference." + "description": "Index of the automatically named initial project.", + "title": "Defaultnameindex" } }, "required": [ - "commandId", - "projectId", - "type", - "payload" + "id", + "name" ], - "title": "ReferenceRestoreCommand", + "title": "Project", "type": "object" }, - "ReferenceRestoreCommandOperation": { + "ProjectCreate": { "additionalProperties": false, - "description": "Restore a generation reference.", "properties": { - "type": { - "const": "reference.restore", - "description": "Operation discriminator.", - "title": "Type", + "name": { + "description": "User-visible name.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Name", "type": "string" }, - "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Restore a generation reference." + "defaultNameIndex": { + "anyOf": [ + { + "exclusiveMinimum": 0, + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Index for an automatically named initial project.", + "title": "Defaultnameindex" } }, "required": [ - "type", - "payload" + "name" ], - "title": "ReferenceRestoreCommandOperation", + "title": "ProjectCreate", "type": "object" }, - "ReferenceUpdateCommand": { + "ProjectCreateCommand": { "additionalProperties": false, - "description": "Update a generation reference.", + "description": "Create a project.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11229,7 +11163,7 @@ "type": "string" }, "type": { - "const": "reference.update", + "const": "project.create", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11258,8 +11192,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Update a generation reference." + "$ref": "#/$defs/ProjectCreate", + "description": "Create a project." } }, "required": [ @@ -11268,230 +11202,165 @@ "type", "payload" ], - "title": "ReferenceUpdateCommand", + "title": "ProjectCreateCommand", "type": "object" }, - "ReferenceUpdateCommandOperation": { + "ProjectEntity": { "additionalProperties": false, - "description": "Update a generation reference.", "properties": { - "type": { - "const": "reference.update", - "description": "Operation discriminator.", - "title": "Type", + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", "type": "string" }, - "payload": { - "$ref": "#/$defs/ReferenceWrite", - "description": "Update a generation reference." + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" } }, "required": [ - "type", - "payload" + "id", + "projectId" ], - "title": "ReferenceUpdateCommandOperation", + "title": "ProjectEntity", "type": "object" }, - "ReferenceWrite": { + "ProjectEvent": { "additionalProperties": false, "properties": { - "reference": { - "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", - "discriminator": { - "mapping": { - "follow_current": "#/$defs/FollowingReference", - "pinned": "#/$defs/PinnedReference" - }, - "propertyName": "binding" - }, - "oneOf": [ + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "cursor": { + "description": "Monotonically increasing project event cursor.", + "minimum": 1, + "title": "Cursor", + "type": "integer" + }, + "commandId": { + "anyOf": [ { - "$ref": "#/$defs/PinnedReference" + "format": "uuid", + "type": "string" }, { - "$ref": "#/$defs/FollowingReference" + "type": "null" } ], - "title": "Reference" + "default": null, + "description": "Stable command ID for idempotent replay.", + "title": "Commandid" + }, + "source": { + "description": "Input source or recorded provenance.", + "enum": [ + "ui", + "agent", + "background", + "external" + ], + "title": "Source", + "type": "string" + }, + "changed": { + "default": [], + "description": "Business objects changed by the operation.", + "items": { + "$ref": "#/$defs/ChangedObject" + }, + "title": "Changed", + "type": "array" + }, + "jobIds": { + "default": [], + "description": "Generation jobs associated with this operation.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Jobids", + "type": "array" } }, "required": [ - "reference" + "projectId", + "cursor", + "source" ], - "title": "ReferenceWrite", + "title": "ProjectEvent", "type": "object" }, - "ResolvedReference": { + "ProjectQuery": { "additionalProperties": false, "properties": { - "referenceId": { - "description": "Generation reference ID.", + "queryId": { + "description": "Caller-supplied query ID.", "format": "uuid", - "title": "Referenceid", + "title": "Queryid", "type": "string" }, - "role": { - "description": "Business role of this binding or reference.", - "enum": [ - "reference", - "first_frame", - "last_frame", - "continuation", - "control" - ], - "title": "Role", - "type": "string" - }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." - }, - "metadata": { - "$ref": "#/$defs/MediaMetadata", - "description": "Verified media properties." - }, - "sourceVersion": { - "anyOf": [ - { - "$ref": "#/$defs/ObjectVersion" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Captured source object version." - }, - "documentVersion": { - "anyOf": [ - { - "$ref": "#/$defs/ObjectVersion" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Version of the source editable document." - }, - "subjectRole": { - "anyOf": [ - { - "enum": [ - "main", - "auxiliary", - "voice" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Subject media slot used by this reference.", - "title": "Subjectrole" - }, - "name": { - "default": "", - "description": "User-visible name.", - "maxLength": 255, - "title": "Name", - "type": "string" - }, - "sourceTitle": { - "default": "", - "description": "Source canvas title captured for this reference.", - "maxLength": 255, - "title": "Sourcetitle", - "type": "string" - }, - "transmission": { - "default": "content", - "description": "How reference content is sent to the provider.", - "enum": [ - "content", - "metadata", - "context_only", - "latent" - ], - "title": "Transmission", - "type": "string" - } - }, - "required": [ - "referenceId", - "role", - "asset", - "metadata" - ], - "title": "ResolvedReference", - "type": "object" - }, - "ResultCheck": { - "additionalProperties": false, - "properties": { - "status": { - "description": "Current operation lifecycle state.", - "enum": [ - "passed", - "failed" - ], - "title": "Status", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "facts": { - "additionalProperties": true, - "description": "Observed technical validation facts.", - "title": "Facts", - "type": "object" - }, - "message": { - "description": "Human-readable issue description.", - "title": "Message", + "type": { + "const": "project.get", + "description": "Read the current project.", + "title": "Type", "type": "string" - }, - "humanReviewRequired": { - "default": true, - "description": "Whether creative quality still requires human review.", - "title": "Humanreviewrequired", - "type": "boolean" } }, "required": [ - "status", - "message" + "queryId", + "projectId", + "type" ], - "title": "ResultCheck", + "title": "ProjectQuery", "type": "object" }, - "ResultSelect": { + "ProjectRename": { "additionalProperties": false, "properties": { - "specId": { - "description": "Generation configuration ID.", - "format": "uuid", - "title": "Specid", - "type": "string" - }, - "resultId": { - "description": "Generation result ID.", - "format": "uuid", - "title": "Resultid", + "name": { + "description": "User-visible name.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Name", "type": "string" } }, "required": [ - "specId", - "resultId" + "name" ], - "title": "ResultSelect", + "title": "ProjectRename", "type": "object" }, - "ResultSelectCommand": { + "ProjectRenameCommand": { "additionalProperties": false, - "description": "Adopt an existing generation result.", + "description": "Rename the project.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11506,7 +11375,7 @@ "type": "string" }, "type": { - "const": "result.select", + "const": "project.rename", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11535,8 +11404,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/ResultSelect", - "description": "Adopt an existing generation result." + "$ref": "#/$defs/ProjectRename", + "description": "Rename the project." } }, "required": [ @@ -11545,125 +11414,301 @@ "type", "payload" ], - "title": "ResultSelectCommand", + "title": "ProjectRenameCommand", "type": "object" }, - "ResultSelectCommandOperation": { + "ProjectRestoreCommand": { "additionalProperties": false, - "description": "Adopt an existing generation result.", + "description": "Restore a trashed project.", "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, "type": { - "const": "result.select", - "description": "Operation discriminator.", + "const": "project.restore", + "description": "Command discriminator.", "title": "Type", "type": "string" }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, "payload": { - "$ref": "#/$defs/ResultSelect", - "description": "Adopt an existing generation result." + "$ref": "#/$defs/EmptyPayload", + "description": "Restore a trashed project." } }, "required": [ + "commandId", + "projectId", "type", "payload" ], - "title": "ResultSelectCommandOperation", + "title": "ProjectRestoreCommand", "type": "object" }, - "ResultVersion": { + "ProjectSnapshot": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "format": { + "const": "opendirector-project", + "default": "opendirector-project", + "description": "Serialized format identifier.", + "title": "Format", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", + "formatVersion": { + "const": 2, + "default": 2, + "description": "Project format version.", + "title": "Formatversion", "type": "integer" }, - "specId": { - "description": "Generation configuration ID.", - "format": "uuid", - "title": "Specid", - "type": "string" + "project": { + "$ref": "#/$defs/Project", + "description": "Project identity and current revision." }, - "jobId": { - "description": "Generation job ID.", - "format": "uuid", - "title": "Jobid", - "type": "string" + "assets": { + "default": [], + "description": "Registered immutable assets.", + "items": { + "$ref": "#/$defs/Asset" + }, + "title": "Assets", + "type": "array" }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." + "generationSpecs": { + "default": [], + "description": "Editable generation configurations.", + "items": { + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextGenerationSpec" + }, + { + "$ref": "#/$defs/ImageGenerationSpec" + }, + { + "$ref": "#/$defs/VideoGenerationSpec" + }, + { + "$ref": "#/$defs/AudioGenerationSpec" + } + ] + }, + "title": "Generationspecs", + "type": "array" }, - "inputFingerprint": { - "description": "Fingerprint of the fixed execution input.", - "pattern": "^[0-9a-f]{64}$", - "title": "Inputfingerprint", - "type": "string" - } - }, - "required": [ - "id", - "projectId", - "specId", - "jobId", - "asset", - "inputFingerprint" - ], - "title": "ResultVersion", - "type": "object" - }, - "SelectionBox": { - "additionalProperties": false, - "properties": { - "x": { - "description": "Horizontal coordinate.", - "title": "X", - "type": "number" + "references": { + "default": [], + "description": "Ordered generation reference bindings.", + "items": { + "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", + "discriminator": { + "mapping": { + "follow_current": "#/$defs/FollowingReference", + "pinned": "#/$defs/PinnedReference" + }, + "propertyName": "binding" + }, + "oneOf": [ + { + "$ref": "#/$defs/PinnedReference" + }, + { + "$ref": "#/$defs/FollowingReference" + } + ] + }, + "title": "References", + "type": "array" }, - "y": { - "description": "Vertical coordinate.", - "title": "Y", - "type": "number" + "canvasItems": { + "default": [], + "description": "Canvas display items, including hidden items.", + "items": { + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioCanvasItem", + "external": "#/$defs/DirectorCanvasItem", + "file": "#/$defs/FileCanvasItem", + "group": "#/$defs/GroupCanvasItem", + "image": "#/$defs/ImageCanvasItem", + "stack": "#/$defs/StackCanvasItem", + "subject": "#/$defs/SubjectCanvasItem", + "text": "#/$defs/TextCanvasItem", + "timeline": "#/$defs/TimelineCanvasItem", + "tool": "#/$defs/ToolCanvasItem", + "video": "#/$defs/VideoCanvasItem" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextCanvasItem" + }, + { + "$ref": "#/$defs/ImageCanvasItem" + }, + { + "$ref": "#/$defs/VideoCanvasItem" + }, + { + "$ref": "#/$defs/AudioCanvasItem" + }, + { + "$ref": "#/$defs/FileCanvasItem" + }, + { + "$ref": "#/$defs/SubjectCanvasItem" + }, + { + "$ref": "#/$defs/TimelineCanvasItem" + }, + { + "$ref": "#/$defs/StackCanvasItem" + }, + { + "$ref": "#/$defs/ToolCanvasItem" + }, + { + "$ref": "#/$defs/DirectorCanvasItem" + }, + { + "$ref": "#/$defs/GroupCanvasItem" + } + ] + }, + "title": "Canvasitems", + "type": "array" }, - "width": { - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" + "editorDocuments": { + "default": [], + "description": "Persisted editable documents.", + "items": { + "discriminator": { + "mapping": { + "director": "#/$defs/DirectorDocument", + "image_crop": "#/$defs/ImageCropDocument", + "layers": "#/$defs/LayerDocument", + "media_edit": "#/$defs/MediaEditDocument", + "stack": "#/$defs/StackDocument", + "subject": "#/$defs/SubjectDocument", + "timeline": "#/$defs/TimelineDocument", + "tool": "#/$defs/ToolDocument" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TimelineDocument" + }, + { + "$ref": "#/$defs/SubjectDocument" + }, + { + "$ref": "#/$defs/LayerDocument" + }, + { + "$ref": "#/$defs/ImageCropDocument" + }, + { + "$ref": "#/$defs/StackDocument" + }, + { + "$ref": "#/$defs/ToolDocument" + }, + { + "$ref": "#/$defs/DirectorDocument" + }, + { + "$ref": "#/$defs/MediaEditDocument" + } + ] + }, + "title": "Editordocuments", + "type": "array" }, - "height": { - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "jobs": { + "default": [], + "description": "Immutable generation execution records.", + "items": { + "$ref": "#/$defs/Job" + }, + "title": "Jobs", + "type": "array" + }, + "results": { + "default": [], + "description": "Generated result candidates and adoption history.", + "items": { + "$ref": "#/$defs/ResultVersion" + }, + "title": "Results", + "type": "array" + }, + "eventCursor": { + "default": 0, + "description": "Latest committed project event cursor.", + "minimum": 0, + "title": "Eventcursor", + "type": "integer" + }, + "undoClearedThrough": { + "default": 0, + "description": "Event cursor through which undo history was cleared.", + "minimum": 0, + "title": "Undoclearedthrough", + "type": "integer" } }, "required": [ - "x", - "y", - "width", - "height" + "project" ], - "title": "SelectionBox", + "title": "ProjectSnapshot", "type": "object" }, - "SpecCreateCommand": { + "ProjectTrashCommand": { "additionalProperties": false, - "description": "Create a generation configuration without submitting a job.", + "description": "Move the project to trash.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11678,7 +11723,7 @@ "type": "string" }, "type": { - "const": "generationSpec.create", + "const": "project.trash", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11707,8 +11752,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/SpecWrite", - "description": "Create a generation configuration without submitting a job." + "$ref": "#/$defs/EmptyPayload", + "description": "Move the project to trash." } }, "required": [ @@ -11717,34 +11762,120 @@ "type", "payload" ], - "title": "SpecCreateCommand", + "title": "ProjectTrashCommand", "type": "object" }, - "SpecCreateCommandOperation": { + "PromptReference": { "additionalProperties": false, - "description": "Create a generation configuration without submitting a job.", "properties": { "type": { - "const": "generationSpec.create", - "description": "Operation discriminator.", + "const": "reference", + "description": "Operation or variant discriminator.", "title": "Type", "type": "string" }, - "payload": { - "$ref": "#/$defs/SpecWrite", - "description": "Create a generation configuration without submitting a job." + "referenceId": { + "description": "Generation reference ID.", + "format": "uuid", + "title": "Referenceid", + "type": "string" } }, "required": [ "type", - "payload" + "referenceId" ], - "title": "SpecCreateCommandOperation", + "title": "PromptReference", "type": "object" }, - "SpecPromptCommand": { + "PromptText": { "additionalProperties": false, - "description": "Update prompt text and structured references.", + "properties": { + "type": { + "const": "text", + "description": "Operation or variant discriminator.", + "title": "Type", + "type": "string" + }, + "text": { + "description": "UTF-8 text content or search query.", + "maxLength": 20000, + "title": "Text", + "type": "string" + } + }, + "required": [ + "type", + "text" + ], + "title": "PromptText", + "type": "object" + }, + "QueryBase": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + } + }, + "required": [ + "queryId", + "projectId" + ], + "title": "QueryBase", + "type": "object" + }, + "RectangleLayerContent": { + "additionalProperties": false, + "properties": { + "width": { + "description": "Width in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Width", + "type": "integer" + }, + "height": { + "description": "Height in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Height", + "type": "integer" + }, + "kind": { + "const": "rectangle", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "color": { + "description": "Serialized display color.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", + "type": "string" + } + }, + "required": [ + "width", + "height", + "kind", + "color" + ], + "title": "RectangleLayerContent", + "type": "object" + }, + "ReferenceAddCommand": { + "additionalProperties": false, + "description": "Add a generation reference; expectedVersions must include its target generation_spec.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11759,7 +11890,7 @@ "type": "string" }, "type": { - "const": "generationSpec.setPrompt", + "const": "reference.add", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11788,8 +11919,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/SpecPromptWrite", - "description": "Update prompt text and structured references." + "$ref": "#/$defs/ReferenceWrite", + "description": "Add a generation reference; expectedVersions must include its target generation_spec." } }, "required": [ @@ -11798,120 +11929,113 @@ "type", "payload" ], - "title": "SpecPromptCommand", + "title": "ReferenceAddCommand", "type": "object" }, - "SpecPromptCommandOperation": { + "ReferenceAddCommandOperation": { "additionalProperties": false, - "description": "Update prompt text and structured references.", + "description": "Add a generation reference; expectedVersions must include its target generation_spec.", "properties": { "type": { - "const": "generationSpec.setPrompt", + "const": "reference.add", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/SpecPromptWrite", - "description": "Update prompt text and structured references." + "$ref": "#/$defs/ReferenceWrite", + "description": "Add a generation reference; expectedVersions must include its target generation_spec." } }, "required": [ "type", "payload" ], - "title": "SpecPromptCommandOperation", + "title": "ReferenceAddCommandOperation", "type": "object" }, - "SpecPromptWrite": { + "ReferenceBase": { "additionalProperties": false, "properties": { - "specId": { - "description": "Generation configuration ID.", + "id": { + "description": "Stable identity of this project-owned object.", "format": "uuid", - "title": "Specid", + "title": "Id", "type": "string" }, - "prompt": { - "description": "Generation prompt text.", - "maxLength": 20000, - "title": "Prompt", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "promptContent": { - "anyOf": [ - { - "items": { - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "targetSpecId": { + "description": "Target generation configuration ID.", + "format": "uuid", + "title": "Targetspecid", + "type": "string" + }, + "role": { + "default": "reference", + "description": "Business role of this binding or reference.", + "enum": [ + "reference", + "first_frame", + "last_frame", + "continuation", + "control" ], - "default": null, - "description": "Structured prompt text and reference tokens.", - "title": "Promptcontent" + "title": "Role", + "type": "string" + }, + "order": { + "default": 0, + "description": "Reference ordering within the target configuration.", + "minimum": 0, + "title": "Order", + "type": "integer" + }, + "active": { + "default": true, + "description": "Whether this reference participates in generation.", + "title": "Active", + "type": "boolean" } }, "required": [ - "specId", - "prompt" + "id", + "projectId", + "targetSpecId" ], - "title": "SpecPromptWrite", + "title": "ReferenceBase", "type": "object" }, - "SpecRestore": { + "ReferenceRemove": { "additionalProperties": false, "properties": { - "specId": { - "description": "Generation configuration ID.", - "format": "uuid", - "title": "Specid", - "type": "string" - }, - "commandId": { - "description": "Historical command providing the settings to restore.", + "referenceId": { + "description": "Generation reference ID.", "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "referencePolicy": { - "default": "follow_current", - "description": "Policy for restoring associated reference bindings.", - "enum": [ - "follow_current", - "pinned" - ], - "title": "Referencepolicy", + "title": "Referenceid", "type": "string" } }, "required": [ - "specId", - "commandId" + "referenceId" ], - "title": "SpecRestore", + "title": "ReferenceRemove", "type": "object" }, - "SpecRestoreCommand": { + "ReferenceRemoveCommand": { "additionalProperties": false, - "description": "Restore generation settings from a historical command.", + "description": "Deactivate a generation reference.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11926,7 +12050,7 @@ "type": "string" }, "type": { - "const": "generationSpec.restore", + "const": "reference.remove", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -11955,8 +12079,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/SpecRestore", - "description": "Restore generation settings from a historical command." + "$ref": "#/$defs/ReferenceRemove", + "description": "Deactivate a generation reference." } }, "required": [ @@ -11965,12 +12089,34 @@ "type", "payload" ], - "title": "SpecRestoreCommand", + "title": "ReferenceRemoveCommand", "type": "object" }, - "SpecUpdateCommand": { + "ReferenceRemoveCommandOperation": { "additionalProperties": false, - "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", + "description": "Deactivate a generation reference.", + "properties": { + "type": { + "const": "reference.remove", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/ReferenceRemove", + "description": "Deactivate a generation reference." + } + }, + "required": [ + "type", + "payload" + ], + "title": "ReferenceRemoveCommandOperation", + "type": "object" + }, + "ReferenceRestoreCommand": { + "additionalProperties": false, + "description": "Restore a generation reference.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -11985,7 +12131,7 @@ "type": "string" }, "type": { - "const": "generationSpec.update", + "const": "reference.restore", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -12014,8 +12160,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/SpecWrite", - "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged." + "$ref": "#/$defs/ReferenceWrite", + "description": "Restore a generation reference." } }, "required": [ @@ -12024,75 +12170,39 @@ "type", "payload" ], - "title": "SpecUpdateCommand", + "title": "ReferenceRestoreCommand", "type": "object" }, - "SpecUpdateCommandOperation": { + "ReferenceRestoreCommandOperation": { "additionalProperties": false, - "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", + "description": "Restore a generation reference.", "properties": { "type": { - "const": "generationSpec.update", + "const": "reference.restore", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/SpecWrite", - "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged." + "$ref": "#/$defs/ReferenceWrite", + "description": "Restore a generation reference." } }, "required": [ "type", "payload" ], - "title": "SpecUpdateCommandOperation", - "type": "object" - }, - "SpecWrite": { - "additionalProperties": false, - "properties": { - "spec": { - "description": "Complete configuration with its current revision; the server increments it on commit. For updates, read the current spec, preserve unedited fields and submit its current expected version. Accepted job snapshots never change.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextGenerationSpec" - }, - { - "$ref": "#/$defs/ImageGenerationSpec" - }, - { - "$ref": "#/$defs/VideoGenerationSpec" - }, - { - "$ref": "#/$defs/AudioGenerationSpec" - } - ], - "title": "Spec" - } - }, - "required": [ - "spec" - ], - "title": "SpecWrite", + "title": "ReferenceRestoreCommandOperation", "type": "object" }, - "StackCanvasItem": { + "ReferenceUpdateCommand": { "additionalProperties": false, + "description": "Update a generation reference.", "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "commandId": { + "description": "Stable command ID for idempotent replay.", "format": "uuid", - "title": "Id", + "title": "Commandid", "type": "string" }, "projectId": { @@ -12101,80 +12211,25 @@ "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "stack", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "type": { + "const": "reference.update", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" - }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" - }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" - }, - "color": { - "anyOf": [ - { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" - }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "parentId": { + "expectedPreview": { "anyOf": [ { - "format": "uuid", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -12182,322 +12237,323 @@ } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "binding": { - "$ref": "#/$defs/EditorBinding", - "description": "Business object displayed by this canvas item." + "payload": { + "$ref": "#/$defs/ReferenceWrite", + "description": "Update a generation reference." } }, "required": [ - "id", + "commandId", "projectId", - "kind", - "binding" + "type", + "payload" ], - "title": "StackCanvasItem", + "title": "ReferenceUpdateCommand", "type": "object" }, - "StackData": { + "ReferenceUpdateCommandOperation": { "additionalProperties": false, + "description": "Update a generation reference.", "properties": { - "nodeIds": { - "default": [], - "description": "Ordered member canvas item IDs.", - "items": { - "format": "uuid", - "type": "string" - }, - "title": "Nodeids", - "type": "array" + "type": { + "const": "reference.update", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" }, - "activeIndex": { - "default": 0, - "description": "Index of the active member.", - "minimum": 0, - "title": "Activeindex", - "type": "integer" + "payload": { + "$ref": "#/$defs/ReferenceWrite", + "description": "Update a generation reference." } }, - "title": "StackData", + "required": [ + "type", + "payload" + ], + "title": "ReferenceUpdateCommandOperation", "type": "object" }, - "StackDocument": { + "ReferenceWrite": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" - }, - "inputConnections": { - "default": [], - "description": "Persisted connections to source assets.", - "items": { - "$ref": "#/$defs/EditorInputConnection" + "reference": { + "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", + "discriminator": { + "mapping": { + "follow_current": "#/$defs/FollowingReference", + "pinned": "#/$defs/PinnedReference" + }, + "propertyName": "binding" }, - "title": "Inputconnections", - "type": "array" - }, - "kind": { - "const": "stack", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "data": { - "$ref": "#/$defs/StackData", - "description": "Typed editable document contents." + "oneOf": [ + { + "$ref": "#/$defs/PinnedReference" + }, + { + "$ref": "#/$defs/FollowingReference" + } + ], + "title": "Reference" } }, "required": [ - "id", - "projectId", - "kind", - "data" + "reference" ], - "title": "StackDocument", + "title": "ReferenceWrite", "type": "object" }, - "StageCamera": { + "ResolvedReference": { "additionalProperties": false, "properties": { - "position": { - "$ref": "#/$defs/Vector3", - "description": "Position in the owning canvas or stage." - }, - "target": { - "$ref": "#/$defs/Vector3", - "description": "Camera look-at position." + "referenceId": { + "description": "Generation reference ID.", + "format": "uuid", + "title": "Referenceid", + "type": "string" }, - "fov": { - "description": "Camera vertical field of view in degrees.", - "exclusiveMaximum": 180, - "exclusiveMinimum": 0, - "title": "Fov", - "type": "number" - } - }, - "required": [ - "position", - "target", - "fov" - ], - "title": "StageCamera", - "type": "object" - }, - "StageMotion": { - "additionalProperties": false, - "properties": { - "preset": { - "description": "Selected generation or motion preset.", + "role": { + "description": "Business role of this binding or reference.", "enum": [ - "idle", - "walk", - "run", - "wave" + "reference", + "first_frame", + "last_frame", + "continuation", + "control" ], - "title": "Preset", + "title": "Role", "type": "string" }, - "speed": { - "description": "Playback or motion speed multiplier.", - "exclusiveMinimum": 0, - "title": "Speed", - "type": "number" - }, - "amount": { - "description": "Magnitude of the procedural motion.", - "maximum": 1, - "minimum": 0, - "title": "Amount", - "type": "number" - } - }, - "required": [ - "preset", - "speed", - "amount" - ], - "title": "StageMotion", - "type": "object" - }, - "StageObject": { - "additionalProperties": false, - "properties": { - "position": { - "$ref": "#/$defs/Vector3", - "description": "Position in the owning canvas or stage." + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." }, - "rotation": { - "$ref": "#/$defs/Vector3", - "description": "Rotation in radians around each stage axis." + "metadata": { + "$ref": "#/$defs/MediaMetadata", + "description": "Verified media properties." }, - "scale": { - "$ref": "#/$defs/Vector3", - "description": "Positive scale along each stage axis." + "sourceVersion": { + "anyOf": [ + { + "$ref": "#/$defs/ObjectVersion" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Captured source object version." }, - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" + "documentVersion": { + "anyOf": [ + { + "$ref": "#/$defs/ObjectVersion" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Version of the source editable document." }, - "kind": { - "description": "Business object or media type.", - "enum": [ - "person", - "box", - "sphere" + "subjectRole": { + "anyOf": [ + { + "enum": [ + "main", + "auxiliary", + "voice" + ], + "type": "string" + }, + { + "type": "null" + } ], - "title": "Kind", - "type": "string" + "default": null, + "description": "Subject media slot used by this reference.", + "title": "Subjectrole" }, "name": { + "default": "", "description": "User-visible name.", "maxLength": 255, "title": "Name", "type": "string" }, - "color": { - "description": "Serialized display color.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", + "sourceTitle": { + "default": "", + "description": "Source canvas title captured for this reference.", + "maxLength": 255, + "title": "Sourcetitle", "type": "string" }, - "keyframes": { - "default": [], - "description": "Ordered animation keyframes.", - "items": { - "$ref": "#/$defs/TransformFrame" - }, - "title": "Keyframes", - "type": "array" - }, - "motionClips": { - "default": [], - "description": "Ordered procedural motion intervals.", - "items": { - "$ref": "#/$defs/MotionClip" - }, - "title": "Motionclips", - "type": "array" + "transmission": { + "default": "content", + "description": "How reference content is sent to the provider.", + "enum": [ + "content", + "metadata", + "context_only", + "latent" + ], + "title": "Transmission", + "type": "string" } }, "required": [ - "position", - "rotation", - "scale", - "id", - "kind", - "name", - "color" + "referenceId", + "role", + "asset", + "metadata" ], - "title": "StageObject", + "title": "ResolvedReference", "type": "object" }, - "StageShot": { + "ResultCheck": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", + "status": { + "description": "Current operation lifecycle state.", + "enum": [ + "passed", + "failed" + ], + "title": "Status", "type": "string" }, - "cameraId": { - "description": "Stage camera ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Cameraid", + "facts": { + "additionalProperties": true, + "description": "Observed technical validation facts.", + "title": "Facts", + "type": "object" + }, + "message": { + "description": "Human-readable issue description.", + "title": "Message", "type": "string" }, - "start": { - "description": "Start time in seconds.", - "minimum": 0, - "title": "Start", - "type": "number" + "humanReviewRequired": { + "default": true, + "description": "Whether creative quality still requires human review.", + "title": "Humanreviewrequired", + "type": "boolean" + } + }, + "required": [ + "status", + "message" + ], + "title": "ResultCheck", + "type": "object" + }, + "ResultSelect": { + "additionalProperties": false, + "properties": { + "specId": { + "description": "Generation configuration ID.", + "format": "uuid", + "title": "Specid", + "type": "string" }, - "duration": { - "description": "Interval duration in seconds.", - "exclusiveMinimum": 0, - "title": "Duration", - "type": "number" + "resultId": { + "description": "Generation result ID.", + "format": "uuid", + "title": "Resultid", + "type": "string" } }, "required": [ - "id", - "cameraId", - "start", - "duration" + "specId", + "resultId" ], - "title": "StageShot", + "title": "ResultSelect", "type": "object" }, - "StageTransform": { + "ResultSelectCommand": { "additionalProperties": false, + "description": "Adopt an existing generation result.", "properties": { - "position": { - "$ref": "#/$defs/Vector3", - "description": "Position in the owning canvas or stage." + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "rotation": { - "$ref": "#/$defs/Vector3", - "description": "Rotation in radians around each stage axis." + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "scale": { - "$ref": "#/$defs/Vector3", - "description": "Positive scale along each stage axis." + "type": { + "const": "result.select", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/ResultSelect", + "description": "Adopt an existing generation result." } }, "required": [ - "position", - "rotation", - "scale" + "commandId", + "projectId", + "type", + "payload" ], - "title": "StageTransform", + "title": "ResultSelectCommand", "type": "object" }, - "SubjectCanvasItem": { + "ResultSelectCommandOperation": { + "additionalProperties": false, + "description": "Adopt an existing generation result.", + "properties": { + "type": { + "const": "result.select", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/ResultSelect", + "description": "Adopt an existing generation result." + } + }, + "required": [ + "type", + "payload" + ], + "title": "ResultSelectCommandOperation", + "type": "object" + }, + "ResultVersion": { "additionalProperties": false, "properties": { "id": { @@ -12519,73 +12575,138 @@ "title": "Revision", "type": "integer" }, - "kind": { - "const": "subject", - "description": "Business object or media type.", - "title": "Kind", + "specId": { + "description": "Generation configuration ID.", + "format": "uuid", + "title": "Specid", "type": "string" }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "jobId": { + "description": "Generation job ID.", + "format": "uuid", + "title": "Jobid", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." + }, + "inputFingerprint": { + "description": "Fingerprint of the fixed execution input.", + "pattern": "^[0-9a-f]{64}$", + "title": "Inputfingerprint", + "type": "string" + } + }, + "required": [ + "id", + "projectId", + "specId", + "jobId", + "asset", + "inputFingerprint" + ], + "title": "ResultVersion", + "type": "object" + }, + "SelectionBox": { + "additionalProperties": false, + "properties": { + "x": { + "description": "Horizontal coordinate.", + "title": "X", + "type": "number" + }, + "y": { + "description": "Vertical coordinate.", + "title": "Y", + "type": "number" }, "width": { - "default": 352, "description": "Width in pixels.", "exclusiveMinimum": 0, "title": "Width", "type": "number" }, "height": { - "default": 198, "description": "Height in pixels.", "exclusiveMinimum": 0, "title": "Height", "type": "number" + } + }, + "required": [ + "x", + "y", + "width", + "height" + ], + "title": "SelectionBox", + "type": "object" + }, + "SelectionPipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "selection", + "description": "Run an explicit set of canvas nodes.", + "title": "Kind", + "type": "string" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" + "itemIds": { + "description": "Selected canvas item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "maxItems": 200, + "minItems": 1, + "title": "Itemids", + "type": "array" + } + }, + "required": [ + "kind", + "itemIds" + ], + "title": "SelectionPipelineScope", + "type": "object" + }, + "SpecCreateCommand": { + "additionalProperties": false, + "description": "Create a generation configuration without submitting a job.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "color": { - "anyOf": [ - { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" + "type": { + "const": "generationSpec.create", + "description": "Command discriminator.", + "title": "Type", + "type": "string" }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "parentId": { + "expectedPreview": { "anyOf": [ { - "format": "uuid", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -12593,109 +12714,53 @@ } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "binding": { - "$ref": "#/$defs/EditorBinding", - "description": "Business object displayed by this canvas item." + "payload": { + "$ref": "#/$defs/SpecWrite", + "description": "Create a generation configuration without submitting a job." } }, "required": [ - "id", + "commandId", "projectId", - "kind", - "binding" + "type", + "payload" ], - "title": "SubjectCanvasItem", + "title": "SpecCreateCommand", "type": "object" }, - "SubjectData": { + "SpecCreateCommandOperation": { "additionalProperties": false, + "description": "Create a generation configuration without submitting a job.", "properties": { - "description": { - "default": "", - "description": "User-facing annotation only; not subject media or a generation reference", - "maxLength": 20000, - "title": "Description", - "type": "string" - }, - "category": { - "default": "", - "description": "Subject category.", - "maxLength": 100, - "title": "Category", + "type": { + "const": "generationSpec.create", + "description": "Operation discriminator.", + "title": "Type", "type": "string" }, - "main": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Primary subject media." - }, - "auxiliaries": { - "default": [], - "description": "Ordered auxiliary subject media.", - "items": { - "$ref": "#/$defs/AssetRef" - }, - "maxItems": 3, - "title": "Auxiliaries", - "type": "array" - }, - "voice": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Subject voice asset version." - }, - "librarySource": { - "anyOf": [ - { - "$ref": "#/$defs/SubjectLibrarySource" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Immutable source library version." + "payload": { + "$ref": "#/$defs/SpecWrite", + "description": "Create a generation configuration without submitting a job." } }, - "title": "SubjectData", + "required": [ + "type", + "payload" + ], + "title": "SpecCreateCommandOperation", "type": "object" }, - "SubjectDocument": { + "SpecPromptCommand": { "additionalProperties": false, + "description": "Update prompt text and structured references.", "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "commandId": { + "description": "Stable command ID for idempotent replay.", "format": "uuid", - "title": "Id", + "title": "Commandid", "type": "string" }, "projectId": { @@ -12704,276 +12769,165 @@ "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" + "type": { + "const": "generationSpec.setPrompt", + "description": "Command discriminator.", + "title": "Type", + "type": "string" }, - "inputConnections": { + "expectedVersions": { "default": [], - "description": "Persisted connections to source assets.", + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", "items": { - "$ref": "#/$defs/EditorInputConnection" + "$ref": "#/$defs/ObjectVersion" }, - "title": "Inputconnections", + "title": "Expectedversions", "type": "array" }, - "kind": { - "const": "subject", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "data": { - "$ref": "#/$defs/SubjectData", - "description": "Typed editable document contents." + "payload": { + "$ref": "#/$defs/SpecPromptWrite", + "description": "Update prompt text and structured references." } }, "required": [ - "id", + "commandId", "projectId", - "kind", - "data" + "type", + "payload" ], - "title": "SubjectDocument", + "title": "SpecPromptCommand", "type": "object" }, - "SubjectLibrarySource": { + "SpecPromptCommandOperation": { "additionalProperties": false, - "description": "Frozen import provenance; subsequent editing never follows the library.", + "description": "Update prompt text and structured references.", "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", + "type": { + "const": "generationSpec.setPrompt", + "description": "Operation discriminator.", + "title": "Type", "type": "string" }, - "revision": { - "description": "Captured library item revision.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "importId": { - "description": "Library import ID.", - "format": "uuid", - "title": "Importid", - "type": "string" + "payload": { + "$ref": "#/$defs/SpecPromptWrite", + "description": "Update prompt text and structured references." } }, "required": [ - "itemId", - "revision", - "importId" + "type", + "payload" ], - "title": "SubjectLibrarySource", + "title": "SpecPromptCommandOperation", "type": "object" }, - "TextCanvasItem": { + "SpecPromptWrite": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "specId": { + "description": "Generation configuration ID.", "format": "uuid", - "title": "Id", + "title": "Specid", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "text", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "prompt": { + "description": "Generation prompt text.", + "maxLength": 20000, + "title": "Prompt", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" - }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" - }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" - }, - "color": { - "anyOf": [ - { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" - }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" - }, - "parentId": { + "promptContent": { "anyOf": [ { - "format": "uuid", - "type": "string" + "items": { + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ] + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" - }, - "binding": { - "description": "Business object displayed by this canvas item.", - "discriminator": { - "mapping": { - "empty": "#/$defs/EmptyBinding", - "generation": "#/$defs/GenerationBinding", - "material": "#/$defs/MaterialBinding" - }, - "propertyName": "role" - }, - "oneOf": [ - { - "$ref": "#/$defs/EmptyBinding" - }, - { - "$ref": "#/$defs/MaterialBinding" - }, - { - "$ref": "#/$defs/GenerationBinding" - } - ], - "title": "Binding" - }, - "editors": { - "default": [], - "description": "Attached editable documents.", - "items": { - "$ref": "#/$defs/EditorRef" - }, - "title": "Editors", - "type": "array" + "description": "Structured prompt text and reference tokens.", + "title": "Promptcontent" } }, "required": [ - "id", - "projectId", - "kind", - "binding" + "specId", + "prompt" ], - "title": "TextCanvasItem", + "title": "SpecPromptWrite", "type": "object" }, - "TextExecution": { + "SpecRestore": { "additionalProperties": false, "properties": { - "thinking": { - "default": "auto", - "description": "Requested reasoning effort.", - "enum": [ - "auto", - "low", - "medium", - "high" - ], - "title": "Thinking", + "specId": { + "description": "Generation configuration ID.", + "format": "uuid", + "title": "Specid", "type": "string" }, - "maxTokens": { - "default": 8192, - "description": "Maximum generated text tokens.", - "maximum": 32768, - "minimum": 1, - "title": "Maxtokens", - "type": "integer" + "commandId": { + "description": "Historical command providing the settings to restore.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "kind": { - "const": "text", - "description": "Business object or media type.", - "title": "Kind", + "referencePolicy": { + "default": "follow_current", + "description": "Policy for restoring associated reference bindings.", + "enum": [ + "follow_current", + "pinned" + ], + "title": "Referencepolicy", "type": "string" } }, "required": [ - "kind" + "specId", + "commandId" ], - "title": "TextExecution", + "title": "SpecRestore", "type": "object" }, - "TextGenerationSpec": { + "SpecRestoreCommand": { "additionalProperties": false, + "description": "Restore generation settings from a historical command.", "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "commandId": { + "description": "Stable command ID for idempotent replay.", "format": "uuid", - "title": "Id", + "title": "Commandid", "type": "string" }, "projectId": { @@ -12982,27 +12936,25 @@ "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "purpose": { - "default": "draft", - "description": "Draft settings or executable generation configuration.", - "enum": [ - "draft", - "generation" - ], - "title": "Purpose", + "type": { + "const": "generationSpec.restore", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "modelConfigId": { + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "format": "uuid", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -13010,50 +12962,58 @@ } ], "default": null, - "description": "Model configuration ID from the model catalog or user model selections.", - "title": "Modelconfigid" - }, - "prompt": { - "default": "", - "description": "Generation prompt text.", - "maxLength": 20000, - "title": "Prompt", - "type": "string" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "promptContent": { - "anyOf": [ - { - "items": { - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Structured prompt text and reference tokens.", - "title": "Promptcontent" + "payload": { + "$ref": "#/$defs/SpecRestore", + "description": "Restore generation settings from a historical command." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "payload" + ], + "title": "SpecRestoreCommand", + "type": "object" + }, + "SpecUpdateCommand": { + "additionalProperties": false, + "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "currentResultId": { + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "generationSpec.update", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "format": "uuid", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -13061,110 +13021,83 @@ } ], "default": null, - "description": "Currently adopted result ID.", - "title": "Currentresultid" - }, - "kind": { - "const": "text", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "parameters": { - "$ref": "#/$defs/TextParameters", - "description": "Typed generation or editing parameters." + "payload": { + "$ref": "#/$defs/SpecWrite", + "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged." } }, "required": [ - "id", + "commandId", "projectId", - "kind" + "type", + "payload" ], - "title": "TextGenerationSpec", + "title": "SpecUpdateCommand", "type": "object" }, - "TextLayerContent": { + "SpecUpdateCommandOperation": { "additionalProperties": false, + "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", "properties": { - "width": { - "description": "Width in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Width", - "type": "integer" - }, - "height": { - "description": "Height in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Height", - "type": "integer" - }, - "kind": { - "const": "text", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "text": { - "description": "UTF-8 text content or search query.", - "maxLength": 10000, - "title": "Text", - "type": "string" - }, - "color": { - "description": "Serialized display color.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", + "type": { + "const": "generationSpec.update", + "description": "Operation discriminator.", + "title": "Type", "type": "string" }, - "fontSize": { - "description": "Text size in pixels.", - "maximum": 1000, - "minimum": 4, - "title": "Fontsize", - "type": "number" + "payload": { + "$ref": "#/$defs/SpecWrite", + "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged." } }, "required": [ - "width", - "height", - "kind", - "text", - "color", - "fontSize" + "type", + "payload" ], - "title": "TextLayerContent", + "title": "SpecUpdateCommandOperation", "type": "object" }, - "TextParameters": { + "SpecWrite": { "additionalProperties": false, "properties": { - "thinking": { - "default": "auto", - "description": "Requested reasoning effort.", - "enum": [ - "auto", - "low", - "medium", - "high" + "spec": { + "description": "Complete configuration with its current revision; the server increments it on commit. For updates, read the current spec, preserve unedited fields and submit its current expected version. Accepted job snapshots never change.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextGenerationSpec" + }, + { + "$ref": "#/$defs/ImageGenerationSpec" + }, + { + "$ref": "#/$defs/VideoGenerationSpec" + }, + { + "$ref": "#/$defs/AudioGenerationSpec" + } ], - "title": "Thinking", - "type": "string" - }, - "maxTokens": { - "default": 8192, - "description": "Maximum generated text tokens.", - "maximum": 32768, - "minimum": 1, - "title": "Maxtokens", - "type": "integer" + "title": "Spec" } }, - "title": "TextParameters", + "required": [ + "spec" + ], + "title": "SpecWrite", "type": "object" }, - "TimelineCanvasItem": { + "StackCanvasItem": { "additionalProperties": false, "properties": { "id": { @@ -13187,7 +13120,7 @@ "type": "integer" }, "kind": { - "const": "timeline", + "const": "stack", "description": "Business object or media type.", "title": "Kind", "type": "string" @@ -13286,164 +13219,47 @@ "kind", "binding" ], - "title": "TimelineCanvasItem", + "title": "StackCanvasItem", "type": "object" }, - "TimelineClip": { + "StackData": { + "additionalProperties": false, + "properties": { + "nodeIds": { + "default": [], + "description": "Ordered member canvas item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Nodeids", + "type": "array" + }, + "activeIndex": { + "default": 0, + "description": "Index of the active member.", + "minimum": 0, + "title": "Activeindex", + "type": "integer" + } + }, + "title": "StackData", + "type": "object" + }, + "StackDocument": { "additionalProperties": false, "properties": { "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", + "description": "Stable identity of this project-owned object.", + "format": "uuid", "title": "Id", "type": "string" }, - "resource": { - "$ref": "#/$defs/TimelineResource", - "description": "Clip source from the imported asset collection." - }, - "start": { - "anyOf": [ - { - "minimum": 0, - "type": "number" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Start time in seconds.", - "title": "Start" - }, - "inPoint": { - "description": "Source trim start in seconds.", - "minimum": 0, - "title": "Inpoint", - "type": "number" - }, - "outPoint": { - "description": "Source trim end in seconds.", - "exclusiveMinimum": 0, - "title": "Outpoint", - "type": "number" - }, - "speed": { - "default": 1, - "description": "Playback or motion speed multiplier.", - "exclusiveMinimum": 0, - "title": "Speed", - "type": "number" - }, - "volume": { - "default": 1, - "description": "Linear audio gain.", - "maximum": 1, - "minimum": 0, - "title": "Volume", - "type": "number" - }, - "muted": { - "default": false, - "description": "Whether audio output is muted.", - "title": "Muted", - "type": "boolean" - } - }, - "required": [ - "id", - "resource", - "inPoint", - "outPoint" - ], - "title": "TimelineClip", - "type": "object" - }, - "TimelineData": { - "additionalProperties": false, - "properties": { - "fps": { - "description": "Frames per second.", - "minimum": 1, - "title": "Fps", - "type": "integer" - }, - "width": { - "description": "Width in pixels.", - "minimum": 1, - "title": "Width", - "type": "integer" - }, - "height": { - "description": "Height in pixels.", - "minimum": 1, - "title": "Height", - "type": "integer" - }, - "tracks": { - "description": "Ordered timeline tracks.", - "items": { - "$ref": "#/$defs/TimelineTrack" - }, - "minItems": 1, - "title": "Tracks", - "type": "array" - }, - "importedAssets": { - "default": [], - "description": "Source assets available to timeline clips.", - "items": { - "$ref": "#/$defs/TimelineResource" - }, - "title": "Importedassets", - "type": "array" - }, - "fonts": { - "default": [], - "description": "Document-local registered font resources; omitted when empty.", - "items": { - "$ref": "#/$defs/TimelineFontResource" - }, - "maxItems": 16, - "title": "Fonts", - "type": "array" - }, - "overlays": { - "default": [], - "description": "Timed text ordered from bottom to top; omitted when empty.", - "items": { - "$ref": "#/$defs/TimelineTextOverlay" - }, - "maxItems": 2000, - "title": "Overlays", - "type": "array" - } - }, - "required": [ - "fps", - "width", - "height", - "tracks" - ], - "title": "TimelineData", - "type": "object" - }, - "TimelineDocument": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, "revision": { "default": 1, @@ -13469,13 +13285,13 @@ "type": "array" }, "kind": { - "const": "timeline", + "const": "stack", "description": "Business object or media type.", "title": "Kind", "type": "string" }, "data": { - "$ref": "#/$defs/TimelineData", + "$ref": "#/$defs/StackData", "description": "Typed editable document contents." } }, @@ -13485,834 +13301,546 @@ "kind", "data" ], - "title": "TimelineDocument", + "title": "StackDocument", "type": "object" }, - "TimelineFontResource": { + "StageCamera": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable document-local font ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" + "position": { + "$ref": "#/$defs/Vector3", + "description": "Position in the owning canvas or stage." }, - "title": { - "description": "Display title of the font.", - "maxLength": 255, - "title": "Title", - "type": "string" + "target": { + "$ref": "#/$defs/Vector3", + "description": "Camera look-at position." }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable registered font asset version." + "fov": { + "description": "Camera vertical field of view in degrees.", + "exclusiveMaximum": 180, + "exclusiveMinimum": 0, + "title": "Fov", + "type": "number" } }, "required": [ - "id", - "title", - "asset" + "position", + "target", + "fov" ], - "title": "TimelineFontResource", + "title": "StageCamera", "type": "object" }, - "TimelinePackageExportFile": { + "StageMotion": { "additionalProperties": false, "properties": { - "editorId": { - "description": "Saved timeline ID in the active project.", - "format": "uuid", - "title": "Editorid", + "preset": { + "description": "Selected generation or motion preset.", + "enum": [ + "idle", + "walk", + "run", + "wave" + ], + "title": "Preset", "type": "string" }, - "revision": { - "description": "Exact saved revision to export.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "speed": { + "description": "Playback or motion speed multiplier.", + "exclusiveMinimum": 0, + "title": "Speed", + "type": "number" }, - "path": { - "description": "New output file under the active execution directory.", - "maxLength": 4096, - "minLength": 1, - "title": "Path", - "type": "string" + "amount": { + "description": "Magnitude of the procedural motion.", + "maximum": 1, + "minimum": 0, + "title": "Amount", + "type": "number" } }, "required": [ - "editorId", - "revision", - "path" + "preset", + "speed", + "amount" ], - "title": "TimelinePackageExportFile", + "title": "StageMotion", "type": "object" }, - "TimelinePackageImportFile": { + "StageObject": { "additionalProperties": false, "properties": { - "operationId": { - "description": "Stable import operation identity.", - "format": "uuid", - "title": "Operationid", - "type": "string" + "position": { + "$ref": "#/$defs/Vector3", + "description": "Position in the owning canvas or stage." }, - "archiveFingerprint": { - "description": "Expected SHA-256 of archive bytes.", - "pattern": "^sha256:[0-9a-f]{64}$", - "title": "Archivefingerprint", - "type": "string" + "rotation": { + "$ref": "#/$defs/Vector3", + "description": "Rotation in radians around each stage axis." }, - "path": { - "description": "Existing bundle under the active execution directory.", - "maxLength": 4096, + "scale": { + "$ref": "#/$defs/Vector3", + "description": "Positive scale along each stage axis." + }, + "id": { + "description": "Stable object ID.", + "maxLength": 100, "minLength": 1, - "title": "Path", + "pattern": "\\S", + "title": "Id", "type": "string" }, - "replaceEditorId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Explicit replacement target.", - "title": "Replaceeditorid" - }, - "expectedRevision": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } + "kind": { + "description": "Business object or media type.", + "enum": [ + "person", + "box", + "sphere" ], - "default": null, - "description": "Expected replacement revision.", - "title": "Expectedrevision" - } - }, - "required": [ - "operationId", - "archiveFingerprint", - "path" - ], - "title": "TimelinePackageImportFile", - "type": "object" - }, - "TimelinePackageImportReceipt": { - "additionalProperties": false, - "properties": { - "operationId": { - "description": "Import identity.", - "format": "uuid", - "title": "Operationid", + "title": "Kind", "type": "string" }, - "status": { - "description": "Partial registration, complete publication, or terminal rejection.", - "enum": [ - "registered", - "applied", - "rejected" - ], - "title": "Status", + "name": { + "description": "User-visible name.", + "maxLength": 255, + "title": "Name", "type": "string" }, - "editorId": { - "description": "Stable destination document ID.", - "format": "uuid", - "title": "Editorid", + "color": { + "description": "Serialized display color.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", "type": "string" }, - "registeredAssetIds": { + "keyframes": { "default": [], - "description": "Resources actually committed before final publication.", + "description": "Ordered animation keyframes.", "items": { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/TransformFrame" }, - "title": "Registeredassetids", + "title": "Keyframes", "type": "array" }, - "receipt": { - "anyOf": [ - { - "$ref": "#/$defs/CommandReceipt" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Final atomic business command receipt, when committed." - }, - "errorCode": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Stable failure code for retryable registration failure.", - "title": "Errorcode" + "motionClips": { + "default": [], + "description": "Ordered procedural motion intervals.", + "items": { + "$ref": "#/$defs/MotionClip" + }, + "title": "Motionclips", + "type": "array" } }, "required": [ - "operationId", - "status", - "editorId" + "position", + "rotation", + "scale", + "id", + "kind", + "name", + "color" ], - "title": "TimelinePackageImportReceipt", + "title": "StageObject", "type": "object" }, - "TimelinePackageImportRequest": { + "StageShot": { "additionalProperties": false, "properties": { - "operationId": { - "description": "Stable identity for this entire import and all retries.", - "format": "uuid", - "title": "Operationid", - "type": "string" - }, - "uploadHandle": { - "description": "Project/session-owned staged ZIP upload.", - "format": "uuid", - "title": "Uploadhandle", + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", "type": "string" }, - "archiveFingerprint": { - "description": "Fixed archive bytes for recovery and replay.", - "pattern": "^sha256:[0-9a-f]{64}$", - "title": "Archivefingerprint", + "cameraId": { + "description": "Stage camera ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Cameraid", "type": "string" }, - "replaceEditorId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Explicit replacement target; omitted creates a timeline.", - "title": "Replaceeditorid" + "start": { + "description": "Start time in seconds.", + "minimum": 0, + "title": "Start", + "type": "number" }, - "expectedRevision": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Required original revision for replacement.", - "title": "Expectedrevision" + "duration": { + "description": "Interval duration in seconds.", + "exclusiveMinimum": 0, + "title": "Duration", + "type": "number" } }, "required": [ - "operationId", - "uploadHandle", - "archiveFingerprint" + "id", + "cameraId", + "start", + "duration" ], - "title": "TimelinePackageImportRequest", + "title": "StageShot", "type": "object" }, - "TimelinePackageManifest": { + "StageTransform": { "additionalProperties": false, "properties": { - "format": { - "const": "opendirector-timeline-bundle", - "default": "opendirector-timeline-bundle", - "description": "Native bundle format.", - "title": "Format", - "type": "string" - }, - "version": { - "const": 1, - "default": 1, - "description": "Native bundle format version.", - "title": "Version", - "type": "integer" + "position": { + "$ref": "#/$defs/Vector3", + "description": "Position in the owning canvas or stage." }, - "requiredCapabilities": { - "default": [], - "description": "Required editable document capabilities.", - "items": { - "const": "timeline.text.v1", - "type": "string" - }, - "maxItems": 1, - "title": "Requiredcapabilities", - "type": "array" + "rotation": { + "$ref": "#/$defs/Vector3", + "description": "Rotation in radians around each stage axis." }, - "resources": { - "description": "Distinct logical resources; paths may share identical bytes.", - "items": { - "$ref": "#/$defs/TimelinePackageResource" - }, - "maxItems": 4093, - "title": "Resources", - "type": "array" + "scale": { + "$ref": "#/$defs/Vector3", + "description": "Positive scale along each stage axis." } }, "required": [ - "resources" + "position", + "rotation", + "scale" ], - "title": "TimelinePackageManifest", + "title": "StageTransform", "type": "object" }, - "TimelinePackageResource": { + "SubjectCanvasItem": { "additionalProperties": false, "properties": { - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Original logical reference; only a package mapping key." - }, - "name": { - "description": "Original resource filename.", - "maxLength": 255, - "minLength": 1, - "title": "Name", + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", "type": "string" }, - "path": { - "description": "Content-addressed archive member.", - "pattern": "^assets/[0-9a-f]{64}\\.[a-z0-9]{1,10}$", - "title": "Path", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, "kind": { - "description": "Verified media kind.", - "enum": [ - "text", - "image", - "video", - "audio", - "file" - ], + "const": "subject", + "description": "Business object or media type.", "title": "Kind", "type": "string" }, - "mimeType": { - "description": "Verified MIME type.", + "title": { + "default": "", + "description": "User-visible title.", "maxLength": 255, - "minLength": 1, - "title": "Mimetype", + "title": "Title", "type": "string" }, - "size": { - "description": "Actual resource byte count.", - "maximum": 536870912, - "minimum": 0, - "title": "Size", - "type": "integer" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." }, - "fingerprint": { - "description": "SHA-256 identity of resource bytes.", - "pattern": "^sha256:[0-9a-f]{64}$", - "title": "Fingerprint", - "type": "string" - } - }, - "required": [ - "source", - "name", - "path", - "kind", - "mimeType", - "size", - "fingerprint" - ], - "title": "TimelinePackageResource", - "type": "object" - }, - "TimelinePublishRender": { - "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" }, - "editorId": { - "description": "Editable document ID.", - "format": "uuid", - "title": "Editorid", - "type": "string" + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" }, - "outputId": { - "description": "Published canvas output ID.", - "format": "uuid", - "title": "Outputid", - "type": "string" + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" }, - "expectedOutputRevision": { + "color": { "anyOf": [ { - "minimum": 1, - "type": "integer" + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Current output node revision when appending a rendered version.", - "title": "Expectedoutputrevision" + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - "title": { - "default": "合成视频", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", - "type": "string" + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "$ref": "#/$defs/EditorBinding", + "description": "Business object displayed by this canvas item." } }, "required": [ - "itemId", - "editorId", - "asset", - "outputId" + "id", + "projectId", + "kind", + "binding" ], - "title": "TimelinePublishRender", + "title": "SubjectCanvasItem", "type": "object" }, - "TimelinePublishRenderCommand": { + "SubjectData": { "additionalProperties": false, - "description": "Publish a rendered timeline result.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", + "description": { + "default": "", + "description": "User-facing annotation only; not subject media or a generation reference", + "maxLength": 20000, + "title": "Description", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "category": { + "default": "", + "description": "Subject category.", + "maxLength": 100, + "title": "Category", "type": "string" }, - "type": { - "const": "timeline.publishRender", - "description": "Command discriminator.", - "title": "Type", - "type": "string" + "main": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Primary subject media." }, - "expectedVersions": { + "auxiliaries": { "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "description": "Ordered auxiliary subject media.", "items": { - "$ref": "#/$defs/ObjectVersion" + "$ref": "#/$defs/AssetRef" }, - "title": "Expectedversions", + "maxItems": 3, + "title": "Auxiliaries", "type": "array" }, - "expectedPreview": { + "voice": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "$ref": "#/$defs/AssetRef" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/TimelinePublishRender", - "description": "Publish a rendered timeline result." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "payload" - ], - "title": "TimelinePublishRenderCommand", - "type": "object" - }, - "TimelineResource": { - "additionalProperties": false, - "properties": { - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." - }, - "title": { - "description": "Display title of the imported asset.", - "maxLength": 255, - "title": "Title", - "type": "string" + "description": "Subject voice asset version." }, - "durationSeconds": { + "librarySource": { "anyOf": [ { - "exclusiveMinimum": 0, - "type": "number" + "$ref": "#/$defs/SubjectLibrarySource" }, { "type": "null" } ], "default": null, - "description": "Duration in seconds.", - "title": "Durationseconds" + "description": "Immutable source library version." } }, - "required": [ - "asset", - "title" - ], - "title": "TimelineResource", - "type": "object" - }, - "TimelineTextBackground": { - "additionalProperties": false, - "properties": { - "color": { - "description": "Background color in #RRGGBB format.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", - "type": "string" - }, - "opacity": { - "description": "Background opacity.", - "maximum": 1, - "minimum": 0, - "title": "Opacity", - "type": "number" - }, - "padding": { - "description": "Background padding in output pixels.", - "maximum": 128, - "minimum": 0, - "title": "Padding", - "type": "number" - } - }, - "required": [ - "color", - "opacity", - "padding" - ], - "title": "TimelineTextBackground", + "title": "SubjectData", "type": "object" }, - "TimelineTextOverlay": { + "SubjectDocument": { "additionalProperties": false, "properties": { "id": { - "description": "Stable document-local text ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", + "description": "Stable identity of this project-owned object.", + "format": "uuid", "title": "Id", "type": "string" }, - "start": { - "description": "Absolute start time in seconds.", - "minimum": 0, - "title": "Start", - "type": "number" - }, - "end": { - "description": "Exclusive absolute end time in seconds.", - "exclusiveMinimum": 0, - "title": "End", - "type": "number" - }, - "text": { - "description": "Plain text normalized to LF, counted in Unicode code points.", - "maxLength": 4096, - "minLength": 1, - "title": "Text", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "x": { - "description": "Normalized text box left position.", - "maximum": 1, - "minimum": 0, - "title": "X", - "type": "number" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "y": { - "description": "Normalized text box top position.", - "maximum": 1, - "minimum": 0, - "title": "Y", - "type": "number" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - "maxWidth": { - "description": "Text box width as a fraction of output width.", - "exclusiveMinimum": 0, - "maximum": 1, - "title": "Maxwidth", - "type": "number" + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" }, - "fontId": { - "description": "Font resource ID in this document.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Fontid", + "kind": { + "const": "subject", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "style": { - "$ref": "#/$defs/TimelineTextStyle", - "description": "Output-space text styling." - }, - "sourceAsset": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Frozen source text asset, independent of subsequent edits." + "data": { + "$ref": "#/$defs/SubjectData", + "description": "Typed editable document contents." } }, "required": [ "id", - "start", - "end", - "text", - "x", - "y", - "maxWidth", - "fontId", - "style" + "projectId", + "kind", + "data" ], - "title": "TimelineTextOverlay", + "title": "SubjectDocument", "type": "object" }, - "TimelineTextStroke": { + "SubjectLibrarySource": { "additionalProperties": false, + "description": "Frozen import provenance; subsequent editing never follows the library.", "properties": { - "color": { - "description": "Stroke color in #RRGGBB format.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", "type": "string" }, - "width": { - "description": "Stroke width in output pixels.", - "maximum": 32, - "minimum": 0, - "title": "Width", - "type": "number" + "revision": { + "description": "Captured library item revision.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "importId": { + "description": "Library import ID.", + "format": "uuid", + "title": "Importid", + "type": "string" } }, "required": [ - "color", - "width" + "itemId", + "revision", + "importId" ], - "title": "TimelineTextStroke", + "title": "SubjectLibrarySource", "type": "object" }, - "TimelineTextStyle": { + "TextCanvasItem": { "additionalProperties": false, "properties": { - "fontSize": { - "description": "Font size in output pixels.", - "maximum": 512, + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", "minimum": 1, - "title": "Fontsize", - "type": "number" + "title": "Revision", + "type": "integer" }, - "color": { - "description": "Text color in #RRGGBB format.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Color", + "kind": { + "const": "text", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "align": { - "description": "Horizontal text alignment.", - "enum": [ - "left", - "center", - "right" - ], - "title": "Align", + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", "type": "string" }, - "lineHeight": { - "description": "Line height as a font size multiplier.", - "maximum": 3, - "minimum": 0.8, - "title": "Lineheight", + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", "type": "number" }, - "background": { - "anyOf": [ - { - "$ref": "#/$defs/TimelineTextBackground" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Optional text background." - }, - "stroke": { - "anyOf": [ - { - "$ref": "#/$defs/TimelineTextStroke" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Optional text stroke." - } - }, - "required": [ - "fontSize", - "color", - "align", - "lineHeight" - ], - "title": "TimelineTextStyle", - "type": "object" - }, - "TimelineTrack": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" - }, - "kind": { - "description": "Business object or media type.", - "enum": [ - "visual", - "audio" - ], - "title": "Kind", - "type": "string" - }, - "title": { - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", - "type": "string" - }, - "muted": { - "default": false, - "description": "Whether audio output is muted.", - "title": "Muted", - "type": "boolean" - }, - "clips": { - "default": [], - "description": "Ordered clips on this track.", - "items": { - "$ref": "#/$defs/TimelineClip" - }, - "title": "Clips", - "type": "array" - } - }, - "required": [ - "id", - "kind", - "title" - ], - "title": "TimelineTrack", - "type": "object" - }, - "ToolCanvasItem": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "tool", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", - "type": "string" - }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" }, "zIndex": { "default": 0, @@ -14373,8 +13901,36 @@ "type": "array" }, "binding": { - "$ref": "#/$defs/EditorBinding", - "description": "Business object displayed by this canvas item." + "description": "Business object displayed by this canvas item.", + "discriminator": { + "mapping": { + "empty": "#/$defs/EmptyBinding", + "generation": "#/$defs/GenerationBinding", + "material": "#/$defs/MaterialBinding" + }, + "propertyName": "role" + }, + "oneOf": [ + { + "$ref": "#/$defs/EmptyBinding" + }, + { + "$ref": "#/$defs/MaterialBinding" + }, + { + "$ref": "#/$defs/GenerationBinding" + } + ], + "title": "Binding" + }, + "editors": { + "default": [], + "description": "Attached editable documents.", + "items": { + "$ref": "#/$defs/EditorRef" + }, + "title": "Editors", + "type": "array" } }, "required": [ @@ -14383,64 +13939,46 @@ "kind", "binding" ], - "title": "ToolCanvasItem", + "title": "TextCanvasItem", "type": "object" }, - "ToolData": { + "TextExecution": { "additionalProperties": false, "properties": { - "kind": { - "description": "Business object or media type.", + "thinking": { + "default": "auto", + "description": "Requested reasoning effort.", "enum": [ - "camera", - "style", - "palette", - "camera_motion" + "auto", + "low", + "medium", + "high" ], - "title": "Kind", + "title": "Thinking", "type": "string" }, - "fields": { - "default": [], - "description": "Named tool-specific parameter fields.", - "items": { - "$ref": "#/$defs/ToolField" - }, - "title": "Fields", - "type": "array" - }, - "provenance": { - "anyOf": [ - { - "$ref": "#/$defs/PaletteProvenance" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Recorded origin and execution context." + "maxTokens": { + "default": 8192, + "description": "Maximum generated text tokens.", + "maximum": 32768, + "minimum": 1, + "title": "Maxtokens", + "type": "integer" }, - "palette": { - "anyOf": [ - { - "$ref": "#/$defs/PaletteData" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Reusable palette data." + "kind": { + "const": "text", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" } }, "required": [ "kind" ], - "title": "ToolData", + "title": "TextExecution", "type": "object" }, - "ToolDocument": { + "TextGenerationSpec": { "additionalProperties": false, "properties": { "id": { @@ -14462,189 +14000,186 @@ "title": "Revision", "type": "integer" }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" - }, - "inputConnections": { - "default": [], - "description": "Persisted connections to source assets.", - "items": { - "$ref": "#/$defs/EditorInputConnection" - }, - "title": "Inputconnections", - "type": "array" - }, - "kind": { - "const": "tool", - "description": "Business object or media type.", - "title": "Kind", + "purpose": { + "default": "draft", + "description": "Draft settings or executable generation configuration.", + "enum": [ + "draft", + "generation" + ], + "title": "Purpose", "type": "string" }, - "data": { - "$ref": "#/$defs/ToolData", - "description": "Typed editable document contents." - } - }, - "required": [ - "id", - "projectId", - "kind", - "data" - ], - "title": "ToolDocument", - "type": "object" - }, - "ToolDraftBinding": { - "additionalProperties": false, - "properties": { - "editorId": { - "description": "Editable document ID.", - "format": "uuid", - "title": "Editorid", + "modelConfigId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Model configuration ID from the model catalog or user model selections.", + "title": "Modelconfigid" + }, + "prompt": { + "default": "", + "description": "Generation prompt text.", + "maxLength": 20000, + "title": "Prompt", "type": "string" }, - "editorRevision": { - "description": "Expected editable document revision.", - "minimum": 1, - "title": "Editorrevision", - "type": "integer" + "promptContent": { + "anyOf": [ + { + "items": { + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Structured prompt text and reference tokens.", + "title": "Promptcontent" }, - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" + "currentResultId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Currently adopted result ID.", + "title": "Currentresultid" }, - "itemRevision": { - "description": "Expected canvas item revision.", - "minimum": 1, - "title": "Itemrevision", - "type": "integer" - } - }, - "required": [ - "editorId", - "editorRevision", - "itemId", - "itemRevision" - ], - "title": "ToolDraftBinding", - "type": "object" - }, - "ToolField": { - "additionalProperties": false, - "properties": { - "name": { - "description": "User-visible name.", - "maxLength": 200, - "minLength": 1, - "title": "Name", + "kind": { + "const": "text", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "values": { - "description": "Ordered tool field values.", - "items": { - "type": "string" - }, - "title": "Values", - "type": "array" + "parameters": { + "$ref": "#/$defs/TextParameters", + "description": "Typed generation or editing parameters." } }, "required": [ - "name", - "values" + "id", + "projectId", + "kind" ], - "title": "ToolField", + "title": "TextGenerationSpec", "type": "object" }, - "ToolSelection": { + "TextLayerContent": { "additionalProperties": false, "properties": { - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Input source or recorded provenance." - }, "width": { "description": "Width in pixels.", + "maximum": 8192, "minimum": 1, "title": "Width", "type": "integer" }, "height": { "description": "Height in pixels.", + "maximum": 8192, "minimum": 1, "title": "Height", "type": "integer" }, - "mask": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Ordered strokes or encoded selection mask." + "kind": { + "const": "text", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - "boxes": { - "default": [], - "description": "Selection rectangles in source image pixels.", - "items": { - "$ref": "#/$defs/SelectionBox" - }, - "title": "Boxes", - "type": "array" + "text": { + "description": "UTF-8 text content or search query.", + "maxLength": 10000, + "title": "Text", + "type": "string" + }, + "color": { + "description": "Serialized display color.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", + "type": "string" + }, + "fontSize": { + "description": "Text size in pixels.", + "maximum": 1000, + "minimum": 4, + "title": "Fontsize", + "type": "number" } }, "required": [ - "source", "width", - "height" + "height", + "kind", + "text", + "color", + "fontSize" ], - "title": "ToolSelection", + "title": "TextLayerContent", "type": "object" }, - "TransformFrame": { + "TextParameters": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", + "thinking": { + "default": "auto", + "description": "Requested reasoning effort.", + "enum": [ + "auto", + "low", + "medium", + "high" + ], + "title": "Thinking", "type": "string" }, - "time": { - "description": "Keyframe time in seconds.", - "minimum": 0, - "title": "Time", - "type": "number" - }, - "value": { - "$ref": "#/$defs/StageTransform", - "description": "Keyframed transform or camera pose." + "maxTokens": { + "default": 8192, + "description": "Maximum generated text tokens.", + "maximum": 32768, + "minimum": 1, + "title": "Maxtokens", + "type": "integer" } }, - "required": [ - "id", - "time", - "value" - ], - "title": "TransformFrame", + "title": "TextParameters", "type": "object" }, - "UploadInfo": { + "TimelineCanvasItem": { "additionalProperties": false, "properties": { "id": { - "description": "Stable object ID.", + "description": "Stable identity of this project-owned object.", "format": "uuid", "title": "Id", "type": "string" @@ -14655,183 +14190,15 @@ "title": "Projectid", "type": "string" }, - "name": { - "description": "User-visible name.", - "title": "Name", - "type": "string" - }, - "status": { - "description": "Current operation lifecycle state.", - "enum": [ - "uploading", - "ready", - "registered", - "cancelled" - ], - "title": "Status", - "type": "string" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, "kind": { - "anyOf": [ - { - "enum": [ - "text", - "image", - "video", - "audio", - "file" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Business object or media type.", - "title": "Kind" - }, - "fingerprint": { - "anyOf": [ - { - "pattern": "^sha256:[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Immutable content fingerprint.", - "title": "Fingerprint" - }, - "metadata": { - "anyOf": [ - { - "$ref": "#/$defs/MediaMetadata" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Verified media properties." - }, - "assetId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Asset ID.", - "title": "Assetid" - } - }, - "required": [ - "id", - "projectId", - "name", - "status" - ], - "title": "UploadInfo", - "type": "object" - }, - "Vector3": { - "additionalProperties": false, - "properties": { - "x": { - "description": "X component in stage coordinates.", - "title": "X", - "type": "number" - }, - "y": { - "description": "Y component in stage coordinates.", - "title": "Y", - "type": "number" - }, - "z": { - "description": "Z component in stage coordinates.", - "title": "Z", - "type": "number" - } - }, - "required": [ - "x", - "y", - "z" - ], - "title": "Vector3", - "type": "object" - }, - "VersionsQuery": { - "additionalProperties": false, - "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "description": "Read object versions.", - "enum": [ - "generationSpec.versions", - "canvas.versions" - ], - "title": "Type", - "type": "string" - }, - "objectId": { - "description": "Target configuration or canvas item ID.", - "format": "uuid", - "title": "Objectid", - "type": "string" - } - }, - "required": [ - "queryId", - "projectId", - "type", - "objectId" - ], - "title": "VersionsQuery", - "type": "object" - }, - "VideoCanvasItem": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "video", + "const": "timeline", "description": "Business object or media type.", "title": "Kind", "type": "string" @@ -14920,36 +14287,8 @@ "type": "array" }, "binding": { - "description": "Business object displayed by this canvas item.", - "discriminator": { - "mapping": { - "empty": "#/$defs/EmptyBinding", - "generation": "#/$defs/GenerationBinding", - "material": "#/$defs/MaterialBinding" - }, - "propertyName": "role" - }, - "oneOf": [ - { - "$ref": "#/$defs/EmptyBinding" - }, - { - "$ref": "#/$defs/MaterialBinding" - }, - { - "$ref": "#/$defs/GenerationBinding" - } - ], - "title": "Binding" - }, - "editors": { - "default": [], - "description": "Attached editable documents.", - "items": { - "$ref": "#/$defs/EditorRef" - }, - "title": "Editors", - "type": "array" + "$ref": "#/$defs/EditorBinding", + "description": "Business object displayed by this canvas item." } }, "required": [ @@ -14958,212 +14297,151 @@ "kind", "binding" ], - "title": "VideoCanvasItem", + "title": "TimelineCanvasItem", "type": "object" }, - "VideoCapabilities": { + "TimelineClip": { "additionalProperties": false, "properties": { - "outputs": { - "description": "Supported output resolution and duration combinations.", - "items": { - "$ref": "#/$defs/VideoOutput" - }, - "maxItems": 20, - "minItems": 1, - "title": "Outputs", - "type": "array" - }, - "defaultResolution": { - "default": "auto", - "description": "Default output resolution or auto.", - "title": "Defaultresolution", + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", "type": "string" }, - "defaultDuration": { - "default": 5, - "description": "Default output duration in seconds.", - "maximum": 60, - "minimum": 1, - "title": "Defaultduration", - "type": "integer" + "resource": { + "$ref": "#/$defs/TimelineResource", + "description": "Clip source from the imported asset collection." }, - "dimensionStep": { - "default": 2, - "description": "Required pixel alignment of output dimensions.", - "enum": [ - 1, - 2, - 8, - 16, - 32, - 64 - ], - "title": "Dimensionstep", - "type": "integer" - } - }, - "required": [ - "outputs" - ], - "title": "VideoCapabilities", - "type": "object" - }, - "VideoExecution": { - "additionalProperties": false, - "description": "Resolved adapter parameters, distinct from user intent and source layout.", - "properties": { - "kind": { - "const": "video", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "durationSeconds": { - "anyOf": [ - { - "maximum": 60, - "minimum": 1, - "type": "number" - }, - { - "type": "null" - } + "start": { + "anyOf": [ + { + "minimum": 0, + "type": "number" + }, + { + "type": "null" + } ], "default": null, - "description": "Duration in seconds.", - "title": "Durationseconds" + "description": "Start time in seconds.", + "title": "Start" }, - "size": { - "anyOf": [ - { - "pattern": "^\\d+x\\d+$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Effective video dimensions sent to the provider.", - "title": "Size" + "inPoint": { + "description": "Source trim start in seconds.", + "minimum": 0, + "title": "Inpoint", + "type": "number" }, - "resolution": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Requested output resolution.", - "title": "Resolution" + "outPoint": { + "description": "Source trim end in seconds.", + "exclusiveMinimum": 0, + "title": "Outpoint", + "type": "number" + }, + "speed": { + "default": 1, + "description": "Playback or motion speed multiplier.", + "exclusiveMinimum": 0, + "title": "Speed", + "type": "number" + }, + "volume": { + "default": 1, + "description": "Linear audio gain.", + "maximum": 1, + "minimum": 0, + "title": "Volume", + "type": "number" }, + "muted": { + "default": false, + "description": "Whether audio output is muted.", + "title": "Muted", + "type": "boolean" + } + }, + "required": [ + "id", + "resource", + "inPoint", + "outPoint" + ], + "title": "TimelineClip", + "type": "object" + }, + "TimelineData": { + "additionalProperties": false, + "properties": { "fps": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, "description": "Frames per second.", - "title": "Fps" + "minimum": 1, + "title": "Fps", + "type": "integer" }, - "numFrames": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Requested video frame count.", - "title": "Numframes" + "width": { + "description": "Width in pixels.", + "minimum": 1, + "title": "Width", + "type": "integer" }, - "numInferenceSteps": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Diffusion sampling step count.", - "title": "Numinferencesteps" + "height": { + "description": "Height in pixels.", + "minimum": 1, + "title": "Height", + "type": "integer" }, - "guidanceScale": { - "anyOf": [ - { - "minimum": 0, - "type": "number" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Diffusion guidance scale.", - "title": "Guidancescale" + "tracks": { + "description": "Ordered timeline tracks.", + "items": { + "$ref": "#/$defs/TimelineTrack" + }, + "minItems": 1, + "title": "Tracks", + "type": "array" }, - "seed": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Random seed, when specified.", - "title": "Seed" + "importedAssets": { + "default": [], + "description": "Source assets available to timeline clips.", + "items": { + "$ref": "#/$defs/TimelineResource" + }, + "title": "Importedassets", + "type": "array" }, - "watermark": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Whether provider watermarking is enabled.", - "title": "Watermark" + "fonts": { + "default": [], + "description": "Document-local registered font resources; omitted when empty.", + "items": { + "$ref": "#/$defs/TimelineFontResource" + }, + "maxItems": 16, + "title": "Fonts", + "type": "array" }, - "generateAudio": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Whether video generation includes audio.", - "title": "Generateaudio" + "overlays": { + "default": [], + "description": "Timed text ordered from bottom to top; omitted when empty.", + "items": { + "$ref": "#/$defs/TimelineTextOverlay" + }, + "maxItems": 2000, + "title": "Overlays", + "type": "array" } }, "required": [ - "kind" + "fps", + "width", + "height", + "tracks" ], - "title": "VideoExecution", + "title": "TimelineData", "type": "object" }, - "VideoGenerationSpec": { + "TimelineDocument": { "additionalProperties": false, "properties": { "id": { @@ -15185,141 +14463,143 @@ "title": "Revision", "type": "integer" }, - "purpose": { - "default": "draft", - "description": "Draft settings or executable generation configuration.", - "enum": [ - "draft", - "generation" - ], - "title": "Purpose", - "type": "string" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - "modelConfigId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Model configuration ID from the model catalog or user model selections.", - "title": "Modelconfigid" - }, - "prompt": { - "default": "", - "description": "Generation prompt text.", - "maxLength": 20000, - "title": "Prompt", - "type": "string" - }, - "promptContent": { - "anyOf": [ - { - "items": { - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Structured prompt text and reference tokens.", - "title": "Promptcontent" - }, - "currentResultId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Currently adopted result ID.", - "title": "Currentresultid" + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" }, "kind": { - "const": "video", + "const": "timeline", "description": "Business object or media type.", "title": "Kind", "type": "string" }, - "parameters": { - "$ref": "#/$defs/VideoParameters", - "description": "Typed generation or editing parameters." + "data": { + "$ref": "#/$defs/TimelineData", + "description": "Typed editable document contents." } }, "required": [ "id", "projectId", - "kind" + "kind", + "data" ], - "title": "VideoGenerationSpec", + "title": "TimelineDocument", "type": "object" }, - "VideoOutput": { + "TimelineFontResource": { "additionalProperties": false, "properties": { - "resolution": { - "description": "Requested output resolution.", - "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,23}$", - "title": "Resolution", + "id": { + "description": "Stable document-local font ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", "type": "string" }, - "durations": { - "description": "Supported output durations in seconds.", - "items": { - "maximum": 60, - "minimum": 1, - "type": "integer" - }, - "maxItems": 60, - "minItems": 1, - "title": "Durations", - "type": "array" + "title": { + "description": "Display title of the font.", + "maxLength": 255, + "title": "Title", + "type": "string" }, - "width": { + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable registered font asset version." + } + }, + "required": [ + "id", + "title", + "asset" + ], + "title": "TimelineFontResource", + "type": "object" + }, + "TimelinePackageExportFile": { + "additionalProperties": false, + "properties": { + "editorId": { + "description": "Saved timeline ID in the active project.", + "format": "uuid", + "title": "Editorid", + "type": "string" + }, + "revision": { + "description": "Exact saved revision to export.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "path": { + "description": "New output file under the active execution directory.", + "maxLength": 4096, + "minLength": 1, + "title": "Path", + "type": "string" + } + }, + "required": [ + "editorId", + "revision", + "path" + ], + "title": "TimelinePackageExportFile", + "type": "object" + }, + "TimelinePackageImportFile": { + "additionalProperties": false, + "properties": { + "operationId": { + "description": "Stable import operation identity.", + "format": "uuid", + "title": "Operationid", + "type": "string" + }, + "archiveFingerprint": { + "description": "Expected SHA-256 of archive bytes.", + "pattern": "^sha256:[0-9a-f]{64}$", + "title": "Archivefingerprint", + "type": "string" + }, + "path": { + "description": "Existing bundle under the active execution directory.", + "maxLength": 4096, + "minLength": 1, + "title": "Path", + "type": "string" + }, + "replaceEditorId": { "anyOf": [ { - "maximum": 8192, - "minimum": 64, - "type": "integer" + "format": "uuid", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Width in pixels.", - "title": "Width" + "description": "Explicit replacement target.", + "title": "Replaceeditorid" }, - "height": { + "expectedRevision": { "anyOf": [ { - "maximum": 8192, - "minimum": 64, + "minimum": 1, "type": "integer" }, { @@ -15327,57 +14607,68 @@ } ], "default": null, - "description": "Height in pixels.", - "title": "Height" + "description": "Expected replacement revision.", + "title": "Expectedrevision" } }, "required": [ - "resolution", - "durations" + "operationId", + "archiveFingerprint", + "path" ], - "title": "VideoOutput", + "title": "TimelinePackageImportFile", "type": "object" }, - "VideoParameters": { + "TimelinePackageImportReceipt": { "additionalProperties": false, "properties": { - "generateAudio": { - "default": true, - "description": "Include audio; value must be allowed by model inputRules.generateAudioOptions.", - "title": "Generateaudio", - "type": "boolean" + "operationId": { + "description": "Import identity.", + "format": "uuid", + "title": "Operationid", + "type": "string" }, - "videoMode": { - "default": "first_frame", - "description": "Video generation input mode.", + "status": { + "description": "Partial registration, complete publication, or terminal rejection.", "enum": [ - "first_frame", - "reference", - "continuation", - "control" + "registered", + "applied", + "rejected" ], - "title": "Videomode", + "title": "Status", "type": "string" }, - "durationSeconds": { + "editorId": { + "description": "Stable destination document ID.", + "format": "uuid", + "title": "Editorid", + "type": "string" + }, + "registeredAssetIds": { + "default": [], + "description": "Resources actually committed before final publication.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Registeredassetids", + "type": "array" + }, + "receipt": { "anyOf": [ { - "maximum": 60, - "minimum": 1, - "type": "number" + "$ref": "#/$defs/CommandReceipt" }, { "type": "null" } ], "default": null, - "description": "Duration in seconds; fractional values require model inputRules.fractionalDuration. Generated frames may be aligned by the model.", - "title": "Durationseconds" + "description": "Final atomic business command receipt, when committed." }, - "aspectRatio": { + "errorCode": { "anyOf": [ { - "pattern": "^[1-9]\\d?:[1-9]\\d?$", "type": "string" }, { @@ -15385,50 +14676,40 @@ } ], "default": null, - "description": "Output width-to-height ratio.", - "title": "Aspectratio" - }, - "resolution": { - "default": "auto", - "description": "Requested output resolution.", - "pattern": "^(?:auto|[A-Z0-9][A-Z0-9_.-]{0,23})$", - "title": "Resolution", - "type": "string" + "description": "Stable failure code for retryable registration failure.", + "title": "Errorcode" } }, - "title": "VideoParameters", + "required": [ + "operationId", + "status", + "editorId" + ], + "title": "TimelinePackageImportReceipt", "type": "object" }, - "ViewState": { + "TimelinePackageImportRequest": { "additionalProperties": false, "properties": { - "projectId": { - "description": "Owning project ID.", + "operationId": { + "description": "Stable identity for this entire import and all retries.", "format": "uuid", - "title": "Projectid", + "title": "Operationid", "type": "string" }, - "clientId": { - "description": "Client identity for independent view state.", + "uploadHandle": { + "description": "Project/session-owned staged ZIP upload.", "format": "uuid", - "title": "Clientid", + "title": "Uploadhandle", "type": "string" }, - "viewport": { - "$ref": "#/$defs/Viewport", - "description": "Canvas pan and zoom state." - }, - "selectedItemIds": { - "default": [], - "description": "Currently selected canvas item IDs.", - "items": { - "format": "uuid", - "type": "string" - }, - "title": "Selecteditemids", - "type": "array" + "archiveFingerprint": { + "description": "Fixed archive bytes for recovery and replay.", + "pattern": "^sha256:[0-9a-f]{64}$", + "title": "Archivefingerprint", + "type": "string" }, - "activeEditorId": { + "replaceEditorId": { "anyOf": [ { "format": "uuid", @@ -15439,113 +14720,169 @@ } ], "default": null, - "description": "Currently active editable document ID.", - "title": "Activeeditorid" + "description": "Explicit replacement target; omitted creates a timeline.", + "title": "Replaceeditorid" }, - "playheads": { + "expectedRevision": { + "anyOf": [ + { + "minimum": 1, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Required original revision for replacement.", + "title": "Expectedrevision" + } + }, + "required": [ + "operationId", + "uploadHandle", + "archiveFingerprint" + ], + "title": "TimelinePackageImportRequest", + "type": "object" + }, + "TimelinePackageManifest": { + "additionalProperties": false, + "properties": { + "format": { + "const": "opendirector-timeline-bundle", + "default": "opendirector-timeline-bundle", + "description": "Native bundle format.", + "title": "Format", + "type": "string" + }, + "version": { + "const": 1, + "default": 1, + "description": "Native bundle format version.", + "title": "Version", + "type": "integer" + }, + "requiredCapabilities": { "default": [], - "description": "Playback positions keyed by editor identity.", + "description": "Required editable document capabilities.", "items": { - "$ref": "#/$defs/Playhead" + "const": "timeline.text.v1", + "type": "string" }, - "title": "Playheads", + "maxItems": 1, + "title": "Requiredcapabilities", "type": "array" }, - "generationCounts": { - "additionalProperties": { - "maximum": 8, - "minimum": 1, - "type": "integer" - }, - "description": "Requested generation counts keyed by canvas item ID.", - "propertyNames": { - "format": "uuid" + "resources": { + "description": "Distinct logical resources; paths may share identical bytes.", + "items": { + "$ref": "#/$defs/TimelinePackageResource" }, - "title": "Generationcounts", - "type": "object" + "maxItems": 4093, + "title": "Resources", + "type": "array" } }, "required": [ - "projectId", - "clientId" + "resources" ], - "title": "ViewState", + "title": "TimelinePackageManifest", "type": "object" }, - "Viewport": { + "TimelinePackageResource": { "additionalProperties": false, "properties": { - "x": { - "default": 0, - "description": "Horizontal coordinate.", - "title": "X", - "type": "number" + "source": { + "$ref": "#/$defs/AssetRef", + "description": "Original logical reference; only a package mapping key." }, - "y": { - "default": 0, - "description": "Vertical coordinate.", - "title": "Y", - "type": "number" + "name": { + "description": "Original resource filename.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" }, - "zoom": { - "default": 1, - "description": "Canvas viewport zoom factor.", - "maximum": 8, - "minimum": 0.08, - "title": "Zoom", - "type": "number" + "path": { + "description": "Content-addressed archive member.", + "pattern": "^assets/[0-9a-f]{64}\\.[a-z0-9]{1,10}$", + "title": "Path", + "type": "string" + }, + "kind": { + "description": "Verified media kind.", + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "title": "Kind", + "type": "string" + }, + "mimeType": { + "description": "Verified MIME type.", + "maxLength": 255, + "minLength": 1, + "title": "Mimetype", + "type": "string" + }, + "size": { + "description": "Actual resource byte count.", + "maximum": 536870912, + "minimum": 0, + "title": "Size", + "type": "integer" + }, + "fingerprint": { + "description": "SHA-256 identity of resource bytes.", + "pattern": "^sha256:[0-9a-f]{64}$", + "title": "Fingerprint", + "type": "string" } }, - "title": "Viewport", + "required": [ + "source", + "name", + "path", + "kind", + "mimeType", + "size", + "fingerprint" + ], + "title": "TimelinePackageResource", "type": "object" }, - "VoiceLibraryCapabilities": { + "TimelinePublishRender": { "additionalProperties": false, "properties": { - "provider": { - "description": "Voice registry protocol.", - "enum": [ - "vllm_omni", - "moss", - "minimax", - "zhipu" - ], - "title": "Provider", + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", "type": "string" }, - "connectionId": { - "description": "Opaque service, endpoint and account identity.", - "maxLength": 200, - "minLength": 1, - "title": "Connectionid", + "editorId": { + "description": "Editable document ID.", + "format": "uuid", + "title": "Editorid", "type": "string" }, - "requiresTranscript": { - "description": "Registered voice must have a reference transcript.", - "title": "Requirestranscript", - "type": "boolean" - }, - "acceptsTranscript": { - "default": false, - "description": "Registry stores an optional reference transcript when one is supplied.", - "title": "Acceptstranscript", - "type": "boolean" - }, - "requiresReferenceAudio": { - "description": "Registered voice must have actual reference audio.", - "title": "Requiresreferenceaudio", - "type": "boolean" + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." }, - "supportsUploadedVoices": { - "default": true, - "description": "Selected model checkpoint accepts uploaded registry voices.", - "title": "Supportsuploadedvoices", - "type": "boolean" + "outputId": { + "description": "Published canvas output ID.", + "format": "uuid", + "title": "Outputid", + "type": "string" }, - "referenceEmbeddingDimension": { + "expectedOutputRevision": { "anyOf": [ { - "maximum": 65536, "minimum": 1, "type": "integer" }, @@ -15554,679 +14891,1023 @@ } ], "default": null, - "description": "Accepted registered reference embedding dimension; null requires actual reference audio when required.", - "title": "Referenceembeddingdimension" + "description": "Current output node revision when appending a rendered version.", + "title": "Expectedoutputrevision" }, - "canDelete": { - "description": "Provider supports uploaded voice deletion.", - "title": "Candelete", - "type": "boolean" + "title": { + "default": "合成视频", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" }, - "maxBytes": { - "description": "Maximum audio sample bytes.", - "minimum": 1, - "title": "Maxbytes", - "type": "integer" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + } + }, + "required": [ + "itemId", + "editorId", + "asset", + "outputId" + ], + "title": "TimelinePublishRender", + "type": "object" + }, + "TimelinePublishRenderCommand": { + "additionalProperties": false, + "description": "Publish a rendered timeline result.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "formats": { - "description": "Supported recording file extensions.", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "timeline.publishRender", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", "items": { - "type": "string" + "$ref": "#/$defs/ObjectVersion" }, - "title": "Formats", + "title": "Expectedversions", "type": "array" }, - "minSeconds": { + "expectedPreview": { "anyOf": [ { - "type": "number" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], - "description": "Minimum recording duration, if documented.", - "title": "Minseconds" + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "maxSeconds": { + "payload": { + "$ref": "#/$defs/TimelinePublishRender", + "description": "Publish a rendered timeline result." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "payload" + ], + "title": "TimelinePublishRenderCommand", + "type": "object" + }, + "TimelineResource": { + "additionalProperties": false, + "properties": { + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." + }, + "title": { + "description": "Display title of the imported asset.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "durationSeconds": { "anyOf": [ { + "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], - "description": "Maximum recording duration, if documented.", - "title": "Maxseconds" + "default": null, + "description": "Duration in seconds.", + "title": "Durationseconds" } }, "required": [ - "provider", - "connectionId", - "requiresTranscript", - "requiresReferenceAudio", - "canDelete", - "maxBytes", - "formats", - "minSeconds", - "maxSeconds" + "asset", + "title" ], - "title": "VoiceLibraryCapabilities", + "title": "TimelineResource", "type": "object" }, - "VoiceSelection": { + "TimelineTextBackground": { "additionalProperties": false, "properties": { - "connectionId": { - "description": "Opaque voice service identity.", - "maxLength": 200, - "minLength": 1, - "title": "Connectionid", + "color": { + "description": "Background color in #RRGGBB format.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", "type": "string" }, - "voiceId": { - "description": "Provider voice identity.", - "maxLength": 200, + "opacity": { + "description": "Background opacity.", + "maximum": 1, + "minimum": 0, + "title": "Opacity", + "type": "number" + }, + "padding": { + "description": "Background padding in output pixels.", + "maximum": 128, + "minimum": 0, + "title": "Padding", + "type": "number" + } + }, + "required": [ + "color", + "opacity", + "padding" + ], + "title": "TimelineTextBackground", + "type": "object" + }, + "TimelineTextOverlay": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable document-local text ID.", + "maxLength": 100, "minLength": 1, - "pattern": "^[^/\\\\\\x00-\\x1f\\x7f]+$", - "title": "Voiceid", + "pattern": "\\S", + "title": "Id", "type": "string" }, - "name": { - "description": "Readable provider voice name.", - "maxLength": 255, + "start": { + "description": "Absolute start time in seconds.", + "minimum": 0, + "title": "Start", + "type": "number" + }, + "end": { + "description": "Exclusive absolute end time in seconds.", + "exclusiveMinimum": 0, + "title": "End", + "type": "number" + }, + "text": { + "description": "Plain text normalized to LF, counted in Unicode code points.", + "maxLength": 4096, "minLength": 1, - "title": "Name", + "title": "Text", "type": "string" }, - "source": { - "description": "Provider voice source; used to check checkpoint compatibility.", - "enum": [ - "builtin", - "uploaded" - ], - "title": "Source", - "type": "string" + "x": { + "description": "Normalized text box left position.", + "maximum": 1, + "minimum": 0, + "title": "X", + "type": "number" }, - "hasReferenceAudio": { - "description": "Provider reports a registered reference recording.", - "title": "Hasreferenceaudio", - "type": "boolean" + "y": { + "description": "Normalized text box top position.", + "maximum": 1, + "minimum": 0, + "title": "Y", + "type": "number" }, - "embeddingDim": { - "anyOf": [ - { - "maximum": 65536, - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Registered reference embedding dimension, when the provider reports one.", - "title": "Embeddingdim" + "maxWidth": { + "description": "Text box width as a fraction of output width.", + "exclusiveMinimum": 0, + "maximum": 1, + "title": "Maxwidth", + "type": "number" }, - "refText": { + "fontId": { + "description": "Font resource ID in this document.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Fontid", + "type": "string" + }, + "style": { + "$ref": "#/$defs/TimelineTextStyle", + "description": "Output-space text styling." + }, + "sourceAsset": { "anyOf": [ { - "maxLength": 100000, - "type": "string" + "$ref": "#/$defs/AssetRef" }, { "type": "null" } ], "default": null, - "description": "Provider reference transcript, when available.", - "title": "Reftext" + "description": "Frozen source text asset, independent of subsequent edits." } }, "required": [ - "connectionId", - "voiceId", - "name", - "source", - "hasReferenceAudio" + "id", + "start", + "end", + "text", + "x", + "y", + "maxWidth", + "fontId", + "style" ], - "title": "VoiceSelection", + "title": "TimelineTextOverlay", "type": "object" - } - }, - "additionalProperties": false, - "properties": { - "project": { - "$ref": "#/$defs/ProjectSnapshot", - "description": "Authoritative project snapshot schema." }, - "canvasItem": { - "description": "Canvas item schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioCanvasItem", - "external": "#/$defs/DirectorCanvasItem", - "file": "#/$defs/FileCanvasItem", - "group": "#/$defs/GroupCanvasItem", - "image": "#/$defs/ImageCanvasItem", - "stack": "#/$defs/StackCanvasItem", - "subject": "#/$defs/SubjectCanvasItem", - "text": "#/$defs/TextCanvasItem", - "timeline": "#/$defs/TimelineCanvasItem", - "tool": "#/$defs/ToolCanvasItem", - "video": "#/$defs/VideoCanvasItem" + "TimelineTextStroke": { + "additionalProperties": false, + "properties": { + "color": { + "description": "Stroke color in #RRGGBB format.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", + "type": "string" }, - "propertyName": "kind" + "width": { + "description": "Stroke width in output pixels.", + "maximum": 32, + "minimum": 0, + "title": "Width", + "type": "number" + } }, - "oneOf": [ - { - "$ref": "#/$defs/TextCanvasItem" - }, - { - "$ref": "#/$defs/ImageCanvasItem" + "required": [ + "color", + "width" + ], + "title": "TimelineTextStroke", + "type": "object" + }, + "TimelineTextStyle": { + "additionalProperties": false, + "properties": { + "fontSize": { + "description": "Font size in output pixels.", + "maximum": 512, + "minimum": 1, + "title": "Fontsize", + "type": "number" }, - { - "$ref": "#/$defs/VideoCanvasItem" + "color": { + "description": "Text color in #RRGGBB format.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Color", + "type": "string" }, - { - "$ref": "#/$defs/AudioCanvasItem" + "align": { + "description": "Horizontal text alignment.", + "enum": [ + "left", + "center", + "right" + ], + "title": "Align", + "type": "string" }, - { - "$ref": "#/$defs/FileCanvasItem" + "lineHeight": { + "description": "Line height as a font size multiplier.", + "maximum": 3, + "minimum": 0.8, + "title": "Lineheight", + "type": "number" }, - { - "$ref": "#/$defs/SubjectCanvasItem" + "background": { + "anyOf": [ + { + "$ref": "#/$defs/TimelineTextBackground" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional text background." }, - { - "$ref": "#/$defs/TimelineCanvasItem" + "stroke": { + "anyOf": [ + { + "$ref": "#/$defs/TimelineTextStroke" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Optional text stroke." + } + }, + "required": [ + "fontSize", + "color", + "align", + "lineHeight" + ], + "title": "TimelineTextStyle", + "type": "object" + }, + "TimelineTrack": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", + "type": "string" }, - { - "$ref": "#/$defs/StackCanvasItem" + "kind": { + "description": "Business object or media type.", + "enum": [ + "visual", + "audio" + ], + "title": "Kind", + "type": "string" }, - { - "$ref": "#/$defs/ToolCanvasItem" + "title": { + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" }, - { - "$ref": "#/$defs/DirectorCanvasItem" + "muted": { + "default": false, + "description": "Whether audio output is muted.", + "title": "Muted", + "type": "boolean" }, - { - "$ref": "#/$defs/GroupCanvasItem" + "clips": { + "default": [], + "description": "Ordered clips on this track.", + "items": { + "$ref": "#/$defs/TimelineClip" + }, + "title": "Clips", + "type": "array" } + }, + "required": [ + "id", + "kind", + "title" ], - "title": "Canvasitem" + "title": "TimelineTrack", + "type": "object" }, - "generationSpec": { - "description": "Generation configuration schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" + "ToolCanvasItem": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextGenerationSpec" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - { - "$ref": "#/$defs/ImageGenerationSpec" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - { - "$ref": "#/$defs/VideoGenerationSpec" + "kind": { + "const": "tool", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - { - "$ref": "#/$defs/AudioGenerationSpec" - } - ], - "title": "Generationspec" - }, - "reference": { - "description": "Generation reference to create or update.", - "discriminator": { - "mapping": { - "follow_current": "#/$defs/FollowingReference", - "pinned": "#/$defs/PinnedReference" + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" }, - "propertyName": "binding" - }, - "oneOf": [ - { - "$ref": "#/$defs/PinnedReference" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." }, - { - "$ref": "#/$defs/FollowingReference" - } - ], - "title": "Reference" - }, - "editorDocument": { - "description": "Editable document schema.", - "discriminator": { - "mapping": { - "director": "#/$defs/DirectorDocument", - "image_crop": "#/$defs/ImageCropDocument", - "layers": "#/$defs/LayerDocument", - "media_edit": "#/$defs/MediaEditDocument", - "stack": "#/$defs/StackDocument", - "subject": "#/$defs/SubjectDocument", - "timeline": "#/$defs/TimelineDocument", - "tool": "#/$defs/ToolDocument" + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TimelineDocument" + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" }, - { - "$ref": "#/$defs/SubjectDocument" + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" }, - { - "$ref": "#/$defs/LayerDocument" + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" }, - { - "$ref": "#/$defs/ImageCropDocument" + "color": { + "anyOf": [ + { + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - { - "$ref": "#/$defs/StackDocument" + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" }, - { - "$ref": "#/$defs/ToolDocument" + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" }, - { - "$ref": "#/$defs/DirectorDocument" + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" }, - { - "$ref": "#/$defs/MediaEditDocument" + "binding": { + "$ref": "#/$defs/EditorBinding", + "description": "Business object displayed by this canvas item." } + }, + "required": [ + "id", + "projectId", + "kind", + "binding" ], - "title": "Editordocument" + "title": "ToolCanvasItem", + "type": "object" }, - "command": { - "description": "Immutable command recorded in this commit.", - "discriminator": { - "mapping": { - "artifact.publish": "#/$defs/ArtifactPublishCommand", - "asset.delete": "#/$defs/AssetDeleteCommand", - "asset.import": "#/$defs/AssetImportCommand", - "asset.updateMetadata": "#/$defs/AssetMetadataCommand", - "asset.writeText": "#/$defs/AssetWriteTextCommand", - "canvas.applyEdit": "#/$defs/CanvasApplyEditCommand", - "canvas.applyVersion": "#/$defs/NodeVersionApplyCommand", - "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommand", - "canvas.configure": "#/$defs/CanvasConfigureCommand", - "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", - "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", - "canvas.hide": "#/$defs/CanvasHideCommand", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommand", - "canvas.materialize": "#/$defs/CanvasMaterializeCommand", - "canvas.move": "#/$defs/CanvasMoveCommand", - "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", - "canvas.show": "#/$defs/CanvasShowCommand", - "canvas.update": "#/$defs/CanvasUpdateCommand", - "creation.batch": "#/$defs/BatchCommand", - "editor.create": "#/$defs/EditorCreateCommand", - "editor.save": "#/$defs/EditorSaveCommand", - "generation.submit": "#/$defs/GenerationSubmitCommand", - "generationSpec.create": "#/$defs/SpecCreateCommand", - "generationSpec.restore": "#/$defs/SpecRestoreCommand", - "generationSpec.setPrompt": "#/$defs/SpecPromptCommand", - "generationSpec.update": "#/$defs/SpecUpdateCommand", - "history.redo": "#/$defs/HistoryRedoCommand", - "history.undo": "#/$defs/HistoryUndoCommand", - "job.cancel": "#/$defs/JobCancelCommand", - "job.checkpoint": "#/$defs/JobCheckpointCommand", - "job.recover": "#/$defs/JobRecoverCommand", - "project.create": "#/$defs/ProjectCreateCommand", - "project.rename": "#/$defs/ProjectRenameCommand", - "project.restore": "#/$defs/ProjectRestoreCommand", - "project.trash": "#/$defs/ProjectTrashCommand", - "reference.add": "#/$defs/ReferenceAddCommand", - "reference.remove": "#/$defs/ReferenceRemoveCommand", - "reference.restore": "#/$defs/ReferenceRestoreCommand", - "reference.update": "#/$defs/ReferenceUpdateCommand", - "result.select": "#/$defs/ResultSelectCommand", - "timeline.publishRender": "#/$defs/TimelinePublishRenderCommand" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/ProjectCreateCommand" - }, - { - "$ref": "#/$defs/ProjectRenameCommand" + "ToolData": { + "additionalProperties": false, + "properties": { + "kind": { + "description": "Business object or media type.", + "enum": [ + "camera", + "style", + "palette", + "camera_motion" + ], + "title": "Kind", + "type": "string" }, - { - "$ref": "#/$defs/ProjectTrashCommand" + "fields": { + "default": [], + "description": "Named tool-specific parameter fields.", + "items": { + "$ref": "#/$defs/ToolField" + }, + "title": "Fields", + "type": "array" }, - { - "$ref": "#/$defs/ProjectRestoreCommand" + "provenance": { + "anyOf": [ + { + "$ref": "#/$defs/PaletteProvenance" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Recorded origin and execution context." }, - { - "$ref": "#/$defs/AssetImportCommand" + "palette": { + "anyOf": [ + { + "$ref": "#/$defs/PaletteData" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Reusable palette data." + } + }, + "required": [ + "kind" + ], + "title": "ToolData", + "type": "object" + }, + "ToolDocument": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - { - "$ref": "#/$defs/ArtifactPublishCommand" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - { - "$ref": "#/$defs/AssetWriteTextCommand" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - { - "$ref": "#/$defs/AssetMetadataCommand" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - { - "$ref": "#/$defs/AssetDeleteCommand" - }, - { - "$ref": "#/$defs/CanvasCreateGenerationCommand" + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" }, - { - "$ref": "#/$defs/CanvasShowCommand" + "kind": { + "const": "tool", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - { - "$ref": "#/$defs/CanvasMoveCommand" + "data": { + "$ref": "#/$defs/ToolData", + "description": "Typed editable document contents." + } + }, + "required": [ + "id", + "projectId", + "kind", + "data" + ], + "title": "ToolDocument", + "type": "object" + }, + "ToolDraftBinding": { + "additionalProperties": false, + "properties": { + "editorId": { + "description": "Editable document ID.", + "format": "uuid", + "title": "Editorid", + "type": "string" }, - { - "$ref": "#/$defs/CanvasUpdateCommand" + "editorRevision": { + "description": "Expected editable document revision.", + "minimum": 1, + "title": "Editorrevision", + "type": "integer" }, - { - "$ref": "#/$defs/CanvasLayoutRunsCommand" + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" }, - { - "$ref": "#/$defs/CanvasHideCommand" + "itemRevision": { + "description": "Expected canvas item revision.", + "minimum": 1, + "title": "Itemrevision", + "type": "integer" + } + }, + "required": [ + "editorId", + "editorRevision", + "itemId", + "itemRevision" + ], + "title": "ToolDraftBinding", + "type": "object" + }, + "ToolField": { + "additionalProperties": false, + "properties": { + "name": { + "description": "User-visible name.", + "maxLength": 200, + "minLength": 1, + "title": "Name", + "type": "string" }, - { - "$ref": "#/$defs/CanvasMaterializeCommand" + "values": { + "description": "Ordered tool field values.", + "items": { + "type": "string" + }, + "title": "Values", + "type": "array" + } + }, + "required": [ + "name", + "values" + ], + "title": "ToolField", + "type": "object" + }, + "ToolSelection": { + "additionalProperties": false, + "properties": { + "source": { + "$ref": "#/$defs/AssetRef", + "description": "Input source or recorded provenance." }, - { - "$ref": "#/$defs/CanvasApplyEditCommand" + "width": { + "description": "Width in pixels.", + "minimum": 1, + "title": "Width", + "type": "integer" }, - { - "$ref": "#/$defs/CanvasPublishMediaCommand" + "height": { + "description": "Height in pixels.", + "minimum": 1, + "title": "Height", + "type": "integer" }, - { - "$ref": "#/$defs/TimelinePublishRenderCommand" + "mask": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Ordered strokes or encoded selection mask." }, - { - "$ref": "#/$defs/NodeVersionApplyCommand" + "boxes": { + "default": [], + "description": "Selection rectangles in source image pixels.", + "items": { + "$ref": "#/$defs/SelectionBox" + }, + "title": "Boxes", + "type": "array" + } + }, + "required": [ + "source", + "width", + "height" + ], + "title": "ToolSelection", + "type": "object" + }, + "TransformFrame": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", + "type": "string" }, - { - "$ref": "#/$defs/CanvasConfigureCommand" + "time": { + "description": "Keyframe time in seconds.", + "minimum": 0, + "title": "Time", + "type": "number" }, - { - "$ref": "#/$defs/CanvasEditorAttachCommand" + "value": { + "$ref": "#/$defs/StageTransform", + "description": "Keyframed transform or camera pose." + } + }, + "required": [ + "id", + "time", + "value" + ], + "title": "TransformFrame", + "type": "object" + }, + "UploadInfo": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "format": "uuid", + "title": "Id", + "type": "string" }, - { - "$ref": "#/$defs/CanvasEditorDetachCommand" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - { - "$ref": "#/$defs/SpecCreateCommand" + "name": { + "description": "User-visible name.", + "title": "Name", + "type": "string" }, - { - "$ref": "#/$defs/SpecUpdateCommand" + "status": { + "description": "Current operation lifecycle state.", + "enum": [ + "uploading", + "ready", + "registered", + "cancelled" + ], + "title": "Status", + "type": "string" }, - { - "$ref": "#/$defs/SpecRestoreCommand" + "kind": { + "anyOf": [ + { + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Business object or media type.", + "title": "Kind" }, - { - "$ref": "#/$defs/SpecPromptCommand" + "fingerprint": { + "anyOf": [ + { + "pattern": "^sha256:[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Immutable content fingerprint.", + "title": "Fingerprint" }, - { - "$ref": "#/$defs/ReferenceAddCommand" - }, - { - "$ref": "#/$defs/ReferenceUpdateCommand" - }, - { - "$ref": "#/$defs/ReferenceRestoreCommand" - }, - { - "$ref": "#/$defs/ReferenceRemoveCommand" - }, - { - "$ref": "#/$defs/GenerationSubmitCommand" - }, - { - "$ref": "#/$defs/JobCancelCommand" - }, - { - "$ref": "#/$defs/JobRecoverCommand" - }, - { - "$ref": "#/$defs/JobCheckpointCommand" + "metadata": { + "anyOf": [ + { + "$ref": "#/$defs/MediaMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Verified media properties." }, - { - "$ref": "#/$defs/ResultSelectCommand" + "assetId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Asset ID.", + "title": "Assetid" + } + }, + "required": [ + "id", + "projectId", + "name", + "status" + ], + "title": "UploadInfo", + "type": "object" + }, + "Vector3": { + "additionalProperties": false, + "properties": { + "x": { + "description": "X component in stage coordinates.", + "title": "X", + "type": "number" }, - { - "$ref": "#/$defs/EditorCreateCommand" + "y": { + "description": "Y component in stage coordinates.", + "title": "Y", + "type": "number" }, - { - "$ref": "#/$defs/EditorSaveCommand" + "z": { + "description": "Z component in stage coordinates.", + "title": "Z", + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "title": "Vector3", + "type": "object" + }, + "VersionsQuery": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" }, - { - "$ref": "#/$defs/HistoryUndoCommand" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - { - "$ref": "#/$defs/HistoryRedoCommand" + "type": { + "description": "Read object versions.", + "enum": [ + "generationSpec.versions", + "canvas.versions" + ], + "title": "Type", + "type": "string" }, - { - "$ref": "#/$defs/BatchCommand" + "objectId": { + "description": "Target configuration or canvas item ID.", + "format": "uuid", + "title": "Objectid", + "type": "string" } + }, + "required": [ + "queryId", + "projectId", + "type", + "objectId" ], - "title": "Command" - }, - "receipt": { - "$ref": "#/$defs/CommandReceipt", - "description": "Immutable command execution receipt." + "title": "VersionsQuery", + "type": "object" }, - "query": { - "description": "Read-only project query.", - "discriminator": { - "mapping": { - "asset.preview": "#/$defs/AssetPreviewQuery", - "asset.search": "#/$defs/AssetSearchQuery", - "asset.usage": "#/$defs/AssetUsageQuery", - "canvas.status": "#/$defs/CanvasStatusQuery", - "canvas.versions": "#/$defs/VersionsQuery", - "generationSpec.versions": "#/$defs/VersionsQuery", - "job.get": "#/$defs/ObjectQuery", - "job.status": "#/$defs/JobStatusQuery", - "object.get": "#/$defs/ObjectQuery", - "project.get": "#/$defs/ProjectQuery" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/ProjectQuery" + "VideoCanvasItem": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - { - "$ref": "#/$defs/ObjectQuery" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - { - "$ref": "#/$defs/VersionsQuery" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - { - "$ref": "#/$defs/AssetSearchQuery" + "kind": { + "const": "video", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - { - "$ref": "#/$defs/AssetUsageQuery" + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" }, - { - "$ref": "#/$defs/CanvasStatusQuery" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." }, - { - "$ref": "#/$defs/JobStatusQuery" + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" }, - { - "$ref": "#/$defs/AssetPreviewQuery" - } - ], - "title": "Query" - }, - "event": { - "$ref": "#/$defs/ProjectEvent", - "description": "Project change event, if emitted." - }, - "job": { - "$ref": "#/$defs/Job", - "description": "Generation execution record." - }, - "result": { - "$ref": "#/$defs/ResultVersion", - "description": "Generated result schema." - }, - "snapshot": { - "$ref": "#/$defs/InputSnapshot", - "description": "Fixed generation input schema." - }, - "executionParameters": { - "description": "Effective provider execution parameter schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioExecution", - "image": "#/$defs/ImageExecution", - "text": "#/$defs/TextExecution", - "video": "#/$defs/VideoExecution" + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextExecution" + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" }, - { - "$ref": "#/$defs/ImageExecution" + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" }, - { - "$ref": "#/$defs/VideoExecution" - }, - { - "$ref": "#/$defs/AudioExecution" - } - ], - "title": "Executionparameters" - }, - "promptPart": { - "description": "Structured prompt token schema.", - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ], - "title": "Promptpart" - }, - "publicModel": { - "$ref": "#/$defs/ModelConfigPublic", - "description": "Public model connection schema." - }, - "writeModel": { - "$ref": "#/$defs/ModelConfigWrite", - "description": "Model configuration input schema." - }, - "capabilities": { - "$ref": "#/$defs/NodeCapabilities", - "description": "Available canvas item operations." - }, - "viewState": { - "$ref": "#/$defs/ViewState", - "description": "Client-specific canvas view state." - }, - "timelinePackageManifest": { - "$ref": "#/$defs/TimelinePackageManifest", - "description": "Native editable timeline bundle manifest." - }, - "timelinePackageImport": { - "$ref": "#/$defs/TimelinePackageImportRequest", - "description": "Recoverable native bundle import request." - }, - "timelinePackageReceipt": { - "$ref": "#/$defs/TimelinePackageImportReceipt", - "description": "Native bundle import progress and final receipt." - }, - "upload": { - "$ref": "#/$defs/UploadInfo", - "description": "Staged upload schema." - } - }, - "required": [ - "project", - "canvasItem", - "generationSpec", - "reference", - "editorDocument", - "command", - "receipt", - "query", - "event", - "job", - "result", - "snapshot", - "executionParameters", - "promptPart", - "publicModel", - "writeModel", - "capabilities", - "viewState", - "timelinePackageManifest", - "timelinePackageImport", - "timelinePackageReceipt", - "upload" - ], - "title": "CreationContracts", - "type": "object" - }, - "output": { - "$defs": { - "ArtifactPublish": { - "additionalProperties": false, - "description": "Publish a file from a server-owned execution context without generating media.", - "examples": [ - { - "name": "片段 01", - "path": "clips/segment-01.mp4" - } - ], - "properties": { - "path": { - "description": "Artifact path relative to the server-owned execution directory.", - "maxLength": 4096, - "minLength": 1, - "title": "Path", - "type": "string" + "color": { + "anyOf": [ + { + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - "name": { - "description": "User-visible name.", - "maxLength": 255, - "minLength": 1, - "title": "Name", - "type": "string" + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" }, - "expectedKind": { + "parentId": { "anyOf": [ { - "enum": [ - "text", - "image", - "video", - "audio", - "file" - ], + "format": "uuid", "type": "string" }, { @@ -16234,326 +15915,153 @@ } ], "default": null, - "description": "Required media kind, when specified.", - "title": "Expectedkind" + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" }, - "sources": { + "tags": { "default": [], - "description": "Ordered source asset versions.", + "description": "User-defined search tags.", "items": { - "$ref": "#/$defs/AssetRef" + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" }, - "maxItems": 100, - "title": "Sources", + "title": "Tags", "type": "array" - } - }, - "required": [ - "path", - "name", - "expectedKind", - "sources" - ], - "title": "ArtifactPublish", - "type": "object" - }, - "ArtifactPublishCommand": { - "additionalProperties": false, - "description": "Register an execution file as a project asset.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "artifact.publish", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" + "binding": { + "description": "Business object displayed by this canvas item.", + "discriminator": { + "mapping": { + "empty": "#/$defs/EmptyBinding", + "generation": "#/$defs/GenerationBinding", + "material": "#/$defs/MaterialBinding" + }, + "propertyName": "role" }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ + "oneOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "$ref": "#/$defs/EmptyBinding" }, { - "type": "null" + "$ref": "#/$defs/MaterialBinding" + }, + { + "$ref": "#/$defs/GenerationBinding" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "title": "Binding" }, - "payload": { - "$ref": "#/$defs/ArtifactPublish", - "description": "Register an execution file as a project asset." + "editors": { + "default": [], + "description": "Attached editable documents.", + "items": { + "$ref": "#/$defs/EditorRef" + }, + "title": "Editors", + "type": "array" } }, "required": [ - "commandId", + "id", "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "kind", + "binding" ], - "title": "ArtifactPublishCommand", + "title": "VideoCanvasItem", "type": "object" }, - "Asset": { + "VideoCapabilities": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "description": "Business object or media type.", - "enum": [ - "text", - "image", - "video", - "audio", - "file" - ], - "title": "Kind", - "type": "string" - }, - "name": { - "description": "User-visible name.", - "maxLength": 255, - "minLength": 1, - "title": "Name", - "type": "string" - }, - "fingerprint": { - "description": "Immutable content fingerprint.", - "pattern": "^sha256:[0-9a-f]{64}$", - "title": "Fingerprint", - "type": "string" - }, - "path": { - "description": "Immutable asset path relative to the project directory.", - "title": "Path", - "type": "string" - }, - "metadata": { - "$ref": "#/$defs/MediaMetadata", - "description": "Verified media properties." - }, - "provenance": { - "$ref": "#/$defs/AssetProvenance", - "description": "Recorded origin and execution context." - } - }, - "required": [ - "id", - "projectId", - "revision", - "kind", - "name", - "fingerprint", - "path", - "metadata", - "provenance" - ], - "title": "Asset", - "type": "object" - }, - "AssetDelete": { - "additionalProperties": false, - "properties": { - "assetIds": { - "description": "Target asset IDs.", + "outputs": { + "description": "Supported output resolution and duration combinations.", "items": { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/VideoOutput" }, - "maxItems": 100, + "maxItems": 20, "minItems": 1, - "title": "Assetids", + "title": "Outputs", "type": "array" }, - "clearHistory": { - "default": false, - "description": "Whether the confirmed deletion also clears dependent history.", - "title": "Clearhistory", - "type": "boolean" + "defaultResolution": { + "default": "auto", + "description": "Default output resolution or auto.", + "title": "Defaultresolution", + "type": "string" + }, + "defaultDuration": { + "default": 5, + "description": "Default output duration in seconds.", + "maximum": 60, + "minimum": 1, + "title": "Defaultduration", + "type": "integer" + }, + "dimensionStep": { + "default": 2, + "description": "Required pixel alignment of output dimensions.", + "enum": [ + 1, + 2, + 8, + 16, + 32, + 64 + ], + "title": "Dimensionstep", + "type": "integer" } }, "required": [ - "assetIds", - "clearHistory" + "outputs" ], - "title": "AssetDelete", + "title": "VideoCapabilities", "type": "object" }, - "AssetDeleteCommand": { + "VideoExecution": { "additionalProperties": false, - "description": "Delete assets after an impact preview.", + "description": "Resolved adapter parameters, distinct from user intent and source layout.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "asset.delete", - "description": "Command discriminator.", - "title": "Type", + "kind": { + "const": "video", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { + "durationSeconds": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "maximum": 60, + "minimum": 1, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/AssetDelete", - "description": "Delete assets after an impact preview." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "AssetDeleteCommand", - "type": "object" - }, - "AssetImport": { - "additionalProperties": false, - "properties": { - "uploadHandle": { - "description": "Server-issued staged upload ID.", - "format": "uuid", - "title": "Uploadhandle", - "type": "string" - }, - "name": { - "description": "User-visible name.", - "maxLength": 255, - "minLength": 1, - "title": "Name", - "type": "string" + "description": "Duration in seconds.", + "title": "Durationseconds" }, - "expectedKind": { - "description": "Required media kind, when specified.", - "enum": [ - "text", - "image", - "video", - "audio", - "file" + "size": { + "anyOf": [ + { + "pattern": "^\\d+x\\d+$", + "type": "string" + }, + { + "type": "null" + } ], - "title": "Expectedkind", - "type": "string" - } - }, - "required": [ - "uploadHandle", - "name", - "expectedKind" - ], - "title": "AssetImport", - "type": "object" - }, - "AssetImportCommand": { - "additionalProperties": false, - "description": "Register an uploaded file as a project asset.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "asset.import", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "default": null, + "description": "Effective video dimensions sent to the provider.", + "title": "Size" }, - "expectedPreview": { + "resolution": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -16561,221 +16069,38 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Requested output resolution.", + "title": "Resolution" }, - "payload": { - "$ref": "#/$defs/AssetImport", - "description": "Register an uploaded file as a project asset." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "AssetImportCommand", - "type": "object" - }, - "AssetMetadataCommand": { - "additionalProperties": false, - "description": "Rename an asset.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "asset.updateMetadata", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/AssetMetadataUpdate", - "description": "Rename an asset." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "AssetMetadataCommand", - "type": "object" - }, - "AssetMetadataUpdate": { - "additionalProperties": false, - "properties": { - "assetId": { - "description": "Asset ID.", - "format": "uuid", - "title": "Assetid", - "type": "string" - }, - "name": { - "description": "User-visible name.", - "maxLength": 255, - "minLength": 1, - "title": "Name", - "type": "string" - } - }, - "required": [ - "assetId", - "name" - ], - "title": "AssetMetadataUpdate", - "type": "object" - }, - "AssetPreviewQuery": { - "additionalProperties": false, - "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "asset.preview", - "description": "Preview an asset; does not establish model observation.", - "title": "Type", - "type": "string" - }, - "objectId": { - "description": "Asset ID.", - "format": "uuid", - "title": "Objectid", - "type": "string" - } - }, - "required": [ - "queryId", - "projectId", - "type", - "objectId" - ], - "title": "AssetPreviewQuery", - "type": "object" - }, - "AssetProvenance": { - "additionalProperties": false, - "properties": { - "source": { - "description": "Input source or recorded provenance.", - "enum": [ - "upload", - "manual", - "agent_written", - "generated", - "edited", - "rendered", - "imported" - ], - "title": "Source", - "type": "string" - }, - "jobId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Generation job ID.", - "title": "Jobid" - }, - "toolTaskId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Tool execution ID.", - "title": "Tooltaskid" - }, - "sourceItemId": { + "fps": { "anyOf": [ { - "format": "uuid", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Source canvas item ID.", - "title": "Sourceitemid" + "description": "Frames per second.", + "title": "Fps" }, - "editorDocumentId": { + "numFrames": { "anyOf": [ { - "format": "uuid", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Editable document ID.", - "title": "Editordocumentid" + "description": "Requested video frame count.", + "title": "Numframes" }, - "editorRevision": { + "numInferenceSteps": { "anyOf": [ { "minimum": 1, @@ -16786,82 +16111,105 @@ } ], "default": null, - "description": "Expected editable document revision.", - "title": "Editorrevision" - }, - "sources": { - "default": [], - "description": "Ordered source asset versions.", - "items": { - "$ref": "#/$defs/AssetRef" - }, - "title": "Sources", - "type": "array" + "description": "Diffusion sampling step count.", + "title": "Numinferencesteps" }, - "inputFingerprint": { + "guidanceScale": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "minimum": 0, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the fixed execution input.", - "title": "Inputfingerprint" + "description": "Diffusion guidance scale.", + "title": "Guidancescale" }, - "agentRunId": { + "seed": { "anyOf": [ { - "format": "uuid", - "type": "string" + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Agent turn ID.", - "title": "Agentrunid" + "description": "Random seed, when specified.", + "title": "Seed" }, - "agentRuntime": { + "watermark": { "anyOf": [ { - "enum": [ - "opencode", - "codex", - "claude", - "jiuwenswarm", - "deepseek" - ], - "type": "string" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Native Agent runtime that produced this asset.", - "title": "Agentruntime" + "description": "Whether provider watermarking is enabled.", + "title": "Watermark" }, - "modelSnapshot": { + "generateAudio": { "anyOf": [ { - "$ref": "#/$defs/ModelSnapshot" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Fixed model connection recorded for provenance." + "description": "Whether video generation includes audio.", + "title": "Generateaudio" + } + }, + "required": [ + "kind" + ], + "title": "VideoExecution", + "type": "object" + }, + "VideoGenerationSpec": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - "prompt": { + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "purpose": { + "default": "draft", + "description": "Draft settings or executable generation configuration.", + "enum": [ + "draft", + "generation" + ], + "title": "Purpose", + "type": "string" + }, + "modelConfigId": { "anyOf": [ { - "maxLength": 20000, + "format": "uuid", "type": "string" }, { @@ -16869,277 +16217,232 @@ } ], "default": null, + "description": "Model configuration ID from the model catalog or user model selections.", + "title": "Modelconfigid" + }, + "prompt": { + "default": "", "description": "Generation prompt text.", - "title": "Prompt" + "maxLength": 20000, + "title": "Prompt", + "type": "string" }, - "importedFrom": { + "promptContent": { "anyOf": [ { - "enum": [ - "generated", - "edited" - ], - "type": "string" + "items": { + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ] + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Original source recorded by a canvas archive this asset was imported from.", - "title": "Importedfrom" - } - }, - "required": [ - "source", - "jobId", - "toolTaskId", - "sourceItemId", - "editorDocumentId", - "editorRevision", - "sources", - "inputFingerprint", - "agentRunId", - "agentRuntime", - "modelSnapshot", - "prompt", - "importedFrom" - ], - "title": "AssetProvenance", - "type": "object" - }, - "AssetRef": { - "additionalProperties": false, - "properties": { - "assetId": { - "description": "ID of a registered project asset from project.assets[].id or a successful asset command result.", - "format": "uuid", - "title": "Assetid", - "type": "string" - }, - "revision": { - "description": "Referenced immutable asset revision.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "description": "Structured prompt text and reference tokens.", + "title": "Promptcontent" }, - "fingerprint": { - "description": "Immutable content fingerprint.", - "pattern": "^sha256:[0-9a-f]{64}$", - "title": "Fingerprint", - "type": "string" + "currentResultId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Currently adopted result ID.", + "title": "Currentresultid" }, "kind": { + "const": "video", "description": "Business object or media type.", - "enum": [ - "text", - "image", - "video", - "audio", - "file" - ], "title": "Kind", "type": "string" - } - }, - "required": [ - "assetId", - "revision", - "fingerprint", - "kind" - ], - "title": "AssetRef", - "type": "object" - }, - "AssetSearchQuery": { - "additionalProperties": false, - "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "asset.search", - "description": "Search project assets.", - "title": "Type", - "type": "string" - }, - "text": { - "default": "", - "description": "Asset search text.", - "maxLength": 1000, - "title": "Text", - "type": "string" - }, - "offset": { - "default": 0, - "description": "Number of matching records to skip.", - "minimum": 0, - "title": "Offset", - "type": "integer" }, - "limit": { - "default": 50, - "description": "Maximum number of records to return.", - "maximum": 200, - "minimum": 1, - "title": "Limit", - "type": "integer" + "parameters": { + "$ref": "#/$defs/VideoParameters", + "description": "Typed generation or editing parameters." } }, "required": [ - "queryId", + "id", "projectId", - "type", - "text", - "offset", - "limit" + "kind" ], - "title": "AssetSearchQuery", + "title": "VideoGenerationSpec", "type": "object" }, - "AssetUsageQuery": { + "VideoOutput": { "additionalProperties": false, "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "resolution": { + "description": "Requested output resolution.", + "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,23}$", + "title": "Resolution", "type": "string" }, - "type": { - "const": "asset.usage", - "description": "Read asset dependencies.", - "title": "Type", - "type": "string" + "durations": { + "description": "Supported output durations in seconds.", + "items": { + "maximum": 60, + "minimum": 1, + "type": "integer" + }, + "maxItems": 60, + "minItems": 1, + "title": "Durations", + "type": "array" }, - "objectId": { + "width": { "anyOf": [ { - "format": "uuid", - "type": "string" + "maximum": 8192, + "minimum": 64, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Asset ID, or all assets when omitted.", - "title": "Objectid" + "description": "Width in pixels.", + "title": "Width" }, - "offset": { - "default": 0, - "description": "Number of matching records to skip.", - "minimum": 0, - "title": "Offset", - "type": "integer" - }, - "limit": { - "default": 50, - "description": "Maximum number of records to return.", - "maximum": 200, - "minimum": 1, - "title": "Limit", - "type": "integer" + "height": { + "anyOf": [ + { + "maximum": 8192, + "minimum": 64, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Height in pixels.", + "title": "Height" } }, "required": [ - "queryId", - "projectId", - "type", - "objectId", - "offset", - "limit" + "resolution", + "durations" ], - "title": "AssetUsageQuery", + "title": "VideoOutput", "type": "object" }, - "AssetWriteText": { + "VideoParameters": { "additionalProperties": false, "properties": { - "name": { - "description": "User-visible name.", - "maxLength": 255, - "minLength": 1, - "title": "Name", - "type": "string" + "generateAudio": { + "default": true, + "description": "Include audio; value must be allowed by model inputRules.generateAudioOptions.", + "title": "Generateaudio", + "type": "boolean" }, - "text": { - "description": "UTF-8 text content or search query.", - "maxLength": 1048576, - "title": "Text", + "videoMode": { + "default": "first_frame", + "description": "Video generation input mode.", + "enum": [ + "first_frame", + "reference", + "continuation", + "control" + ], + "title": "Videomode", "type": "string" }, - "previousAsset": { + "durationSeconds": { "anyOf": [ { - "$ref": "#/$defs/AssetRef" + "maximum": 60, + "minimum": 1, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Previous immutable version for a new text asset version." + "description": "Duration in seconds; fractional values require model inputRules.fractionalDuration. Generated frames may be aligned by the model.", + "title": "Durationseconds" + }, + "aspectRatio": { + "anyOf": [ + { + "pattern": "^[1-9]\\d?:[1-9]\\d?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Output width-to-height ratio.", + "title": "Aspectratio" + }, + "resolution": { + "default": "auto", + "description": "Requested output resolution.", + "pattern": "^(?:auto|[A-Z0-9][A-Z0-9_.-]{0,23})$", + "title": "Resolution", + "type": "string" } }, - "required": [ - "name", - "text", - "previousAsset" - ], - "title": "AssetWriteText", + "title": "VideoParameters", "type": "object" }, - "AssetWriteTextCommand": { + "ViewState": { "additionalProperties": false, - "description": "Write a text asset or a new version of an existing text asset.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, "projectId": { "description": "Owning project ID.", "format": "uuid", "title": "Projectid", "type": "string" }, - "type": { - "const": "asset.writeText", - "description": "Command discriminator.", - "title": "Type", + "clientId": { + "description": "Client identity for independent view state.", + "format": "uuid", + "title": "Clientid", "type": "string" }, - "expectedVersions": { + "viewport": { + "$ref": "#/$defs/Viewport", + "description": "Canvas pan and zoom state." + }, + "selectedItemIds": { "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "description": "Currently selected canvas item IDs.", "items": { - "$ref": "#/$defs/ObjectVersion" + "format": "uuid", + "type": "string" }, - "title": "Expectedversions", + "title": "Selecteditemids", "type": "array" }, - "expectedPreview": { + "activeEditorId": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "format": "uuid", "type": "string" }, { @@ -17147,285 +16450,240 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Currently active editable document ID.", + "title": "Activeeditorid" }, - "payload": { - "$ref": "#/$defs/AssetWriteText", - "description": "Write a text asset or a new version of an existing text asset." + "playheads": { + "default": [], + "description": "Playback positions keyed by editor identity.", + "items": { + "$ref": "#/$defs/Playhead" + }, + "title": "Playheads", + "type": "array" + }, + "generationCounts": { + "additionalProperties": { + "maximum": 8, + "minimum": 1, + "type": "integer" + }, + "description": "Requested generation counts keyed by canvas item ID.", + "propertyNames": { + "format": "uuid" + }, + "title": "Generationcounts", + "type": "object" } }, "required": [ - "commandId", "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "clientId" ], - "title": "AssetWriteTextCommand", + "title": "ViewState", "type": "object" }, - "AudioCanvasItem": { + "Viewport": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" + "x": { + "default": 0, + "description": "Horizontal coordinate.", + "title": "X", + "type": "number" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "y": { + "default": 0, + "description": "Vertical coordinate.", + "title": "Y", + "type": "number" }, - "revision": { + "zoom": { "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "audio", - "description": "Business object or media type.", - "title": "Kind", + "description": "Canvas viewport zoom factor.", + "maximum": 8, + "minimum": 0.08, + "title": "Zoom", + "type": "number" + } + }, + "title": "Viewport", + "type": "object" + }, + "VoiceLibraryCapabilities": { + "additionalProperties": false, + "properties": { + "provider": { + "description": "Voice registry protocol.", + "enum": [ + "vllm_omni", + "moss", + "minimax", + "zhipu" + ], + "title": "Provider", "type": "string" }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "connectionId": { + "description": "Opaque service, endpoint and account identity.", + "maxLength": 200, + "minLength": 1, + "title": "Connectionid", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" + "requiresTranscript": { + "description": "Registered voice must have a reference transcript.", + "title": "Requirestranscript", + "type": "boolean" }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "acceptsTranscript": { + "default": false, + "description": "Registry stores an optional reference transcript when one is supplied.", + "title": "Acceptstranscript", + "type": "boolean" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" + "requiresReferenceAudio": { + "description": "Registered voice must have actual reference audio.", + "title": "Requiresreferenceaudio", + "type": "boolean" }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", + "supportsUploadedVoices": { + "default": true, + "description": "Selected model checkpoint accepts uploaded registry voices.", + "title": "Supportsuploadedvoices", "type": "boolean" }, - "color": { + "referenceEmbeddingDimension": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "maximum": 65536, + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" + "description": "Accepted registered reference embedding dimension; null requires actual reference audio when required.", + "title": "Referenceembeddingdimension" }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", + "canDelete": { + "description": "Provider supports uploaded voice deletion.", + "title": "Candelete", "type": "boolean" }, - "parentId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" + "maxBytes": { + "description": "Maximum audio sample bytes.", + "minimum": 1, + "title": "Maxbytes", + "type": "integer" }, - "tags": { - "default": [], - "description": "User-defined search tags.", + "formats": { + "description": "Supported recording file extensions.", "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", "type": "string" }, - "title": "Tags", + "title": "Formats", "type": "array" }, - "binding": { - "description": "Business object displayed by this canvas item.", - "discriminator": { - "mapping": { - "empty": "#/$defs/EmptyBinding", - "generation": "#/$defs/GenerationBinding", - "material": "#/$defs/MaterialBinding" - }, - "propertyName": "role" - }, - "oneOf": [ + "minSeconds": { + "anyOf": [ { - "$ref": "#/$defs/EmptyBinding" + "type": "number" }, { - "$ref": "#/$defs/MaterialBinding" + "type": "null" + } + ], + "description": "Minimum recording duration, if documented.", + "title": "Minseconds" + }, + "maxSeconds": { + "anyOf": [ + { + "type": "number" }, { - "$ref": "#/$defs/GenerationBinding" + "type": "null" } ], - "title": "Binding" - }, - "editors": { - "default": [], - "description": "Attached editable documents.", - "items": { - "$ref": "#/$defs/EditorRef" - }, - "title": "Editors", - "type": "array" + "description": "Maximum recording duration, if documented.", + "title": "Maxseconds" } }, "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags", - "binding", - "editors" + "provider", + "connectionId", + "requiresTranscript", + "requiresReferenceAudio", + "canDelete", + "maxBytes", + "formats", + "minSeconds", + "maxSeconds" ], - "title": "AudioCanvasItem", + "title": "VoiceLibraryCapabilities", "type": "object" }, - "AudioExecution": { + "VoiceSelection": { "additionalProperties": false, "properties": { - "kind": { - "const": "audio", - "description": "Business object or media type.", - "title": "Kind", + "connectionId": { + "description": "Opaque voice service identity.", + "maxLength": 200, + "minLength": 1, + "title": "Connectionid", "type": "string" }, - "voice": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provider voice identifier or name.", - "title": "Voice" - }, - "speaker": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provider speaker identifier.", - "title": "Speaker" - }, - "format": { - "description": "Audio container or codec format.", - "enum": [ - "mp3", - "wav" - ], - "title": "Format", + "voiceId": { + "description": "Provider voice identity.", + "maxLength": 200, + "minLength": 1, + "pattern": "^[^/\\\\\\x00-\\x1f\\x7f]+$", + "title": "Voiceid", "type": "string" }, - "sampleRate": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Audio samples per second.", - "title": "Samplerate" + "name": { + "description": "Readable provider voice name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" }, - "creationType": { - "default": "audio", - "description": "Speech or music creation mode.", + "source": { + "description": "Provider voice source; used to check checkpoint compatibility.", "enum": [ - "audio", - "music" + "builtin", + "uploaded" ], - "title": "Creationtype", + "title": "Source", "type": "string" }, - "instrumental": { - "default": false, - "description": "Legacy explicit instrumental choice retained for stored records.", - "title": "Instrumental", + "hasReferenceAudio": { + "description": "Provider reports a registered reference recording.", + "title": "Hasreferenceaudio", "type": "boolean" }, - "maxDurationSeconds": { + "embeddingDim": { "anyOf": [ { - "maximum": 360, - "minimum": 8, - "type": "number" + "maximum": 65536, + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Maximum generated audio duration in seconds.", - "title": "Maxdurationseconds" + "description": "Registered reference embedding dimension, when the provider reports one.", + "title": "Embeddingdim" }, - "scoreMode": { + "refText": { "anyOf": [ { - "enum": [ - "melody", - "full" - ], + "maxLength": 100000, "type": "string" }, { @@ -17433,292 +16691,3186 @@ } ], "default": null, - "description": "Whether reference music supplies melody or full accompaniment.", - "title": "Scoremode" - }, - "seed": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Random seed fixed when the job was accepted.", - "title": "Seed" + "description": "Provider reference transcript, when available.", + "title": "Reftext" } }, "required": [ - "kind", - "voice", - "speaker", - "format", - "sampleRate" + "connectionId", + "voiceId", + "name", + "source", + "hasReferenceAudio" ], - "title": "AudioExecution", + "title": "VoiceSelection", "type": "object" + } + }, + "additionalProperties": false, + "properties": { + "project": { + "$ref": "#/$defs/ProjectSnapshot", + "description": "Authoritative project snapshot schema." }, - "AudioGenerationSpec": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" + "canvasItem": { + "description": "Canvas item schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioCanvasItem", + "external": "#/$defs/DirectorCanvasItem", + "file": "#/$defs/FileCanvasItem", + "group": "#/$defs/GroupCanvasItem", + "image": "#/$defs/ImageCanvasItem", + "stack": "#/$defs/StackCanvasItem", + "subject": "#/$defs/SubjectCanvasItem", + "text": "#/$defs/TextCanvasItem", + "timeline": "#/$defs/TimelineCanvasItem", + "tool": "#/$defs/ToolCanvasItem", + "video": "#/$defs/VideoCanvasItem" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextCanvasItem" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" + { + "$ref": "#/$defs/ImageCanvasItem" }, - "purpose": { - "default": "draft", - "description": "Draft settings or executable generation configuration.", - "enum": [ - "draft", - "generation" - ], - "title": "Purpose", - "type": "string" + { + "$ref": "#/$defs/VideoCanvasItem" }, - "modelConfigId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Model configuration ID from the model catalog or user model selections.", - "title": "Modelconfigid" + { + "$ref": "#/$defs/AudioCanvasItem" }, - "prompt": { - "default": "", - "description": "Generation prompt text.", - "maxLength": 20000, - "title": "Prompt", - "type": "string" + { + "$ref": "#/$defs/FileCanvasItem" }, - "promptContent": { - "anyOf": [ - { - "items": { - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Structured prompt text and reference tokens.", - "title": "Promptcontent" + { + "$ref": "#/$defs/SubjectCanvasItem" }, - "currentResultId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Currently adopted result ID.", - "title": "Currentresultid" + { + "$ref": "#/$defs/TimelineCanvasItem" }, - "kind": { - "const": "audio", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" + { + "$ref": "#/$defs/StackCanvasItem" }, - "parameters": { - "$ref": "#/$defs/AudioParameters", - "description": "Typed generation or editing parameters." + { + "$ref": "#/$defs/ToolCanvasItem" + }, + { + "$ref": "#/$defs/DirectorCanvasItem" + }, + { + "$ref": "#/$defs/GroupCanvasItem" } - }, - "required": [ - "id", - "projectId", - "revision", - "purpose", - "modelConfigId", - "prompt", - "promptContent", - "currentResultId", - "kind", - "parameters" ], - "title": "AudioGenerationSpec", - "type": "object" + "title": "Canvasitem" }, - "AudioParameters": { - "additionalProperties": false, - "properties": { - "creationType": { - "default": "audio", - "description": "Speech or music creation mode.", - "enum": [ - "audio", - "music" - ], - "title": "Creationtype", - "type": "string" - }, - "mode": { - "default": "tts", - "description": "Operation mode within this contract variant.", - "enum": [ - "tts", - "unified" - ], - "title": "Mode", - "type": "string" + "generationSpec": { + "description": "Generation configuration schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" }, - "voice": { - "anyOf": [ - { - "maxLength": 200, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provider voice identifier or name; library voices retain provider naming.", - "title": "Voice" + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextGenerationSpec" }, - "voiceSelection": { - "anyOf": [ - { - "$ref": "#/$defs/VoiceSelection" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Connection-scoped voice selection; validated against the live registry before generation." + { + "$ref": "#/$defs/ImageGenerationSpec" }, - "instrumental": { - "default": false, - "description": "Legacy explicit instrumental choice retained for stored records.", - "title": "Instrumental", - "type": "boolean" + { + "$ref": "#/$defs/VideoGenerationSpec" }, - "lyrics": { - "default": "", - "description": "Song lyrics; empty lyrics request instrumental music.", - "maxLength": 5000, - "title": "Lyrics", - "type": "string" + { + "$ref": "#/$defs/AudioGenerationSpec" + } + ], + "title": "Generationspec" + }, + "reference": { + "description": "Generation reference to create or update.", + "discriminator": { + "mapping": { + "follow_current": "#/$defs/FollowingReference", + "pinned": "#/$defs/PinnedReference" }, - "durationSeconds": { + "propertyName": "binding" + }, + "oneOf": [ + { + "$ref": "#/$defs/PinnedReference" + }, + { + "$ref": "#/$defs/FollowingReference" + } + ], + "title": "Reference" + }, + "editorDocument": { + "description": "Editable document schema.", + "discriminator": { + "mapping": { + "director": "#/$defs/DirectorDocument", + "image_crop": "#/$defs/ImageCropDocument", + "layers": "#/$defs/LayerDocument", + "media_edit": "#/$defs/MediaEditDocument", + "stack": "#/$defs/StackDocument", + "subject": "#/$defs/SubjectDocument", + "timeline": "#/$defs/TimelineDocument", + "tool": "#/$defs/ToolDocument" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TimelineDocument" + }, + { + "$ref": "#/$defs/SubjectDocument" + }, + { + "$ref": "#/$defs/LayerDocument" + }, + { + "$ref": "#/$defs/ImageCropDocument" + }, + { + "$ref": "#/$defs/StackDocument" + }, + { + "$ref": "#/$defs/ToolDocument" + }, + { + "$ref": "#/$defs/DirectorDocument" + }, + { + "$ref": "#/$defs/MediaEditDocument" + } + ], + "title": "Editordocument" + }, + "command": { + "description": "Immutable command recorded in this commit.", + "discriminator": { + "mapping": { + "artifact.publish": "#/$defs/ArtifactPublishCommand", + "asset.delete": "#/$defs/AssetDeleteCommand", + "asset.import": "#/$defs/AssetImportCommand", + "asset.updateMetadata": "#/$defs/AssetMetadataCommand", + "asset.writeText": "#/$defs/AssetWriteTextCommand", + "canvas.applyEdit": "#/$defs/CanvasApplyEditCommand", + "canvas.applyVersion": "#/$defs/NodeVersionApplyCommand", + "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommand", + "canvas.configure": "#/$defs/CanvasConfigureCommand", + "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", + "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", + "canvas.hide": "#/$defs/CanvasHideCommand", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommand", + "canvas.materialize": "#/$defs/CanvasMaterializeCommand", + "canvas.move": "#/$defs/CanvasMoveCommand", + "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", + "canvas.show": "#/$defs/CanvasShowCommand", + "canvas.update": "#/$defs/CanvasUpdateCommand", + "creation.batch": "#/$defs/BatchCommand", + "editor.create": "#/$defs/EditorCreateCommand", + "editor.save": "#/$defs/EditorSaveCommand", + "generation.submit": "#/$defs/GenerationSubmitCommand", + "generationSpec.create": "#/$defs/SpecCreateCommand", + "generationSpec.restore": "#/$defs/SpecRestoreCommand", + "generationSpec.setPrompt": "#/$defs/SpecPromptCommand", + "generationSpec.update": "#/$defs/SpecUpdateCommand", + "history.redo": "#/$defs/HistoryRedoCommand", + "history.undo": "#/$defs/HistoryUndoCommand", + "job.cancel": "#/$defs/JobCancelCommand", + "job.checkpoint": "#/$defs/JobCheckpointCommand", + "job.recover": "#/$defs/JobRecoverCommand", + "pipeline.adopt": "#/$defs/PipelineAdoptCommand", + "pipeline.cancel": "#/$defs/PipelineCancelCommand", + "pipeline.pause": "#/$defs/PipelinePauseCommand", + "pipeline.resume": "#/$defs/PipelineResumeCommand", + "pipeline.retry": "#/$defs/PipelineRetryCommand", + "pipeline.start": "#/$defs/PipelineStartCommand", + "project.create": "#/$defs/ProjectCreateCommand", + "project.rename": "#/$defs/ProjectRenameCommand", + "project.restore": "#/$defs/ProjectRestoreCommand", + "project.trash": "#/$defs/ProjectTrashCommand", + "reference.add": "#/$defs/ReferenceAddCommand", + "reference.remove": "#/$defs/ReferenceRemoveCommand", + "reference.restore": "#/$defs/ReferenceRestoreCommand", + "reference.update": "#/$defs/ReferenceUpdateCommand", + "result.select": "#/$defs/ResultSelectCommand", + "timeline.publishRender": "#/$defs/TimelinePublishRenderCommand" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/ProjectCreateCommand" + }, + { + "$ref": "#/$defs/ProjectRenameCommand" + }, + { + "$ref": "#/$defs/ProjectTrashCommand" + }, + { + "$ref": "#/$defs/ProjectRestoreCommand" + }, + { + "$ref": "#/$defs/AssetImportCommand" + }, + { + "$ref": "#/$defs/ArtifactPublishCommand" + }, + { + "$ref": "#/$defs/AssetWriteTextCommand" + }, + { + "$ref": "#/$defs/AssetMetadataCommand" + }, + { + "$ref": "#/$defs/AssetDeleteCommand" + }, + { + "$ref": "#/$defs/CanvasCreateGenerationCommand" + }, + { + "$ref": "#/$defs/CanvasShowCommand" + }, + { + "$ref": "#/$defs/CanvasMoveCommand" + }, + { + "$ref": "#/$defs/CanvasUpdateCommand" + }, + { + "$ref": "#/$defs/CanvasLayoutPipelinesCommand" + }, + { + "$ref": "#/$defs/CanvasHideCommand" + }, + { + "$ref": "#/$defs/CanvasMaterializeCommand" + }, + { + "$ref": "#/$defs/CanvasApplyEditCommand" + }, + { + "$ref": "#/$defs/CanvasPublishMediaCommand" + }, + { + "$ref": "#/$defs/TimelinePublishRenderCommand" + }, + { + "$ref": "#/$defs/PipelineStartCommand" + }, + { + "$ref": "#/$defs/PipelinePauseCommand" + }, + { + "$ref": "#/$defs/PipelineResumeCommand" + }, + { + "$ref": "#/$defs/PipelineCancelCommand" + }, + { + "$ref": "#/$defs/PipelineRetryCommand" + }, + { + "$ref": "#/$defs/PipelineAdoptCommand" + }, + { + "$ref": "#/$defs/NodeVersionApplyCommand" + }, + { + "$ref": "#/$defs/CanvasConfigureCommand" + }, + { + "$ref": "#/$defs/CanvasEditorAttachCommand" + }, + { + "$ref": "#/$defs/CanvasEditorDetachCommand" + }, + { + "$ref": "#/$defs/SpecCreateCommand" + }, + { + "$ref": "#/$defs/SpecUpdateCommand" + }, + { + "$ref": "#/$defs/SpecRestoreCommand" + }, + { + "$ref": "#/$defs/SpecPromptCommand" + }, + { + "$ref": "#/$defs/ReferenceAddCommand" + }, + { + "$ref": "#/$defs/ReferenceUpdateCommand" + }, + { + "$ref": "#/$defs/ReferenceRestoreCommand" + }, + { + "$ref": "#/$defs/ReferenceRemoveCommand" + }, + { + "$ref": "#/$defs/GenerationSubmitCommand" + }, + { + "$ref": "#/$defs/JobCancelCommand" + }, + { + "$ref": "#/$defs/JobRecoverCommand" + }, + { + "$ref": "#/$defs/JobCheckpointCommand" + }, + { + "$ref": "#/$defs/ResultSelectCommand" + }, + { + "$ref": "#/$defs/EditorCreateCommand" + }, + { + "$ref": "#/$defs/EditorSaveCommand" + }, + { + "$ref": "#/$defs/HistoryUndoCommand" + }, + { + "$ref": "#/$defs/HistoryRedoCommand" + }, + { + "$ref": "#/$defs/BatchCommand" + } + ], + "title": "Command" + }, + "receipt": { + "$ref": "#/$defs/CommandReceipt", + "description": "Immutable command execution receipt." + }, + "query": { + "description": "Read-only project query.", + "discriminator": { + "mapping": { + "asset.preview": "#/$defs/AssetPreviewQuery", + "asset.search": "#/$defs/AssetSearchQuery", + "asset.usage": "#/$defs/AssetUsageQuery", + "canvas.status": "#/$defs/CanvasStatusQuery", + "canvas.versions": "#/$defs/VersionsQuery", + "generationSpec.versions": "#/$defs/VersionsQuery", + "job.get": "#/$defs/ObjectQuery", + "job.status": "#/$defs/JobStatusQuery", + "object.get": "#/$defs/ObjectQuery", + "pipeline.execution.get": "#/$defs/PipelineExecutionQuery", + "pipeline.executions.list": "#/$defs/PipelineExecutionsQuery", + "pipeline.plan": "#/$defs/PipelinePlanQuery", + "project.get": "#/$defs/ProjectQuery" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/ProjectQuery" + }, + { + "$ref": "#/$defs/ObjectQuery" + }, + { + "$ref": "#/$defs/VersionsQuery" + }, + { + "$ref": "#/$defs/AssetSearchQuery" + }, + { + "$ref": "#/$defs/AssetUsageQuery" + }, + { + "$ref": "#/$defs/CanvasStatusQuery" + }, + { + "$ref": "#/$defs/JobStatusQuery" + }, + { + "$ref": "#/$defs/AssetPreviewQuery" + }, + { + "$ref": "#/$defs/PipelinePlanQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionsQuery" + } + ], + "title": "Query" + }, + "event": { + "$ref": "#/$defs/ProjectEvent", + "description": "Project change event, if emitted." + }, + "job": { + "$ref": "#/$defs/Job", + "description": "Generation execution record." + }, + "result": { + "$ref": "#/$defs/ResultVersion", + "description": "Generated result schema." + }, + "snapshot": { + "$ref": "#/$defs/InputSnapshot", + "description": "Fixed generation input schema." + }, + "executionParameters": { + "description": "Effective provider execution parameter schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioExecution", + "image": "#/$defs/ImageExecution", + "text": "#/$defs/TextExecution", + "video": "#/$defs/VideoExecution" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextExecution" + }, + { + "$ref": "#/$defs/ImageExecution" + }, + { + "$ref": "#/$defs/VideoExecution" + }, + { + "$ref": "#/$defs/AudioExecution" + } + ], + "title": "Executionparameters" + }, + "promptPart": { + "description": "Structured prompt token schema.", + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ], + "title": "Promptpart" + }, + "publicModel": { + "$ref": "#/$defs/ModelConfigPublic", + "description": "Public model connection schema." + }, + "writeModel": { + "$ref": "#/$defs/ModelConfigWrite", + "description": "Model configuration input schema." + }, + "capabilities": { + "$ref": "#/$defs/NodeCapabilities", + "description": "Available canvas item operations." + }, + "viewState": { + "$ref": "#/$defs/ViewState", + "description": "Client-specific canvas view state." + }, + "timelinePackageManifest": { + "$ref": "#/$defs/TimelinePackageManifest", + "description": "Native editable timeline bundle manifest." + }, + "timelinePackageImport": { + "$ref": "#/$defs/TimelinePackageImportRequest", + "description": "Recoverable native bundle import request." + }, + "timelinePackageReceipt": { + "$ref": "#/$defs/TimelinePackageImportReceipt", + "description": "Native bundle import progress and final receipt." + }, + "upload": { + "$ref": "#/$defs/UploadInfo", + "description": "Staged upload schema." + } + }, + "required": [ + "project", + "canvasItem", + "generationSpec", + "reference", + "editorDocument", + "command", + "receipt", + "query", + "event", + "job", + "result", + "snapshot", + "executionParameters", + "promptPart", + "publicModel", + "writeModel", + "capabilities", + "viewState", + "timelinePackageManifest", + "timelinePackageImport", + "timelinePackageReceipt", + "upload" + ], + "title": "CreationContracts", + "type": "object" + }, + "output": { + "$defs": { + "ArtifactPublish": { + "additionalProperties": false, + "description": "Publish a file from a server-owned execution context without generating media.", + "examples": [ + { + "name": "片段 01", + "path": "clips/segment-01.mp4" + } + ], + "properties": { + "path": { + "description": "Artifact path relative to the server-owned execution directory.", + "maxLength": 4096, + "minLength": 1, + "title": "Path", + "type": "string" + }, + "name": { + "description": "User-visible name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" + }, + "expectedKind": { + "anyOf": [ + { + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Required media kind, when specified.", + "title": "Expectedkind" + }, + "sources": { + "default": [], + "description": "Ordered source asset versions.", + "items": { + "$ref": "#/$defs/AssetRef" + }, + "maxItems": 100, + "title": "Sources", + "type": "array" + } + }, + "required": [ + "path", + "name", + "expectedKind", + "sources" + ], + "title": "ArtifactPublish", + "type": "object" + }, + "ArtifactPublishCommand": { + "additionalProperties": false, + "description": "Register an execution file as a project asset.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "artifact.publish", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/ArtifactPublish", + "description": "Register an execution file as a project asset." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "ArtifactPublishCommand", + "type": "object" + }, + "Asset": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "kind": { + "description": "Business object or media type.", + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "title": "Kind", + "type": "string" + }, + "name": { + "description": "User-visible name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" + }, + "fingerprint": { + "description": "Immutable content fingerprint.", + "pattern": "^sha256:[0-9a-f]{64}$", + "title": "Fingerprint", + "type": "string" + }, + "path": { + "description": "Immutable asset path relative to the project directory.", + "title": "Path", + "type": "string" + }, + "metadata": { + "$ref": "#/$defs/MediaMetadata", + "description": "Verified media properties." + }, + "provenance": { + "$ref": "#/$defs/AssetProvenance", + "description": "Recorded origin and execution context." + } + }, + "required": [ + "id", + "projectId", + "revision", + "kind", + "name", + "fingerprint", + "path", + "metadata", + "provenance" + ], + "title": "Asset", + "type": "object" + }, + "AssetDelete": { + "additionalProperties": false, + "properties": { + "assetIds": { + "description": "Target asset IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "maxItems": 100, + "minItems": 1, + "title": "Assetids", + "type": "array" + }, + "clearHistory": { + "default": false, + "description": "Whether the confirmed deletion also clears dependent history.", + "title": "Clearhistory", + "type": "boolean" + } + }, + "required": [ + "assetIds", + "clearHistory" + ], + "title": "AssetDelete", + "type": "object" + }, + "AssetDeleteCommand": { + "additionalProperties": false, + "description": "Delete assets after an impact preview.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.delete", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/AssetDelete", + "description": "Delete assets after an impact preview." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "AssetDeleteCommand", + "type": "object" + }, + "AssetImport": { + "additionalProperties": false, + "properties": { + "uploadHandle": { + "description": "Server-issued staged upload ID.", + "format": "uuid", + "title": "Uploadhandle", + "type": "string" + }, + "name": { + "description": "User-visible name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" + }, + "expectedKind": { + "description": "Required media kind, when specified.", + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "title": "Expectedkind", + "type": "string" + } + }, + "required": [ + "uploadHandle", + "name", + "expectedKind" + ], + "title": "AssetImport", + "type": "object" + }, + "AssetImportCommand": { + "additionalProperties": false, + "description": "Register an uploaded file as a project asset.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.import", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/AssetImport", + "description": "Register an uploaded file as a project asset." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "AssetImportCommand", + "type": "object" + }, + "AssetMetadataCommand": { + "additionalProperties": false, + "description": "Rename an asset.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.updateMetadata", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/AssetMetadataUpdate", + "description": "Rename an asset." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "AssetMetadataCommand", + "type": "object" + }, + "AssetMetadataUpdate": { + "additionalProperties": false, + "properties": { + "assetId": { + "description": "Asset ID.", + "format": "uuid", + "title": "Assetid", + "type": "string" + }, + "name": { + "description": "User-visible name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" + } + }, + "required": [ + "assetId", + "name" + ], + "title": "AssetMetadataUpdate", + "type": "object" + }, + "AssetPreviewQuery": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.preview", + "description": "Preview an asset; does not establish model observation.", + "title": "Type", + "type": "string" + }, + "objectId": { + "description": "Asset ID.", + "format": "uuid", + "title": "Objectid", + "type": "string" + } + }, + "required": [ + "queryId", + "projectId", + "type", + "objectId" + ], + "title": "AssetPreviewQuery", + "type": "object" + }, + "AssetProvenance": { + "additionalProperties": false, + "properties": { + "source": { + "description": "Input source or recorded provenance.", + "enum": [ + "upload", + "manual", + "agent_written", + "generated", + "edited", + "rendered", + "imported" + ], + "title": "Source", + "type": "string" + }, + "jobId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Generation job ID.", + "title": "Jobid" + }, + "toolTaskId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Tool execution ID.", + "title": "Tooltaskid" + }, + "sourceItemId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Source canvas item ID.", + "title": "Sourceitemid" + }, + "editorDocumentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Editable document ID.", + "title": "Editordocumentid" + }, + "editorRevision": { + "anyOf": [ + { + "minimum": 1, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Expected editable document revision.", + "title": "Editorrevision" + }, + "sources": { + "default": [], + "description": "Ordered source asset versions.", + "items": { + "$ref": "#/$defs/AssetRef" + }, + "title": "Sources", + "type": "array" + }, + "inputFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the fixed execution input.", + "title": "Inputfingerprint" + }, + "agentRunId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Agent turn ID.", + "title": "Agentrunid" + }, + "agentRuntime": { + "anyOf": [ + { + "enum": [ + "opencode", + "codex", + "claude", + "jiuwenswarm", + "deepseek" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Native Agent runtime that produced this asset.", + "title": "Agentruntime" + }, + "modelSnapshot": { + "anyOf": [ + { + "$ref": "#/$defs/ModelSnapshot" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fixed model connection recorded for provenance." + }, + "prompt": { + "anyOf": [ + { + "maxLength": 20000, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Generation prompt text.", + "title": "Prompt" + }, + "importedFrom": { + "anyOf": [ + { + "enum": [ + "generated", + "edited" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Original source recorded by a canvas archive this asset was imported from.", + "title": "Importedfrom" + } + }, + "required": [ + "source", + "jobId", + "toolTaskId", + "sourceItemId", + "editorDocumentId", + "editorRevision", + "sources", + "inputFingerprint", + "agentRunId", + "agentRuntime", + "modelSnapshot", + "prompt", + "importedFrom" + ], + "title": "AssetProvenance", + "type": "object" + }, + "AssetRef": { + "additionalProperties": false, + "properties": { + "assetId": { + "description": "ID of a registered project asset from project.assets[].id or a successful asset command result.", + "format": "uuid", + "title": "Assetid", + "type": "string" + }, + "revision": { + "description": "Referenced immutable asset revision.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "fingerprint": { + "description": "Immutable content fingerprint.", + "pattern": "^sha256:[0-9a-f]{64}$", + "title": "Fingerprint", + "type": "string" + }, + "kind": { + "description": "Business object or media type.", + "enum": [ + "text", + "image", + "video", + "audio", + "file" + ], + "title": "Kind", + "type": "string" + } + }, + "required": [ + "assetId", + "revision", + "fingerprint", + "kind" + ], + "title": "AssetRef", + "type": "object" + }, + "AssetSearchQuery": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.search", + "description": "Search project assets.", + "title": "Type", + "type": "string" + }, + "text": { + "default": "", + "description": "Asset search text.", + "maxLength": 1000, + "title": "Text", + "type": "string" + }, + "offset": { + "default": 0, + "description": "Number of matching records to skip.", + "minimum": 0, + "title": "Offset", + "type": "integer" + }, + "limit": { + "default": 50, + "description": "Maximum number of records to return.", + "maximum": 200, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + }, + "required": [ + "queryId", + "projectId", + "type", + "text", + "offset", + "limit" + ], + "title": "AssetSearchQuery", + "type": "object" + }, + "AssetUsageQuery": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.usage", + "description": "Read asset dependencies.", + "title": "Type", + "type": "string" + }, + "objectId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Asset ID, or all assets when omitted.", + "title": "Objectid" + }, + "offset": { + "default": 0, + "description": "Number of matching records to skip.", + "minimum": 0, + "title": "Offset", + "type": "integer" + }, + "limit": { + "default": 50, + "description": "Maximum number of records to return.", + "maximum": 200, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + }, + "required": [ + "queryId", + "projectId", + "type", + "objectId", + "offset", + "limit" + ], + "title": "AssetUsageQuery", + "type": "object" + }, + "AssetWriteText": { + "additionalProperties": false, + "properties": { + "name": { + "description": "User-visible name.", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "type": "string" + }, + "text": { + "description": "UTF-8 text content or search query.", + "maxLength": 1048576, + "title": "Text", + "type": "string" + }, + "previousAsset": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Previous immutable version for a new text asset version." + } + }, + "required": [ + "name", + "text", + "previousAsset" + ], + "title": "AssetWriteText", + "type": "object" + }, + "AssetWriteTextCommand": { + "additionalProperties": false, + "description": "Write a text asset or a new version of an existing text asset.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "asset.writeText", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/AssetWriteText", + "description": "Write a text asset or a new version of an existing text asset." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "AssetWriteTextCommand", + "type": "object" + }, + "AudioCanvasItem": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "kind": { + "const": "audio", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" + }, + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { + "anyOf": [ + { + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" + }, + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" + }, + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "description": "Business object displayed by this canvas item.", + "discriminator": { + "mapping": { + "empty": "#/$defs/EmptyBinding", + "generation": "#/$defs/GenerationBinding", + "material": "#/$defs/MaterialBinding" + }, + "propertyName": "role" + }, + "oneOf": [ + { + "$ref": "#/$defs/EmptyBinding" + }, + { + "$ref": "#/$defs/MaterialBinding" + }, + { + "$ref": "#/$defs/GenerationBinding" + } + ], + "title": "Binding" + }, + "editors": { + "default": [], + "description": "Attached editable documents.", + "items": { + "$ref": "#/$defs/EditorRef" + }, + "title": "Editors", + "type": "array" + } + }, + "required": [ + "id", + "projectId", + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags", + "binding", + "editors" + ], + "title": "AudioCanvasItem", + "type": "object" + }, + "AudioExecution": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "audio", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "voice": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provider voice identifier or name.", + "title": "Voice" + }, + "speaker": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provider speaker identifier.", + "title": "Speaker" + }, + "format": { + "description": "Audio container or codec format.", + "enum": [ + "mp3", + "wav" + ], + "title": "Format", + "type": "string" + }, + "sampleRate": { + "anyOf": [ + { + "minimum": 1, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Audio samples per second.", + "title": "Samplerate" + }, + "creationType": { + "default": "audio", + "description": "Speech or music creation mode.", + "enum": [ + "audio", + "music" + ], + "title": "Creationtype", + "type": "string" + }, + "instrumental": { + "default": false, + "description": "Legacy explicit instrumental choice retained for stored records.", + "title": "Instrumental", + "type": "boolean" + }, + "maxDurationSeconds": { + "anyOf": [ + { + "maximum": 360, + "minimum": 8, + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Maximum generated audio duration in seconds.", + "title": "Maxdurationseconds" + }, + "scoreMode": { + "anyOf": [ + { + "enum": [ + "melody", + "full" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Whether reference music supplies melody or full accompaniment.", + "title": "Scoremode" + }, + "seed": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Random seed fixed when the job was accepted.", + "title": "Seed" + } + }, + "required": [ + "kind", + "voice", + "speaker", + "format", + "sampleRate" + ], + "title": "AudioExecution", + "type": "object" + }, + "AudioGenerationSpec": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "purpose": { + "default": "draft", + "description": "Draft settings or executable generation configuration.", + "enum": [ + "draft", + "generation" + ], + "title": "Purpose", + "type": "string" + }, + "modelConfigId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Model configuration ID from the model catalog or user model selections.", + "title": "Modelconfigid" + }, + "prompt": { + "default": "", + "description": "Generation prompt text.", + "maxLength": 20000, + "title": "Prompt", + "type": "string" + }, + "promptContent": { + "anyOf": [ + { + "items": { + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Structured prompt text and reference tokens.", + "title": "Promptcontent" + }, + "currentResultId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Currently adopted result ID.", + "title": "Currentresultid" + }, + "kind": { + "const": "audio", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "parameters": { + "$ref": "#/$defs/AudioParameters", + "description": "Typed generation or editing parameters." + } + }, + "required": [ + "id", + "projectId", + "revision", + "purpose", + "modelConfigId", + "prompt", + "promptContent", + "currentResultId", + "kind", + "parameters" + ], + "title": "AudioGenerationSpec", + "type": "object" + }, + "AudioParameters": { + "additionalProperties": false, + "properties": { + "creationType": { + "default": "audio", + "description": "Speech or music creation mode.", + "enum": [ + "audio", + "music" + ], + "title": "Creationtype", + "type": "string" + }, + "mode": { + "default": "tts", + "description": "Operation mode within this contract variant.", + "enum": [ + "tts", + "unified" + ], + "title": "Mode", + "type": "string" + }, + "voice": { + "anyOf": [ + { + "maxLength": 200, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provider voice identifier or name; library voices retain provider naming.", + "title": "Voice" + }, + "voiceSelection": { + "anyOf": [ + { + "$ref": "#/$defs/VoiceSelection" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Connection-scoped voice selection; validated against the live registry before generation." + }, + "instrumental": { + "default": false, + "description": "Legacy explicit instrumental choice retained for stored records.", + "title": "Instrumental", + "type": "boolean" + }, + "lyrics": { + "default": "", + "description": "Song lyrics; empty lyrics request instrumental music.", + "maxLength": 5000, + "title": "Lyrics", + "type": "string" + }, + "durationSeconds": { + "anyOf": [ + { + "maximum": 360, + "minimum": 8, + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Maximum music duration in seconds.", + "title": "Durationseconds" + }, + "scoreMode": { + "default": "melody", + "description": "Music with one audio reference: follow its transcribed melody, or melody and chords", + "enum": [ + "melody", + "full" + ], + "title": "Scoremode", + "type": "string" + }, + "durationFromReference": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Music with one audio reference: cap the length at the reference length (unset follows it) instead of durationSeconds", + "title": "Durationfromreference" + } + }, + "required": [ + "creationType", + "mode", + "voice" + ], + "title": "AudioParameters", + "type": "object" + }, + "AvailabilityCatalog": { + "additionalProperties": false, + "properties": { + "revision": { + "description": "Version of the complete observation projection.", + "title": "Revision", + "type": "string" + }, + "models": { + "description": "Current saved model observations; reading does not query providers.", + "items": { + "$ref": "#/$defs/ModelAvailability" + }, + "title": "Models", + "type": "array" + } + }, + "required": [ + "revision", + "models" + ], + "title": "AvailabilityCatalog", + "type": "object" + }, + "BatchCommand": { + "additionalProperties": false, + "description": "Apply multiple operations atomically; all succeed or none are committed.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "creation.batch", + "description": "Batch command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/BatchPayload", + "description": "Ordered operations committed atomically." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "BatchCommand", + "type": "object" + }, + "BatchPayload": { + "additionalProperties": false, + "properties": { + "operations": { + "description": "Ordered operations committed as one atomic transaction.", + "items": { + "discriminator": { + "mapping": { + "canvas.applyEdit": "#/$defs/CanvasApplyEditCommandOperation", + "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommandOperation", + "canvas.configure": "#/$defs/CanvasConfigureCommandOperation", + "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommandOperation", + "canvas.hide": "#/$defs/CanvasHideCommandOperation", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommandOperation", + "canvas.materialize": "#/$defs/CanvasMaterializeCommandOperation", + "canvas.move": "#/$defs/CanvasMoveCommandOperation", + "canvas.show": "#/$defs/CanvasShowCommandOperation", + "canvas.update": "#/$defs/CanvasUpdateCommandOperation", + "editor.create": "#/$defs/EditorCreateCommandOperation", + "editor.save": "#/$defs/EditorSaveCommandOperation", + "generationSpec.create": "#/$defs/SpecCreateCommandOperation", + "generationSpec.setPrompt": "#/$defs/SpecPromptCommandOperation", + "generationSpec.update": "#/$defs/SpecUpdateCommandOperation", + "reference.add": "#/$defs/ReferenceAddCommandOperation", + "reference.remove": "#/$defs/ReferenceRemoveCommandOperation", + "reference.restore": "#/$defs/ReferenceRestoreCommandOperation", + "reference.update": "#/$defs/ReferenceUpdateCommandOperation", + "result.select": "#/$defs/ResultSelectCommandOperation" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/CanvasShowCommandOperation" + }, + { + "$ref": "#/$defs/CanvasMoveCommandOperation" + }, + { + "$ref": "#/$defs/CanvasUpdateCommandOperation" + }, + { + "$ref": "#/$defs/CanvasLayoutPipelinesCommandOperation" + }, + { + "$ref": "#/$defs/CanvasHideCommandOperation" + }, + { + "$ref": "#/$defs/CanvasMaterializeCommandOperation" + }, + { + "$ref": "#/$defs/CanvasApplyEditCommandOperation" + }, + { + "$ref": "#/$defs/CanvasConfigureCommandOperation" + }, + { + "$ref": "#/$defs/CanvasEditorAttachCommandOperation" + }, + { + "$ref": "#/$defs/CanvasEditorDetachCommandOperation" + }, + { + "$ref": "#/$defs/SpecCreateCommandOperation" + }, + { + "$ref": "#/$defs/SpecUpdateCommandOperation" + }, + { + "$ref": "#/$defs/SpecPromptCommandOperation" + }, + { + "$ref": "#/$defs/ReferenceAddCommandOperation" + }, + { + "$ref": "#/$defs/ReferenceUpdateCommandOperation" + }, + { + "$ref": "#/$defs/ReferenceRestoreCommandOperation" + }, + { + "$ref": "#/$defs/ReferenceRemoveCommandOperation" + }, + { + "$ref": "#/$defs/ResultSelectCommandOperation" + }, + { + "$ref": "#/$defs/EditorCreateCommandOperation" + }, + { + "$ref": "#/$defs/EditorSaveCommandOperation" + } + ] + }, + "maxItems": 500, + "minItems": 1, + "title": "Operations", + "type": "array" + } + }, + "required": [ + "operations" + ], + "title": "BatchPayload", + "type": "object" + }, + "CameraFrame": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", + "type": "string" + }, + "time": { + "description": "Keyframe time in seconds.", + "minimum": 0, + "title": "Time", + "type": "number" + }, + "value": { + "$ref": "#/$defs/StageCamera", + "description": "Keyframed transform or camera pose." + } + }, + "required": [ + "id", + "time", + "value" + ], + "title": "CameraFrame", + "type": "object" + }, + "CameraRig": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", + "type": "string" + }, + "name": { + "description": "User-visible name.", + "maxLength": 255, + "title": "Name", + "type": "string" + }, + "pose": { + "$ref": "#/$defs/StageCamera", + "description": "Camera position and look-at target." + }, + "keyframes": { + "default": [], + "description": "Ordered animation keyframes.", + "items": { + "$ref": "#/$defs/CameraFrame" + }, + "title": "Keyframes", + "type": "array" + } + }, + "required": [ + "id", + "name", + "pose", + "keyframes" + ], + "title": "CameraRig", + "type": "object" + }, + "CanvasApplyEdit": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "source": { + "$ref": "#/$defs/AssetRef", + "description": "Input source or recorded provenance." + }, + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." + }, + "editorId": { + "description": "Editable document ID.", + "format": "uuid", + "title": "Editorid", + "type": "string" + } + }, + "required": [ + "itemId", + "source", + "asset", + "editorId" + ], + "title": "CanvasApplyEdit", + "type": "object" + }, + "CanvasApplyEditCommand": { + "additionalProperties": false, + "description": "Apply an editor result to a canvas item.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.applyEdit", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/CanvasApplyEdit", + "description": "Apply an editor result to a canvas item." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasApplyEditCommand", + "type": "object" + }, + "CanvasApplyEditCommandOperation": { + "additionalProperties": false, + "description": "Apply an editor result to a canvas item.", + "properties": { + "type": { + "const": "canvas.applyEdit", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/CanvasApplyEdit", + "description": "Apply an editor result to a canvas item." + } + }, + "required": [ + "type", + "payload" + ], + "title": "CanvasApplyEditCommandOperation", + "type": "object" + }, + "CanvasConfigure": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "specId": { + "description": "Generation configuration ID.", + "format": "uuid", + "title": "Specid", + "type": "string" + }, + "preserveMaterial": { + "default": false, + "description": "Whether configuring generation retains current material.", + "title": "Preservematerial", + "type": "boolean" + } + }, + "required": [ + "itemId", + "specId", + "preserveMaterial" + ], + "title": "CanvasConfigure", + "type": "object" + }, + "CanvasConfigureCommand": { + "additionalProperties": false, + "description": "Bind a generation configuration to a canvas item.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.configure", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/CanvasConfigure", + "description": "Bind a generation configuration to a canvas item." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasConfigureCommand", + "type": "object" + }, + "CanvasConfigureCommandOperation": { + "additionalProperties": false, + "description": "Bind a generation configuration to a canvas item.", + "properties": { + "type": { + "const": "canvas.configure", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/CanvasConfigure", + "description": "Bind a generation configuration to a canvas item." + } + }, + "required": [ + "type", + "payload" + ], + "title": "CanvasConfigureCommandOperation", + "type": "object" + }, + "CanvasCreateGeneration": { + "additionalProperties": false, + "properties": { + "spec": { + "description": "New configuration with purpose=generation.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextGenerationSpec" + }, + { + "$ref": "#/$defs/ImageGenerationSpec" + }, + { + "$ref": "#/$defs/VideoGenerationSpec" + }, + { + "$ref": "#/$defs/AudioGenerationSpec" + } + ], + "title": "Spec" + }, + "item": { + "description": "Visible item bound to spec.id with role=generation.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioCanvasItem", + "external": "#/$defs/DirectorCanvasItem", + "file": "#/$defs/FileCanvasItem", + "group": "#/$defs/GroupCanvasItem", + "image": "#/$defs/ImageCanvasItem", + "stack": "#/$defs/StackCanvasItem", + "subject": "#/$defs/SubjectCanvasItem", + "text": "#/$defs/TextCanvasItem", + "timeline": "#/$defs/TimelineCanvasItem", + "tool": "#/$defs/ToolCanvasItem", + "video": "#/$defs/VideoCanvasItem" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextCanvasItem" + }, + { + "$ref": "#/$defs/ImageCanvasItem" + }, + { + "$ref": "#/$defs/VideoCanvasItem" + }, + { + "$ref": "#/$defs/AudioCanvasItem" + }, + { + "$ref": "#/$defs/FileCanvasItem" + }, + { + "$ref": "#/$defs/SubjectCanvasItem" + }, + { + "$ref": "#/$defs/TimelineCanvasItem" + }, + { + "$ref": "#/$defs/StackCanvasItem" + }, + { + "$ref": "#/$defs/ToolCanvasItem" + }, + { + "$ref": "#/$defs/DirectorCanvasItem" + }, + { + "$ref": "#/$defs/GroupCanvasItem" + } + ], + "title": "Item" + }, + "references": { + "default": [], + "description": "Input references. Every canvas-derived reference must retain its source node: source.id for follow_current, sourceVersion for pinned. Never replace a canvas reference with an asset-only binding.", + "items": { + "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", + "discriminator": { + "mapping": { + "follow_current": "#/$defs/FollowingReference", + "pinned": "#/$defs/PinnedReference" + }, + "propertyName": "binding" + }, + "oneOf": [ + { + "$ref": "#/$defs/PinnedReference" + }, + { + "$ref": "#/$defs/FollowingReference" + } + ] + }, + "title": "References", + "type": "array" + } + }, + "required": [ + "spec", + "item", + "references" + ], + "title": "CanvasCreateGeneration", + "type": "object" + }, + "CanvasCreateGenerationCommand": { + "additionalProperties": false, + "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.createGeneration", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/CanvasCreateGeneration", + "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasCreateGenerationCommand", + "type": "object" + }, + "CanvasEditorAttach": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "editorId": { + "description": "Editable document ID.", + "format": "uuid", + "title": "Editorid", + "type": "string" + } + }, + "required": [ + "itemId", + "editorId" + ], + "title": "CanvasEditorAttach", + "type": "object" + }, + "CanvasEditorAttachCommand": { + "additionalProperties": false, + "description": "Attach an editor document to a canvas item.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.attachEditor", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/CanvasEditorAttach", + "description": "Attach an editor document to a canvas item." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasEditorAttachCommand", + "type": "object" + }, + "CanvasEditorAttachCommandOperation": { + "additionalProperties": false, + "description": "Attach an editor document to a canvas item.", + "properties": { + "type": { + "const": "canvas.attachEditor", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/CanvasEditorAttach", + "description": "Attach an editor document to a canvas item." + } + }, + "required": [ + "type", + "payload" + ], + "title": "CanvasEditorAttachCommandOperation", + "type": "object" + }, + "CanvasEditorDetachCommand": { + "additionalProperties": false, + "description": "Detach an editor document from a canvas item.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.detachEditor", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/CanvasEditorAttach", + "description": "Detach an editor document from a canvas item." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasEditorDetachCommand", + "type": "object" + }, + "CanvasEditorDetachCommandOperation": { + "additionalProperties": false, + "description": "Detach an editor document from a canvas item.", + "properties": { + "type": { + "const": "canvas.detachEditor", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/CanvasEditorAttach", + "description": "Detach an editor document from a canvas item." + } + }, + "required": [ + "type", + "payload" + ], + "title": "CanvasEditorDetachCommandOperation", + "type": "object" + }, + "CanvasHide": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + } + }, + "required": [ + "itemId" + ], + "title": "CanvasHide", + "type": "object" + }, + "CanvasHideCommand": { + "additionalProperties": false, + "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.hide", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "maximum": 360, - "minimum": 8, - "type": "number" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Maximum music duration in seconds.", - "title": "Durationseconds" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "scoreMode": { - "default": "melody", - "description": "Music with one audio reference: follow its transcribed melody, or melody and chords", + "payload": { + "$ref": "#/$defs/CanvasHide", + "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "CanvasHideCommand", + "type": "object" + }, + "CanvasHideCommandOperation": { + "additionalProperties": false, + "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas.", + "properties": { + "type": { + "const": "canvas.hide", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/CanvasHide", + "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." + } + }, + "required": [ + "type", + "payload" + ], + "title": "CanvasHideCommandOperation", + "type": "object" + }, + "CanvasItemBase": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "kind": { + "description": "Business object or media type.", "enum": [ - "melody", - "full" + "text", + "image", + "video", + "audio", + "file", + "group", + "timeline", + "subject", + "stack", + "tool", + "external" ], - "title": "Scoremode", + "title": "Kind", "type": "string" }, - "durationFromReference": { + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" + }, + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { "anyOf": [ { - "type": "boolean" + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Music with one audio reference: cap the length at the reference length (unset follows it) instead of durationSeconds", - "title": "Durationfromreference" + "description": "Group background color in #RRGGBB format.", + "title": "Color" + }, + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" + }, + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" } }, "required": [ - "creationType", - "mode", - "voice" + "id", + "projectId", + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags" ], - "title": "AudioParameters", + "title": "CanvasItemBase", "type": "object" }, - "AvailabilityCatalog": { + "CanvasItemVersion": { "additionalProperties": false, "properties": { - "revision": { - "description": "Version of the complete observation projection.", - "title": "Revision", + "objectType": { + "const": "canvas_item", + "description": "Source canvas item type.", + "title": "Objecttype", "type": "string" }, - "models": { - "description": "Current saved model observations; reading does not query providers.", - "items": { - "$ref": "#/$defs/ModelAvailability" - }, - "title": "Models", - "type": "array" + "id": { + "description": "Stable object ID.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "revision": { + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" } }, "required": [ - "revision", - "models" + "objectType", + "id", + "revision" ], - "title": "AvailabilityCatalog", + "title": "CanvasItemVersion", "type": "object" }, - "BatchCommand": { + "CanvasLayoutPipelinesCommand": { "additionalProperties": false, - "description": "Apply multiple operations atomically; all succeed or none are committed.", + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -17733,8 +19885,8 @@ "type": "string" }, "type": { - "const": "creation.batch", - "description": "Batch command discriminator.", + "const": "canvas.layoutPipelines", + "description": "Command discriminator.", "title": "Type", "type": "string" }, @@ -17762,8 +19914,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/BatchPayload", - "description": "Ordered operations committed atomically." + "$ref": "#/$defs/EmptyPayload", + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." } }, "required": [ @@ -17774,186 +19926,32 @@ "expectedPreview", "payload" ], - "title": "BatchCommand", - "type": "object" - }, - "BatchPayload": { - "additionalProperties": false, - "properties": { - "operations": { - "description": "Ordered operations committed as one atomic transaction.", - "items": { - "discriminator": { - "mapping": { - "canvas.applyEdit": "#/$defs/CanvasApplyEditCommandOperation", - "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommandOperation", - "canvas.configure": "#/$defs/CanvasConfigureCommandOperation", - "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommandOperation", - "canvas.hide": "#/$defs/CanvasHideCommandOperation", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommandOperation", - "canvas.materialize": "#/$defs/CanvasMaterializeCommandOperation", - "canvas.move": "#/$defs/CanvasMoveCommandOperation", - "canvas.show": "#/$defs/CanvasShowCommandOperation", - "canvas.update": "#/$defs/CanvasUpdateCommandOperation", - "editor.create": "#/$defs/EditorCreateCommandOperation", - "editor.save": "#/$defs/EditorSaveCommandOperation", - "generationSpec.create": "#/$defs/SpecCreateCommandOperation", - "generationSpec.setPrompt": "#/$defs/SpecPromptCommandOperation", - "generationSpec.update": "#/$defs/SpecUpdateCommandOperation", - "reference.add": "#/$defs/ReferenceAddCommandOperation", - "reference.remove": "#/$defs/ReferenceRemoveCommandOperation", - "reference.restore": "#/$defs/ReferenceRestoreCommandOperation", - "reference.update": "#/$defs/ReferenceUpdateCommandOperation", - "result.select": "#/$defs/ResultSelectCommandOperation" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/CanvasShowCommandOperation" - }, - { - "$ref": "#/$defs/CanvasMoveCommandOperation" - }, - { - "$ref": "#/$defs/CanvasUpdateCommandOperation" - }, - { - "$ref": "#/$defs/CanvasLayoutRunsCommandOperation" - }, - { - "$ref": "#/$defs/CanvasHideCommandOperation" - }, - { - "$ref": "#/$defs/CanvasMaterializeCommandOperation" - }, - { - "$ref": "#/$defs/CanvasApplyEditCommandOperation" - }, - { - "$ref": "#/$defs/CanvasConfigureCommandOperation" - }, - { - "$ref": "#/$defs/CanvasEditorAttachCommandOperation" - }, - { - "$ref": "#/$defs/CanvasEditorDetachCommandOperation" - }, - { - "$ref": "#/$defs/SpecCreateCommandOperation" - }, - { - "$ref": "#/$defs/SpecUpdateCommandOperation" - }, - { - "$ref": "#/$defs/SpecPromptCommandOperation" - }, - { - "$ref": "#/$defs/ReferenceAddCommandOperation" - }, - { - "$ref": "#/$defs/ReferenceUpdateCommandOperation" - }, - { - "$ref": "#/$defs/ReferenceRestoreCommandOperation" - }, - { - "$ref": "#/$defs/ReferenceRemoveCommandOperation" - }, - { - "$ref": "#/$defs/ResultSelectCommandOperation" - }, - { - "$ref": "#/$defs/EditorCreateCommandOperation" - }, - { - "$ref": "#/$defs/EditorSaveCommandOperation" - } - ] - }, - "maxItems": 500, - "minItems": 1, - "title": "Operations", - "type": "array" - } - }, - "required": [ - "operations" - ], - "title": "BatchPayload", - "type": "object" - }, - "CameraFrame": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" - }, - "time": { - "description": "Keyframe time in seconds.", - "minimum": 0, - "title": "Time", - "type": "number" - }, - "value": { - "$ref": "#/$defs/StageCamera", - "description": "Keyframed transform or camera pose." - } - }, - "required": [ - "id", - "time", - "value" - ], - "title": "CameraFrame", + "title": "CanvasLayoutPipelinesCommand", "type": "object" }, - "CameraRig": { + "CanvasLayoutPipelinesCommandOperation": { "additionalProperties": false, + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups.", "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" - }, - "name": { - "description": "User-visible name.", - "maxLength": 255, - "title": "Name", + "type": { + "const": "canvas.layoutPipelines", + "description": "Operation discriminator.", + "title": "Type", "type": "string" }, - "pose": { - "$ref": "#/$defs/StageCamera", - "description": "Camera position and look-at target." - }, - "keyframes": { - "default": [], - "description": "Ordered animation keyframes.", - "items": { - "$ref": "#/$defs/CameraFrame" - }, - "title": "Keyframes", - "type": "array" + "payload": { + "$ref": "#/$defs/EmptyPayload", + "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." } }, "required": [ - "id", - "name", - "pose", - "keyframes" + "type", + "payload" ], - "title": "CameraRig", + "title": "CanvasLayoutPipelinesCommandOperation", "type": "object" }, - "CanvasApplyEdit": { + "CanvasMaterialize": { "additionalProperties": false, "properties": { "itemId": { @@ -17962,33 +19960,28 @@ "title": "Itemid", "type": "string" }, - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Input source or recorded provenance." - }, "asset": { "$ref": "#/$defs/AssetRef", "description": "Immutable asset version." }, - "editorId": { - "description": "Editable document ID.", - "format": "uuid", - "title": "Editorid", - "type": "string" + "discardGenerationDraft": { + "default": false, + "description": "Whether material replacement discards the generation draft.", + "title": "Discardgenerationdraft", + "type": "boolean" } }, "required": [ "itemId", - "source", "asset", - "editorId" + "discardGenerationDraft" ], - "title": "CanvasApplyEdit", + "title": "CanvasMaterialize", "type": "object" }, - "CanvasApplyEditCommand": { + "CanvasMaterializeCommand": { "additionalProperties": false, - "description": "Apply an editor result to a canvas item.", + "description": "Bind an asset to an empty or material canvas item.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18003,7 +19996,7 @@ "type": "string" }, "type": { - "const": "canvas.applyEdit", + "const": "canvas.materialize", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -18032,8 +20025,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/CanvasApplyEdit", - "description": "Apply an editor result to a canvas item." + "$ref": "#/$defs/CanvasMaterialize", + "description": "Bind an asset to an empty or material canvas item." } }, "required": [ @@ -18044,64 +20037,54 @@ "expectedPreview", "payload" ], - "title": "CanvasApplyEditCommand", + "title": "CanvasMaterializeCommand", "type": "object" }, - "CanvasApplyEditCommandOperation": { + "CanvasMaterializeCommandOperation": { "additionalProperties": false, - "description": "Apply an editor result to a canvas item.", + "description": "Bind an asset to an empty or material canvas item.", "properties": { "type": { - "const": "canvas.applyEdit", + "const": "canvas.materialize", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/CanvasApplyEdit", - "description": "Apply an editor result to a canvas item." + "$ref": "#/$defs/CanvasMaterialize", + "description": "Bind an asset to an empty or material canvas item." } }, "required": [ "type", "payload" ], - "title": "CanvasApplyEditCommandOperation", - "type": "object" - }, - "CanvasConfigure": { - "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" - }, - "specId": { - "description": "Generation configuration ID.", - "format": "uuid", - "title": "Specid", - "type": "string" - }, - "preserveMaterial": { - "default": false, - "description": "Whether configuring generation retains current material.", - "title": "Preservematerial", - "type": "boolean" + "title": "CanvasMaterializeCommandOperation", + "type": "object" + }, + "CanvasMove": { + "additionalProperties": false, + "properties": { + "items": { + "description": "Ordered entries in this collection.", + "items": { + "$ref": "#/$defs/CanvasMoveItem" + }, + "maxItems": 500, + "minItems": 1, + "title": "Items", + "type": "array" } }, "required": [ - "itemId", - "specId", - "preserveMaterial" + "items" ], - "title": "CanvasConfigure", + "title": "CanvasMove", "type": "object" }, - "CanvasConfigureCommand": { + "CanvasMoveCommand": { "additionalProperties": false, - "description": "Bind a generation configuration to a canvas item.", + "description": "Move one or more canvas items.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18116,7 +20099,7 @@ "type": "string" }, "type": { - "const": "canvas.configure", + "const": "canvas.move", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -18145,8 +20128,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/CanvasConfigure", - "description": "Bind a generation configuration to a canvas item." + "$ref": "#/$defs/CanvasMove", + "description": "Move one or more canvas items." } }, "required": [ @@ -18157,152 +20140,289 @@ "expectedPreview", "payload" ], - "title": "CanvasConfigureCommand", + "title": "CanvasMoveCommand", "type": "object" }, - "CanvasConfigureCommandOperation": { + "CanvasMoveCommandOperation": { "additionalProperties": false, - "description": "Bind a generation configuration to a canvas item.", + "description": "Move one or more canvas items.", "properties": { "type": { - "const": "canvas.configure", + "const": "canvas.move", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/CanvasConfigure", - "description": "Bind a generation configuration to a canvas item." + "$ref": "#/$defs/CanvasMove", + "description": "Move one or more canvas items." } }, "required": [ "type", "payload" ], - "title": "CanvasConfigureCommandOperation", + "title": "CanvasMoveCommandOperation", "type": "object" }, - "CanvasCreateGeneration": { + "CanvasMoveItem": { "additionalProperties": false, "properties": { - "spec": { - "description": "New configuration with purpose=generation.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + } + }, + "required": [ + "itemId", + "position" + ], + "title": "CanvasMoveItem", + "type": "object" + }, + "CanvasPresentationUpdate": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "title": { + "anyOf": [ + { + "maxLength": 255, + "type": "string" }, - "propertyName": "kind" - }, - "oneOf": [ { - "$ref": "#/$defs/TextGenerationSpec" + "type": "null" + } + ], + "default": null, + "description": "User-visible title.", + "title": "Title" + }, + "width": { + "anyOf": [ + { + "exclusiveMinimum": 0, + "type": "number" }, { - "$ref": "#/$defs/ImageGenerationSpec" + "type": "null" + } + ], + "default": null, + "description": "Width in pixels.", + "title": "Width" + }, + "height": { + "anyOf": [ + { + "exclusiveMinimum": 0, + "type": "number" }, { - "$ref": "#/$defs/VideoGenerationSpec" + "type": "null" + } + ], + "default": null, + "description": "Height in pixels.", + "title": "Height" + }, + "zIndex": { + "anyOf": [ + { + "type": "integer" }, { - "$ref": "#/$defs/AudioGenerationSpec" + "type": "null" } ], - "title": "Spec" + "default": null, + "description": "Canvas stacking order.", + "title": "Zindex" }, - "item": { - "description": "Visible item bound to spec.id with role=generation.", + "locked": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Whether edits to this object are blocked.", + "title": "Locked" + }, + "color": { + "anyOf": [ + { + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format, or '' for the default.", + "title": "Color" + }, + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "autoLayout": { + "anyOf": [ + { + "enum": [ + "pipeline", + "free" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Enable Pipeline layout for a top-level group, or use free to return it to manual layout.", + "title": "Autolayout" + } + }, + "required": [ + "itemId", + "title", + "width", + "height", + "zIndex", + "locked", + "parentId" + ], + "title": "CanvasPresentationUpdate", + "type": "object" + }, + "CanvasPublishMedia": { + "additionalProperties": false, + "properties": { + "itemId": { + "description": "Canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "source": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Input source or recorded provenance." + }, + "sourceEditorId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Source editable document ID.", + "title": "Sourceeditorid" + }, + "document": { + "description": "Editable document owned by this operation.", "discriminator": { "mapping": { - "audio": "#/$defs/AudioCanvasItem", - "external": "#/$defs/DirectorCanvasItem", - "file": "#/$defs/FileCanvasItem", - "group": "#/$defs/GroupCanvasItem", - "image": "#/$defs/ImageCanvasItem", - "stack": "#/$defs/StackCanvasItem", - "subject": "#/$defs/SubjectCanvasItem", - "text": "#/$defs/TextCanvasItem", - "timeline": "#/$defs/TimelineCanvasItem", - "tool": "#/$defs/ToolCanvasItem", - "video": "#/$defs/VideoCanvasItem" + "director": "#/$defs/DirectorDocument", + "image_crop": "#/$defs/ImageCropDocument", + "layers": "#/$defs/LayerDocument", + "media_edit": "#/$defs/MediaEditDocument", + "stack": "#/$defs/StackDocument", + "subject": "#/$defs/SubjectDocument", + "timeline": "#/$defs/TimelineDocument", + "tool": "#/$defs/ToolDocument" }, "propertyName": "kind" }, "oneOf": [ { - "$ref": "#/$defs/TextCanvasItem" - }, - { - "$ref": "#/$defs/ImageCanvasItem" - }, - { - "$ref": "#/$defs/VideoCanvasItem" - }, - { - "$ref": "#/$defs/AudioCanvasItem" + "$ref": "#/$defs/TimelineDocument" }, { - "$ref": "#/$defs/FileCanvasItem" + "$ref": "#/$defs/SubjectDocument" }, { - "$ref": "#/$defs/SubjectCanvasItem" + "$ref": "#/$defs/LayerDocument" }, { - "$ref": "#/$defs/TimelineCanvasItem" + "$ref": "#/$defs/ImageCropDocument" }, { - "$ref": "#/$defs/StackCanvasItem" + "$ref": "#/$defs/StackDocument" }, { - "$ref": "#/$defs/ToolCanvasItem" + "$ref": "#/$defs/ToolDocument" }, { - "$ref": "#/$defs/DirectorCanvasItem" + "$ref": "#/$defs/DirectorDocument" }, { - "$ref": "#/$defs/GroupCanvasItem" + "$ref": "#/$defs/MediaEditDocument" } ], - "title": "Item" + "title": "Document" }, - "references": { - "default": [], - "description": "Input references. Every canvas-derived reference must retain its source node: source.id for follow_current, sourceVersion for pinned. Never replace a canvas reference with an asset-only binding.", + "outputs": { + "description": "Ordered published media outputs.", "items": { - "description": "Generation input reference. Preserve source canvas identity for canvas-derived references, whether following or pinned.", - "discriminator": { - "mapping": { - "follow_current": "#/$defs/FollowingReference", - "pinned": "#/$defs/PinnedReference" - }, - "propertyName": "binding" - }, - "oneOf": [ - { - "$ref": "#/$defs/PinnedReference" - }, - { - "$ref": "#/$defs/FollowingReference" - } - ] + "$ref": "#/$defs/MediaPublicationOutput" }, - "title": "References", + "maxItems": 50, + "minItems": 1, + "title": "Outputs", "type": "array" } }, "required": [ - "spec", - "item", - "references" + "itemId", + "source", + "sourceEditorId", + "document", + "outputs" ], - "title": "CanvasCreateGeneration", + "title": "CanvasPublishMedia", "type": "object" }, - "CanvasCreateGenerationCommand": { + "CanvasPublishMediaCommand": { "additionalProperties": false, - "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones.", + "description": "Publish edited media outputs with their editor snapshot.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18317,7 +20437,7 @@ "type": "string" }, "type": { - "const": "canvas.createGeneration", + "const": "canvas.publishMedia", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -18346,8 +20466,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/CanvasCreateGeneration", - "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones." + "$ref": "#/$defs/CanvasPublishMedia", + "description": "Publish edited media outputs with their editor snapshot." } }, "required": [ @@ -18358,118 +20478,96 @@ "expectedPreview", "payload" ], - "title": "CanvasCreateGenerationCommand", + "title": "CanvasPublishMediaCommand", "type": "object" }, - "CanvasEditorAttach": { + "CanvasReferenceSources": { "additionalProperties": false, "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" + "followCurrent": { + "$ref": "#/$defs/FollowingReferenceSource", + "description": "Source fields for a follow_current reference." }, - "editorId": { - "description": "Editable document ID.", - "format": "uuid", - "title": "Editorid", - "type": "string" + "pinned": { + "$ref": "#/$defs/PinnedReferenceSource", + "description": "Source fields for a pinned reference retaining its canvas connection." } }, "required": [ - "itemId", - "editorId" + "followCurrent", + "pinned" ], - "title": "CanvasEditorAttach", + "title": "CanvasReferenceSources", "type": "object" }, - "CanvasEditorAttachCommand": { + "CanvasShow": { "additionalProperties": false, - "description": "Attach an editor document to a canvas item.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "canvas.attachEditor", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" + "item": { + "description": "Canvas display item to create or restore.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioCanvasItem", + "external": "#/$defs/DirectorCanvasItem", + "file": "#/$defs/FileCanvasItem", + "group": "#/$defs/GroupCanvasItem", + "image": "#/$defs/ImageCanvasItem", + "stack": "#/$defs/StackCanvasItem", + "subject": "#/$defs/SubjectCanvasItem", + "text": "#/$defs/TextCanvasItem", + "timeline": "#/$defs/TimelineCanvasItem", + "tool": "#/$defs/ToolCanvasItem", + "video": "#/$defs/VideoCanvasItem" + }, + "propertyName": "kind" }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ + "oneOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "$ref": "#/$defs/TextCanvasItem" }, { - "type": "null" + "$ref": "#/$defs/ImageCanvasItem" + }, + { + "$ref": "#/$defs/VideoCanvasItem" + }, + { + "$ref": "#/$defs/AudioCanvasItem" + }, + { + "$ref": "#/$defs/FileCanvasItem" + }, + { + "$ref": "#/$defs/SubjectCanvasItem" + }, + { + "$ref": "#/$defs/TimelineCanvasItem" + }, + { + "$ref": "#/$defs/StackCanvasItem" + }, + { + "$ref": "#/$defs/ToolCanvasItem" + }, + { + "$ref": "#/$defs/DirectorCanvasItem" + }, + { + "$ref": "#/$defs/GroupCanvasItem" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/CanvasEditorAttach", - "description": "Attach an editor document to a canvas item." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "CanvasEditorAttachCommand", - "type": "object" - }, - "CanvasEditorAttachCommandOperation": { - "additionalProperties": false, - "description": "Attach an editor document to a canvas item.", - "properties": { - "type": { - "const": "canvas.attachEditor", - "description": "Operation discriminator.", - "title": "Type", - "type": "string" - }, - "payload": { - "$ref": "#/$defs/CanvasEditorAttach", - "description": "Attach an editor document to a canvas item." + "title": "Item" } }, "required": [ - "type", - "payload" + "item" ], - "title": "CanvasEditorAttachCommandOperation", + "title": "CanvasShow", "type": "object" }, - "CanvasEditorDetachCommand": { + "CanvasShowCommand": { "additionalProperties": false, - "description": "Detach an editor document from a canvas item.", + "description": "Create or restore a canvas display item.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18484,7 +20582,7 @@ "type": "string" }, "type": { - "const": "canvas.detachEditor", + "const": "canvas.show", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -18513,8 +20611,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/CanvasEditorAttach", - "description": "Detach an editor document from a canvas item." + "$ref": "#/$defs/CanvasShow", + "description": "Create or restore a canvas display item." } }, "required": [ @@ -18525,50 +20623,80 @@ "expectedPreview", "payload" ], - "title": "CanvasEditorDetachCommand", + "title": "CanvasShowCommand", "type": "object" }, - "CanvasEditorDetachCommandOperation": { + "CanvasShowCommandOperation": { "additionalProperties": false, - "description": "Detach an editor document from a canvas item.", + "description": "Create or restore a canvas display item.", "properties": { "type": { - "const": "canvas.detachEditor", + "const": "canvas.show", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/CanvasEditorAttach", - "description": "Detach an editor document from a canvas item." + "$ref": "#/$defs/CanvasShow", + "description": "Create or restore a canvas display item." } }, "required": [ "type", "payload" ], - "title": "CanvasEditorDetachCommandOperation", + "title": "CanvasShowCommandOperation", "type": "object" }, - "CanvasHide": { + "CanvasStatusQuery": { "additionalProperties": false, "properties": { - "itemId": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "canvas.status", + "description": "Read node status, current asset and reusable referenceSources.", + "title": "Type", + "type": "string" + }, + "objectId": { "description": "Canvas item ID.", "format": "uuid", - "title": "Itemid", + "title": "Objectid", "type": "string" + }, + "waitSeconds": { + "default": 0, + "description": "Wait for generation changes; zero returns immediately.", + "maximum": 30, + "minimum": 0, + "title": "Waitseconds", + "type": "number" } }, "required": [ - "itemId" + "queryId", + "projectId", + "type", + "objectId", + "waitSeconds" ], - "title": "CanvasHide", + "title": "CanvasStatusQuery", "type": "object" }, - "CanvasHideCommand": { + "CanvasUpdateCommand": { "additionalProperties": false, - "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas.", + "description": "Update canvas presentation, grouping or lock state.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18583,7 +20711,7 @@ "type": "string" }, "type": { - "const": "canvas.hide", + "const": "canvas.update", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -18612,8 +20740,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/CanvasHide", - "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." + "$ref": "#/$defs/CanvasPresentationUpdate", + "description": "Update canvas presentation, grouping or lock state." } }, "required": [ @@ -18624,206 +20752,311 @@ "expectedPreview", "payload" ], - "title": "CanvasHideCommand", + "title": "CanvasUpdateCommand", "type": "object" }, - "CanvasHideCommandOperation": { + "CanvasUpdateCommandOperation": { "additionalProperties": false, - "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas.", + "description": "Update canvas presentation, grouping or lock state.", "properties": { "type": { - "const": "canvas.hide", + "const": "canvas.update", "description": "Operation discriminator.", "title": "Type", "type": "string" }, "payload": { - "$ref": "#/$defs/CanvasHide", - "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." + "$ref": "#/$defs/CanvasPresentationUpdate", + "description": "Update canvas presentation, grouping or lock state." } }, "required": [ "type", "payload" ], - "title": "CanvasHideCommandOperation", + "title": "CanvasUpdateCommandOperation", "type": "object" }, - "CanvasItemBase": { + "CapabilityDeclaration": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", + "status": { + "description": "Support decision excluding execution state.", + "enum": [ + "available", + "unavailable", + "unknown" + ], + "title": "Status", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "reasonCode": { + "description": "Localizable declaration decision.", + "title": "Reasoncode", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "checkedAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Completion time in Unix milliseconds.", + "title": "Checkedat" }, - "kind": { - "description": "Business object or media type.", + "expiresAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Declaration expiry in Unix milliseconds.", + "title": "Expiresat" + } + }, + "required": [ + "status", + "reasonCode", + "checkedAt", + "expiresAt" + ], + "title": "CapabilityDeclaration", + "type": "object" + }, + "CapabilityExecution": { + "additionalProperties": false, + "properties": { + "state": { + "description": "Observed execution pause state.", "enum": [ - "text", - "image", - "video", - "audio", - "file", - "group", - "timeline", - "subject", - "stack", - "tool", - "external" + "unpaused", + "paused", + "unknown" ], - "title": "Kind", + "title": "State", "type": "string" }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", - "type": "string" + "scope": { + "anyOf": [ + { + "enum": [ + "deployment", + "worker" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Scope proved by the service observation.", + "title": "Scope" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." + "checkedAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Observation receipt time in Unix milliseconds.", + "title": "Checkedat" }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" + "expiresAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Execution observation expiry in Unix milliseconds.", + "title": "Expiresat" + } + }, + "required": [ + "state", + "scope", + "checkedAt", + "expiresAt" + ], + "title": "CapabilityExecution", + "type": "object" + }, + "CapabilityInputDetail": { + "additionalProperties": false, + "properties": { + "name": { + "description": "Canonical input role or parameter name.", + "title": "Name", + "type": "string" }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "support": { + "description": "Explicit fact, with omission kept unknown.", + "enum": [ + "supported", + "unsupported", + "unknown" + ], + "title": "Support", + "type": "string" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" + "source": { + "default": "service", + "description": "Owner of this restriction.", + "enum": [ + "service", + "application" + ], + "title": "Source", + "type": "string" }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" + "minCount": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Minimum transmitted inputs of this role.", + "title": "Mincount" + }, + "maxCount": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Maximum transmitted inputs of this role.", + "title": "Maxcount" }, - "color": { + "values": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" + "description": "Explicit allowed parameter values.", + "title": "Values" }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "min": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Inclusive parameter lower bound.", + "title": "Min" }, - "parentId": { + "max": { "anyOf": [ { - "format": "uuid", - "type": "string" + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" + "description": "Inclusive parameter upper bound.", + "title": "Max" }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "multipleOf": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parameter step from zero.", + "title": "Multipleof" } }, "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags" + "name", + "support", + "source", + "minCount", + "maxCount", + "values", + "min", + "max", + "multipleOf" ], - "title": "CanvasItemBase", + "title": "CapabilityInputDetail", "type": "object" }, - "CanvasItemVersion": { + "ChangedObject": { "additionalProperties": false, "properties": { - "objectType": { - "const": "canvas_item", - "description": "Source canvas item type.", - "title": "Objecttype", - "type": "string" + "version": { + "$ref": "#/$defs/ObjectVersion", + "description": "Version of the referenced record." }, - "id": { - "description": "Stable object ID.", - "format": "uuid", - "title": "Id", + "change": { + "description": "Kind of business object change.", + "enum": [ + "created", + "updated", + "hidden", + "deleted" + ], + "title": "Change", "type": "string" - }, - "revision": { - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" } }, "required": [ - "objectType", - "id", - "revision" + "version", + "change" ], - "title": "CanvasItemVersion", + "title": "ChangedObject", "type": "object" }, - "CanvasLayoutRunsCommand": { + "CommandBase": { "additionalProperties": false, - "description": "Arrange the current canvas Run groups and their children without moving locked groups.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -18838,8 +21071,7 @@ "type": "string" }, "type": { - "const": "canvas.layoutRuns", - "description": "Command discriminator.", + "description": "Operation or variant discriminator.", "title": "Type", "type": "string" }, @@ -18865,10 +21097,6 @@ "default": null, "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/EmptyPayload", - "description": "Arrange the current canvas Run groups and their children without moving locked groups." } }, "required": [ @@ -18876,97 +21104,247 @@ "projectId", "type", "expectedVersions", - "expectedPreview", - "payload" + "expectedPreview" ], - "title": "CanvasLayoutRunsCommand", + "title": "CommandBase", "type": "object" }, - "CanvasLayoutRunsCommandOperation": { + "CommandReceipt": { "additionalProperties": false, - "description": "Arrange the current canvas Run groups and their children without moving locked groups.", "properties": { - "type": { - "const": "canvas.layoutRuns", - "description": "Operation discriminator.", - "title": "Type", + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "payload": { - "$ref": "#/$defs/EmptyPayload", - "description": "Arrange the current canvas Run groups and their children without moving locked groups." + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "inputFingerprint": { + "description": "Fingerprint of the fixed execution input.", + "pattern": "^[0-9a-f]{64}$", + "title": "Inputfingerprint", + "type": "string" + }, + "status": { + "description": "Current operation lifecycle state.", + "enum": [ + "applied", + "accepted", + "noop", + "rejected" + ], + "title": "Status", + "type": "string" + }, + "changed": { + "default": [], + "description": "Business objects changed by the operation.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Changed", + "type": "array" + }, + "jobIds": { + "default": [], + "description": "Generation jobs associated with this operation.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Jobids", + "type": "array" + }, + "issues": { + "default": [], + "description": "Validation or execution issues.", + "items": { + "$ref": "#/$defs/ContractIssue" + }, + "title": "Issues", + "type": "array" + }, + "eventCursor": { + "anyOf": [ + { + "minimum": 0, + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Latest committed project event cursor.", + "title": "Eventcursor" + }, + "pipelineExecutionId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Durable execution created or updated by a Pipeline command.", + "title": "Pipelineexecutionid" } }, "required": [ - "type", - "payload" + "commandId", + "projectId", + "inputFingerprint", + "status", + "changed", + "jobIds", + "issues", + "eventCursor" ], - "title": "CanvasLayoutRunsCommandOperation", + "title": "CommandReceipt", "type": "object" }, - "CanvasMaterialize": { + "CompiledPipelineGraph": { "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", + "properties": { + "projectId": { + "description": "Owning project ID.", "format": "uuid", - "title": "Itemid", + "title": "Projectid", "type": "string" }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." + "scope": { + "description": "Requested execution scope.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/GroupPipelineScope" + }, + { + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" + } + ], + "title": "Scope" }, - "discardGenerationDraft": { - "default": false, - "description": "Whether material replacement discards the generation draft.", - "title": "Discardgenerationdraft", - "type": "boolean" + "cachePolicy": { + "description": "Cache reuse policy applied during compilation.", + "enum": [ + "reuse", + "force_from_node", + "force_all" + ], + "title": "Cachepolicy", + "type": "string" + }, + "steps": { + "default": [], + "description": "Compiled pipeline steps in topological order.", + "items": { + "$ref": "#/$defs/CompiledPipelineStep" + }, + "title": "Steps", + "type": "array" + }, + "topologicalOrder": { + "default": [], + "description": "Deterministic topological execution order of step item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Topologicalorder", + "type": "array" + }, + "issues": { + "default": [], + "description": "Pre-flight validation or cycle issues.", + "items": { + "$ref": "#/$defs/PipelineStepIssue" + }, + "title": "Issues", + "type": "array" + }, + "plannedNewJobs": { + "default": 0, + "description": "Number of non-cached steps that will submit new jobs.", + "minimum": 0, + "title": "Plannednewjobs", + "type": "integer" } }, "required": [ - "itemId", - "asset", - "discardGenerationDraft" + "projectId", + "scope", + "cachePolicy", + "steps", + "topologicalOrder", + "issues", + "plannedNewJobs" ], - "title": "CanvasMaterialize", + "title": "CompiledPipelineGraph", "type": "object" }, - "CanvasMaterializeCommand": { + "CompiledPipelineStep": { "additionalProperties": false, - "description": "Bind an asset to an empty or material canvas item.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", + "itemId": { + "description": "Canvas item ID for this execution step.", "format": "uuid", - "title": "Projectid", + "title": "Itemid", "type": "string" }, - "type": { - "const": "canvas.materialize", - "description": "Command discriminator.", - "title": "Type", + "kind": { + "description": "Execution step category.", + "enum": [ + "generation", + "assembly" + ], + "title": "Kind", "type": "string" }, - "expectedVersions": { + "upstreamItemIds": { "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "description": "Direct upstream step item IDs in this pipeline.", "items": { - "$ref": "#/$defs/ObjectVersion" + "format": "uuid", + "type": "string" }, - "title": "Expectedversions", + "title": "Upstreamitemids", "type": "array" }, - "expectedPreview": { + "inputFingerprint": { + "description": "Deterministic fingerprint of this step inputs and upstream chain.", + "pattern": "^[0-9a-f]{64}$", + "title": "Inputfingerprint", + "type": "string" + }, + "cached": { + "default": false, + "description": "Whether an existing adopted result satisfies this step without re-running.", + "title": "Cached", + "type": "boolean" + }, + "cacheCandidateJobId": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "format": "uuid", "type": "string" }, { @@ -18974,102 +21352,190 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Existing succeeded job ID reused when cached is true.", + "title": "Cachecandidatejobid" }, - "payload": { - "$ref": "#/$defs/CanvasMaterialize", - "description": "Bind an asset to an empty or material canvas item." + "cacheCandidateAssetId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Existing adopted asset ID reused when cached is true.", + "title": "Cachecandidateassetid" + }, + "expectedVersions": { + "default": [], + "description": "Optimistic concurrency versions captured at compile time.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" } }, "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "itemId", + "kind", + "upstreamItemIds", + "inputFingerprint", + "cached", + "expectedVersions" ], - "title": "CanvasMaterializeCommand", + "title": "CompiledPipelineStep", "type": "object" }, - "CanvasMaterializeCommandOperation": { + "ContainerBinding": { "additionalProperties": false, - "description": "Bind an asset to an empty or material canvas item.", "properties": { - "type": { - "const": "canvas.materialize", - "description": "Operation discriminator.", - "title": "Type", + "role": { + "const": "container", + "description": "Business role of this binding or reference.", + "title": "Role", "type": "string" - }, - "payload": { - "$ref": "#/$defs/CanvasMaterialize", - "description": "Bind an asset to an empty or material canvas item." } }, "required": [ - "type", - "payload" + "role" ], - "title": "CanvasMaterializeCommandOperation", + "title": "ContainerBinding", "type": "object" }, - "CanvasMove": { + "Contract": { "additionalProperties": false, - "properties": { - "items": { - "description": "Ordered entries in this collection.", - "items": { - "$ref": "#/$defs/CanvasMoveItem" - }, - "maxItems": 500, - "minItems": 1, - "title": "Items", - "type": "array" - } - }, - "required": [ - "items" - ], - "title": "CanvasMove", + "properties": {}, + "title": "Contract", "type": "object" }, - "CanvasMoveCommand": { + "ContractIssue": { "additionalProperties": false, - "description": "Move one or more canvas items.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "code": { + "description": "Stable error or issue code.", + "enum": [ + "timeline_package_invalid", + "timeline_package_too_large", + "timeline_revision_missing", + "timeline_import_missing", + "timeline_import_conflict", + "timeline_registration_rejected", + "timeline_font_too_large", + "timeline_font_unavailable", + "timeline_font_unsupported", + "timeline_font_invalid", + "timeline_font_fingerprint", + "timeline_font_coverage", + "timeline_font_total_bytes", + "timeline_font_unverified", + "timeline_font_mime", + "timeline_bundled_font_fingerprint", + "timeline_bundled_font_unavailable", + "invalid_input", + "revision_conflict", + "role_restricted", + "canvas_run_layout_group", + "canvas_run_layout_conflict", + "canvas_run_layout_extent", + "canvas_run_layout_shared_object", + "missing_object", + "reference_invalid", + "image_quality_unsupported", + "bigmodel_video_model", + "bigmodel_video_output", + "bigmodel_video_image", + "bigmodel_video_frames", + "bigmodel_video_prompt", + "bigmodel_video_cancel", + "kling_model", + "kling_mode", + "kling_image", + "kling_frames", + "kling_prompt", + "kling_aspect", + "kling_output", + "kling_cancel", + "capability_unavailable", + "capability_paused", + "capability_connection_changed", + "capability_unsupported", + "preview_expired", + "storage_unavailable", + "submission_unknown", + "provider_error", + "moss_speech_text", + "moss_speech_voice", + "moss_speech_reference", + "moss_prompt_limit", + "moss_image_size", + "moss_image_reference", + "moss_layout_reference", + "bigmodel_image_size", + "bigmodel_image_reference", + "bigmodel_image_prompt", + "minimax_image_reference", + "minimax_image_count", + "minimax_image_bytes", + "minimax_speech_text", + "minimax_speech_voice", + "minimax_speech_reference", + "minimax_speech_model", + "zhipu_speech_text", + "zhipu_speech_voice", + "zhipu_speech_reference", + "voice_library_unsupported", + "voice_connection_changed", + "voice_reference_required", + "voice_transcript_required", + "voice_transcript_too_long", + "voice_description_too_long", + "voice_not_found", + "voice_delete_unsupported", + "voice_consent_required", + "voice_name_invalid", + "voice_audio_invalid", + "voice_format", + "voice_size", + "voice_duration", + "voice_provider_protocol", + "voice_provider_error", + "voice_provider_timeout", + "voice_model_unsupported", + "voice_name_taken", + "voice_provider_quota" + ], + "title": "Code", "type": "string" }, - "type": { - "const": "canvas.move", - "description": "Command discriminator.", - "title": "Type", + "message": { + "description": "Human-readable issue description.", + "maxLength": 500, + "minLength": 1, + "title": "Message", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "objectId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Target business object ID.", + "title": "Objectid" }, - "expectedPreview": { + "field": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "maxLength": 200, "type": "string" }, { @@ -19077,584 +21543,573 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Path of the field responsible for this issue.", + "title": "Field" }, - "payload": { - "$ref": "#/$defs/CanvasMove", - "description": "Move one or more canvas items." + "relatedObjectId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Other business object involved in the issue.", + "title": "Relatedobjectid" } }, "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "code", + "message", + "objectId", + "field" ], - "title": "CanvasMoveCommand", + "title": "ContractIssue", "type": "object" }, - "CanvasMoveCommandOperation": { + "CreationContracts": { "additionalProperties": false, - "description": "Move one or more canvas items.", "properties": { - "type": { - "const": "canvas.move", - "description": "Operation discriminator.", - "title": "Type", - "type": "string" + "project": { + "$ref": "#/$defs/ProjectSnapshot", + "description": "Authoritative project snapshot schema." }, - "payload": { - "$ref": "#/$defs/CanvasMove", - "description": "Move one or more canvas items." - } - }, - "required": [ - "type", - "payload" - ], - "title": "CanvasMoveCommandOperation", - "type": "object" - }, - "CanvasMoveItem": { - "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" + "canvasItem": { + "description": "Canvas item schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioCanvasItem", + "external": "#/$defs/DirectorCanvasItem", + "file": "#/$defs/FileCanvasItem", + "group": "#/$defs/GroupCanvasItem", + "image": "#/$defs/ImageCanvasItem", + "stack": "#/$defs/StackCanvasItem", + "subject": "#/$defs/SubjectCanvasItem", + "text": "#/$defs/TextCanvasItem", + "timeline": "#/$defs/TimelineCanvasItem", + "tool": "#/$defs/ToolCanvasItem", + "video": "#/$defs/VideoCanvasItem" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextCanvasItem" + }, + { + "$ref": "#/$defs/ImageCanvasItem" + }, + { + "$ref": "#/$defs/VideoCanvasItem" + }, + { + "$ref": "#/$defs/AudioCanvasItem" + }, + { + "$ref": "#/$defs/FileCanvasItem" + }, + { + "$ref": "#/$defs/SubjectCanvasItem" + }, + { + "$ref": "#/$defs/TimelineCanvasItem" + }, + { + "$ref": "#/$defs/StackCanvasItem" + }, + { + "$ref": "#/$defs/ToolCanvasItem" + }, + { + "$ref": "#/$defs/DirectorCanvasItem" + }, + { + "$ref": "#/$defs/GroupCanvasItem" + } + ], + "title": "Canvasitem" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - } - }, - "required": [ - "itemId", - "position" - ], - "title": "CanvasMoveItem", - "type": "object" - }, - "CanvasPresentationUpdate": { - "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" + "generationSpec": { + "description": "Generation configuration schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/TextGenerationSpec" + }, + { + "$ref": "#/$defs/ImageGenerationSpec" + }, + { + "$ref": "#/$defs/VideoGenerationSpec" + }, + { + "$ref": "#/$defs/AudioGenerationSpec" + } + ], + "title": "Generationspec" }, - "title": { - "anyOf": [ + "reference": { + "description": "Generation reference to create or update.", + "discriminator": { + "mapping": { + "follow_current": "#/$defs/FollowingReference", + "pinned": "#/$defs/PinnedReference" + }, + "propertyName": "binding" + }, + "oneOf": [ + { + "$ref": "#/$defs/PinnedReference" + }, + { + "$ref": "#/$defs/FollowingReference" + } + ], + "title": "Reference" + }, + "editorDocument": { + "description": "Editable document schema.", + "discriminator": { + "mapping": { + "director": "#/$defs/DirectorDocument", + "image_crop": "#/$defs/ImageCropDocument", + "layers": "#/$defs/LayerDocument", + "media_edit": "#/$defs/MediaEditDocument", + "stack": "#/$defs/StackDocument", + "subject": "#/$defs/SubjectDocument", + "timeline": "#/$defs/TimelineDocument", + "tool": "#/$defs/ToolDocument" + }, + "propertyName": "kind" + }, + "oneOf": [ { - "maxLength": 255, - "type": "string" + "$ref": "#/$defs/TimelineDocument" }, { - "type": "null" - } - ], - "default": null, - "description": "User-visible title.", - "title": "Title" - }, - "width": { - "anyOf": [ + "$ref": "#/$defs/SubjectDocument" + }, { - "exclusiveMinimum": 0, - "type": "number" + "$ref": "#/$defs/LayerDocument" }, { - "type": "null" - } - ], - "default": null, - "description": "Width in pixels.", - "title": "Width" - }, - "height": { - "anyOf": [ + "$ref": "#/$defs/ImageCropDocument" + }, { - "exclusiveMinimum": 0, - "type": "number" + "$ref": "#/$defs/StackDocument" }, { - "type": "null" - } - ], - "default": null, - "description": "Height in pixels.", - "title": "Height" - }, - "zIndex": { - "anyOf": [ + "$ref": "#/$defs/ToolDocument" + }, { - "type": "integer" + "$ref": "#/$defs/DirectorDocument" }, { - "type": "null" + "$ref": "#/$defs/MediaEditDocument" } ], - "default": null, - "description": "Canvas stacking order.", - "title": "Zindex" + "title": "Editordocument" }, - "locked": { - "anyOf": [ + "command": { + "description": "Immutable command recorded in this commit.", + "discriminator": { + "mapping": { + "artifact.publish": "#/$defs/ArtifactPublishCommand", + "asset.delete": "#/$defs/AssetDeleteCommand", + "asset.import": "#/$defs/AssetImportCommand", + "asset.updateMetadata": "#/$defs/AssetMetadataCommand", + "asset.writeText": "#/$defs/AssetWriteTextCommand", + "canvas.applyEdit": "#/$defs/CanvasApplyEditCommand", + "canvas.applyVersion": "#/$defs/NodeVersionApplyCommand", + "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommand", + "canvas.configure": "#/$defs/CanvasConfigureCommand", + "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", + "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", + "canvas.hide": "#/$defs/CanvasHideCommand", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommand", + "canvas.materialize": "#/$defs/CanvasMaterializeCommand", + "canvas.move": "#/$defs/CanvasMoveCommand", + "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", + "canvas.show": "#/$defs/CanvasShowCommand", + "canvas.update": "#/$defs/CanvasUpdateCommand", + "creation.batch": "#/$defs/BatchCommand", + "editor.create": "#/$defs/EditorCreateCommand", + "editor.save": "#/$defs/EditorSaveCommand", + "generation.submit": "#/$defs/GenerationSubmitCommand", + "generationSpec.create": "#/$defs/SpecCreateCommand", + "generationSpec.restore": "#/$defs/SpecRestoreCommand", + "generationSpec.setPrompt": "#/$defs/SpecPromptCommand", + "generationSpec.update": "#/$defs/SpecUpdateCommand", + "history.redo": "#/$defs/HistoryRedoCommand", + "history.undo": "#/$defs/HistoryUndoCommand", + "job.cancel": "#/$defs/JobCancelCommand", + "job.checkpoint": "#/$defs/JobCheckpointCommand", + "job.recover": "#/$defs/JobRecoverCommand", + "pipeline.adopt": "#/$defs/PipelineAdoptCommand", + "pipeline.cancel": "#/$defs/PipelineCancelCommand", + "pipeline.pause": "#/$defs/PipelinePauseCommand", + "pipeline.resume": "#/$defs/PipelineResumeCommand", + "pipeline.retry": "#/$defs/PipelineRetryCommand", + "pipeline.start": "#/$defs/PipelineStartCommand", + "project.create": "#/$defs/ProjectCreateCommand", + "project.rename": "#/$defs/ProjectRenameCommand", + "project.restore": "#/$defs/ProjectRestoreCommand", + "project.trash": "#/$defs/ProjectTrashCommand", + "reference.add": "#/$defs/ReferenceAddCommand", + "reference.remove": "#/$defs/ReferenceRemoveCommand", + "reference.restore": "#/$defs/ReferenceRestoreCommand", + "reference.update": "#/$defs/ReferenceUpdateCommand", + "result.select": "#/$defs/ResultSelectCommand", + "timeline.publishRender": "#/$defs/TimelinePublishRenderCommand" + }, + "propertyName": "type" + }, + "oneOf": [ { - "type": "boolean" + "$ref": "#/$defs/ProjectCreateCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Whether edits to this object are blocked.", - "title": "Locked" - }, - "color": { - "anyOf": [ + "$ref": "#/$defs/ProjectRenameCommand" + }, { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "$ref": "#/$defs/ProjectTrashCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Group background color in #RRGGBB format, or '' for the default.", - "title": "Color" - }, - "parentId": { - "anyOf": [ + "$ref": "#/$defs/ProjectRestoreCommand" + }, { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/AssetImportCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "autoLayout": { - "anyOf": [ + "$ref": "#/$defs/ArtifactPublishCommand" + }, { - "enum": [ - "run", - "free" - ], - "type": "string" + "$ref": "#/$defs/AssetWriteTextCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Enable Run layout for a top-level group, or use free to return it to manual layout.", - "title": "Autolayout" - } - }, - "required": [ - "itemId", - "title", - "width", - "height", - "zIndex", - "locked", - "parentId" - ], - "title": "CanvasPresentationUpdate", - "type": "object" - }, - "CanvasPublishMedia": { - "additionalProperties": false, - "properties": { - "itemId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Itemid", - "type": "string" - }, - "source": { - "anyOf": [ + "$ref": "#/$defs/AssetMetadataCommand" + }, { - "$ref": "#/$defs/AssetRef" + "$ref": "#/$defs/AssetDeleteCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Input source or recorded provenance." - }, - "sourceEditorId": { - "anyOf": [ + "$ref": "#/$defs/CanvasCreateGenerationCommand" + }, + { + "$ref": "#/$defs/CanvasShowCommand" + }, + { + "$ref": "#/$defs/CanvasMoveCommand" + }, + { + "$ref": "#/$defs/CanvasUpdateCommand" + }, + { + "$ref": "#/$defs/CanvasLayoutPipelinesCommand" + }, + { + "$ref": "#/$defs/CanvasHideCommand" + }, + { + "$ref": "#/$defs/CanvasMaterializeCommand" + }, + { + "$ref": "#/$defs/CanvasApplyEditCommand" + }, + { + "$ref": "#/$defs/CanvasPublishMediaCommand" + }, + { + "$ref": "#/$defs/TimelinePublishRenderCommand" + }, + { + "$ref": "#/$defs/PipelineStartCommand" + }, + { + "$ref": "#/$defs/PipelinePauseCommand" + }, + { + "$ref": "#/$defs/PipelineResumeCommand" + }, + { + "$ref": "#/$defs/PipelineCancelCommand" + }, + { + "$ref": "#/$defs/PipelineRetryCommand" + }, + { + "$ref": "#/$defs/PipelineAdoptCommand" + }, + { + "$ref": "#/$defs/NodeVersionApplyCommand" + }, + { + "$ref": "#/$defs/CanvasConfigureCommand" + }, + { + "$ref": "#/$defs/CanvasEditorAttachCommand" + }, + { + "$ref": "#/$defs/CanvasEditorDetachCommand" + }, + { + "$ref": "#/$defs/SpecCreateCommand" + }, + { + "$ref": "#/$defs/SpecUpdateCommand" + }, + { + "$ref": "#/$defs/SpecRestoreCommand" + }, + { + "$ref": "#/$defs/SpecPromptCommand" + }, + { + "$ref": "#/$defs/ReferenceAddCommand" + }, { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/ReferenceUpdateCommand" }, { - "type": "null" - } - ], - "default": null, - "description": "Source editable document ID.", - "title": "Sourceeditorid" - }, - "document": { - "description": "Editable document owned by this operation.", - "discriminator": { - "mapping": { - "director": "#/$defs/DirectorDocument", - "image_crop": "#/$defs/ImageCropDocument", - "layers": "#/$defs/LayerDocument", - "media_edit": "#/$defs/MediaEditDocument", - "stack": "#/$defs/StackDocument", - "subject": "#/$defs/SubjectDocument", - "timeline": "#/$defs/TimelineDocument", - "tool": "#/$defs/ToolDocument" + "$ref": "#/$defs/ReferenceRestoreCommand" }, - "propertyName": "kind" - }, - "oneOf": [ { - "$ref": "#/$defs/TimelineDocument" + "$ref": "#/$defs/ReferenceRemoveCommand" }, { - "$ref": "#/$defs/SubjectDocument" + "$ref": "#/$defs/GenerationSubmitCommand" }, { - "$ref": "#/$defs/LayerDocument" + "$ref": "#/$defs/JobCancelCommand" }, { - "$ref": "#/$defs/ImageCropDocument" + "$ref": "#/$defs/JobRecoverCommand" }, { - "$ref": "#/$defs/StackDocument" + "$ref": "#/$defs/JobCheckpointCommand" }, { - "$ref": "#/$defs/ToolDocument" + "$ref": "#/$defs/ResultSelectCommand" }, { - "$ref": "#/$defs/DirectorDocument" + "$ref": "#/$defs/EditorCreateCommand" }, { - "$ref": "#/$defs/MediaEditDocument" - } - ], - "title": "Document" - }, - "outputs": { - "description": "Ordered published media outputs.", - "items": { - "$ref": "#/$defs/MediaPublicationOutput" - }, - "maxItems": 50, - "minItems": 1, - "title": "Outputs", - "type": "array" - } - }, - "required": [ - "itemId", - "source", - "sourceEditorId", - "document", - "outputs" - ], - "title": "CanvasPublishMedia", - "type": "object" - }, - "CanvasPublishMediaCommand": { - "additionalProperties": false, - "description": "Publish edited media outputs with their editor snapshot.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "canvas.publishMedia", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ + "$ref": "#/$defs/EditorSaveCommand" + }, { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "$ref": "#/$defs/HistoryUndoCommand" }, { - "type": "null" + "$ref": "#/$defs/HistoryRedoCommand" + }, + { + "$ref": "#/$defs/BatchCommand" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "title": "Command" }, - "payload": { - "$ref": "#/$defs/CanvasPublishMedia", - "description": "Publish edited media outputs with their editor snapshot." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "CanvasPublishMediaCommand", - "type": "object" - }, - "CanvasReferenceSources": { - "additionalProperties": false, - "properties": { - "followCurrent": { - "$ref": "#/$defs/FollowingReferenceSource", - "description": "Source fields for a follow_current reference." + "receipt": { + "$ref": "#/$defs/CommandReceipt", + "description": "Immutable command execution receipt." }, - "pinned": { - "$ref": "#/$defs/PinnedReferenceSource", - "description": "Source fields for a pinned reference retaining its canvas connection." - } - }, - "required": [ - "followCurrent", - "pinned" - ], - "title": "CanvasReferenceSources", - "type": "object" - }, - "CanvasShow": { - "additionalProperties": false, - "properties": { - "item": { - "description": "Canvas display item to create or restore.", + "query": { + "description": "Read-only project query.", "discriminator": { "mapping": { - "audio": "#/$defs/AudioCanvasItem", - "external": "#/$defs/DirectorCanvasItem", - "file": "#/$defs/FileCanvasItem", - "group": "#/$defs/GroupCanvasItem", - "image": "#/$defs/ImageCanvasItem", - "stack": "#/$defs/StackCanvasItem", - "subject": "#/$defs/SubjectCanvasItem", - "text": "#/$defs/TextCanvasItem", - "timeline": "#/$defs/TimelineCanvasItem", - "tool": "#/$defs/ToolCanvasItem", - "video": "#/$defs/VideoCanvasItem" + "asset.preview": "#/$defs/AssetPreviewQuery", + "asset.search": "#/$defs/AssetSearchQuery", + "asset.usage": "#/$defs/AssetUsageQuery", + "canvas.status": "#/$defs/CanvasStatusQuery", + "canvas.versions": "#/$defs/VersionsQuery", + "generationSpec.versions": "#/$defs/VersionsQuery", + "job.get": "#/$defs/ObjectQuery", + "job.status": "#/$defs/JobStatusQuery", + "object.get": "#/$defs/ObjectQuery", + "pipeline.execution.get": "#/$defs/PipelineExecutionQuery", + "pipeline.executions.list": "#/$defs/PipelineExecutionsQuery", + "pipeline.plan": "#/$defs/PipelinePlanQuery", + "project.get": "#/$defs/ProjectQuery" }, - "propertyName": "kind" + "propertyName": "type" }, "oneOf": [ { - "$ref": "#/$defs/TextCanvasItem" + "$ref": "#/$defs/ProjectQuery" }, { - "$ref": "#/$defs/ImageCanvasItem" + "$ref": "#/$defs/ObjectQuery" }, { - "$ref": "#/$defs/VideoCanvasItem" + "$ref": "#/$defs/VersionsQuery" }, { - "$ref": "#/$defs/AudioCanvasItem" + "$ref": "#/$defs/AssetSearchQuery" }, { - "$ref": "#/$defs/FileCanvasItem" + "$ref": "#/$defs/AssetUsageQuery" }, { - "$ref": "#/$defs/SubjectCanvasItem" + "$ref": "#/$defs/CanvasStatusQuery" }, { - "$ref": "#/$defs/TimelineCanvasItem" + "$ref": "#/$defs/JobStatusQuery" }, { - "$ref": "#/$defs/StackCanvasItem" + "$ref": "#/$defs/AssetPreviewQuery" }, { - "$ref": "#/$defs/ToolCanvasItem" + "$ref": "#/$defs/PipelinePlanQuery" }, { - "$ref": "#/$defs/DirectorCanvasItem" + "$ref": "#/$defs/PipelineExecutionQuery" }, { - "$ref": "#/$defs/GroupCanvasItem" + "$ref": "#/$defs/PipelineExecutionsQuery" } ], - "title": "Item" - } - }, - "required": [ - "item" - ], - "title": "CanvasShow", - "type": "object" - }, - "CanvasShowCommand": { - "additionalProperties": false, - "description": "Create or restore a canvas display item.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" + "title": "Query" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "event": { + "$ref": "#/$defs/ProjectEvent", + "description": "Project change event, if emitted." }, - "type": { - "const": "canvas.show", - "description": "Command discriminator.", - "title": "Type", - "type": "string" + "job": { + "$ref": "#/$defs/Job", + "description": "Generation execution record." }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" + "result": { + "$ref": "#/$defs/ResultVersion", + "description": "Generated result schema." + }, + "snapshot": { + "$ref": "#/$defs/InputSnapshot", + "description": "Fixed generation input schema." + }, + "executionParameters": { + "description": "Effective provider execution parameter schema.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioExecution", + "image": "#/$defs/ImageExecution", + "text": "#/$defs/TextExecution", + "video": "#/$defs/VideoExecution" + }, + "propertyName": "kind" }, - "title": "Expectedversions", - "type": "array" + "oneOf": [ + { + "$ref": "#/$defs/TextExecution" + }, + { + "$ref": "#/$defs/ImageExecution" + }, + { + "$ref": "#/$defs/VideoExecution" + }, + { + "$ref": "#/$defs/AudioExecution" + } + ], + "title": "Executionparameters" }, - "expectedPreview": { - "anyOf": [ + "promptPart": { + "description": "Structured prompt token schema.", + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "$ref": "#/$defs/PromptText" }, { - "type": "null" + "$ref": "#/$defs/PromptReference" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "title": "Promptpart" }, - "payload": { - "$ref": "#/$defs/CanvasShow", - "description": "Create or restore a canvas display item." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "CanvasShowCommand", - "type": "object" - }, - "CanvasShowCommandOperation": { - "additionalProperties": false, - "description": "Create or restore a canvas display item.", - "properties": { - "type": { - "const": "canvas.show", - "description": "Operation discriminator.", - "title": "Type", - "type": "string" + "publicModel": { + "$ref": "#/$defs/ModelConfigPublic", + "description": "Public model connection schema." }, - "payload": { - "$ref": "#/$defs/CanvasShow", - "description": "Create or restore a canvas display item." - } - }, - "required": [ - "type", - "payload" - ], - "title": "CanvasShowCommandOperation", - "type": "object" - }, - "CanvasStatusQuery": { - "additionalProperties": false, - "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", - "type": "string" + "writeModel": { + "$ref": "#/$defs/ModelConfigWrite", + "description": "Model configuration input schema." }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "capabilities": { + "$ref": "#/$defs/NodeCapabilities", + "description": "Available canvas item operations." }, - "type": { - "const": "canvas.status", - "description": "Read node status, current asset and reusable referenceSources.", - "title": "Type", - "type": "string" + "viewState": { + "$ref": "#/$defs/ViewState", + "description": "Client-specific canvas view state." }, - "objectId": { - "description": "Canvas item ID.", - "format": "uuid", - "title": "Objectid", - "type": "string" + "timelinePackageManifest": { + "$ref": "#/$defs/TimelinePackageManifest", + "description": "Native editable timeline bundle manifest." }, - "waitSeconds": { - "default": 0, - "description": "Wait for generation changes; zero returns immediately.", - "maximum": 30, - "minimum": 0, - "title": "Waitseconds", - "type": "number" + "timelinePackageImport": { + "$ref": "#/$defs/TimelinePackageImportRequest", + "description": "Recoverable native bundle import request." + }, + "timelinePackageReceipt": { + "$ref": "#/$defs/TimelinePackageImportReceipt", + "description": "Native bundle import progress and final receipt." + }, + "upload": { + "$ref": "#/$defs/UploadInfo", + "description": "Staged upload schema." } }, "required": [ - "queryId", - "projectId", - "type", - "objectId", - "waitSeconds" + "project", + "canvasItem", + "generationSpec", + "reference", + "editorDocument", + "command", + "receipt", + "query", + "event", + "job", + "result", + "snapshot", + "executionParameters", + "promptPart", + "publicModel", + "writeModel", + "capabilities", + "viewState", + "timelinePackageManifest", + "timelinePackageImport", + "timelinePackageReceipt", + "upload" ], - "title": "CanvasStatusQuery", + "title": "CreationContracts", "type": "object" }, - "CanvasUpdateCommand": { + "DirectorCanvasItem": { "additionalProperties": false, - "description": "Update canvas presentation, grouping or lock state.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", + "id": { + "description": "Stable identity of this project-owned object.", "format": "uuid", - "title": "Commandid", + "title": "Id", "type": "string" }, "projectId": { @@ -19663,358 +22118,309 @@ "title": "Projectid", "type": "string" }, - "type": { - "const": "canvas.update", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "payload": { - "$ref": "#/$defs/CanvasPresentationUpdate", - "description": "Update canvas presentation, grouping or lock state." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "CanvasUpdateCommand", - "type": "object" - }, - "CanvasUpdateCommandOperation": { - "additionalProperties": false, - "description": "Update canvas presentation, grouping or lock state.", - "properties": { - "type": { - "const": "canvas.update", - "description": "Operation discriminator.", - "title": "Type", + "kind": { + "const": "external", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "payload": { - "$ref": "#/$defs/CanvasPresentationUpdate", - "description": "Update canvas presentation, grouping or lock state." - } - }, - "required": [ - "type", - "payload" - ], - "title": "CanvasUpdateCommandOperation", - "type": "object" - }, - "CapabilityDeclaration": { - "additionalProperties": false, - "properties": { - "status": { - "description": "Support decision excluding execution state.", - "enum": [ - "available", - "unavailable", - "unknown" - ], - "title": "Status", + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", "type": "string" }, - "reasonCode": { - "description": "Localizable declaration decision.", - "title": "Reasoncode", - "type": "string" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." }, - "checkedAt": { + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" + }, + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { "anyOf": [ { - "type": "integer" + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" }, { "type": "null" } ], - "description": "Completion time in Unix milliseconds.", - "title": "Checkedat" + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - "expiresAt": { + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" + }, + "parentId": { "anyOf": [ { - "type": "integer" + "format": "uuid", + "type": "string" }, { "type": "null" } ], - "description": "Declaration expiry in Unix milliseconds.", - "title": "Expiresat" + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "$ref": "#/$defs/EditorBinding", + "description": "Business object displayed by this canvas item." } }, "required": [ - "status", - "reasonCode", - "checkedAt", - "expiresAt" + "id", + "projectId", + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags", + "binding" ], - "title": "CapabilityDeclaration", + "title": "DirectorCanvasItem", "type": "object" }, - "CapabilityExecution": { + "DirectorData": { "additionalProperties": false, "properties": { - "state": { - "description": "Observed execution pause state.", + "background": { + "description": "Composition background color.", + "pattern": "^#[0-9a-fA-F]{6}$", + "title": "Background", + "type": "string" + }, + "grid": { + "default": true, + "description": "Whether to display the stage grid.", + "title": "Grid", + "type": "boolean" + }, + "duration": { + "description": "Interval duration in seconds.", + "exclusiveMinimum": 0, + "title": "Duration", + "type": "number" + }, + "aspectRatio": { + "default": "16:9", + "description": "Output width-to-height ratio.", "enum": [ - "unpaused", - "paused", - "unknown" + "16:9", + "9:16", + "1:1", + "4:3", + "3:4" ], - "title": "State", + "title": "Aspectratio", "type": "string" }, - "scope": { - "anyOf": [ - { - "enum": [ - "deployment", - "worker" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Scope proved by the service observation.", - "title": "Scope" + "cameras": { + "description": "Editable stage cameras.", + "items": { + "$ref": "#/$defs/CameraRig" + }, + "minItems": 1, + "title": "Cameras", + "type": "array" }, - "checkedAt": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "Observation receipt time in Unix milliseconds.", - "title": "Checkedat" + "activeCameraId": { + "description": "Active stage camera ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Activecameraid", + "type": "string" }, - "expiresAt": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } + "cameraSource": { + "default": "camera", + "description": "Camera selection strategy.", + "enum": [ + "camera", + "storyboard" ], - "description": "Execution observation expiry in Unix milliseconds.", - "title": "Expiresat" + "title": "Camerasource", + "type": "string" + }, + "shots": { + "default": [], + "description": "Ordered camera shot intervals.", + "items": { + "$ref": "#/$defs/StageShot" + }, + "title": "Shots", + "type": "array" + }, + "objects": { + "default": [], + "description": "Editable stage objects.", + "items": { + "$ref": "#/$defs/StageObject" + }, + "title": "Objects", + "type": "array" } }, "required": [ - "state", - "scope", - "checkedAt", - "expiresAt" + "background", + "grid", + "duration", + "aspectRatio", + "cameras", + "activeCameraId", + "cameraSource", + "shots", + "objects" ], - "title": "CapabilityExecution", + "title": "DirectorData", "type": "object" }, - "CapabilityInputDetail": { + "DirectorDocument": { "additionalProperties": false, "properties": { - "name": { - "description": "Canonical input role or parameter name.", - "title": "Name", - "type": "string" - }, - "support": { - "description": "Explicit fact, with omission kept unknown.", - "enum": [ - "supported", - "unsupported", - "unknown" - ], - "title": "Support", + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", "type": "string" }, - "source": { - "default": "service", - "description": "Owner of this restriction.", - "enum": [ - "service", - "application" - ], - "title": "Source", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "minCount": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Minimum transmitted inputs of this role.", - "title": "Mincount" - }, - "maxCount": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Maximum transmitted inputs of this role.", - "title": "Maxcount" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "values": { - "anyOf": [ - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Explicit allowed parameter values.", - "title": "Values" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - "min": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Inclusive parameter lower bound.", - "title": "Min" + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" }, - "max": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Inclusive parameter upper bound.", - "title": "Max" + "kind": { + "const": "director", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - "multipleOf": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Parameter step from zero.", - "title": "Multipleof" + "data": { + "$ref": "#/$defs/DirectorData", + "description": "Typed editable document contents." } }, "required": [ - "name", - "support", - "source", - "minCount", - "maxCount", - "values", - "min", - "max", - "multipleOf" + "id", + "projectId", + "revision", + "schemaVersion", + "inputConnections", + "kind", + "data" ], - "title": "CapabilityInputDetail", + "title": "DirectorDocument", "type": "object" }, - "ChangedObject": { + "EditorBinding": { "additionalProperties": false, "properties": { - "version": { - "$ref": "#/$defs/ObjectVersion", - "description": "Version of the referenced record." - }, - "change": { - "description": "Kind of business object change.", - "enum": [ - "created", - "updated", - "hidden", - "deleted" - ], - "title": "Change", + "role": { + "const": "editor", + "description": "Business role of this binding or reference.", + "title": "Role", "type": "string" + }, + "objectRef": { + "$ref": "#/$defs/EditorRef", + "description": "Stable reference to the bound business object." } }, "required": [ - "version", - "change" + "role", + "objectRef" ], - "title": "ChangedObject", + "title": "EditorBinding", "type": "object" }, - "CommandBase": { + "EditorCanvasItem": { "additionalProperties": false, "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", + "id": { + "description": "Stable identity of this project-owned object.", "format": "uuid", - "title": "Commandid", + "title": "Id", "type": "string" }, "projectId": { @@ -20023,24 +22429,92 @@ "title": "Projectid", "type": "string" }, - "type": { - "description": "Operation or variant discriminator.", - "title": "Type", + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "kind": { + "description": "Business object or media type.", + "enum": [ + "text", + "image", + "video", + "audio", + "file", + "group", + "timeline", + "subject", + "stack", + "tool", + "external" + ], + "title": "Kind", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" + }, + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { + "anyOf": [ + { + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - "expectedPreview": { + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" + }, + "parentId": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "format": "uuid", "type": "string" }, { @@ -20048,22 +22522,48 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "$ref": "#/$defs/EditorBinding", + "description": "Business object displayed by this canvas item." } }, "required": [ - "commandId", + "id", "projectId", - "type", - "expectedVersions", - "expectedPreview" + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags", + "binding" ], - "title": "CommandBase", + "title": "EditorCanvasItem", "type": "object" }, - "CommandReceipt": { + "EditorCreateCommand": { "additionalProperties": false, + "description": "Create an editable document.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -20077,211 +22577,25 @@ "title": "Projectid", "type": "string" }, - "inputFingerprint": { - "description": "Fingerprint of the fixed execution input.", - "pattern": "^[0-9a-f]{64}$", - "title": "Inputfingerprint", - "type": "string" - }, - "status": { - "description": "Current operation lifecycle state.", - "enum": [ - "applied", - "accepted", - "noop", - "rejected" - ], - "title": "Status", - "type": "string" - }, - "changed": { - "default": [], - "description": "Business objects changed by the operation.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Changed", - "type": "array" - }, - "jobIds": { - "default": [], - "description": "Generation jobs associated with this operation.", - "items": { - "format": "uuid", - "type": "string" - }, - "title": "Jobids", - "type": "array" - }, - "issues": { - "default": [], - "description": "Validation or execution issues.", - "items": { - "$ref": "#/$defs/ContractIssue" - }, - "title": "Issues", - "type": "array" - }, - "eventCursor": { - "anyOf": [ - { - "minimum": 0, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Latest committed project event cursor.", - "title": "Eventcursor" - } - }, - "required": [ - "commandId", - "projectId", - "inputFingerprint", - "status", - "changed", - "jobIds", - "issues", - "eventCursor" - ], - "title": "CommandReceipt", - "type": "object" - }, - "ContainerBinding": { - "additionalProperties": false, - "properties": { - "role": { - "const": "container", - "description": "Business role of this binding or reference.", - "title": "Role", - "type": "string" - } - }, - "required": [ - "role" - ], - "title": "ContainerBinding", - "type": "object" - }, - "Contract": { - "additionalProperties": false, - "properties": {}, - "title": "Contract", - "type": "object" - }, - "ContractIssue": { - "additionalProperties": false, - "properties": { - "code": { - "description": "Stable error or issue code.", - "enum": [ - "timeline_package_invalid", - "timeline_package_too_large", - "timeline_revision_missing", - "timeline_import_missing", - "timeline_import_conflict", - "timeline_registration_rejected", - "timeline_font_too_large", - "timeline_font_unavailable", - "timeline_font_unsupported", - "timeline_font_invalid", - "timeline_font_fingerprint", - "timeline_font_coverage", - "timeline_font_total_bytes", - "timeline_font_unverified", - "timeline_font_mime", - "timeline_bundled_font_fingerprint", - "timeline_bundled_font_unavailable", - "invalid_input", - "revision_conflict", - "role_restricted", - "canvas_run_layout_group", - "canvas_run_layout_conflict", - "canvas_run_layout_extent", - "canvas_run_layout_shared_object", - "missing_object", - "reference_invalid", - "image_quality_unsupported", - "bigmodel_video_model", - "bigmodel_video_output", - "bigmodel_video_image", - "bigmodel_video_frames", - "bigmodel_video_prompt", - "bigmodel_video_cancel", - "kling_model", - "kling_mode", - "kling_image", - "kling_frames", - "kling_prompt", - "kling_aspect", - "kling_output", - "kling_cancel", - "capability_unavailable", - "capability_paused", - "capability_connection_changed", - "capability_unsupported", - "preview_expired", - "storage_unavailable", - "submission_unknown", - "provider_error", - "moss_speech_text", - "moss_speech_voice", - "moss_speech_reference", - "moss_prompt_limit", - "moss_image_size", - "moss_image_reference", - "moss_layout_reference", - "bigmodel_image_size", - "bigmodel_image_reference", - "bigmodel_image_prompt", - "minimax_image_reference", - "minimax_image_count", - "minimax_image_bytes", - "minimax_speech_text", - "minimax_speech_voice", - "minimax_speech_reference", - "minimax_speech_model", - "zhipu_speech_text", - "zhipu_speech_voice", - "zhipu_speech_reference", - "voice_library_unsupported", - "voice_connection_changed", - "voice_reference_required", - "voice_transcript_required", - "voice_transcript_too_long", - "voice_description_too_long", - "voice_not_found", - "voice_delete_unsupported", - "voice_consent_required", - "voice_name_invalid", - "voice_audio_invalid", - "voice_format", - "voice_size", - "voice_duration", - "voice_provider_protocol", - "voice_provider_error", - "voice_provider_timeout", - "voice_model_unsupported", - "voice_name_taken", - "voice_provider_quota" - ], - "title": "Code", + "type": { + "const": "editor.create", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "message": { - "description": "Human-readable issue description.", - "maxLength": 500, - "minLength": 1, - "title": "Message", - "type": "string" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "objectId": { + "expectedPreview": { "anyOf": [ { - "format": "uuid", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -20289,157 +22603,262 @@ } ], "default": null, - "description": "Target business object ID.", - "title": "Objectid" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "field": { - "anyOf": [ - { - "maxLength": 200, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Path of the field responsible for this issue.", - "title": "Field" + "payload": { + "$ref": "#/$defs/EditorWrite", + "description": "Create an editable document." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "EditorCreateCommand", + "type": "object" + }, + "EditorCreateCommandOperation": { + "additionalProperties": false, + "description": "Create an editable document.", + "properties": { + "type": { + "const": "editor.create", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" }, - "relatedObjectId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Other business object involved in the issue.", - "title": "Relatedobjectid" + "payload": { + "$ref": "#/$defs/EditorWrite", + "description": "Create an editable document." } }, "required": [ - "code", - "message", - "objectId", - "field" + "type", + "payload" ], - "title": "ContractIssue", + "title": "EditorCreateCommandOperation", "type": "object" }, - "CreationContracts": { + "EditorDocumentBase": { "additionalProperties": false, "properties": { - "project": { - "$ref": "#/$defs/ProjectSnapshot", - "description": "Authoritative project snapshot schema." + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - "canvasItem": { - "description": "Canvas item schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioCanvasItem", - "external": "#/$defs/DirectorCanvasItem", - "file": "#/$defs/FileCanvasItem", - "group": "#/$defs/GroupCanvasItem", - "image": "#/$defs/ImageCanvasItem", - "stack": "#/$defs/StackCanvasItem", - "subject": "#/$defs/SubjectCanvasItem", - "text": "#/$defs/TextCanvasItem", - "timeline": "#/$defs/TimelineCanvasItem", - "tool": "#/$defs/ToolCanvasItem", - "video": "#/$defs/VideoCanvasItem" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextCanvasItem" - }, - { - "$ref": "#/$defs/ImageCanvasItem" - }, - { - "$ref": "#/$defs/VideoCanvasItem" - }, - { - "$ref": "#/$defs/AudioCanvasItem" - }, - { - "$ref": "#/$defs/FileCanvasItem" - }, - { - "$ref": "#/$defs/SubjectCanvasItem" - }, - { - "$ref": "#/$defs/TimelineCanvasItem" - }, - { - "$ref": "#/$defs/StackCanvasItem" - }, - { - "$ref": "#/$defs/ToolCanvasItem" - }, - { - "$ref": "#/$defs/DirectorCanvasItem" - }, - { - "$ref": "#/$defs/GroupCanvasItem" - } - ], - "title": "Canvasitem" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "generationSpec": { - "description": "Generation configuration schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" - }, - "propertyName": "kind" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" + }, + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" }, - "oneOf": [ - { - "$ref": "#/$defs/TextGenerationSpec" - }, - { - "$ref": "#/$defs/ImageGenerationSpec" - }, - { - "$ref": "#/$defs/VideoGenerationSpec" - }, - { - "$ref": "#/$defs/AudioGenerationSpec" - } + "title": "Inputconnections", + "type": "array" + } + }, + "required": [ + "id", + "projectId", + "revision", + "schemaVersion", + "inputConnections" + ], + "title": "EditorDocumentBase", + "type": "object" + }, + "EditorInputConnection": { + "additionalProperties": false, + "description": "Assembly provenance binds a retained slot, never a generation spec.", + "properties": { + "id": { + "description": "Stable object ID.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "sourceId": { + "description": "Source canvas item ID.", + "format": "uuid", + "title": "Sourceid", + "type": "string" + }, + "slotId": { + "description": "Destination editor input slot.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Slotid", + "type": "string" + }, + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." + } + }, + "required": [ + "id", + "sourceId", + "slotId", + "asset" + ], + "title": "EditorInputConnection", + "type": "object" + }, + "EditorRef": { + "additionalProperties": false, + "properties": { + "objectType": { + "const": "editor_document", + "default": "editor_document", + "description": "Referenced business object type.", + "title": "Objecttype", + "type": "string" + }, + "id": { + "description": "Referenced editable document ID.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "kind": { + "description": "Business object or media type.", + "enum": [ + "timeline", + "subject", + "stack", + "tool", + "director", + "layers", + "image_crop", + "media_edit" ], - "title": "Generationspec" + "title": "Kind", + "type": "string" + } + }, + "required": [ + "objectType", + "id", + "kind" + ], + "title": "EditorRef", + "type": "object" + }, + "EditorSaveCommand": { + "additionalProperties": false, + "description": "Save an editable document.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "reference": { - "description": "Generation reference to create or update.", - "discriminator": { - "mapping": { - "follow_current": "#/$defs/FollowingReference", - "pinned": "#/$defs/PinnedReference" - }, - "propertyName": "binding" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "editor.save", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" }, - "oneOf": [ + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ { - "$ref": "#/$defs/PinnedReference" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { - "$ref": "#/$defs/FollowingReference" + "type": "null" } ], - "title": "Reference" + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "editorDocument": { - "description": "Editable document schema.", + "payload": { + "$ref": "#/$defs/EditorWrite", + "description": "Save an editable document." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "EditorSaveCommand", + "type": "object" + }, + "EditorSaveCommandOperation": { + "additionalProperties": false, + "description": "Save an editable document.", + "properties": { + "type": { + "const": "editor.save", + "description": "Operation discriminator.", + "title": "Type", + "type": "string" + }, + "payload": { + "$ref": "#/$defs/EditorWrite", + "description": "Save an editable document." + } + }, + "required": [ + "type", + "payload" + ], + "title": "EditorSaveCommandOperation", + "type": "object" + }, + "EditorWrite": { + "additionalProperties": false, + "properties": { + "document": { + "description": "Editable document owned by this operation.", "discriminator": { "mapping": { "director": "#/$defs/DirectorDocument", @@ -20479,355 +22898,547 @@ "$ref": "#/$defs/MediaEditDocument" } ], - "title": "Editordocument" - }, - "command": { - "description": "Immutable command recorded in this commit.", - "discriminator": { - "mapping": { - "artifact.publish": "#/$defs/ArtifactPublishCommand", - "asset.delete": "#/$defs/AssetDeleteCommand", - "asset.import": "#/$defs/AssetImportCommand", - "asset.updateMetadata": "#/$defs/AssetMetadataCommand", - "asset.writeText": "#/$defs/AssetWriteTextCommand", - "canvas.applyEdit": "#/$defs/CanvasApplyEditCommand", - "canvas.applyVersion": "#/$defs/NodeVersionApplyCommand", - "canvas.attachEditor": "#/$defs/CanvasEditorAttachCommand", - "canvas.configure": "#/$defs/CanvasConfigureCommand", - "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", - "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", - "canvas.hide": "#/$defs/CanvasHideCommand", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommand", - "canvas.materialize": "#/$defs/CanvasMaterializeCommand", - "canvas.move": "#/$defs/CanvasMoveCommand", - "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", - "canvas.show": "#/$defs/CanvasShowCommand", - "canvas.update": "#/$defs/CanvasUpdateCommand", - "creation.batch": "#/$defs/BatchCommand", - "editor.create": "#/$defs/EditorCreateCommand", - "editor.save": "#/$defs/EditorSaveCommand", - "generation.submit": "#/$defs/GenerationSubmitCommand", - "generationSpec.create": "#/$defs/SpecCreateCommand", - "generationSpec.restore": "#/$defs/SpecRestoreCommand", - "generationSpec.setPrompt": "#/$defs/SpecPromptCommand", - "generationSpec.update": "#/$defs/SpecUpdateCommand", - "history.redo": "#/$defs/HistoryRedoCommand", - "history.undo": "#/$defs/HistoryUndoCommand", - "job.cancel": "#/$defs/JobCancelCommand", - "job.checkpoint": "#/$defs/JobCheckpointCommand", - "job.recover": "#/$defs/JobRecoverCommand", - "project.create": "#/$defs/ProjectCreateCommand", - "project.rename": "#/$defs/ProjectRenameCommand", - "project.restore": "#/$defs/ProjectRestoreCommand", - "project.trash": "#/$defs/ProjectTrashCommand", - "reference.add": "#/$defs/ReferenceAddCommand", - "reference.remove": "#/$defs/ReferenceRemoveCommand", - "reference.restore": "#/$defs/ReferenceRestoreCommand", - "reference.update": "#/$defs/ReferenceUpdateCommand", - "result.select": "#/$defs/ResultSelectCommand", - "timeline.publishRender": "#/$defs/TimelinePublishRenderCommand" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/ProjectCreateCommand" - }, - { - "$ref": "#/$defs/ProjectRenameCommand" - }, - { - "$ref": "#/$defs/ProjectTrashCommand" - }, - { - "$ref": "#/$defs/ProjectRestoreCommand" - }, - { - "$ref": "#/$defs/AssetImportCommand" - }, - { - "$ref": "#/$defs/ArtifactPublishCommand" - }, - { - "$ref": "#/$defs/AssetWriteTextCommand" - }, - { - "$ref": "#/$defs/AssetMetadataCommand" - }, - { - "$ref": "#/$defs/AssetDeleteCommand" - }, - { - "$ref": "#/$defs/CanvasCreateGenerationCommand" - }, - { - "$ref": "#/$defs/CanvasShowCommand" - }, - { - "$ref": "#/$defs/CanvasMoveCommand" - }, - { - "$ref": "#/$defs/CanvasUpdateCommand" - }, - { - "$ref": "#/$defs/CanvasLayoutRunsCommand" - }, - { - "$ref": "#/$defs/CanvasHideCommand" - }, - { - "$ref": "#/$defs/CanvasMaterializeCommand" - }, - { - "$ref": "#/$defs/CanvasApplyEditCommand" - }, - { - "$ref": "#/$defs/CanvasPublishMediaCommand" - }, - { - "$ref": "#/$defs/TimelinePublishRenderCommand" - }, - { - "$ref": "#/$defs/NodeVersionApplyCommand" - }, - { - "$ref": "#/$defs/CanvasConfigureCommand" - }, - { - "$ref": "#/$defs/CanvasEditorAttachCommand" - }, - { - "$ref": "#/$defs/CanvasEditorDetachCommand" - }, - { - "$ref": "#/$defs/SpecCreateCommand" - }, - { - "$ref": "#/$defs/SpecUpdateCommand" - }, - { - "$ref": "#/$defs/SpecRestoreCommand" - }, - { - "$ref": "#/$defs/SpecPromptCommand" - }, - { - "$ref": "#/$defs/ReferenceAddCommand" - }, + "title": "Document" + } + }, + "required": [ + "document" + ], + "title": "EditorWrite", + "type": "object" + }, + "EmptyBinding": { + "additionalProperties": false, + "description": "An empty canvas item with optional editable draft or manual text.", + "properties": { + "role": { + "const": "empty", + "description": "Business role of this binding or reference.", + "title": "Role", + "type": "string" + }, + "draftSpec": { + "anyOf": [ { - "$ref": "#/$defs/ReferenceUpdateCommand" + "$ref": "#/$defs/GenerationSpecRef" }, { - "$ref": "#/$defs/ReferenceRestoreCommand" - }, + "type": "null" + } + ], + "default": null, + "description": "Editable generation draft associated with an empty item." + }, + "manualText": { + "anyOf": [ { - "$ref": "#/$defs/ReferenceRemoveCommand" + "maxLength": 1048576, + "type": "string" }, { - "$ref": "#/$defs/GenerationSubmitCommand" - }, + "type": "null" + } + ], + "default": null, + "description": "Manually entered text for an empty text item.", + "title": "Manualtext" + } + }, + "required": [ + "role", + "draftSpec", + "manualText" + ], + "title": "EmptyBinding", + "type": "object" + }, + "EmptyPayload": { + "additionalProperties": false, + "properties": {}, + "title": "EmptyPayload", + "type": "object" + }, + "FileCanvasItem": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "kind": { + "const": "file", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", + "type": "integer" + }, + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { + "anyOf": [ { - "$ref": "#/$defs/JobCancelCommand" + "pattern": "^(#[0-9a-fA-F]{6})?$", + "type": "string" }, { - "$ref": "#/$defs/JobRecoverCommand" - }, + "type": "null" + } + ], + "default": null, + "description": "Group background color in #RRGGBB format.", + "title": "Color" + }, + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" + }, + "parentId": { + "anyOf": [ { - "$ref": "#/$defs/JobCheckpointCommand" + "format": "uuid", + "type": "string" }, { - "$ref": "#/$defs/ResultSelectCommand" + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" + }, + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "description": "Business object displayed by this canvas item.", + "discriminator": { + "mapping": { + "empty": "#/$defs/EmptyBinding", + "generation": "#/$defs/GenerationBinding", + "material": "#/$defs/MaterialBinding" }, + "propertyName": "role" + }, + "oneOf": [ { - "$ref": "#/$defs/EditorCreateCommand" + "$ref": "#/$defs/EmptyBinding" }, { - "$ref": "#/$defs/EditorSaveCommand" + "$ref": "#/$defs/MaterialBinding" }, { - "$ref": "#/$defs/HistoryUndoCommand" - }, + "$ref": "#/$defs/GenerationBinding" + } + ], + "title": "Binding" + }, + "editors": { + "default": [], + "description": "Attached editable documents.", + "items": { + "$ref": "#/$defs/EditorRef" + }, + "title": "Editors", + "type": "array" + } + }, + "required": [ + "id", + "projectId", + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags", + "binding", + "editors" + ], + "title": "FileCanvasItem", + "type": "object" + }, + "FollowingReference": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "targetSpecId": { + "description": "Target generation configuration ID.", + "format": "uuid", + "title": "Targetspecid", + "type": "string" + }, + "role": { + "default": "reference", + "description": "Business role of this binding or reference.", + "enum": [ + "reference", + "first_frame", + "last_frame", + "continuation", + "control" + ], + "title": "Role", + "type": "string" + }, + "order": { + "default": 0, + "description": "Reference ordering within the target configuration.", + "minimum": 0, + "title": "Order", + "type": "integer" + }, + "active": { + "default": true, + "description": "Whether this reference participates in generation.", + "title": "Active", + "type": "boolean" + }, + "binding": { + "const": "follow_current", + "description": "Follow the source canvas item's current asset.", + "title": "Binding", + "type": "string" + }, + "source": { + "$ref": "#/$defs/FollowingSource", + "description": "Source canvas_item identity." + } + }, + "required": [ + "id", + "projectId", + "revision", + "targetSpecId", + "role", + "order", + "active", + "binding", + "source" + ], + "title": "FollowingReference", + "type": "object" + }, + "FollowingReferenceSource": { + "additionalProperties": false, + "properties": { + "binding": { + "const": "follow_current", + "default": "follow_current", + "description": "Follow the canvas source current asset.", + "title": "Binding", + "type": "string" + }, + "source": { + "$ref": "#/$defs/FollowingSource", + "description": "Source canvas_item identity." + } + }, + "required": [ + "binding", + "source" + ], + "title": "FollowingReferenceSource", + "type": "object" + }, + "FollowingSource": { + "additionalProperties": false, + "properties": { + "objectType": { + "const": "canvas_item", + "default": "canvas_item", + "description": "Referenced business object type.", + "title": "Objecttype", + "type": "string" + }, + "id": { + "description": "Source canvas item ID.", + "format": "uuid", + "title": "Id", + "type": "string" + } + }, + "required": [ + "objectType", + "id" + ], + "title": "FollowingSource", + "type": "object" + }, + "FromNodePipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "from_node", + "description": "Run from one node through its downstream dependents.", + "title": "Kind", + "type": "string" + }, + "itemId": { + "description": "Starting canvas item ID.", + "format": "uuid", + "title": "Itemid", + "type": "string" + }, + "groupId": { + "anyOf": [ { - "$ref": "#/$defs/HistoryRedoCommand" + "format": "uuid", + "type": "string" }, { - "$ref": "#/$defs/BatchCommand" + "type": "null" } ], - "title": "Command" + "default": null, + "description": "Optional group boundary limiting downstream traversal.", + "title": "Groupid" + } + }, + "required": [ + "kind", + "itemId" + ], + "title": "FromNodePipelineScope", + "type": "object" + }, + "GenerationBinding": { + "additionalProperties": false, + "description": "Displays a generation configuration and its adopted result.", + "properties": { + "role": { + "const": "generation", + "description": "Business role of this binding or reference.", + "title": "Role", + "type": "string" }, - "receipt": { - "$ref": "#/$defs/CommandReceipt", - "description": "Immutable command execution receipt." + "objectRef": { + "$ref": "#/$defs/GenerationSpecRef", + "description": "Stable reference to the bound business object." }, - "query": { - "description": "Read-only project query.", - "discriminator": { - "mapping": { - "asset.preview": "#/$defs/AssetPreviewQuery", - "asset.search": "#/$defs/AssetSearchQuery", - "asset.usage": "#/$defs/AssetUsageQuery", - "canvas.status": "#/$defs/CanvasStatusQuery", - "canvas.versions": "#/$defs/VersionsQuery", - "generationSpec.versions": "#/$defs/VersionsQuery", - "job.get": "#/$defs/ObjectQuery", - "job.status": "#/$defs/JobStatusQuery", - "object.get": "#/$defs/ObjectQuery", - "project.get": "#/$defs/ProjectQuery" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/ProjectQuery" - }, - { - "$ref": "#/$defs/ObjectQuery" - }, - { - "$ref": "#/$defs/VersionsQuery" - }, - { - "$ref": "#/$defs/AssetSearchQuery" - }, - { - "$ref": "#/$defs/AssetUsageQuery" - }, - { - "$ref": "#/$defs/CanvasStatusQuery" - }, + "materialOverride": { + "anyOf": [ { - "$ref": "#/$defs/JobStatusQuery" + "$ref": "#/$defs/AssetRef" }, { - "$ref": "#/$defs/AssetPreviewQuery" + "type": "null" } ], - "title": "Query" - }, - "event": { - "$ref": "#/$defs/ProjectEvent", - "description": "Project change event, if emitted." + "default": null, + "description": "Adopted material that overrides the current generated result." + } + }, + "required": [ + "role", + "objectRef", + "materialOverride" + ], + "title": "GenerationBinding", + "type": "object" + }, + "GenerationFailure": { + "additionalProperties": false, + "properties": { + "category": { + "description": "Stable failure category.", + "enum": [ + "input", + "reference", + "authentication", + "permission", + "quota", + "rate_limit", + "temporary", + "submission_unknown", + "local", + "protocol", + "provider" + ], + "title": "Category", + "type": "string" }, - "job": { - "$ref": "#/$defs/Job", - "description": "Generation execution record." + "stage": { + "description": "Execution stage where the failure occurred.", + "enum": [ + "prepare", + "submit", + "poll", + "download", + "check", + "save", + "adopt", + "cancel" + ], + "title": "Stage", + "type": "string" }, - "result": { - "$ref": "#/$defs/ResultVersion", - "description": "Generated result schema." + "message": { + "description": "Human-readable issue description.", + "maxLength": 500, + "title": "Message", + "type": "string" }, - "snapshot": { - "$ref": "#/$defs/InputSnapshot", - "description": "Fixed generation input schema." + "suggestion": { + "description": "Suggested action to resolve the failure.", + "maxLength": 500, + "title": "Suggestion", + "type": "string" }, - "executionParameters": { - "description": "Effective provider execution parameter schema.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioExecution", - "image": "#/$defs/ImageExecution", - "text": "#/$defs/TextExecution", - "video": "#/$defs/VideoExecution" - }, - "propertyName": "kind" - }, - "oneOf": [ + "providerCode": { + "anyOf": [ { - "$ref": "#/$defs/TextExecution" + "maxLength": 160, + "type": "string" }, { - "$ref": "#/$defs/ImageExecution" - }, + "type": "null" + } + ], + "default": null, + "description": "Provider error code.", + "title": "Providercode" + }, + "requestId": { + "anyOf": [ { - "$ref": "#/$defs/VideoExecution" + "maxLength": 200, + "type": "string" }, { - "$ref": "#/$defs/AudioExecution" + "type": "null" } ], - "title": "Executionparameters" + "default": null, + "description": "Provider request ID.", + "title": "Requestid" }, - "promptPart": { - "description": "Structured prompt token schema.", - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ + "httpStatus": { + "anyOf": [ { - "$ref": "#/$defs/PromptText" + "maximum": 599, + "minimum": 100, + "type": "integer" }, { - "$ref": "#/$defs/PromptReference" + "type": "null" } ], - "title": "Promptpart" - }, - "publicModel": { - "$ref": "#/$defs/ModelConfigPublic", - "description": "Public model connection schema." - }, - "writeModel": { - "$ref": "#/$defs/ModelConfigWrite", - "description": "Model configuration input schema." - }, - "capabilities": { - "$ref": "#/$defs/NodeCapabilities", - "description": "Available canvas item operations." - }, - "viewState": { - "$ref": "#/$defs/ViewState", - "description": "Client-specific canvas view state." - }, - "timelinePackageManifest": { - "$ref": "#/$defs/TimelinePackageManifest", - "description": "Native editable timeline bundle manifest." - }, - "timelinePackageImport": { - "$ref": "#/$defs/TimelinePackageImportRequest", - "description": "Recoverable native bundle import request." - }, - "timelinePackageReceipt": { - "$ref": "#/$defs/TimelinePackageImportReceipt", - "description": "Native bundle import progress and final receipt." + "default": null, + "description": "Provider HTTP response status.", + "title": "Httpstatus" }, - "upload": { - "$ref": "#/$defs/UploadInfo", - "description": "Staged upload schema." + "providerStatus": { + "anyOf": [ + { + "enum": [ + "failed", + "cancelled", + "expired" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provider terminal task status.", + "title": "Providerstatus" } }, "required": [ - "project", - "canvasItem", - "generationSpec", - "reference", - "editorDocument", - "command", - "receipt", - "query", - "event", - "job", - "result", - "snapshot", - "executionParameters", - "promptPart", - "publicModel", - "writeModel", - "capabilities", - "viewState", - "timelinePackageManifest", - "timelinePackageImport", - "timelinePackageReceipt", - "upload" + "category", + "stage", + "message", + "suggestion" ], - "title": "CreationContracts", + "title": "GenerationFailure", "type": "object" }, - "DirectorCanvasItem": { + "GenerationSpecBase": { "additionalProperties": false, "properties": { "id": { @@ -20849,53 +23460,139 @@ "title": "Revision", "type": "integer" }, - "kind": { - "const": "external", - "description": "Business object or media type.", - "title": "Kind", + "purpose": { + "default": "draft", + "description": "Draft settings or executable generation configuration.", + "enum": [ + "draft", + "generation" + ], + "title": "Purpose", "type": "string" }, - "title": { + "modelConfigId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Model configuration ID from the model catalog or user model selections.", + "title": "Modelconfigid" + }, + "prompt": { "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "description": "Generation prompt text.", + "maxLength": 20000, + "title": "Prompt", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." + "promptContent": { + "anyOf": [ + { + "items": { + "discriminator": { + "mapping": { + "reference": "#/$defs/PromptReference", + "text": "#/$defs/PromptText" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/$defs/PromptText" + }, + { + "$ref": "#/$defs/PromptReference" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Structured prompt text and reference tokens.", + "title": "Promptcontent" }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" + "currentResultId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Currently adopted result ID.", + "title": "Currentresultid" + } + }, + "required": [ + "id", + "projectId", + "revision", + "purpose", + "modelConfigId", + "prompt", + "promptContent", + "currentResultId" + ], + "title": "GenerationSpecBase", + "type": "object" + }, + "GenerationSpecRef": { + "additionalProperties": false, + "properties": { + "objectType": { + "const": "generation_spec", + "default": "generation_spec", + "description": "Referenced business object type.", + "title": "Objecttype", + "type": "string" }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "id": { + "description": "Referenced generation configuration ID.", + "format": "uuid", + "title": "Id", + "type": "string" + } + }, + "required": [ + "objectType", + "id" + ], + "title": "GenerationSpecRef", + "type": "object" + }, + "GenerationSubmit": { + "additionalProperties": false, + "properties": { + "specId": { + "description": "Include its current generation_spec revision in expectedVersions.", + "format": "uuid", + "title": "Specid", + "type": "string", + "x-version-object-type": "generation_spec" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", + "expectedSpecRevision": { + "description": "Must match the specId revision in expectedVersions.", + "minimum": 1, + "title": "Expectedspecrevision", "type": "integer" }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" - }, - "color": { + "originItemId": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", + "format": "uuid", "type": "string" }, { @@ -20903,16 +23600,11 @@ } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" - }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "description": "When set, include its current canvas_item revision in expectedVersions.", + "title": "Originitemid", + "x-version-object-type": "canvas_item" }, - "parentId": { + "previousJobId": { "anyOf": [ { "format": "uuid", @@ -20923,146 +23615,60 @@ } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" - }, - "binding": { - "$ref": "#/$defs/EditorBinding", - "description": "Business object displayed by this canvas item." - } - }, - "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags", - "binding" - ], - "title": "DirectorCanvasItem", - "type": "object" - }, - "DirectorData": { - "additionalProperties": false, - "properties": { - "background": { - "description": "Composition background color.", - "pattern": "^#[0-9a-fA-F]{6}$", - "title": "Background", - "type": "string" - }, - "grid": { - "default": true, - "description": "Whether to display the stage grid.", - "title": "Grid", - "type": "boolean" - }, - "duration": { - "description": "Interval duration in seconds.", - "exclusiveMinimum": 0, - "title": "Duration", - "type": "number" + "description": "Previous generation attempt ID.", + "title": "Previousjobid" }, - "aspectRatio": { - "default": "16:9", - "description": "Output width-to-height ratio.", + "adoptionPolicy": { + "default": "if_current", + "description": "Policy for adopting the completed result.", "enum": [ - "16:9", - "9:16", - "1:1", - "4:3", - "3:4" + "if_current", + "candidate_only" ], - "title": "Aspectratio", - "type": "string" - }, - "cameras": { - "description": "Editable stage cameras.", - "items": { - "$ref": "#/$defs/CameraRig" - }, - "minItems": 1, - "title": "Cameras", - "type": "array" - }, - "activeCameraId": { - "description": "Active stage camera ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Activecameraid", + "title": "Adoptionpolicy", "type": "string" }, - "cameraSource": { - "default": "camera", - "description": "Camera selection strategy.", - "enum": [ - "camera", - "storyboard" + "batchId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } ], - "title": "Camerasource", - "type": "string" - }, - "shots": { - "default": [], - "description": "Ordered camera shot intervals.", - "items": { - "$ref": "#/$defs/StageShot" - }, - "title": "Shots", - "type": "array" + "default": null, + "description": "Generation batch ID.", + "title": "Batchid" }, - "objects": { - "default": [], - "description": "Editable stage objects.", - "items": { - "$ref": "#/$defs/StageObject" - }, - "title": "Objects", - "type": "array" + "showAdditionalResult": { + "default": false, + "description": "Whether to display an additional result item.", + "title": "Showadditionalresult", + "type": "boolean" } }, "required": [ - "background", - "grid", - "duration", - "aspectRatio", - "cameras", - "activeCameraId", - "cameraSource", - "shots", - "objects" + "specId", + "expectedSpecRevision", + "originItemId", + "previousJobId", + "adoptionPolicy", + "batchId", + "showAdditionalResult" ], - "title": "DirectorData", + "title": "GenerationSubmit", "type": "object" }, - "DirectorDocument": { + "GenerationSubmitCommand": { "additionalProperties": false, + "description": "Submit a generation job with fixed inputs and an adoption policy.", "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "commandId": { + "description": "Stable command ID for idempotent replay.", "format": "uuid", - "title": "Id", + "title": "Commandid", "type": "string" }, "projectId": { @@ -21071,74 +23677,52 @@ "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" + "type": { + "const": "generation.submit", + "description": "Command discriminator.", + "title": "Type", + "type": "string" }, - "inputConnections": { + "expectedVersions": { "default": [], - "description": "Persisted connections to source assets.", + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", "items": { - "$ref": "#/$defs/EditorInputConnection" + "$ref": "#/$defs/ObjectVersion" }, - "title": "Inputconnections", + "title": "Expectedversions", "type": "array" }, - "kind": { - "const": "director", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "data": { - "$ref": "#/$defs/DirectorData", - "description": "Typed editable document contents." - } - }, - "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "inputConnections", - "kind", - "data" - ], - "title": "DirectorDocument", - "type": "object" - }, - "EditorBinding": { - "additionalProperties": false, - "properties": { - "role": { - "const": "editor", - "description": "Business role of this binding or reference.", - "title": "Role", - "type": "string" + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "objectRef": { - "$ref": "#/$defs/EditorRef", - "description": "Stable reference to the bound business object." + "payload": { + "$ref": "#/$defs/GenerationSubmit", + "description": "Submit a generation job with fixed inputs and an adoption policy." } }, "required": [ - "role", - "objectRef" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "EditorBinding", + "title": "GenerationSubmitCommand", "type": "object" }, - "EditorCanvasItem": { + "GroupCanvasItem": { "additionalProperties": false, "properties": { "id": { @@ -21161,20 +23745,8 @@ "type": "integer" }, "kind": { + "const": "group", "description": "Business object or media type.", - "enum": [ - "text", - "image", - "video", - "audio", - "file", - "group", - "timeline", - "subject", - "stack", - "tool", - "external" - ], "title": "Kind", "type": "string" }, @@ -21261,8 +23833,22 @@ "title": "Tags", "type": "array" }, + "autoLayout": { + "anyOf": [ + { + "const": "pipeline", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Set to pipeline to opt this top-level group into shared Pipeline layout.", + "title": "Autolayout" + }, "binding": { - "$ref": "#/$defs/EditorBinding", + "$ref": "#/$defs/ContainerBinding", "description": "Business object displayed by this canvas item." } }, @@ -21282,222 +23868,35 @@ "tags", "binding" ], - "title": "EditorCanvasItem", - "type": "object" - }, - "EditorCreateCommand": { - "additionalProperties": false, - "description": "Create an editable document.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "editor.create", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/EditorWrite", - "description": "Create an editable document." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "EditorCreateCommand", - "type": "object" - }, - "EditorCreateCommandOperation": { - "additionalProperties": false, - "description": "Create an editable document.", - "properties": { - "type": { - "const": "editor.create", - "description": "Operation discriminator.", - "title": "Type", - "type": "string" - }, - "payload": { - "$ref": "#/$defs/EditorWrite", - "description": "Create an editable document." - } - }, - "required": [ - "type", - "payload" - ], - "title": "EditorCreateCommandOperation", - "type": "object" - }, - "EditorDocumentBase": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" - }, - "inputConnections": { - "default": [], - "description": "Persisted connections to source assets.", - "items": { - "$ref": "#/$defs/EditorInputConnection" - }, - "title": "Inputconnections", - "type": "array" - } - }, - "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "inputConnections" - ], - "title": "EditorDocumentBase", - "type": "object" - }, - "EditorInputConnection": { - "additionalProperties": false, - "description": "Assembly provenance binds a retained slot, never a generation spec.", - "properties": { - "id": { - "description": "Stable object ID.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "sourceId": { - "description": "Source canvas item ID.", - "format": "uuid", - "title": "Sourceid", - "type": "string" - }, - "slotId": { - "description": "Destination editor input slot.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Slotid", - "type": "string" - }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." - } - }, - "required": [ - "id", - "sourceId", - "slotId", - "asset" - ], - "title": "EditorInputConnection", - "type": "object" - }, - "EditorRef": { - "additionalProperties": false, - "properties": { - "objectType": { - "const": "editor_document", - "default": "editor_document", - "description": "Referenced business object type.", - "title": "Objecttype", - "type": "string" - }, - "id": { - "description": "Referenced editable document ID.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "kind": { - "description": "Business object or media type.", - "enum": [ - "timeline", - "subject", - "stack", - "tool", - "director", - "layers", - "image_crop", - "media_edit" - ], + "title": "GroupCanvasItem", + "type": "object" + }, + "GroupPipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "group", + "description": "Run all executable nodes inside a canvas group.", "title": "Kind", "type": "string" + }, + "groupId": { + "description": "Target canvas group ID.", + "format": "uuid", + "title": "Groupid", + "type": "string" } }, "required": [ - "objectType", - "id", - "kind" + "kind", + "groupId" ], - "title": "EditorRef", + "title": "GroupPipelineScope", "type": "object" }, - "EditorSaveCommand": { + "HistoryRedoCommand": { "additionalProperties": false, - "description": "Save an editable document.", + "description": "Reapply an undone command.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -21512,7 +23911,7 @@ "type": "string" }, "type": { - "const": "editor.save", + "const": "history.redo", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -21541,8 +23940,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/EditorWrite", - "description": "Save an editable document." + "$ref": "#/$defs/HistoryReplay", + "description": "Reapply an undone command." } }, "required": [ @@ -21553,110 +23952,60 @@ "expectedPreview", "payload" ], - "title": "EditorSaveCommand", + "title": "HistoryRedoCommand", "type": "object" }, - "EditorSaveCommandOperation": { + "HistoryReplay": { "additionalProperties": false, - "description": "Save an editable document.", "properties": { - "type": { - "const": "editor.save", - "description": "Operation discriminator.", - "title": "Type", + "targetCommandId": { + "description": "Historical command to undo or redo.", + "format": "uuid", + "title": "Targetcommandid", "type": "string" - }, - "payload": { - "$ref": "#/$defs/EditorWrite", - "description": "Save an editable document." - } - }, - "required": [ - "type", - "payload" - ], - "title": "EditorSaveCommandOperation", - "type": "object" - }, - "EditorWrite": { - "additionalProperties": false, - "properties": { - "document": { - "description": "Editable document owned by this operation.", - "discriminator": { - "mapping": { - "director": "#/$defs/DirectorDocument", - "image_crop": "#/$defs/ImageCropDocument", - "layers": "#/$defs/LayerDocument", - "media_edit": "#/$defs/MediaEditDocument", - "stack": "#/$defs/StackDocument", - "subject": "#/$defs/SubjectDocument", - "timeline": "#/$defs/TimelineDocument", - "tool": "#/$defs/ToolDocument" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TimelineDocument" - }, - { - "$ref": "#/$defs/SubjectDocument" - }, - { - "$ref": "#/$defs/LayerDocument" - }, - { - "$ref": "#/$defs/ImageCropDocument" - }, - { - "$ref": "#/$defs/StackDocument" - }, - { - "$ref": "#/$defs/ToolDocument" - }, - { - "$ref": "#/$defs/DirectorDocument" - }, - { - "$ref": "#/$defs/MediaEditDocument" - } - ], - "title": "Document" } }, "required": [ - "document" + "targetCommandId" ], - "title": "EditorWrite", + "title": "HistoryReplay", "type": "object" }, - "EmptyBinding": { + "HistoryUndoCommand": { "additionalProperties": false, - "description": "An empty canvas item with optional editable draft or manual text.", + "description": "Undo a recorded reversible command.", "properties": { - "role": { - "const": "empty", - "description": "Business role of this binding or reference.", - "title": "Role", + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "draftSpec": { - "anyOf": [ - { - "$ref": "#/$defs/GenerationSpecRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Editable generation draft associated with an empty item." + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "manualText": { + "type": { + "const": "history.undo", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "maxLength": 1048576, + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -21664,25 +24013,26 @@ } ], "default": null, - "description": "Manually entered text for an empty text item.", - "title": "Manualtext" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/HistoryReplay", + "description": "Undo a recorded reversible command." } }, "required": [ - "role", - "draftSpec", - "manualText" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "EmptyBinding", - "type": "object" - }, - "EmptyPayload": { - "additionalProperties": false, - "properties": {}, - "title": "EmptyPayload", + "title": "HistoryUndoCommand", "type": "object" }, - "FileCanvasItem": { + "ImageCanvasItem": { "additionalProperties": false, "properties": { "id": { @@ -21705,7 +24055,7 @@ "type": "integer" }, "kind": { - "const": "file", + "const": "image", "description": "Business object or media type.", "title": "Kind", "type": "string" @@ -21839,225 +24189,264 @@ "locked", "visible", "parentId", - "tags", - "binding", - "editors" - ], - "title": "FileCanvasItem", - "type": "object" - }, - "FollowingReference": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "targetSpecId": { - "description": "Target generation configuration ID.", - "format": "uuid", - "title": "Targetspecid", - "type": "string" - }, - "role": { - "default": "reference", - "description": "Business role of this binding or reference.", - "enum": [ - "reference", - "first_frame", - "last_frame", - "continuation", - "control" - ], - "title": "Role", - "type": "string" - }, - "order": { - "default": 0, - "description": "Reference ordering within the target configuration.", - "minimum": 0, - "title": "Order", - "type": "integer" - }, - "active": { - "default": true, - "description": "Whether this reference participates in generation.", - "title": "Active", - "type": "boolean" - }, - "binding": { - "const": "follow_current", - "description": "Follow the source canvas item's current asset.", - "title": "Binding", - "type": "string" - }, - "source": { - "$ref": "#/$defs/FollowingSource", - "description": "Source canvas_item identity." - } - }, - "required": [ - "id", - "projectId", - "revision", - "targetSpecId", - "role", - "order", - "active", + "tags", "binding", - "source" + "editors" ], - "title": "FollowingReference", + "title": "ImageCanvasItem", "type": "object" }, - "FollowingReferenceSource": { + "ImageCropData": { "additionalProperties": false, "properties": { - "binding": { - "const": "follow_current", - "default": "follow_current", - "description": "Follow the canvas source current asset.", - "title": "Binding", - "type": "string" - }, "source": { - "$ref": "#/$defs/FollowingSource", - "description": "Source canvas_item identity." + "$ref": "#/$defs/AssetRef", + "description": "Input source or recorded provenance." + }, + "options": { + "$ref": "#/$defs/ImageCropOptions", + "description": "Non-destructive image crop and color settings." + }, + "width": { + "description": "Width in pixels.", + "minimum": 1, + "title": "Width", + "type": "integer" + }, + "height": { + "description": "Height in pixels.", + "minimum": 1, + "title": "Height", + "type": "integer" } }, "required": [ - "binding", - "source" + "source", + "options", + "width", + "height" ], - "title": "FollowingReferenceSource", + "title": "ImageCropData", "type": "object" }, - "FollowingSource": { + "ImageCropDocument": { "additionalProperties": false, "properties": { - "objectType": { - "const": "canvas_item", - "default": "canvas_item", - "description": "Referenced business object type.", - "title": "Objecttype", - "type": "string" - }, "id": { - "description": "Source canvas item ID.", + "description": "Stable identity of this project-owned object.", "format": "uuid", "title": "Id", "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" + }, + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" + }, + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" + }, + "kind": { + "const": "image_crop", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "data": { + "$ref": "#/$defs/ImageCropData", + "description": "Typed editable document contents." } }, "required": [ - "objectType", - "id" + "id", + "projectId", + "revision", + "schemaVersion", + "inputConnections", + "kind", + "data" ], - "title": "FollowingSource", + "title": "ImageCropDocument", "type": "object" }, - "GenerationBinding": { + "ImageCropOptions": { "additionalProperties": false, - "description": "Displays a generation configuration and its adopted result.", "properties": { - "role": { - "const": "generation", - "description": "Business role of this binding or reference.", - "title": "Role", - "type": "string" + "rotation": { + "default": 0, + "description": "Crop rotation in degrees.", + "enum": [ + 0, + 90, + 180, + 270 + ], + "title": "Rotation", + "type": "integer" }, - "objectRef": { - "$ref": "#/$defs/GenerationSpecRef", - "description": "Stable reference to the bound business object." + "flipX": { + "default": false, + "description": "Whether the image is mirrored horizontally.", + "title": "Flipx", + "type": "boolean" }, - "materialOverride": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } + "flipY": { + "default": false, + "description": "Whether the image is mirrored vertically.", + "title": "Flipy", + "type": "boolean" + }, + "aspect": { + "default": "original", + "description": "Crop aspect ratio or free crop mode.", + "enum": [ + "free", + "original", + "1:1", + "4:3", + "3:4", + "16:9", + "9:16" ], - "default": null, - "description": "Adopted material that overrides the current generated result." + "title": "Aspect", + "type": "string" + }, + "zoom": { + "default": 100, + "description": "Crop zoom percentage.", + "maximum": 400, + "minimum": 100, + "title": "Zoom", + "type": "number" + }, + "freeWidth": { + "default": 100, + "description": "Free crop width as a percentage.", + "maximum": 100, + "minimum": 1, + "title": "Freewidth", + "type": "number" + }, + "freeHeight": { + "default": 100, + "description": "Free crop height as a percentage.", + "maximum": 100, + "minimum": 1, + "title": "Freeheight", + "type": "number" + }, + "x": { + "default": 50, + "description": "Horizontal crop position percentage.", + "maximum": 100, + "minimum": 0, + "title": "X", + "type": "number" + }, + "y": { + "default": 50, + "description": "Vertical crop position percentage.", + "maximum": 100, + "minimum": 0, + "title": "Y", + "type": "number" + }, + "brightness": { + "default": 100, + "description": "Brightness percentage.", + "maximum": 200, + "minimum": 0, + "title": "Brightness", + "type": "number" + }, + "contrast": { + "default": 100, + "description": "Contrast percentage.", + "maximum": 200, + "minimum": 0, + "title": "Contrast", + "type": "number" + }, + "saturation": { + "default": 100, + "description": "Saturation percentage.", + "maximum": 200, + "minimum": 0, + "title": "Saturation", + "type": "number" } }, "required": [ - "role", - "objectRef", - "materialOverride" - ], - "title": "GenerationBinding", - "type": "object" - }, - "GenerationFailure": { - "additionalProperties": false, - "properties": { - "category": { - "description": "Stable failure category.", - "enum": [ - "input", - "reference", - "authentication", - "permission", - "quota", - "rate_limit", - "temporary", - "submission_unknown", - "local", - "protocol", - "provider" - ], - "title": "Category", + "rotation", + "flipX", + "flipY", + "aspect", + "zoom", + "freeWidth", + "freeHeight", + "x", + "y", + "brightness", + "contrast", + "saturation" + ], + "title": "ImageCropOptions", + "type": "object" + }, + "ImageExecution": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "image", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "stage": { - "description": "Execution stage where the failure occurred.", + "quality": { + "default": "auto", + "description": "Image rendering quality fixed for this execution; auto omits the provider field.", "enum": [ - "prepare", - "submit", - "poll", - "download", - "check", - "save", - "adopt", - "cancel" + "auto", + "low", + "medium", + "high" ], - "title": "Stage", - "type": "string" - }, - "message": { - "description": "Human-readable issue description.", - "maxLength": 500, - "title": "Message", + "title": "Quality", "type": "string" }, - "suggestion": { - "description": "Suggested action to resolve the failure.", - "maxLength": 500, - "title": "Suggestion", + "size": { + "description": "Effective image dimensions sent to the provider.", + "title": "Size", "type": "string" }, - "providerCode": { + "responseFormat": { "anyOf": [ { - "maxLength": 160, + "enum": [ + "url", + "b64_json" + ], "type": "string" }, { @@ -22065,28 +24454,33 @@ } ], "default": null, - "description": "Provider error code.", - "title": "Providercode" + "description": "Provider response representation.", + "title": "Responseformat" }, - "requestId": { + "outputFormat": { + "const": "png", + "default": "png", + "description": "Generated image encoding.", + "title": "Outputformat", + "type": "string" + }, + "watermark": { "anyOf": [ { - "maxLength": 200, - "type": "string" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Provider request ID.", - "title": "Requestid" + "description": "Whether provider watermarking is enabled.", + "title": "Watermark" }, - "httpStatus": { + "numInferenceSteps": { "anyOf": [ { - "maximum": 599, - "minimum": 100, + "minimum": 1, "type": "integer" }, { @@ -22094,38 +24488,35 @@ } ], "default": null, - "description": "Provider HTTP response status.", - "title": "Httpstatus" + "description": "Diffusion sampling step count.", + "title": "Numinferencesteps" }, - "providerStatus": { + "guidanceScale": { "anyOf": [ { - "enum": [ - "failed", - "cancelled", - "expired" - ], - "type": "string" + "minimum": 0, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Provider terminal task status.", - "title": "Providerstatus" + "description": "Diffusion guidance scale.", + "title": "Guidancescale" } }, "required": [ - "category", - "stage", - "message", - "suggestion" + "kind", + "size", + "responseFormat", + "outputFormat", + "watermark" ], - "title": "GenerationFailure", + "title": "ImageExecution", "type": "object" }, - "GenerationSpecBase": { + "ImageGenerationSpec": { "additionalProperties": false, "properties": { "id": { @@ -22221,6 +24612,16 @@ "default": null, "description": "Currently adopted result ID.", "title": "Currentresultid" + }, + "kind": { + "const": "image", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" + }, + "parameters": { + "$ref": "#/$defs/ImageParameters", + "description": "Typed generation or editing parameters." } }, "required": [ @@ -22231,299 +24632,337 @@ "modelConfigId", "prompt", "promptContent", - "currentResultId" + "currentResultId", + "kind", + "parameters" ], - "title": "GenerationSpecBase", + "title": "ImageGenerationSpec", "type": "object" }, - "GenerationSpecRef": { + "ImageLayer": { "additionalProperties": false, "properties": { - "objectType": { - "const": "generation_spec", - "default": "generation_spec", - "description": "Referenced business object type.", - "title": "Objecttype", - "type": "string" - }, "id": { - "description": "Referenced generation configuration ID.", - "format": "uuid", + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", "title": "Id", "type": "string" - } - }, - "required": [ - "objectType", - "id" - ], - "title": "GenerationSpecRef", - "type": "object" - }, - "GenerationSubmit": { - "additionalProperties": false, - "properties": { - "specId": { - "description": "Include its current generation_spec revision in expectedVersions.", - "format": "uuid", - "title": "Specid", - "type": "string", - "x-version-object-type": "generation_spec" }, - "expectedSpecRevision": { - "description": "Must match the specId revision in expectedVersions.", - "minimum": 1, - "title": "Expectedspecrevision", - "type": "integer" + "name": { + "description": "User-visible name.", + "maxLength": 200, + "title": "Name", + "type": "string" }, - "originItemId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "When set, include its current canvas_item revision in expectedVersions.", - "title": "Originitemid", - "x-version-object-type": "canvas_item" + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" }, - "previousJobId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "opacity": { + "default": 1, + "description": "Layer opacity from zero to one.", + "maximum": 1, + "minimum": 0, + "title": "Opacity", + "type": "number" + }, + "x": { + "default": 0, + "description": "Horizontal coordinate.", + "title": "X", + "type": "number" + }, + "y": { + "default": 0, + "description": "Vertical coordinate.", + "title": "Y", + "type": "number" + }, + "width": { + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "maximum": 8192, + "title": "Width", + "type": "number" + }, + "height": { + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "maximum": 8192, + "title": "Height", + "type": "number" + }, + "rotation": { + "default": 0, + "description": "Layer rotation in degrees.", + "title": "Rotation", + "type": "number" + }, + "flipX": { + "default": false, + "description": "Whether the image is mirrored horizontally.", + "title": "Flipx", + "type": "boolean" + }, + "flipY": { + "default": false, + "description": "Whether the image is mirrored vertically.", + "title": "Flipy", + "type": "boolean" + }, + "content": { + "description": "Editable layer content.", + "discriminator": { + "mapping": { + "image": "#/$defs/ImageLayerContent", + "rectangle": "#/$defs/RectangleLayerContent", + "text": "#/$defs/TextLayerContent" }, + "propertyName": "kind" + }, + "oneOf": [ { - "type": "null" - } - ], - "default": null, - "description": "Previous generation attempt ID.", - "title": "Previousjobid" - }, - "adoptionPolicy": { - "default": "if_current", - "description": "Policy for adopting the completed result.", - "enum": [ - "if_current", - "candidate_only" - ], - "title": "Adoptionpolicy", - "type": "string" - }, - "batchId": { - "anyOf": [ + "$ref": "#/$defs/ImageLayerContent" + }, { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/TextLayerContent" }, { - "type": "null" + "$ref": "#/$defs/RectangleLayerContent" } ], - "default": null, - "description": "Generation batch ID.", - "title": "Batchid" + "title": "Content" }, - "showAdditionalResult": { - "default": false, - "description": "Whether to display an additional result item.", - "title": "Showadditionalresult", - "type": "boolean" + "mask": { + "default": [], + "description": "Ordered strokes or encoded selection mask.", + "items": { + "$ref": "#/$defs/MaskStroke" + }, + "maxItems": 2000, + "title": "Mask", + "type": "array" } }, "required": [ - "specId", - "expectedSpecRevision", - "originItemId", - "previousJobId", - "adoptionPolicy", - "batchId", - "showAdditionalResult" + "id", + "name", + "visible", + "locked", + "opacity", + "x", + "y", + "width", + "height", + "rotation", + "flipX", + "flipY", + "content", + "mask" ], - "title": "GenerationSubmit", + "title": "ImageLayer", "type": "object" }, - "GenerationSubmitCommand": { + "ImageLayerContent": { "additionalProperties": false, - "description": "Submit a generation job with fixed inputs and an adoption policy.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" + "width": { + "description": "Width in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Width", + "type": "integer" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "height": { + "description": "Height in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Height", + "type": "integer" }, - "type": { - "const": "generation.submit", - "description": "Command discriminator.", - "title": "Type", + "kind": { + "const": "image", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/GenerationSubmit", - "description": "Submit a generation job with fixed inputs and an adoption policy." + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." } }, "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "width", + "height", + "kind", + "asset" ], - "title": "GenerationSubmitCommand", + "title": "ImageLayerContent", "type": "object" }, - "GroupCanvasItem": { + "ImageOutput": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", + "aspectRatio": { + "description": "Output width-to-height ratio.", + "pattern": "^(?:auto|[1-9]\\d?:[1-9]\\d?)$", + "title": "Aspectratio", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "size": { + "description": "Supported image dimensions or size preset.", + "pattern": "^(?:2K|[1-9]\\d{2,3}x[1-9]\\d{2,3})$", + "title": "Size", "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "group", - "description": "Business object or media type.", - "title": "Kind", + } + }, + "required": [ + "aspectRatio", + "size" + ], + "title": "ImageOutput", + "type": "object" + }, + "ImageParameters": { + "additionalProperties": false, + "properties": { + "quality": { + "default": "auto", + "description": "Image rendering quality; auto leaves the provider request unchanged.", + "enum": [ + "auto", + "low", + "medium", + "high" + ], + "title": "Quality", "type": "string" }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "size": { + "default": "auto", + "description": "Requested image dimensions or size preset.", + "pattern": "^(?:auto|2K|[1-9]\\d{2,3}x[1-9]\\d{2,3})$", + "title": "Size", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" + "aspectRatio": { + "anyOf": [ + { + "pattern": "^[1-9]\\d?:[1-9]\\d?$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Output width-to-height ratio.", + "title": "Aspectratio" }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "preset": { + "default": "none", + "description": "Selected generation or motion preset.", + "enum": [ + "none", + "product-views" + ], + "title": "Preset", + "type": "string" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" + "responseFormat": { + "const": "url", + "default": "url", + "description": "Provider response representation.", + "title": "Responseformat", + "type": "string" }, - "locked": { + "outputFormat": { + "const": "png", + "default": "png", + "description": "Generated image encoding.", + "title": "Outputformat", + "type": "string" + } + }, + "required": [ + "size", + "aspectRatio", + "preset", + "responseFormat", + "outputFormat" + ], + "title": "ImageParameters", + "type": "object" + }, + "InputRules": { + "additionalProperties": false, + "properties": { + "fractionalDuration": { "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", + "description": "Accept fractional video seconds within each output duration range.", + "title": "Fractionalduration", "type": "boolean" }, - "color": { + "profile": { + "description": "Model capability profile.", + "maxLength": 100, + "minLength": 1, + "title": "Profile", + "type": "string" + }, + "voiceLibrary": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "$ref": "#/$defs/VoiceLibraryCapabilities" }, { "type": "null" } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" - }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "description": "Supported voice registry and adapter requirements; omitted for unsupported models." }, - "parentId": { + "maxPromptCharacters": { "anyOf": [ { - "format": "uuid", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" + "description": "Maximum characters in the final prompt including text references.", + "title": "Maxpromptcharacters" }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "voiceRequired": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Whether speech generation requires an explicit service voice ID.", + "title": "Voicerequired" }, - "autoLayout": { + "defaultVoice": { "anyOf": [ { - "const": "run", + "pattern": "^[A-Za-z0-9_.-]{1,64}$", "type": "string" }, { @@ -22531,586 +24970,326 @@ } ], "default": null, - "description": "Set to run to opt this top-level group into shared Run layout. Put its plan, clips and timeline under this group ID.", - "title": "Autolayout" - }, - "binding": { - "$ref": "#/$defs/ContainerBinding", - "description": "Business object displayed by this canvas item." - } - }, - "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags", - "binding" - ], - "title": "GroupCanvasItem", - "type": "object" - }, - "HistoryRedoCommand": { - "additionalProperties": false, - "description": "Reapply an undone command.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "history.redo", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "description": "Service voice ID applied when a required selection is still empty.", + "title": "Defaultvoice" }, - "expectedPreview": { + "referencesAllowed": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Whether references may be attached, including context-only references.", + "title": "Referencesallowed" }, - "payload": { - "$ref": "#/$defs/HistoryReplay", - "description": "Reapply an undone command." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "HistoryRedoCommand", - "type": "object" - }, - "HistoryReplay": { - "additionalProperties": false, - "properties": { - "targetCommandId": { - "description": "Historical command to undo or redo.", - "format": "uuid", - "title": "Targetcommandid", - "type": "string" - } - }, - "required": [ - "targetCommandId" - ], - "title": "HistoryReplay", - "type": "object" - }, - "HistoryUndoCommand": { - "additionalProperties": false, - "description": "Undo a recorded reversible command.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" + "allowedKinds": { + "description": "Accepted reference media kinds.", + "items": { + "enum": [ + "text", + "image", + "video", + "audio" + ], + "type": "string" + }, + "title": "Allowedkinds", + "type": "array" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "maxImages": { + "description": "Maximum reference image count.", + "minimum": 0, + "title": "Maximages", + "type": "integer" }, - "type": { - "const": "history.undo", - "description": "Command discriminator.", - "title": "Type", - "type": "string" + "maxVideos": { + "description": "Maximum reference video count.", + "minimum": 0, + "title": "Maxvideos", + "type": "integer" + }, + "maxAudios": { + "description": "Maximum reference audio count.", + "minimum": 0, + "title": "Maxaudios", + "type": "integer" + }, + "imageBytes": { + "description": "Maximum bytes per reference image.", + "minimum": 0, + "title": "Imagebytes", + "type": "integer" + }, + "videoBytes": { + "description": "Maximum bytes per reference video.", + "minimum": 0, + "title": "Videobytes", + "type": "integer" + }, + "requestBytes": { + "description": "Maximum aggregate reference bytes per request.", + "minimum": 0, + "title": "Requestbytes", + "type": "integer" + }, + "videoModes": { + "description": "Supported video generation modes.", + "items": { + "enum": [ + "first_frame", + "reference", + "continuation", + "control" + ], + "type": "string" + }, + "title": "Videomodes", + "type": "array" }, - "expectedVersions": { + "imageOutputs": { "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "description": "Supported image aspect ratios and sizes.", "items": { - "$ref": "#/$defs/ObjectVersion" + "$ref": "#/$defs/ImageOutput" }, - "title": "Expectedversions", + "title": "Imageoutputs", "type": "array" }, - "expectedPreview": { + "imageQualities": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "items": { + "enum": [ + "auto", + "low", + "medium", + "high" + ], + "type": "string" + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" - }, - "payload": { - "$ref": "#/$defs/HistoryReplay", - "description": "Undo a recorded reversible command." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "HistoryUndoCommand", - "type": "object" - }, - "ImageCanvasItem": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "const": "image", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", - "type": "string" - }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" + "description": "Supported image rendering qualities; omitted for models without quality control.", + "title": "Imagequalities" }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" + "outputResolutions": { + "default": [], + "description": "Supported output resolution values.", + "items": { + "type": "string" + }, + "title": "Outputresolutions", + "type": "array" }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" + "referenceImageResolutions": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported reference image resolution values.", + "title": "Referenceimageresolutions" }, - "color": { + "videoCapabilities": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "$ref": "#/$defs/VideoCapabilities" }, { "type": "null" } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" + "description": "Supported video generation capabilities." }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "aspectRatios": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported explicit video output aspect ratios; unset uses existing protocol rules.", + "title": "Aspectratios" }, - "parentId": { + "frameRoles": { "anyOf": [ { - "format": "uuid", - "type": "string" + "items": { + "enum": [ + "first_frame", + "last_frame" + ], + "type": "string" + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" + "description": "Supported explicit image frame slots.", + "title": "Frameroles" }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "audioReferenceStandalone": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Whether audio-only references are supported.", + "title": "Audioreferencestandalone" }, - "binding": { - "description": "Business object displayed by this canvas item.", + "generateAudioOptions": { + "anyOf": [ + { + "items": { + "type": "boolean" + }, + "maxItems": 2, + "minItems": 1, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Allowed generateAudio values; omitted in legacy execution snapshots.", + "title": "Generateaudiooptions" + } + }, + "required": [ + "profile", + "allowedKinds", + "maxImages", + "maxVideos", + "maxAudios", + "imageBytes", + "videoBytes", + "requestBytes", + "videoModes", + "imageOutputs", + "outputResolutions", + "referenceImageResolutions", + "videoCapabilities" + ], + "title": "InputRules", + "type": "object" + }, + "InputSnapshot": { + "additionalProperties": false, + "description": "Only creative inputs; layout, selection and credentials are excluded.", + "properties": { + "spec": { + "description": "Generation configuration for this operation.", "discriminator": { "mapping": { - "empty": "#/$defs/EmptyBinding", - "generation": "#/$defs/GenerationBinding", - "material": "#/$defs/MaterialBinding" + "audio": "#/$defs/AudioGenerationSpec", + "image": "#/$defs/ImageGenerationSpec", + "text": "#/$defs/TextGenerationSpec", + "video": "#/$defs/VideoGenerationSpec" }, - "propertyName": "role" + "propertyName": "kind" }, "oneOf": [ { - "$ref": "#/$defs/EmptyBinding" + "$ref": "#/$defs/TextGenerationSpec" }, { - "$ref": "#/$defs/MaterialBinding" + "$ref": "#/$defs/ImageGenerationSpec" }, { - "$ref": "#/$defs/GenerationBinding" + "$ref": "#/$defs/VideoGenerationSpec" + }, + { + "$ref": "#/$defs/AudioGenerationSpec" } ], - "title": "Binding" - }, - "editors": { - "default": [], - "description": "Attached editable documents.", - "items": { - "$ref": "#/$defs/EditorRef" - }, - "title": "Editors", - "type": "array" - } - }, - "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags", - "binding", - "editors" - ], - "title": "ImageCanvasItem", - "type": "object" - }, - "ImageCropData": { - "additionalProperties": false, - "properties": { - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Input source or recorded provenance." - }, - "options": { - "$ref": "#/$defs/ImageCropOptions", - "description": "Non-destructive image crop and color settings." - }, - "width": { - "description": "Width in pixels.", - "minimum": 1, - "title": "Width", - "type": "integer" - }, - "height": { - "description": "Height in pixels.", - "minimum": 1, - "title": "Height", - "type": "integer" - } - }, - "required": [ - "source", - "options", - "width", - "height" - ], - "title": "ImageCropData", - "type": "object" - }, - "ImageCropDocument": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "title": "Spec" }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" + "model": { + "$ref": "#/$defs/ModelSnapshot", + "description": "Fixed model configuration for this execution." }, - "inputConnections": { + "references": { "default": [], - "description": "Persisted connections to source assets.", + "description": "Ordered generation reference bindings.", "items": { - "$ref": "#/$defs/EditorInputConnection" + "$ref": "#/$defs/ResolvedReference" }, - "title": "Inputconnections", + "title": "References", "type": "array" - }, - "kind": { - "const": "image_crop", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "data": { - "$ref": "#/$defs/ImageCropData", - "description": "Typed editable document contents." - } - }, - "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "inputConnections", - "kind", - "data" - ], - "title": "ImageCropDocument", - "type": "object" - }, - "ImageCropOptions": { - "additionalProperties": false, - "properties": { - "rotation": { - "default": 0, - "description": "Crop rotation in degrees.", - "enum": [ - 0, - 90, - 180, - 270 - ], - "title": "Rotation", - "type": "integer" - }, - "flipX": { - "default": false, - "description": "Whether the image is mirrored horizontally.", - "title": "Flipx", - "type": "boolean" - }, - "flipY": { - "default": false, - "description": "Whether the image is mirrored vertically.", - "title": "Flipy", - "type": "boolean" - }, - "aspect": { - "default": "original", - "description": "Crop aspect ratio or free crop mode.", - "enum": [ - "free", - "original", - "1:1", - "4:3", - "3:4", - "16:9", - "9:16" - ], - "title": "Aspect", - "type": "string" - }, - "zoom": { - "default": 100, - "description": "Crop zoom percentage.", - "maximum": 400, - "minimum": 100, - "title": "Zoom", - "type": "number" - }, - "freeWidth": { - "default": 100, - "description": "Free crop width as a percentage.", - "maximum": 100, - "minimum": 1, - "title": "Freewidth", - "type": "number" - }, - "freeHeight": { - "default": 100, - "description": "Free crop height as a percentage.", - "maximum": 100, - "minimum": 1, - "title": "Freeheight", - "type": "number" - }, - "x": { - "default": 50, - "description": "Horizontal crop position percentage.", - "maximum": 100, - "minimum": 0, - "title": "X", - "type": "number" - }, - "y": { - "default": 50, - "description": "Vertical crop position percentage.", - "maximum": 100, - "minimum": 0, - "title": "Y", - "type": "number" - }, - "brightness": { - "default": 100, - "description": "Brightness percentage.", - "maximum": 200, - "minimum": 0, - "title": "Brightness", - "type": "number" - }, - "contrast": { - "default": 100, - "description": "Contrast percentage.", - "maximum": 200, - "minimum": 0, - "title": "Contrast", - "type": "number" - }, - "saturation": { - "default": 100, - "description": "Saturation percentage.", - "maximum": 200, - "minimum": 0, - "title": "Saturation", - "type": "number" } }, "required": [ - "rotation", - "flipX", - "flipY", - "aspect", - "zoom", - "freeWidth", - "freeHeight", - "x", - "y", - "brightness", - "contrast", - "saturation" + "spec", + "model", + "references" ], - "title": "ImageCropOptions", + "title": "InputSnapshot", "type": "object" }, - "ImageExecution": { + "Job": { "additionalProperties": false, "properties": { - "kind": { - "const": "image", - "description": "Business object or media type.", - "title": "Kind", + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", "type": "string" }, - "quality": { - "default": "auto", - "description": "Image rendering quality fixed for this execution; auto omits the provider field.", - "enum": [ - "auto", - "low", - "medium", - "high" - ], - "title": "Quality", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "size": { - "description": "Effective image dimensions sent to the provider.", - "title": "Size", - "type": "string" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "responseFormat": { + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" + }, + "createdAt": { "anyOf": [ { - "enum": [ - "url", - "b64_json" - ], + "format": "date-time", "type": "string" }, { @@ -23118,152 +25297,170 @@ } ], "default": null, - "description": "Provider response representation.", - "title": "Responseformat" + "description": "Execution acceptance timestamp.", + "title": "Createdat" }, - "outputFormat": { - "const": "png", - "default": "png", - "description": "Generated image encoding.", - "title": "Outputformat", + "inputSnapshot": { + "$ref": "#/$defs/InputSnapshot", + "description": "Fixed generation inputs accepted for this execution." + }, + "inputFingerprint": { + "description": "Fingerprint of the fixed execution input.", + "pattern": "^[0-9a-f]{64}$", + "title": "Inputfingerprint", "type": "string" }, - "watermark": { - "anyOf": [ + "execution": { + "description": "Fixed effective parameters submitted to the provider.", + "discriminator": { + "mapping": { + "audio": "#/$defs/AudioExecution", + "image": "#/$defs/ImageExecution", + "text": "#/$defs/TextExecution", + "video": "#/$defs/VideoExecution" + }, + "propertyName": "kind" + }, + "oneOf": [ { - "type": "boolean" + "$ref": "#/$defs/TextExecution" }, { - "type": "null" + "$ref": "#/$defs/ImageExecution" + }, + { + "$ref": "#/$defs/VideoExecution" + }, + { + "$ref": "#/$defs/AudioExecution" } ], - "default": null, - "description": "Whether provider watermarking is enabled.", - "title": "Watermark" + "title": "Execution" }, - "numInferenceSteps": { + "status": { + "default": "queued", + "description": "Current operation lifecycle state.", + "enum": [ + "queued", + "running", + "succeeded", + "failed", + "cancelled", + "interrupted" + ], + "title": "Status", + "type": "string" + }, + "phase": { + "default": "queued", + "description": "Current execution phase.", + "enum": [ + "queued", + "prepare", + "submit", + "poll", + "download", + "check", + "save", + "adopt", + "complete" + ], + "title": "Phase", + "type": "string" + }, + "externalTaskId": { "anyOf": [ { - "minimum": 1, - "type": "integer" + "maxLength": 200, + "minLength": 1, + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Diffusion sampling step count.", - "title": "Numinferencesteps" + "description": "Provider task ID for polling or recovery.", + "title": "Externaltaskid" }, - "guidanceScale": { + "asset": { "anyOf": [ { - "minimum": 0, - "type": "number" + "$ref": "#/$defs/AssetRef" }, { "type": "null" } ], "default": null, - "description": "Diffusion guidance scale.", - "title": "Guidancescale" - } - }, - "required": [ - "kind", - "size", - "responseFormat", - "outputFormat", - "watermark" - ], - "title": "ImageExecution", - "type": "object" - }, - "ImageGenerationSpec": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "purpose": { - "default": "draft", - "description": "Draft settings or executable generation configuration.", - "enum": [ - "draft", - "generation" - ], - "title": "Purpose", - "type": "string" + "description": "Immutable asset version." }, - "modelConfigId": { + "errorDetails": { "anyOf": [ { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/GenerationFailure" }, { "type": "null" } ], "default": null, - "description": "Model configuration ID from the model catalog or user model selections.", - "title": "Modelconfigid" + "description": "Structured execution failure, if any." }, - "prompt": { - "default": "", - "description": "Generation prompt text.", - "maxLength": 20000, - "title": "Prompt", + "recovery": { + "default": "submit", + "description": "Available recovery strategy for this execution.", + "enum": [ + "submit", + "remote", + "download", + "local", + "review", + "retry", + "done" + ], + "title": "Recovery", "type": "string" }, - "promptContent": { - "anyOf": [ - { - "items": { - "discriminator": { - "mapping": { - "reference": "#/$defs/PromptReference", - "text": "#/$defs/PromptText" - }, - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/$defs/PromptText" - }, - { - "$ref": "#/$defs/PromptReference" - } - ] - }, - "type": "array" + "resumeAllowed": { + "default": false, + "description": "Whether the existing execution can be resumed.", + "title": "Resumeallowed", + "type": "boolean" + }, + "cancelRequested": { + "default": false, + "description": "Whether cancellation was requested locally.", + "title": "Cancelrequested", + "type": "boolean" + }, + "remoteCancellation": { + "default": "not_requested", + "description": "Provider cancellation confirmation state.", + "enum": [ + "not_requested", + "requested", + "confirmed", + "unknown" + ], + "title": "Remotecancellation", + "type": "string" + }, + "originItemId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Structured prompt text and reference tokens.", - "title": "Promptcontent" + "description": "Originating canvas item ID.", + "title": "Originitemid" }, - "currentResultId": { + "previousJobId": { "anyOf": [ { "format": "uuid", @@ -23274,255 +25471,35 @@ } ], "default": null, - "description": "Currently adopted result ID.", - "title": "Currentresultid" - }, - "kind": { - "const": "image", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "parameters": { - "$ref": "#/$defs/ImageParameters", - "description": "Typed generation or editing parameters." - } - }, - "required": [ - "id", - "projectId", - "revision", - "purpose", - "modelConfigId", - "prompt", - "promptContent", - "currentResultId", - "kind", - "parameters" - ], - "title": "ImageGenerationSpec", - "type": "object" - }, - "ImageLayer": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", - "type": "string" - }, - "name": { - "description": "User-visible name.", - "maxLength": 200, - "title": "Name", - "type": "string" - }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" - }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" - }, - "opacity": { - "default": 1, - "description": "Layer opacity from zero to one.", - "maximum": 1, - "minimum": 0, - "title": "Opacity", - "type": "number" - }, - "x": { - "default": 0, - "description": "Horizontal coordinate.", - "title": "X", - "type": "number" - }, - "y": { - "default": 0, - "description": "Vertical coordinate.", - "title": "Y", - "type": "number" - }, - "width": { - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "maximum": 8192, - "title": "Width", - "type": "number" - }, - "height": { - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "maximum": 8192, - "title": "Height", - "type": "number" - }, - "rotation": { - "default": 0, - "description": "Layer rotation in degrees.", - "title": "Rotation", - "type": "number" - }, - "flipX": { - "default": false, - "description": "Whether the image is mirrored horizontally.", - "title": "Flipx", - "type": "boolean" - }, - "flipY": { - "default": false, - "description": "Whether the image is mirrored vertically.", - "title": "Flipy", - "type": "boolean" + "description": "Previous generation attempt ID.", + "title": "Previousjobid" }, - "content": { - "description": "Editable layer content.", - "discriminator": { - "mapping": { - "image": "#/$defs/ImageLayerContent", - "rectangle": "#/$defs/RectangleLayerContent", - "text": "#/$defs/TextLayerContent" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/ImageLayerContent" - }, + "technicalCheck": { + "anyOf": [ { - "$ref": "#/$defs/TextLayerContent" + "$ref": "#/$defs/ResultCheck" }, { - "$ref": "#/$defs/RectangleLayerContent" + "type": "null" } ], - "title": "Content" - }, - "mask": { - "default": [], - "description": "Ordered strokes or encoded selection mask.", - "items": { - "$ref": "#/$defs/MaskStroke" - }, - "maxItems": 2000, - "title": "Mask", - "type": "array" - } - }, - "required": [ - "id", - "name", - "visible", - "locked", - "opacity", - "x", - "y", - "width", - "height", - "rotation", - "flipX", - "flipY", - "content", - "mask" - ], - "title": "ImageLayer", - "type": "object" - }, - "ImageLayerContent": { - "additionalProperties": false, - "properties": { - "width": { - "description": "Width in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Width", - "type": "integer" - }, - "height": { - "description": "Height in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Height", - "type": "integer" - }, - "kind": { - "const": "image", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" - }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." - } - }, - "required": [ - "width", - "height", - "kind", - "asset" - ], - "title": "ImageLayerContent", - "type": "object" - }, - "ImageOutput": { - "additionalProperties": false, - "properties": { - "aspectRatio": { - "description": "Output width-to-height ratio.", - "pattern": "^(?:auto|[1-9]\\d?:[1-9]\\d?)$", - "title": "Aspectratio", - "type": "string" + "default": null, + "description": "Technical validation outcome for the generated asset." }, - "size": { - "description": "Supported image dimensions or size preset.", - "pattern": "^(?:2K|[1-9]\\d{2,3}x[1-9]\\d{2,3})$", - "title": "Size", - "type": "string" - } - }, - "required": [ - "aspectRatio", - "size" - ], - "title": "ImageOutput", - "type": "object" - }, - "ImageParameters": { - "additionalProperties": false, - "properties": { - "quality": { - "default": "auto", - "description": "Image rendering quality; auto leaves the provider request unchanged.", + "adoptionPolicy": { + "default": "if_current", + "description": "Policy for adopting the completed result.", "enum": [ - "auto", - "low", - "medium", - "high" + "if_current", + "candidate_only" ], - "title": "Quality", - "type": "string" - }, - "size": { - "default": "auto", - "description": "Requested image dimensions or size preset.", - "pattern": "^(?:auto|2K|[1-9]\\d{2,3}x[1-9]\\d{2,3})$", - "title": "Size", + "title": "Adoptionpolicy", "type": "string" }, - "aspectRatio": { + "batchId": { "anyOf": [ { - "pattern": "^[1-9]\\d?:[1-9]\\d?$", + "format": "uuid", "type": "string" }, { @@ -23530,103 +25507,227 @@ } ], "default": null, - "description": "Output width-to-height ratio.", - "title": "Aspectratio" + "description": "Generation batch ID.", + "title": "Batchid" }, - "preset": { - "default": "none", - "description": "Selected generation or motion preset.", - "enum": [ - "none", - "product-views" + "showAdditionalResult": { + "default": false, + "description": "Whether to display an additional result item.", + "title": "Showadditionalresult", + "type": "boolean" + }, + "adoptionResultId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } ], - "title": "Preset", - "type": "string" + "default": null, + "description": "Result ID reserved for adoption.", + "title": "Adoptionresultid" }, - "responseFormat": { - "const": "url", - "default": "url", - "description": "Provider response representation.", - "title": "Responseformat", - "type": "string" + "adoptionMaterial": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Material version reserved for adoption." }, - "outputFormat": { - "const": "png", - "default": "png", - "description": "Generated image encoding.", - "title": "Outputformat", - "type": "string" - } - }, - "required": [ - "size", - "aspectRatio", - "preset", - "responseFormat", - "outputFormat" - ], - "title": "ImageParameters", - "type": "object" - }, - "InputRules": { - "additionalProperties": false, - "properties": { - "fractionalDuration": { + "adopted": { "default": false, - "description": "Accept fractional video seconds within each output duration range.", - "title": "Fractionalduration", + "description": "Whether the generated result was adopted.", + "title": "Adopted", "type": "boolean" }, - "profile": { - "description": "Model capability profile.", - "maxLength": 100, - "minLength": 1, - "title": "Profile", - "type": "string" + "adapterParameters": { + "additionalProperties": { + "$ref": "#/$defs/JsonValue" + }, + "description": "Fixed provider-specific execution parameters.", + "title": "Adapterparameters", + "type": "object" }, - "voiceLibrary": { + "agentRunId": { "anyOf": [ { - "$ref": "#/$defs/VoiceLibraryCapabilities" + "format": "uuid", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Supported voice registry and adapter requirements; omitted for unsupported models." + "description": "Agent turn that submitted this job; omitted for jobs not submitted by an Agent.", + "title": "Agentrunid" }, - "maxPromptCharacters": { + "agentCallId": { "anyOf": [ { - "minimum": 1, - "type": "integer" + "maxLength": 512, + "minLength": 1, + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Maximum characters in the final prompt including text references.", - "title": "Maxpromptcharacters" + "description": "Tool call within that turn that submitted this job; the command ID derives from both.", + "title": "Agentcallid" + } + }, + "required": [ + "id", + "projectId", + "revision", + "schemaVersion", + "createdAt", + "inputSnapshot", + "inputFingerprint", + "execution", + "status", + "phase", + "externalTaskId", + "asset", + "errorDetails", + "recovery", + "resumeAllowed", + "cancelRequested", + "remoteCancellation", + "originItemId", + "previousJobId", + "technicalCheck", + "adoptionPolicy", + "batchId", + "showAdditionalResult", + "adoptionResultId", + "adoptionMaterial", + "adopted", + "adapterParameters" + ], + "title": "Job", + "type": "object" + }, + "JobCancelCommand": { + "additionalProperties": false, + "description": "Request cancellation of an existing job.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" }, - "voiceRequired": { + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "job.cancel", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "type": "boolean" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Whether speech generation requires an explicit service voice ID.", - "title": "Voicerequired" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "defaultVoice": { + "payload": { + "$ref": "#/$defs/JobControl", + "description": "Request cancellation of an existing job." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "JobCancelCommand", + "type": "object" + }, + "JobCheckpoint": { + "additionalProperties": false, + "properties": { + "job": { + "$ref": "#/$defs/Job", + "description": "Generation execution record." + } + }, + "required": [ + "job" + ], + "title": "JobCheckpoint", + "type": "object" + }, + "JobCheckpointCommand": { + "additionalProperties": false, + "description": "Persist a job execution checkpoint.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "job.checkpoint", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "pattern": "^[A-Za-z0-9_.-]{1,64}$", + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -23634,294 +25735,356 @@ } ], "default": null, - "description": "Service voice ID applied when a required selection is still empty.", - "title": "Defaultvoice" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "referencesAllowed": { + "payload": { + "$ref": "#/$defs/JobCheckpoint", + "description": "Persist a job execution checkpoint." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "JobCheckpointCommand", + "type": "object" + }, + "JobControl": { + "additionalProperties": false, + "properties": { + "jobId": { + "description": "Generation job ID.", + "format": "uuid", + "title": "Jobid", + "type": "string" + } + }, + "required": [ + "jobId" + ], + "title": "JobControl", + "type": "object" + }, + "JobRecoverCommand": { + "additionalProperties": false, + "description": "Recover an existing job without creating a new attempt.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "job.recover", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "type": "boolean" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Whether references may be attached, including context-only references.", - "title": "Referencesallowed" - }, - "allowedKinds": { - "description": "Accepted reference media kinds.", - "items": { - "enum": [ - "text", - "image", - "video", - "audio" - ], - "type": "string" - }, - "title": "Allowedkinds", - "type": "array" - }, - "maxImages": { - "description": "Maximum reference image count.", - "minimum": 0, - "title": "Maximages", - "type": "integer" - }, - "maxVideos": { - "description": "Maximum reference video count.", - "minimum": 0, - "title": "Maxvideos", - "type": "integer" - }, - "maxAudios": { - "description": "Maximum reference audio count.", - "minimum": 0, - "title": "Maxaudios", - "type": "integer" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "imageBytes": { - "description": "Maximum bytes per reference image.", - "minimum": 0, - "title": "Imagebytes", - "type": "integer" + "payload": { + "$ref": "#/$defs/JobControl", + "description": "Recover an existing job without creating a new attempt." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "JobRecoverCommand", + "type": "object" + }, + "JobStatusQuery": { + "additionalProperties": false, + "properties": { + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" }, - "videoBytes": { - "description": "Maximum bytes per reference video.", - "minimum": 0, - "title": "Videobytes", - "type": "integer" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "requestBytes": { - "description": "Maximum aggregate reference bytes per request.", - "minimum": 0, - "title": "Requestbytes", - "type": "integer" + "type": { + "const": "job.status", + "description": "Read several generation jobs, optionally waiting for terminal states.", + "title": "Type", + "type": "string" }, - "videoModes": { - "description": "Supported video generation modes.", + "objectIds": { + "default": [], + "description": "Generation job IDs; every unfinished project job when empty.", "items": { - "enum": [ - "first_frame", - "reference", - "continuation", - "control" - ], + "format": "uuid", "type": "string" }, - "title": "Videomodes", + "maxItems": 50, + "title": "Objectids", "type": "array" }, - "imageOutputs": { - "default": [], - "description": "Supported image aspect ratios and sizes.", - "items": { - "$ref": "#/$defs/ImageOutput" - }, - "title": "Imageoutputs", - "type": "array" + "waitSeconds": { + "default": 0, + "description": "Wait for terminal states; zero returns immediately.", + "maximum": 300, + "minimum": 0, + "title": "Waitseconds", + "type": "number" }, - "imageQualities": { - "anyOf": [ - { - "items": { - "enum": [ - "auto", - "low", - "medium", - "high" - ], - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } + "until": { + "default": "all", + "description": "Return after every selected job or any job reaches a terminal state.", + "enum": [ + "all", + "any" ], - "default": null, - "description": "Supported image rendering qualities; omitted for models without quality control.", - "title": "Imagequalities" + "title": "Until", + "type": "string" + } + }, + "required": [ + "queryId", + "projectId", + "type", + "objectIds", + "waitSeconds", + "until" + ], + "title": "JobStatusQuery", + "type": "object" + }, + "JsonValue": {}, + "LayerContentBase": { + "additionalProperties": false, + "properties": { + "width": { + "description": "Width in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Width", + "type": "integer" + }, + "height": { + "description": "Height in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Height", + "type": "integer" + } + }, + "required": [ + "width", + "height" + ], + "title": "LayerContentBase", + "type": "object" + }, + "LayerData": { + "additionalProperties": false, + "properties": { + "width": { + "description": "Width in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Width", + "type": "integer" }, - "outputResolutions": { + "height": { + "description": "Height in pixels.", + "maximum": 8192, + "minimum": 1, + "title": "Height", + "type": "integer" + }, + "background": { + "default": "transparent", + "description": "Composition background color.", + "pattern": "^(transparent|#[0-9a-fA-F]{6})$", + "title": "Background", + "type": "string" + }, + "layers": { "default": [], - "description": "Supported output resolution values.", + "description": "Ordered editable image layers.", "items": { - "type": "string" + "$ref": "#/$defs/ImageLayer" }, - "title": "Outputresolutions", + "maxItems": 40, + "title": "Layers", "type": "array" + } + }, + "required": [ + "width", + "height", + "background", + "layers" + ], + "title": "LayerData", + "type": "object" + }, + "LayerDocument": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - "referenceImageResolutions": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Supported reference image resolution values.", - "title": "Referenceimageresolutions" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "videoCapabilities": { - "anyOf": [ - { - "$ref": "#/$defs/VideoCapabilities" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Supported video generation capabilities." + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "aspectRatios": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Supported explicit video output aspect ratios; unset uses existing protocol rules.", - "title": "Aspectratios" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - "frameRoles": { - "anyOf": [ - { - "items": { - "enum": [ - "first_frame", - "last_frame" - ], - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Supported explicit image frame slots.", - "title": "Frameroles" + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" }, - "audioReferenceStandalone": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Whether audio-only references are supported.", - "title": "Audioreferencestandalone" + "kind": { + "const": "layers", + "description": "Business object or media type.", + "title": "Kind", + "type": "string" }, - "generateAudioOptions": { - "anyOf": [ - { - "items": { - "type": "boolean" - }, - "maxItems": 2, - "minItems": 1, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Allowed generateAudio values; omitted in legacy execution snapshots.", - "title": "Generateaudiooptions" + "data": { + "$ref": "#/$defs/LayerData", + "description": "Typed editable document contents." } }, "required": [ - "profile", - "allowedKinds", - "maxImages", - "maxVideos", - "maxAudios", - "imageBytes", - "videoBytes", - "requestBytes", - "videoModes", - "imageOutputs", - "outputResolutions", - "referenceImageResolutions", - "videoCapabilities" + "id", + "projectId", + "revision", + "schemaVersion", + "inputConnections", + "kind", + "data" ], - "title": "InputRules", + "title": "LayerDocument", "type": "object" }, - "InputSnapshot": { + "MaskStroke": { "additionalProperties": false, - "description": "Only creative inputs; layout, selection and credentials are excluded.", "properties": { - "spec": { - "description": "Generation configuration for this operation.", - "discriminator": { - "mapping": { - "audio": "#/$defs/AudioGenerationSpec", - "image": "#/$defs/ImageGenerationSpec", - "text": "#/$defs/TextGenerationSpec", - "video": "#/$defs/VideoGenerationSpec" - }, - "propertyName": "kind" - }, - "oneOf": [ - { - "$ref": "#/$defs/TextGenerationSpec" - }, - { - "$ref": "#/$defs/ImageGenerationSpec" - }, - { - "$ref": "#/$defs/VideoGenerationSpec" - }, - { - "$ref": "#/$defs/AudioGenerationSpec" - } + "mode": { + "description": "Operation mode within this contract variant.", + "enum": [ + "erase", + "restore" ], - "title": "Spec" + "title": "Mode", + "type": "string" }, - "model": { - "$ref": "#/$defs/ModelSnapshot", - "description": "Fixed model configuration for this execution." + "size": { + "description": "Mask brush diameter in pixels.", + "maximum": 4096, + "minimum": 1, + "title": "Size", + "type": "number" + }, + "points": { + "description": "Ordered mask stroke coordinates.", + "items": { + "$ref": "#/$defs/Point" + }, + "maxItems": 200000, + "minItems": 1, + "title": "Points", + "type": "array" + } + }, + "required": [ + "mode", + "size", + "points" + ], + "title": "MaskStroke", + "type": "object" + }, + "MaterialBinding": { + "additionalProperties": false, + "description": "Displays a registered project asset through objectRef.", + "properties": { + "role": { + "const": "material", + "description": "Business role of this binding or reference.", + "title": "Role", + "type": "string" }, - "references": { - "default": [], - "description": "Ordered generation reference bindings.", - "items": { - "$ref": "#/$defs/ResolvedReference" - }, - "title": "References", - "type": "array" + "objectRef": { + "$ref": "#/$defs/AssetRef", + "description": "Stable reference to the bound business object." } }, "required": [ - "spec", - "model", - "references" + "role", + "objectRef" ], - "title": "InputSnapshot", + "title": "MaterialBinding", "type": "object" }, - "Job": { + "MediaCanvasItem": { "additionalProperties": false, "properties": { "id": { @@ -23943,17 +26106,65 @@ "title": "Revision", "type": "integer" }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", + "kind": { + "description": "Business object or media type.", + "enum": [ + "text", + "image", + "video", + "audio", + "file", + "group", + "timeline", + "subject", + "stack", + "tool", + "external" + ], + "title": "Kind", + "type": "string" + }, + "title": { + "default": "", + "description": "User-visible title.", + "maxLength": 255, + "title": "Title", + "type": "string" + }, + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." + }, + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "title": "Width", + "type": "number" + }, + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "title": "Height", + "type": "number" + }, + "zIndex": { + "default": 0, + "description": "Canvas stacking order.", + "title": "Zindex", "type": "integer" }, - "createdAt": { + "locked": { + "default": false, + "description": "Whether edits to this object are blocked.", + "title": "Locked", + "type": "boolean" + }, + "color": { "anyOf": [ { - "format": "date-time", + "pattern": "^(#[0-9a-fA-F]{6})?$", "type": "string" }, { @@ -23961,1274 +26172,1248 @@ } ], "default": null, - "description": "Execution acceptance timestamp.", - "title": "Createdat" + "description": "Group background color in #RRGGBB format.", + "title": "Color" }, - "inputSnapshot": { - "$ref": "#/$defs/InputSnapshot", - "description": "Fixed generation inputs accepted for this execution." + "visible": { + "default": true, + "description": "Whether this object is displayed.", + "title": "Visible", + "type": "boolean" }, - "inputFingerprint": { - "description": "Fingerprint of the fixed execution input.", - "pattern": "^[0-9a-f]{64}$", - "title": "Inputfingerprint", - "type": "string" + "parentId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Parent canvas group ID, or null for the root.", + "title": "Parentid" }, - "execution": { - "description": "Fixed effective parameters submitted to the provider.", + "tags": { + "default": [], + "description": "User-defined search tags.", + "items": { + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "binding": { + "description": "Business object displayed by this canvas item.", "discriminator": { "mapping": { - "audio": "#/$defs/AudioExecution", - "image": "#/$defs/ImageExecution", - "text": "#/$defs/TextExecution", - "video": "#/$defs/VideoExecution" + "empty": "#/$defs/EmptyBinding", + "generation": "#/$defs/GenerationBinding", + "material": "#/$defs/MaterialBinding" }, - "propertyName": "kind" + "propertyName": "role" }, "oneOf": [ { - "$ref": "#/$defs/TextExecution" - }, - { - "$ref": "#/$defs/ImageExecution" + "$ref": "#/$defs/EmptyBinding" }, { - "$ref": "#/$defs/VideoExecution" + "$ref": "#/$defs/MaterialBinding" }, { - "$ref": "#/$defs/AudioExecution" + "$ref": "#/$defs/GenerationBinding" } ], - "title": "Execution" - }, - "status": { - "default": "queued", - "description": "Current operation lifecycle state.", - "enum": [ - "queued", - "running", - "succeeded", - "failed", - "cancelled", - "interrupted" - ], - "title": "Status", - "type": "string" + "title": "Binding" }, - "phase": { - "default": "queued", - "description": "Current execution phase.", + "editors": { + "default": [], + "description": "Attached editable documents.", + "items": { + "$ref": "#/$defs/EditorRef" + }, + "title": "Editors", + "type": "array" + } + }, + "required": [ + "id", + "projectId", + "revision", + "kind", + "title", + "position", + "width", + "height", + "zIndex", + "locked", + "visible", + "parentId", + "tags", + "binding", + "editors" + ], + "title": "MediaCanvasItem", + "type": "object" + }, + "MediaEditData": { + "additionalProperties": false, + "properties": { + "tool": { + "description": "Registered editing tool name.", "enum": [ - "queued", - "prepare", - "submit", - "poll", - "download", - "check", - "save", - "adopt", - "complete" + "layers", + "crop", + "smart-edit", + "outpaint", + "cutout", + "inpainting-remove", + "image-hd", + "view-control", + "lighting", + "layer-decompose", + "panorama", + "product-replacement", + "multi-size", + "dynamic-poster", + "ecommerce-main", + "image-presets", + "grid-split", + "composition", + "annotation", + "video-edit", + "video-extend", + "video-partial-reshoot", + "video-upscale", + "video-frame-interpolation", + "video-depth-capture", + "video-subtitle-erasure", + "video-matting", + "video-crop", + "video-translation", + "video-mask-composite", + "extract-audio", + "audio-separation", + "video-trim", + "audio-trim", + "video-frame-capture", + "director-stage" ], - "title": "Phase", + "title": "Tool", "type": "string" }, - "externalTaskId": { - "anyOf": [ - { - "maxLength": 200, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provider task ID for polling or recovery.", - "title": "Externaltaskid" + "sources": { + "default": [], + "description": "Ordered source asset versions.", + "items": { + "$ref": "#/$defs/AssetRef" + }, + "title": "Sources", + "type": "array" }, - "asset": { - "anyOf": [ - { - "$ref": "#/$defs/AssetRef" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Immutable asset version." + "sourceItems": { + "default": [], + "description": "Source canvas item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "title": "Sourceitems", + "type": "array" }, - "errorDetails": { + "parameters": { + "additionalProperties": { + "anyOf": [ + { + "maxLength": 100000, + "type": "string" + }, + { + "type": "boolean" + }, + { + "type": "integer" + }, + { + "type": "number" + } + ] + }, + "description": "Typed generation or editing parameters.", + "maxProperties": 100, + "propertyNames": { + "maxLength": 100, + "minLength": 1 + }, + "title": "Parameters", + "type": "object" + }, + "selection": { "anyOf": [ { - "$ref": "#/$defs/GenerationFailure" + "$ref": "#/$defs/ToolSelection" }, { "type": "null" } ], "default": null, - "description": "Structured execution failure, if any." + "description": "Saved source selection for this edit." + } + }, + "required": [ + "tool", + "sources", + "sourceItems", + "parameters", + "selection" + ], + "title": "MediaEditData", + "type": "object" + }, + "MediaEditDocument": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", + "type": "string" }, - "recovery": { - "default": "submit", - "description": "Available recovery strategy for this execution.", - "enum": [ - "submit", - "remote", - "download", - "local", - "review", - "retry", - "done" - ], - "title": "Recovery", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "resumeAllowed": { - "default": false, - "description": "Whether the existing execution can be resumed.", - "title": "Resumeallowed", - "type": "boolean" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "cancelRequested": { - "default": false, - "description": "Whether cancellation was requested locally.", - "title": "Cancelrequested", - "type": "boolean" + "schemaVersion": { + "const": 1, + "default": 1, + "description": "Record schema version.", + "title": "Schemaversion", + "type": "integer" }, - "remoteCancellation": { - "default": "not_requested", - "description": "Provider cancellation confirmation state.", - "enum": [ - "not_requested", - "requested", - "confirmed", - "unknown" - ], - "title": "Remotecancellation", + "inputConnections": { + "default": [], + "description": "Persisted connections to source assets.", + "items": { + "$ref": "#/$defs/EditorInputConnection" + }, + "title": "Inputconnections", + "type": "array" + }, + "kind": { + "const": "media_edit", + "description": "Business object or media type.", + "title": "Kind", "type": "string" }, - "originItemId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Originating canvas item ID.", - "title": "Originitemid" + "data": { + "$ref": "#/$defs/MediaEditData", + "description": "Typed editable document contents." + } + }, + "required": [ + "id", + "projectId", + "revision", + "schemaVersion", + "inputConnections", + "kind", + "data" + ], + "title": "MediaEditDocument", + "type": "object" + }, + "MediaMetadata": { + "additionalProperties": false, + "properties": { + "mimeType": { + "description": "Verified media MIME type.", + "maxLength": 255, + "minLength": 1, + "title": "Mimetype", + "type": "string" }, - "previousJobId": { + "size": { + "description": "Content size in bytes.", + "minimum": 0, + "title": "Size", + "type": "integer" + }, + "width": { "anyOf": [ { - "format": "uuid", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Previous generation attempt ID.", - "title": "Previousjobid" + "description": "Width in pixels.", + "title": "Width" }, - "technicalCheck": { + "height": { "anyOf": [ { - "$ref": "#/$defs/ResultCheck" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Technical validation outcome for the generated asset." - }, - "adoptionPolicy": { - "default": "if_current", - "description": "Policy for adopting the completed result.", - "enum": [ - "if_current", - "candidate_only" - ], - "title": "Adoptionpolicy", - "type": "string" + "description": "Height in pixels.", + "title": "Height" }, - "batchId": { + "durationSeconds": { "anyOf": [ { - "format": "uuid", - "type": "string" + "exclusiveMinimum": 0, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Generation batch ID.", - "title": "Batchid" - }, - "showAdditionalResult": { - "default": false, - "description": "Whether to display an additional result item.", - "title": "Showadditionalresult", - "type": "boolean" + "description": "Duration in seconds.", + "title": "Durationseconds" }, - "adoptionResultId": { + "frameRate": { "anyOf": [ { - "format": "uuid", - "type": "string" + "exclusiveMinimum": 0, + "type": "number" }, { "type": "null" } ], "default": null, - "description": "Result ID reserved for adoption.", - "title": "Adoptionresultid" + "description": "Video frames per second.", + "title": "Framerate" }, - "adoptionMaterial": { + "hasAudio": { "anyOf": [ { - "$ref": "#/$defs/AssetRef" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Material version reserved for adoption." - }, - "adopted": { - "default": false, - "description": "Whether the generated result was adopted.", - "title": "Adopted", - "type": "boolean" - }, - "adapterParameters": { - "additionalProperties": { - "$ref": "#/$defs/JsonValue" - }, - "description": "Fixed provider-specific execution parameters.", - "title": "Adapterparameters", - "type": "object" + "description": "Whether the media contains an audio stream.", + "title": "Hasaudio" }, - "agentRunId": { + "sampleRate": { "anyOf": [ { - "format": "uuid", - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Agent turn that submitted this job; omitted for jobs not submitted by an Agent.", - "title": "Agentrunid" + "description": "Audio samples per second.", + "title": "Samplerate" }, - "agentCallId": { + "channels": { "anyOf": [ { - "maxLength": 512, - "minLength": 1, - "type": "string" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Tool call within that turn that submitted this job; the command ID derives from both.", - "title": "Agentcallid" + "description": "Audio channel count.", + "title": "Channels" } }, "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "createdAt", - "inputSnapshot", - "inputFingerprint", - "execution", - "status", - "phase", - "externalTaskId", - "asset", - "errorDetails", - "recovery", - "resumeAllowed", - "cancelRequested", - "remoteCancellation", - "originItemId", - "previousJobId", - "technicalCheck", - "adoptionPolicy", - "batchId", - "showAdditionalResult", - "adoptionResultId", - "adoptionMaterial", - "adopted", - "adapterParameters" + "mimeType", + "size", + "width", + "height", + "durationSeconds", + "frameRate", + "hasAudio", + "sampleRate", + "channels" ], - "title": "Job", + "title": "MediaMetadata", "type": "object" }, - "JobCancelCommand": { + "MediaPublicationOutput": { "additionalProperties": false, - "description": "Request cancellation of an existing job.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", + "itemId": { + "description": "Canvas item ID.", "format": "uuid", - "title": "Commandid", + "title": "Itemid", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" + "asset": { + "$ref": "#/$defs/AssetRef", + "description": "Immutable asset version." }, - "type": { - "const": "job.cancel", - "description": "Command discriminator.", - "title": "Type", + "title": { + "description": "User-visible title.", + "maxLength": 255, + "minLength": 1, + "title": "Title", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "position": { + "$ref": "#/$defs/Point", + "description": "Position in the owning canvas or stage." }, - "expectedPreview": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "width": { + "default": 352, + "description": "Width in pixels.", + "exclusiveMinimum": 0, + "maximum": 10000, + "title": "Width", + "type": "number" }, - "payload": { - "$ref": "#/$defs/JobControl", - "description": "Request cancellation of an existing job." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "JobCancelCommand", - "type": "object" - }, - "JobCheckpoint": { - "additionalProperties": false, - "properties": { - "job": { - "$ref": "#/$defs/Job", - "description": "Generation execution record." + "height": { + "default": 198, + "description": "Height in pixels.", + "exclusiveMinimum": 0, + "maximum": 10000, + "title": "Height", + "type": "number" } }, "required": [ - "job" + "itemId", + "asset", + "title", + "position", + "width", + "height" ], - "title": "JobCheckpoint", + "title": "MediaPublicationOutput", "type": "object" }, - "JobCheckpointCommand": { + "ModelAvailability": { "additionalProperties": false, - "description": "Persist a job execution checkpoint.", "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "job.checkpoint", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { + "configId": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", + "format": "uuid", "type": "string" }, { "type": "null" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Saved model identity; null for an unsaved draft.", + "title": "Configid" }, - "payload": { - "$ref": "#/$defs/JobCheckpoint", - "description": "Persist a job execution checkpoint." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "JobCheckpointCommand", - "type": "object" - }, - "JobControl": { - "additionalProperties": false, - "properties": { - "jobId": { - "description": "Generation job ID.", - "format": "uuid", - "title": "Jobid", - "type": "string" - } - }, - "required": [ - "jobId" - ], - "title": "JobControl", - "type": "object" - }, - "JobRecoverCommand": { - "additionalProperties": false, - "description": "Recover an existing job without creating a new attempt.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", + "modelId": { + "description": "Exact remote model identifier requested.", + "title": "Modelid", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "identity": { + "description": "Opaque identity of the checked connection and model.", + "title": "Identity", "type": "string" }, - "type": { - "const": "job.recover", - "description": "Command discriminator.", - "title": "Type", + "autoCheck": { + "description": "Effective service automatic-check preference.", + "title": "Autocheck", + "type": "boolean" + }, + "status": { + "description": "Summary across the configured adapter operations.", + "enum": [ + "available", + "unavailable", + "unknown" + ], + "title": "Status", "type": "string" }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" + "reasonCode": { + "description": "Stable, localizable summary reason.", + "title": "Reasoncode", + "type": "string" }, - "expectedPreview": { + "checkedAt": { "anyOf": [ { - "pattern": "^[0-9a-f]{64}$", - "type": "string" + "type": "integer" }, { "type": "null" } ], - "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Observation completion time in Unix milliseconds.", + "title": "Checkedat" }, - "payload": { - "$ref": "#/$defs/JobControl", - "description": "Recover an existing job without creating a new attempt." + "expiresAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Earliest operation expiry in Unix milliseconds.", + "title": "Expiresat" + }, + "revision": { + "description": "Projection version; changes on observations, identity changes and expiration.", + "title": "Revision", + "type": "string" + }, + "operations": { + "description": "Exact operations consumed by the configured adapter.", + "items": { + "$ref": "#/$defs/OperationAvailability" + }, + "title": "Operations", + "type": "array" } }, "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" + "configId", + "modelId", + "identity", + "autoCheck", + "status", + "reasonCode", + "checkedAt", + "expiresAt", + "revision", + "operations" ], - "title": "JobRecoverCommand", + "title": "ModelAvailability", "type": "object" }, - "JobStatusQuery": { + "ModelConfigPublic": { "additionalProperties": false, + "description": "Application-level, never embedded in an editable project's credential data.", "properties": { - "queryId": { - "description": "Caller-supplied query ID.", - "format": "uuid", - "title": "Queryid", + "kind": { + "description": "Business object or media type.", + "enum": [ + "agent", + "image", + "video", + "audio", + "vision" + ], + "title": "Kind", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "url": { + "description": "Provider API base URL.", + "maxLength": 2048, + "minLength": 1, + "title": "Url", "type": "string" }, - "type": { - "const": "job.status", - "description": "Read several generation jobs, optionally waiting for terminal states.", - "title": "Type", + "modelId": { + "description": "Provider-native model identifier.", + "maxLength": 200, + "minLength": 1, + "title": "Modelid", "type": "string" }, - "objectIds": { - "default": [], - "description": "Generation job IDs; every unfinished project job when empty.", - "items": { - "format": "uuid", - "type": "string" - }, - "maxItems": 50, - "title": "Objectids", - "type": "array" + "connectionType": { + "description": "Hosted or local model connection type.", + "enum": [ + "api", + "self_hosted" + ], + "title": "Connectiontype", + "type": "string" }, - "waitSeconds": { - "default": 0, - "description": "Wait for terminal states; zero returns immediately.", - "maximum": 300, - "minimum": 0, - "title": "Waitseconds", - "type": "number" + "protocol": { + "description": "Provider wire protocol.", + "enum": [ + "openai", + "volcengine", + "bigmodel_video", + "kling_video", + "minimax_video_v2", + "vllm_omni", + "vllm_omni_segmentation", + "vllm_omni_music", + "vllm_omni_depth", + "vllm_omni_score" + ], + "title": "Protocol", + "type": "string" }, - "until": { - "default": "all", - "description": "Return after every selected job or any job reaches a terminal state.", + "authMode": { + "description": "Authentication mode for the provider connection.", "enum": [ - "all", - "any" + "none", + "bearer" ], - "title": "Until", + "title": "Authmode", "type": "string" - } - }, - "required": [ - "queryId", - "projectId", - "type", - "objectIds", - "waitSeconds", - "until" - ], - "title": "JobStatusQuery", - "type": "object" - }, - "JsonValue": {}, - "LayerContentBase": { - "additionalProperties": false, - "properties": { - "width": { - "description": "Width in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Width", - "type": "integer" }, - "height": { - "description": "Height in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Height", - "type": "integer" - } - }, - "required": [ - "width", - "height" - ], - "title": "LayerContentBase", - "type": "object" - }, - "LayerData": { - "additionalProperties": false, - "properties": { - "width": { - "description": "Width in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Width", - "type": "integer" + "proxyMode": { + "default": "system", + "description": "Use the system proxy or connect directly to the model service.", + "enum": [ + "system", + "direct" + ], + "title": "Proxymode", + "type": "string" }, - "height": { - "description": "Height in pixels.", - "maximum": 8192, - "minimum": 1, - "title": "Height", - "type": "integer" + "inputModalities": { + "anyOf": [ + { + "items": { + "enum": [ + "text", + "image" + ], + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported model input media kinds.", + "title": "Inputmodalities" }, - "background": { - "default": "transparent", - "description": "Composition background color.", - "pattern": "^(transparent|#[0-9a-fA-F]{6})$", - "title": "Background", + "videoAdapter": { + "default": "auto", + "description": "Provider-specific video adapter.", + "enum": [ + "auto", + "fasth3", + "fasth3_dual", + "minimax_h3", + "standard" + ], + "title": "Videoadapter", "type": "string" }, - "layers": { - "default": [], - "description": "Ordered editable image layers.", - "items": { - "$ref": "#/$defs/ImageLayer" - }, - "maxItems": 40, - "title": "Layers", - "type": "array" - } - }, - "required": [ - "width", - "height", - "background", - "layers" - ], - "title": "LayerData", - "type": "object" - }, - "LayerDocument": { - "additionalProperties": false, - "properties": { + "videoCapabilities": { + "anyOf": [ + { + "$ref": "#/$defs/VideoCapabilities" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported video generation capabilities." + }, "id": { - "description": "Stable identity of this project-owned object.", + "description": "Stable object ID.", "format": "uuid", "title": "Id", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" - }, - "inputConnections": { - "default": [], - "description": "Persisted connections to source assets.", - "items": { - "$ref": "#/$defs/EditorInputConnection" - }, - "title": "Inputconnections", - "type": "array" + "inputRules": { + "$ref": "#/$defs/InputRules", + "description": "Verified model input limits and output choices." }, - "kind": { - "const": "layers", - "description": "Business object or media type.", - "title": "Kind", - "type": "string" + "capabilityAutoCheck": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Service preference; omitted defaults to automatic for self-hosted connections.", + "title": "Capabilityautocheck" }, - "data": { - "$ref": "#/$defs/LayerData", - "description": "Typed editable document contents." + "availability": { + "anyOf": [ + { + "$ref": "#/$defs/ModelAvailability" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Ephemeral observation, never persisted in project snapshots." } }, "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "inputConnections", "kind", - "data" + "url", + "modelId", + "connectionType", + "protocol", + "authMode", + "proxyMode", + "inputModalities", + "videoAdapter", + "videoCapabilities", + "id", + "inputRules" ], - "title": "LayerDocument", + "title": "ModelConfigPublic", "type": "object" }, - "MaskStroke": { + "ModelConfigWrite": { "additionalProperties": false, + "description": "Only the model-settings write boundary accepts a credential.", "properties": { - "mode": { - "description": "Operation mode within this contract variant.", + "kind": { + "description": "Business object or media type.", "enum": [ - "erase", - "restore" + "agent", + "image", + "video", + "audio", + "vision" ], - "title": "Mode", + "title": "Kind", "type": "string" }, - "size": { - "description": "Mask brush diameter in pixels.", - "maximum": 4096, - "minimum": 1, - "title": "Size", - "type": "number" - }, - "points": { - "description": "Ordered mask stroke coordinates.", - "items": { - "$ref": "#/$defs/Point" - }, - "maxItems": 200000, - "minItems": 1, - "title": "Points", - "type": "array" - } - }, - "required": [ - "mode", - "size", - "points" - ], - "title": "MaskStroke", - "type": "object" - }, - "MaterialBinding": { - "additionalProperties": false, - "description": "Displays a registered project asset through objectRef.", - "properties": { - "role": { - "const": "material", - "description": "Business role of this binding or reference.", - "title": "Role", + "url": { + "description": "Provider API base URL.", + "maxLength": 2048, + "minLength": 1, + "title": "Url", "type": "string" }, - "objectRef": { - "$ref": "#/$defs/AssetRef", - "description": "Stable reference to the bound business object." - } - }, - "required": [ - "role", - "objectRef" - ], - "title": "MaterialBinding", - "type": "object" - }, - "MediaCanvasItem": { - "additionalProperties": false, - "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", + "modelId": { + "description": "Provider-native model identifier.", + "maxLength": 200, + "minLength": 1, + "title": "Modelid", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "connectionType": { + "description": "Hosted or local model connection type.", + "enum": [ + "api", + "self_hosted" + ], + "title": "Connectiontype", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "kind": { - "description": "Business object or media type.", + "protocol": { + "description": "Provider wire protocol.", "enum": [ - "text", - "image", - "video", - "audio", - "file", - "group", - "timeline", - "subject", - "stack", - "tool", - "external" + "openai", + "volcengine", + "bigmodel_video", + "kling_video", + "minimax_video_v2", + "vllm_omni", + "vllm_omni_segmentation", + "vllm_omni_music", + "vllm_omni_depth", + "vllm_omni_score" ], - "title": "Kind", + "title": "Protocol", "type": "string" }, - "title": { - "default": "", - "description": "User-visible title.", - "maxLength": 255, - "title": "Title", + "authMode": { + "description": "Authentication mode for the provider connection.", + "enum": [ + "none", + "bearer" + ], + "title": "Authmode", "type": "string" }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "title": "Height", - "type": "number" - }, - "zIndex": { - "default": 0, - "description": "Canvas stacking order.", - "title": "Zindex", - "type": "integer" - }, - "locked": { - "default": false, - "description": "Whether edits to this object are blocked.", - "title": "Locked", - "type": "boolean" + "proxyMode": { + "default": "system", + "description": "Use the system proxy or connect directly to the model service.", + "enum": [ + "system", + "direct" + ], + "title": "Proxymode", + "type": "string" }, - "color": { + "inputModalities": { "anyOf": [ { - "pattern": "^(#[0-9a-fA-F]{6})?$", - "type": "string" + "items": { + "enum": [ + "text", + "image" + ], + "type": "string" + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Group background color in #RRGGBB format.", - "title": "Color" + "description": "Supported model input media kinds.", + "title": "Inputmodalities" }, - "visible": { - "default": true, - "description": "Whether this object is displayed.", - "title": "Visible", - "type": "boolean" + "videoAdapter": { + "default": "auto", + "description": "Provider-specific video adapter.", + "enum": [ + "auto", + "fasth3", + "fasth3_dual", + "minimax_h3", + "standard" + ], + "title": "Videoadapter", + "type": "string" }, - "parentId": { + "videoCapabilities": { "anyOf": [ { - "format": "uuid", - "type": "string" + "$ref": "#/$defs/VideoCapabilities" }, { "type": "null" } ], "default": null, - "description": "Parent canvas group ID, or null for the root.", - "title": "Parentid" - }, - "tags": { - "default": [], - "description": "User-defined search tags.", - "items": { - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "type": "string" - }, - "title": "Tags", - "type": "array" + "description": "Supported video generation capabilities." }, - "binding": { - "description": "Business object displayed by this canvas item.", - "discriminator": { - "mapping": { - "empty": "#/$defs/EmptyBinding", - "generation": "#/$defs/GenerationBinding", - "material": "#/$defs/MaterialBinding" - }, - "propertyName": "role" - }, - "oneOf": [ - { - "$ref": "#/$defs/EmptyBinding" - }, - { - "$ref": "#/$defs/MaterialBinding" - }, + "apiKey": { + "anyOf": [ { - "$ref": "#/$defs/GenerationBinding" - } - ], - "title": "Binding" - }, - "editors": { - "default": [], - "description": "Attached editable documents.", - "items": { - "$ref": "#/$defs/EditorRef" - }, - "title": "Editors", - "type": "array" - } - }, - "required": [ - "id", - "projectId", - "revision", - "kind", - "title", - "position", - "width", - "height", - "zIndex", - "locked", - "visible", - "parentId", - "tags", - "binding", - "editors" - ], - "title": "MediaCanvasItem", - "type": "object" - }, - "MediaEditData": { - "additionalProperties": false, - "properties": { - "tool": { - "description": "Registered editing tool name.", - "enum": [ - "layers", - "crop", - "smart-edit", - "outpaint", - "cutout", - "inpainting-remove", - "image-hd", - "view-control", - "lighting", - "layer-decompose", - "panorama", - "product-replacement", - "multi-size", - "dynamic-poster", - "ecommerce-main", - "image-presets", - "grid-split", - "composition", - "annotation", - "video-edit", - "video-extend", - "video-partial-reshoot", - "video-upscale", - "video-frame-interpolation", - "video-depth-capture", - "video-subtitle-erasure", - "video-matting", - "video-crop", - "video-translation", - "video-mask-composite", - "extract-audio", - "audio-separation", - "video-trim", - "audio-trim", - "video-frame-capture", - "director-stage" - ], - "title": "Tool", - "type": "string" - }, - "sources": { - "default": [], - "description": "Ordered source asset versions.", - "items": { - "$ref": "#/$defs/AssetRef" - }, - "title": "Sources", - "type": "array" - }, - "sourceItems": { - "default": [], - "description": "Source canvas item IDs.", - "items": { - "format": "uuid", - "type": "string" - }, - "title": "Sourceitems", - "type": "array" - }, - "parameters": { - "additionalProperties": { - "anyOf": [ - { - "maxLength": 100000, - "type": "string" - }, - { - "type": "boolean" - }, - { - "type": "integer" - }, - { - "type": "number" - } - ] - }, - "description": "Typed generation or editing parameters.", - "maxProperties": 100, - "propertyNames": { - "maxLength": 100, - "minLength": 1 - }, - "title": "Parameters", - "type": "object" + "format": "password", + "maxLength": 8192, + "type": "string", + "writeOnly": true + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provider credential; omitted from public model records.", + "title": "Apikey" }, - "selection": { + "capabilityAutoCheck": { "anyOf": [ { - "$ref": "#/$defs/ToolSelection" + "type": "boolean" }, { "type": "null" } ], "default": null, - "description": "Saved source selection for this edit." + "description": "Service automatic-check override; omission preserves the existing preference.", + "title": "Capabilityautocheck" } }, "required": [ - "tool", - "sources", - "sourceItems", - "parameters", - "selection" + "kind", + "url", + "modelId", + "connectionType", + "protocol", + "authMode", + "proxyMode", + "inputModalities", + "videoAdapter", + "videoCapabilities", + "apiKey" ], - "title": "MediaEditData", + "title": "ModelConfigWrite", "type": "object" }, - "MediaEditDocument": { + "ModelConnection": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable identity of this project-owned object.", - "format": "uuid", - "title": "Id", + "kind": { + "description": "Business object or media type.", + "enum": [ + "agent", + "image", + "video", + "audio", + "vision" + ], + "title": "Kind", "type": "string" }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", + "url": { + "description": "Provider API base URL.", + "maxLength": 2048, + "minLength": 1, + "title": "Url", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "modelId": { + "description": "Provider-native model identifier.", + "maxLength": 200, + "minLength": 1, + "title": "Modelid", + "type": "string" }, - "schemaVersion": { - "const": 1, - "default": 1, - "description": "Record schema version.", - "title": "Schemaversion", - "type": "integer" + "connectionType": { + "description": "Hosted or local model connection type.", + "enum": [ + "api", + "self_hosted" + ], + "title": "Connectiontype", + "type": "string" }, - "inputConnections": { - "default": [], - "description": "Persisted connections to source assets.", - "items": { - "$ref": "#/$defs/EditorInputConnection" - }, - "title": "Inputconnections", - "type": "array" + "protocol": { + "description": "Provider wire protocol.", + "enum": [ + "openai", + "volcengine", + "bigmodel_video", + "kling_video", + "minimax_video_v2", + "vllm_omni", + "vllm_omni_segmentation", + "vllm_omni_music", + "vllm_omni_depth", + "vllm_omni_score" + ], + "title": "Protocol", + "type": "string" }, - "kind": { - "const": "media_edit", - "description": "Business object or media type.", - "title": "Kind", + "authMode": { + "description": "Authentication mode for the provider connection.", + "enum": [ + "none", + "bearer" + ], + "title": "Authmode", "type": "string" }, - "data": { - "$ref": "#/$defs/MediaEditData", - "description": "Typed editable document contents." + "proxyMode": { + "default": "system", + "description": "Use the system proxy or connect directly to the model service.", + "enum": [ + "system", + "direct" + ], + "title": "Proxymode", + "type": "string" + }, + "inputModalities": { + "anyOf": [ + { + "items": { + "enum": [ + "text", + "image" + ], + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported model input media kinds.", + "title": "Inputmodalities" + }, + "videoAdapter": { + "default": "auto", + "description": "Provider-specific video adapter.", + "enum": [ + "auto", + "fasth3", + "fasth3_dual", + "minimax_h3", + "standard" + ], + "title": "Videoadapter", + "type": "string" + }, + "videoCapabilities": { + "anyOf": [ + { + "$ref": "#/$defs/VideoCapabilities" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Supported video generation capabilities." } }, "required": [ - "id", - "projectId", - "revision", - "schemaVersion", - "inputConnections", "kind", - "data" + "url", + "modelId", + "connectionType", + "protocol", + "authMode", + "proxyMode", + "inputModalities", + "videoAdapter", + "videoCapabilities" ], - "title": "MediaEditDocument", + "title": "ModelConnection", "type": "object" }, - "MediaMetadata": { + "ModelSnapshot": { "additionalProperties": false, "properties": { - "mimeType": { - "description": "Verified media MIME type.", - "maxLength": 255, + "modelConfigId": { + "description": "Model configuration ID from the model catalog or user model selections.", + "format": "uuid", + "title": "Modelconfigid", + "type": "string" + }, + "kind": { + "description": "Business object or media type.", + "enum": [ + "agent", + "image", + "video", + "audio", + "vision" + ], + "title": "Kind", + "type": "string" + }, + "modelId": { + "description": "Provider-native model identifier.", + "maxLength": 200, "minLength": 1, - "title": "Mimetype", + "title": "Modelid", "type": "string" }, - "size": { - "description": "Content size in bytes.", - "minimum": 0, - "title": "Size", - "type": "integer" + "url": { + "description": "Provider API base URL.", + "maxLength": 2048, + "minLength": 1, + "title": "Url", + "type": "string" }, - "width": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } + "protocol": { + "description": "Provider wire protocol.", + "enum": [ + "openai", + "volcengine", + "bigmodel_video", + "kling_video", + "minimax_video_v2", + "vllm_omni", + "vllm_omni_segmentation", + "vllm_omni_music", + "vllm_omni_depth", + "vllm_omni_score" ], - "default": null, - "description": "Width in pixels.", - "title": "Width" + "title": "Protocol", + "type": "string" }, - "height": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } + "connectionType": { + "description": "Hosted or local model connection type.", + "enum": [ + "api", + "self_hosted" ], - "default": null, - "description": "Height in pixels.", - "title": "Height" + "title": "Connectiontype", + "type": "string" }, - "durationSeconds": { - "anyOf": [ - { - "exclusiveMinimum": 0, - "type": "number" - }, - { - "type": "null" - } + "proxyMode": { + "default": "system", + "description": "Network routing selected when the job was accepted.", + "enum": [ + "system", + "direct" ], - "default": null, - "description": "Duration in seconds.", - "title": "Durationseconds" + "title": "Proxymode", + "type": "string" }, - "frameRate": { + "inputModalities": { "anyOf": [ { - "exclusiveMinimum": 0, - "type": "number" + "items": { + "enum": [ + "text", + "image" + ], + "type": "string" + }, + "type": "array" }, { "type": "null" } ], "default": null, - "description": "Video frames per second.", - "title": "Framerate" + "description": "Supported model input media kinds.", + "title": "Inputmodalities" }, - "hasAudio": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } + "videoAdapter": { + "default": "auto", + "description": "Provider-specific video adapter.", + "enum": [ + "auto", + "fasth3", + "fasth3_dual", + "minimax_h3", + "standard" ], - "default": null, - "description": "Whether the media contains an audio stream.", - "title": "Hasaudio" + "title": "Videoadapter", + "type": "string" }, - "sampleRate": { + "inputRules": { "anyOf": [ { - "minimum": 1, - "type": "integer" + "$ref": "#/$defs/InputRules" }, { "type": "null" } ], "default": null, - "description": "Audio samples per second.", - "title": "Samplerate" + "description": "Verified model input limits and output choices." + } + }, + "required": [ + "modelConfigId", + "kind", + "modelId", + "url", + "protocol", + "connectionType", + "videoAdapter", + "inputRules" + ], + "title": "ModelSnapshot", + "type": "object" + }, + "MotionClip": { + "additionalProperties": false, + "properties": { + "id": { + "description": "Stable object ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Id", + "type": "string" }, - "channels": { - "anyOf": [ - { - "minimum": 1, - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Audio channel count.", - "title": "Channels" + "start": { + "description": "Start time in seconds.", + "minimum": 0, + "title": "Start", + "type": "number" + }, + "duration": { + "description": "Interval duration in seconds.", + "exclusiveMinimum": 0, + "title": "Duration", + "type": "number" + }, + "motion": { + "$ref": "#/$defs/StageMotion", + "description": "Procedural motion settings." } }, "required": [ - "mimeType", - "size", - "width", - "height", - "durationSeconds", - "frameRate", - "hasAudio", - "sampleRate", - "channels" + "id", + "start", + "duration", + "motion" ], - "title": "MediaMetadata", + "title": "MotionClip", "type": "object" }, - "MediaPublicationOutput": { + "NodeCapabilities": { + "additionalProperties": false, + "properties": { + "canEdit": { + "description": "Whether the current content can be edited.", + "title": "Canedit", + "type": "boolean" + }, + "canConfigureGeneration": { + "description": "Whether generation settings can be configured.", + "title": "Canconfiguregeneration", + "type": "boolean" + }, + "canGenerate": { + "description": "Whether generation can be submitted.", + "title": "Cangenerate", + "type": "boolean" + }, + "canAcceptReferences": { + "description": "Whether the item accepts generation references.", + "title": "Canacceptreferences", + "type": "boolean" + }, + "canUseAsReference": { + "description": "Whether the item can supply a generation reference.", + "title": "Canuseasreference", + "type": "boolean" + }, + "canPlay": { + "description": "Whether the current media can be played.", + "title": "Canplay", + "type": "boolean" + }, + "canExport": { + "description": "Whether the current content can be exported.", + "title": "Canexport", + "type": "boolean" + }, + "canReplaceMaterial": { + "description": "Whether the bound material can be replaced.", + "title": "Canreplacematerial", + "type": "boolean" + } + }, + "required": [ + "canEdit", + "canConfigureGeneration", + "canGenerate", + "canAcceptReferences", + "canUseAsReference", + "canPlay", + "canExport", + "canReplaceMaterial" + ], + "title": "NodeCapabilities", + "type": "object" + }, + "NodeVersionApply": { "additionalProperties": false, "properties": { "itemId": { @@ -25241,263 +27426,158 @@ "$ref": "#/$defs/AssetRef", "description": "Immutable asset version." }, - "title": { - "description": "User-visible title.", - "maxLength": 255, - "minLength": 1, - "title": "Title", + "referencePolicy": { + "default": "follow_current", + "description": "Policy for restoring associated reference bindings.", + "enum": [ + "follow_current", + "pinned" + ], + "title": "Referencepolicy", "type": "string" - }, - "position": { - "$ref": "#/$defs/Point", - "description": "Position in the owning canvas or stage." - }, - "width": { - "default": 352, - "description": "Width in pixels.", - "exclusiveMinimum": 0, - "maximum": 10000, - "title": "Width", - "type": "number" - }, - "height": { - "default": 198, - "description": "Height in pixels.", - "exclusiveMinimum": 0, - "maximum": 10000, - "title": "Height", - "type": "number" } }, "required": [ "itemId", "asset", - "title", - "position", - "width", - "height" + "referencePolicy" ], - "title": "MediaPublicationOutput", + "title": "NodeVersionApply", "type": "object" }, - "ModelAvailability": { + "NodeVersionApplyCommand": { "additionalProperties": false, + "description": "Apply a historical asset version and its reference policy to a canvas item.", "properties": { - "configId": { - "anyOf": [ - { - "format": "uuid", - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Saved model identity; null for an unsaved draft.", - "title": "Configid" - }, - "modelId": { - "description": "Exact remote model identifier requested.", - "title": "Modelid", - "type": "string" - }, - "identity": { - "description": "Opaque identity of the checked connection and model.", - "title": "Identity", + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "autoCheck": { - "description": "Effective service automatic-check preference.", - "title": "Autocheck", - "type": "boolean" - }, - "status": { - "description": "Summary across the configured adapter operations.", - "enum": [ - "available", - "unavailable", - "unknown" - ], - "title": "Status", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "reasonCode": { - "description": "Stable, localizable summary reason.", - "title": "Reasoncode", + "type": { + "const": "canvas.applyVersion", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "checkedAt": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "Observation completion time in Unix milliseconds.", - "title": "Checkedat" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "expiresAt": { + "expectedPreview": { "anyOf": [ { - "type": "integer" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], - "description": "Earliest operation expiry in Unix milliseconds.", - "title": "Expiresat" - }, - "revision": { - "description": "Projection version; changes on observations, identity changes and expiration.", - "title": "Revision", - "type": "string" + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "operations": { - "description": "Exact operations consumed by the configured adapter.", - "items": { - "$ref": "#/$defs/OperationAvailability" - }, - "title": "Operations", - "type": "array" + "payload": { + "$ref": "#/$defs/NodeVersionApply", + "description": "Apply a historical asset version and its reference policy to a canvas item." } }, "required": [ - "configId", - "modelId", - "identity", - "autoCheck", - "status", - "reasonCode", - "checkedAt", - "expiresAt", - "revision", - "operations" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "ModelAvailability", + "title": "NodeVersionApplyCommand", "type": "object" }, - "ModelConfigPublic": { + "ObjectQuery": { "additionalProperties": false, - "description": "Application-level, never embedded in an editable project's credential data.", "properties": { - "kind": { - "description": "Business object or media type.", - "enum": [ - "agent", - "image", - "video", - "audio", - "vision" - ], - "title": "Kind", - "type": "string" - }, - "url": { - "description": "Provider API base URL.", - "maxLength": 2048, - "minLength": 1, - "title": "Url", - "type": "string" - }, - "modelId": { - "description": "Provider-native model identifier.", - "maxLength": 200, - "minLength": 1, - "title": "Modelid", - "type": "string" - }, - "connectionType": { - "description": "Hosted or local model connection type.", - "enum": [ - "api", - "self_hosted" - ], - "title": "Connectiontype", + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", "type": "string" }, - "protocol": { - "description": "Provider wire protocol.", - "enum": [ - "openai", - "volcengine", - "bigmodel_video", - "kling_video", - "minimax_video_v2", - "vllm_omni", - "vllm_omni_segmentation", - "vllm_omni_music", - "vllm_omni_depth", - "vllm_omni_score" - ], - "title": "Protocol", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "authMode": { - "description": "Authentication mode for the provider connection.", + "type": { + "description": "Read an object or generation job.", "enum": [ - "none", - "bearer" + "object.get", + "job.get" ], - "title": "Authmode", + "title": "Type", "type": "string" }, - "proxyMode": { - "default": "system", - "description": "Use the system proxy or connect directly to the model service.", - "enum": [ - "system", - "direct" - ], - "title": "Proxymode", + "objectId": { + "description": "Target business object ID.", + "format": "uuid", + "title": "Objectid", "type": "string" }, - "inputModalities": { + "revision": { "anyOf": [ { - "items": { - "enum": [ - "text", - "image" - ], - "type": "string" - }, - "type": "array" + "minimum": 1, + "type": "integer" }, { "type": "null" } ], "default": null, - "description": "Supported model input media kinds.", - "title": "Inputmodalities" - }, - "videoAdapter": { - "default": "auto", - "description": "Provider-specific video adapter.", + "description": "Historical object revision, or current when omitted.", + "title": "Revision" + } + }, + "required": [ + "queryId", + "projectId", + "type", + "objectId", + "revision" + ], + "title": "ObjectQuery", + "type": "object" + }, + "ObjectVersion": { + "additionalProperties": false, + "properties": { + "objectType": { + "description": "Referenced business object type.", "enum": [ - "auto", - "fasth3", - "fasth3_dual", - "minimax_h3", - "standard" - ], - "title": "Videoadapter", - "type": "string" - }, - "videoCapabilities": { - "anyOf": [ - { - "$ref": "#/$defs/VideoCapabilities" - }, - { - "type": "null" - } + "project", + "asset", + "generation_spec", + "reference", + "canvas_item", + "editor_document", + "job", + "result" ], - "default": null, - "description": "Supported video generation capabilities." + "title": "Objecttype", + "type": "string" }, "id": { "description": "Stable object ID.", @@ -25505,613 +27585,587 @@ "title": "Id", "type": "string" }, - "inputRules": { - "$ref": "#/$defs/InputRules", - "description": "Verified model input limits and output choices." - }, - "capabilityAutoCheck": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Service preference; omitted defaults to automatic for self-hosted connections.", - "title": "Capabilityautocheck" - }, - "availability": { - "anyOf": [ - { - "$ref": "#/$defs/ModelAvailability" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Ephemeral observation, never persisted in project snapshots." + "revision": { + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" } }, "required": [ - "kind", - "url", - "modelId", - "connectionType", - "protocol", - "authMode", - "proxyMode", - "inputModalities", - "videoAdapter", - "videoCapabilities", + "objectType", "id", - "inputRules" + "revision" ], - "title": "ModelConfigPublic", + "title": "ObjectVersion", "type": "object" }, - "ModelConfigWrite": { + "OperationAvailability": { "additionalProperties": false, - "description": "Only the model-settings write boundary accepts a credential.", "properties": { - "kind": { - "description": "Business object or media type.", - "enum": [ - "agent", - "image", - "video", - "audio", - "vision" - ], - "title": "Kind", + "operation": { + "description": "Canonical remote operation identifier.", + "title": "Operation", "type": "string" }, - "url": { - "description": "Provider API base URL.", - "maxLength": 2048, - "minLength": 1, - "title": "Url", + "profile": { + "description": "Input and output mode used by the configured adapter.", + "title": "Profile", "type": "string" }, - "modelId": { - "description": "Provider-native model identifier.", - "maxLength": 200, - "minLength": 1, - "title": "Modelid", + "method": { + "description": "Actual HTTP method used for submission.", + "title": "Method", "type": "string" }, - "connectionType": { - "description": "Hosted or local model connection type.", - "enum": [ - "api", - "self_hosted" - ], - "title": "Connectiontype", + "path": { + "description": "Actual HTTP submission path.", + "title": "Path", "type": "string" }, - "protocol": { - "description": "Provider wire protocol.", - "enum": [ - "openai", - "volcengine", - "bigmodel_video", - "kling_video", - "minimax_video_v2", - "vllm_omni", - "vllm_omni_segmentation", - "vllm_omni_music", - "vllm_omni_depth", - "vllm_omni_score" - ], - "title": "Protocol", + "output": { + "description": "Output modality consumed by the adapter.", + "title": "Output", "type": "string" }, - "authMode": { - "description": "Authentication mode for the provider connection.", + "status": { + "description": "Current evidence for this exact request.", "enum": [ - "none", - "bearer" + "available", + "unavailable", + "unknown" ], - "title": "Authmode", + "title": "Status", "type": "string" }, - "proxyMode": { - "default": "system", - "description": "Use the system proxy or connect directly to the model service.", - "enum": [ - "system", - "direct" - ], - "title": "Proxymode", + "reasonCode": { + "description": "Stable, localizable decision reason.", + "title": "Reasoncode", "type": "string" }, - "inputModalities": { + "checkedAt": { "anyOf": [ { - "items": { - "enum": [ - "text", - "image" - ], - "type": "string" - }, - "type": "array" + "type": "integer" }, { "type": "null" } ], - "default": null, - "description": "Supported model input media kinds.", - "title": "Inputmodalities" + "description": "Observation completion time in Unix milliseconds.", + "title": "Checkedat" }, - "videoAdapter": { - "default": "auto", - "description": "Provider-specific video adapter.", - "enum": [ - "auto", - "fasth3", - "fasth3_dual", - "minimax_h3", - "standard" + "expiresAt": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } ], - "title": "Videoadapter", - "type": "string" + "description": "Decision expiry in Unix milliseconds; recompute after expiry.", + "title": "Expiresat" }, - "videoCapabilities": { + "declaration": { "anyOf": [ { - "$ref": "#/$defs/VideoCapabilities" + "$ref": "#/$defs/CapabilityDeclaration" }, { "type": "null" } ], "default": null, - "description": "Supported video generation capabilities." + "description": "Request support independently expires from the short execution observation." }, - "apiKey": { + "execution": { "anyOf": [ { - "format": "password", - "maxLength": 8192, - "type": "string", - "writeOnly": true + "$ref": "#/$defs/CapabilityExecution" }, { "type": "null" } ], "default": null, - "description": "Provider credential; omitted from public model records.", - "title": "Apikey" + "description": "Short-lived execution observation, separate from declared support." }, - "capabilityAutoCheck": { + "inputDetails": { + "default": [], + "description": "Known role and parameter facts for the actual request route; no saved configuration changes.", + "items": { + "$ref": "#/$defs/CapabilityInputDetail" + }, + "title": "Inputdetails", + "type": "array" + } + }, + "required": [ + "operation", + "profile", + "method", + "path", + "output", + "status", + "reasonCode", + "checkedAt", + "expiresAt", + "inputDetails" + ], + "title": "OperationAvailability", + "type": "object" + }, + "PaletteData": { + "additionalProperties": false, + "properties": { + "name": { "anyOf": [ { - "type": "boolean" + "maxLength": 255, + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Service automatic-check override; omission preserves the existing preference.", - "title": "Capabilityautocheck" + "description": "User-visible name.", + "title": "Name" + }, + "sourceImage": { + "anyOf": [ + { + "$ref": "#/$defs/AssetRef" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Source image used to extract palette colors." + } + }, + "required": [ + "name", + "sourceImage" + ], + "title": "PaletteData", + "type": "object" + }, + "PaletteProvenance": { + "additionalProperties": false, + "properties": { + "paletteId": { + "description": "Palette ID.", + "maxLength": 100, + "minLength": 1, + "pattern": "\\S", + "title": "Paletteid", + "type": "string" + }, + "version": { + "description": "Version of the referenced record.", + "minimum": 1, + "title": "Version", + "type": "integer" } }, "required": [ - "kind", - "url", - "modelId", - "connectionType", - "protocol", - "authMode", - "proxyMode", - "inputModalities", - "videoAdapter", - "videoCapabilities", - "apiKey" + "paletteId", + "version" ], - "title": "ModelConfigWrite", + "title": "PaletteProvenance", "type": "object" }, - "ModelConnection": { + "PinnedReference": { "additionalProperties": false, "properties": { - "kind": { - "description": "Business object or media type.", - "enum": [ - "agent", - "image", - "video", - "audio", - "vision" - ], - "title": "Kind", + "id": { + "description": "Stable identity of this project-owned object.", + "format": "uuid", + "title": "Id", "type": "string" }, - "url": { - "description": "Provider API base URL.", - "maxLength": 2048, - "minLength": 1, - "title": "Url", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "modelId": { - "description": "Provider-native model identifier.", - "maxLength": 200, - "minLength": 1, - "title": "Modelid", - "type": "string" + "revision": { + "default": 1, + "description": "Current object revision for optimistic concurrency.", + "minimum": 1, + "title": "Revision", + "type": "integer" }, - "connectionType": { - "description": "Hosted or local model connection type.", - "enum": [ - "api", - "self_hosted" - ], - "title": "Connectiontype", + "targetSpecId": { + "description": "Target generation configuration ID.", + "format": "uuid", + "title": "Targetspecid", "type": "string" }, - "protocol": { - "description": "Provider wire protocol.", + "role": { + "default": "reference", + "description": "Business role of this binding or reference.", "enum": [ - "openai", - "volcengine", - "bigmodel_video", - "kling_video", - "minimax_video_v2", - "vllm_omni", - "vllm_omni_segmentation", - "vllm_omni_music", - "vllm_omni_depth", - "vllm_omni_score" + "reference", + "first_frame", + "last_frame", + "continuation", + "control" ], - "title": "Protocol", + "title": "Role", "type": "string" }, - "authMode": { - "description": "Authentication mode for the provider connection.", - "enum": [ - "none", - "bearer" - ], - "title": "Authmode", - "type": "string" + "order": { + "default": 0, + "description": "Reference ordering within the target configuration.", + "minimum": 0, + "title": "Order", + "type": "integer" }, - "proxyMode": { - "default": "system", - "description": "Use the system proxy or connect directly to the model service.", - "enum": [ - "system", - "direct" - ], - "title": "Proxymode", + "active": { + "default": true, + "description": "Whether this reference participates in generation.", + "title": "Active", + "type": "boolean" + }, + "binding": { + "const": "pinned", + "description": "Use a fixed asset version, retaining canvas provenance when supplied.", + "title": "Binding", "type": "string" }, - "inputModalities": { + "source": { + "$ref": "#/$defs/AssetRef", + "description": "Fixed asset version used by generation." + }, + "sourceVersion": { "anyOf": [ { - "items": { - "enum": [ - "text", - "image" - ], - "type": "string" - }, - "type": "array" + "$ref": "#/$defs/CanvasItemVersion" }, { "type": "null" } ], "default": null, - "description": "Supported model input media kinds.", - "title": "Inputmodalities" - }, - "videoAdapter": { - "default": "auto", - "description": "Provider-specific video adapter.", - "enum": [ - "auto", - "fasth3", - "fasth3_dual", - "minimax_h3", - "standard" - ], - "title": "Videoadapter", - "type": "string" + "description": "Source canvas item identity and revision. Required for canvas-derived references to retain their connection." }, - "videoCapabilities": { + "subjectRole": { "anyOf": [ { - "$ref": "#/$defs/VideoCapabilities" + "enum": [ + "main", + "auxiliary", + "voice" + ], + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Supported video generation capabilities." + "description": "Subject media slot provenance only; omit for ordinary image references and explicit first_frame/last_frame assets. main does not mean first frame.", + "title": "Subjectrole" } }, "required": [ - "kind", - "url", - "modelId", - "connectionType", - "protocol", - "authMode", - "proxyMode", - "inputModalities", - "videoAdapter", - "videoCapabilities" + "id", + "projectId", + "revision", + "targetSpecId", + "role", + "order", + "active", + "binding", + "source" ], - "title": "ModelConnection", + "title": "PinnedReference", "type": "object" }, - "ModelSnapshot": { + "PinnedReferenceSource": { "additionalProperties": false, "properties": { - "modelConfigId": { - "description": "Model configuration ID from the model catalog or user model selections.", - "format": "uuid", - "title": "Modelconfigid", + "binding": { + "const": "pinned", + "default": "pinned", + "description": "Use the fixed asset version.", + "title": "Binding", "type": "string" }, - "kind": { - "description": "Business object or media type.", - "enum": [ - "agent", - "image", - "video", - "audio", - "vision" - ], - "title": "Kind", + "source": { + "$ref": "#/$defs/AssetRef", + "description": "Fixed current asset version." + }, + "sourceVersion": { + "$ref": "#/$defs/CanvasItemVersion", + "description": "Canvas source version retaining the connection." + } + }, + "required": [ + "binding", + "source", + "sourceVersion" + ], + "title": "PinnedReferenceSource", + "type": "object" + }, + "PipelineAdopt": { + "additionalProperties": false, + "properties": { + "executionId": { + "description": "Target Pipeline execution ID awaiting candidate adoption.", + "format": "uuid", + "title": "Executionid", "type": "string" }, - "modelId": { - "description": "Provider-native model identifier.", - "maxLength": 200, - "minLength": 1, - "title": "Modelid", + "itemId": { + "description": "Canvas item ID whose candidate is being adopted.", + "format": "uuid", + "title": "Itemid", "type": "string" }, - "url": { - "description": "Provider API base URL.", - "maxLength": 2048, - "minLength": 1, - "title": "Url", + "jobId": { + "description": "Succeeded candidate job ID to adopt.", + "format": "uuid", + "title": "Jobid", + "type": "string" + } + }, + "required": [ + "executionId", + "itemId", + "jobId" + ], + "title": "PipelineAdopt", + "type": "object" + }, + "PipelineAdoptCommand": { + "additionalProperties": false, + "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "protocol": { - "description": "Provider wire protocol.", - "enum": [ - "openai", - "volcengine", - "bigmodel_video", - "kling_video", - "minimax_video_v2", - "vllm_omni", - "vllm_omni_segmentation", - "vllm_omni_music", - "vllm_omni_depth", - "vllm_omni_score" - ], - "title": "Protocol", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "connectionType": { - "description": "Hosted or local model connection type.", - "enum": [ - "api", - "self_hosted" - ], - "title": "Connectiontype", + "type": { + "const": "pipeline.adopt", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "proxyMode": { - "default": "system", - "description": "Network routing selected when the job was accepted.", - "enum": [ - "system", - "direct" - ], - "title": "Proxymode", - "type": "string" + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "inputModalities": { + "expectedPreview": { "anyOf": [ { - "items": { - "enum": [ - "text", - "image" - ], - "type": "string" - }, - "type": "array" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Supported model input media kinds.", - "title": "Inputmodalities" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" }, - "videoAdapter": { - "default": "auto", - "description": "Provider-specific video adapter.", - "enum": [ - "auto", - "fasth3", - "fasth3_dual", - "minimax_h3", - "standard" - ], - "title": "Videoadapter", + "payload": { + "$ref": "#/$defs/PipelineAdopt", + "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "PipelineAdoptCommand", + "type": "object" + }, + "PipelineCancelCommand": { + "additionalProperties": false, + "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "inputRules": { + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "pipeline.cancel", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { "anyOf": [ { - "$ref": "#/$defs/InputRules" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Verified model input limits and output choices." + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/PipelineControl", + "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." } }, "required": [ - "modelConfigId", - "kind", - "modelId", - "url", - "protocol", - "connectionType", - "videoAdapter", - "inputRules" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "ModelSnapshot", + "title": "PipelineCancelCommand", "type": "object" }, - "MotionClip": { + "PipelineControl": { "additionalProperties": false, "properties": { - "id": { - "description": "Stable object ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Id", + "executionId": { + "description": "Target Pipeline execution ID.", + "format": "uuid", + "title": "Executionid", "type": "string" - }, - "start": { - "description": "Start time in seconds.", - "minimum": 0, - "title": "Start", - "type": "number" - }, - "duration": { - "description": "Interval duration in seconds.", - "exclusiveMinimum": 0, - "title": "Duration", - "type": "number" - }, - "motion": { - "$ref": "#/$defs/StageMotion", - "description": "Procedural motion settings." } }, "required": [ - "id", - "start", - "duration", - "motion" + "executionId" ], - "title": "MotionClip", + "title": "PipelineControl", "type": "object" }, - "NodeCapabilities": { + "PipelineExecutionQuery": { "additionalProperties": false, "properties": { - "canEdit": { - "description": "Whether the current content can be edited.", - "title": "Canedit", - "type": "boolean" - }, - "canConfigureGeneration": { - "description": "Whether generation settings can be configured.", - "title": "Canconfiguregeneration", - "type": "boolean" - }, - "canGenerate": { - "description": "Whether generation can be submitted.", - "title": "Cangenerate", - "type": "boolean" - }, - "canAcceptReferences": { - "description": "Whether the item accepts generation references.", - "title": "Canacceptreferences", - "type": "boolean" - }, - "canUseAsReference": { - "description": "Whether the item can supply a generation reference.", - "title": "Canuseasreference", - "type": "boolean" + "queryId": { + "description": "Caller-supplied query ID.", + "format": "uuid", + "title": "Queryid", + "type": "string" }, - "canPlay": { - "description": "Whether the current media can be played.", - "title": "Canplay", - "type": "boolean" + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" }, - "canExport": { - "description": "Whether the current content can be exported.", - "title": "Canexport", - "type": "boolean" + "type": { + "const": "pipeline.execution.get", + "description": "Read a durable Pipeline execution.", + "title": "Type", + "type": "string" }, - "canReplaceMaterial": { - "description": "Whether the bound material can be replaced.", - "title": "Canreplacematerial", - "type": "boolean" + "objectId": { + "description": "Pipeline execution ID returned by pipeline.start.", + "format": "uuid", + "title": "Objectid", + "type": "string" } }, "required": [ - "canEdit", - "canConfigureGeneration", - "canGenerate", - "canAcceptReferences", - "canUseAsReference", - "canPlay", - "canExport", - "canReplaceMaterial" + "queryId", + "projectId", + "type", + "objectId" ], - "title": "NodeCapabilities", + "title": "PipelineExecutionQuery", "type": "object" }, - "NodeVersionApply": { + "PipelineExecutionsQuery": { "additionalProperties": false, "properties": { - "itemId": { - "description": "Canvas item ID.", + "queryId": { + "description": "Caller-supplied query ID.", "format": "uuid", - "title": "Itemid", + "title": "Queryid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "pipeline.executions.list", + "description": "List Pipeline execution history for the project or one group.", + "title": "Type", "type": "string" }, - "asset": { - "$ref": "#/$defs/AssetRef", - "description": "Immutable asset version." - }, - "referencePolicy": { - "default": "follow_current", - "description": "Policy for restoring associated reference bindings.", - "enum": [ - "follow_current", - "pinned" + "groupId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } ], - "title": "Referencepolicy", - "type": "string" + "default": null, + "description": "Optional canvas group ID filter.", + "title": "Groupid" } }, "required": [ - "itemId", - "asset", - "referencePolicy" + "queryId", + "projectId", + "type" ], - "title": "NodeVersionApply", + "title": "PipelineExecutionsQuery", "type": "object" }, - "NodeVersionApplyCommand": { + "PipelinePauseCommand": { "additionalProperties": false, - "description": "Apply a historical asset version and its reference policy to a canvas item.", + "description": "Pause an active Pipeline execution after its in-flight steps finish.", "properties": { "commandId": { "description": "Stable command ID for idempotent replay.", @@ -26126,7 +28180,7 @@ "type": "string" }, "type": { - "const": "canvas.applyVersion", + "const": "pipeline.pause", "description": "Command discriminator.", "title": "Type", "type": "string" @@ -26155,8 +28209,8 @@ "title": "Expectedpreview" }, "payload": { - "$ref": "#/$defs/NodeVersionApply", - "description": "Apply a historical asset version and its reference policy to a canvas item." + "$ref": "#/$defs/PipelineControl", + "description": "Pause an active Pipeline execution after its in-flight steps finish." } }, "required": [ @@ -26167,10 +28221,10 @@ "expectedPreview", "payload" ], - "title": "NodeVersionApplyCommand", + "title": "PipelinePauseCommand", "type": "object" }, - "ObjectQuery": { + "PipelinePlanQuery": { "additionalProperties": false, "properties": { "queryId": { @@ -26186,269 +28240,307 @@ "type": "string" }, "type": { - "description": "Read an object or generation job.", - "enum": [ - "object.get", - "job.get" - ], + "const": "pipeline.plan", + "description": "Compile a Pipeline DAG read-only and preview cache hits, dependencies, and issues.", "title": "Type", "type": "string" }, - "objectId": { - "description": "Target business object ID.", - "format": "uuid", - "title": "Objectid", + "scope": { + "description": "Target canvas scope to compile.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" + }, + "oneOf": [ + { + "$ref": "#/$defs/GroupPipelineScope" + }, + { + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" + } + ], + "title": "Scope" + }, + "cachePolicy": { + "default": "reuse", + "description": "Cache reuse strategy to preview.", + "enum": [ + "reuse", + "force_from_node", + "force_all" + ], + "title": "Cachepolicy", "type": "string" }, - "revision": { + "forceFromItemId": { "anyOf": [ { - "minimum": 1, - "type": "integer" + "format": "uuid", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Historical object revision, or current when omitted.", - "title": "Revision" + "description": "Optional step ID from which to force re-execution when cachePolicy is force_from_node.", + "title": "Forcefromitemid" } }, "required": [ "queryId", "projectId", "type", - "objectId", - "revision" + "scope", + "cachePolicy" ], - "title": "ObjectQuery", + "title": "PipelinePlanQuery", "type": "object" }, - "ObjectVersion": { + "PipelineResumeCommand": { "additionalProperties": false, + "description": "Resume a paused Pipeline execution.", "properties": { - "objectType": { - "description": "Referenced business object type.", - "enum": [ - "project", - "asset", - "generation_spec", - "reference", - "canvas_item", - "editor_document", - "job", - "result" - ], - "title": "Objecttype", + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "id": { - "description": "Stable object ID.", + "projectId": { + "description": "Owning project ID.", "format": "uuid", - "title": "Id", + "title": "Projectid", "type": "string" }, - "revision": { - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" + "type": { + "const": "pipeline.resume", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/PipelineControl", + "description": "Resume a paused Pipeline execution." } }, "required": [ - "objectType", - "id", - "revision" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "ObjectVersion", + "title": "PipelineResumeCommand", "type": "object" }, - "OperationAvailability": { + "PipelineRetry": { "additionalProperties": false, "properties": { - "operation": { - "description": "Canonical remote operation identifier.", - "title": "Operation", - "type": "string" - }, - "profile": { - "description": "Input and output mode used by the configured adapter.", - "title": "Profile", - "type": "string" - }, - "method": { - "description": "Actual HTTP method used for submission.", - "title": "Method", + "executionId": { + "description": "Target settled Pipeline execution ID to retry.", + "format": "uuid", + "title": "Executionid", "type": "string" }, - "path": { - "description": "Actual HTTP submission path.", - "title": "Path", - "type": "string" + "stopOnFailure": { + "default": false, + "description": "Whether to cancel remaining pending steps after the first failure.", + "title": "Stoponfailure", + "type": "boolean" }, - "output": { - "description": "Output modality consumed by the adapter.", - "title": "Output", + "maxConcurrency": { + "default": 4, + "description": "Maximum number of independent pipeline steps executed concurrently.", + "maximum": 16, + "minimum": 1, + "title": "Maxconcurrency", + "type": "integer" + } + }, + "required": [ + "executionId", + "stopOnFailure", + "maxConcurrency" + ], + "title": "PipelineRetry", + "type": "object" + }, + "PipelineRetryCommand": { + "additionalProperties": false, + "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", "type": "string" }, - "status": { - "description": "Current evidence for this exact request.", - "enum": [ - "available", - "unavailable", - "unknown" - ], - "title": "Status", + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", "type": "string" }, - "reasonCode": { - "description": "Stable, localizable decision reason.", - "title": "Reasoncode", + "type": { + "const": "pipeline.retry", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "checkedAt": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "Observation completion time in Unix milliseconds.", - "title": "Checkedat" - }, - "expiresAt": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "Decision expiry in Unix milliseconds; recompute after expiry.", - "title": "Expiresat" - }, - "declaration": { - "anyOf": [ - { - "$ref": "#/$defs/CapabilityDeclaration" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Request support independently expires from the short execution observation." + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "execution": { + "expectedPreview": { "anyOf": [ { - "$ref": "#/$defs/CapabilityExecution" + "pattern": "^[0-9a-f]{64}$", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Short-lived execution observation, separate from declared support." - }, - "inputDetails": { - "default": [], - "description": "Known role and parameter facts for the actual request route; no saved configuration changes.", - "items": { - "$ref": "#/$defs/CapabilityInputDetail" - }, - "title": "Inputdetails", - "type": "array" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/PipelineRetry", + "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps." } }, "required": [ - "operation", - "profile", - "method", - "path", - "output", - "status", - "reasonCode", - "checkedAt", - "expiresAt", - "inputDetails" + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "OperationAvailability", + "title": "PipelineRetryCommand", "type": "object" }, - "PaletteData": { + "PipelineStart": { "additionalProperties": false, "properties": { - "name": { - "anyOf": [ + "scope": { + "description": "Target canvas scope to compile and execute.", + "discriminator": { + "mapping": { + "from_node": "#/$defs/FromNodePipelineScope", + "group": "#/$defs/GroupPipelineScope", + "selection": "#/$defs/SelectionPipelineScope" + }, + "propertyName": "kind" + }, + "oneOf": [ { - "maxLength": 255, - "type": "string" + "$ref": "#/$defs/GroupPipelineScope" }, { - "type": "null" + "$ref": "#/$defs/SelectionPipelineScope" + }, + { + "$ref": "#/$defs/FromNodePipelineScope" } ], - "default": null, - "description": "User-visible name.", - "title": "Name" + "title": "Scope" }, - "sourceImage": { + "cachePolicy": { + "default": "reuse", + "description": "Cache reuse strategy for unchanged nodes.", + "enum": [ + "reuse", + "force_from_node", + "force_all" + ], + "title": "Cachepolicy", + "type": "string" + }, + "forceFromItemId": { "anyOf": [ { - "$ref": "#/$defs/AssetRef" + "format": "uuid", + "type": "string" }, { "type": "null" } ], "default": null, - "description": "Source image used to extract palette colors." - } - }, - "required": [ - "name", - "sourceImage" - ], - "title": "PaletteData", - "type": "object" - }, - "PaletteProvenance": { - "additionalProperties": false, - "properties": { - "paletteId": { - "description": "Palette ID.", - "maxLength": 100, - "minLength": 1, - "pattern": "\\S", - "title": "Paletteid", - "type": "string" + "description": "Optional step ID from which to force re-execution when cachePolicy is force_from_node.", + "title": "Forcefromitemid" }, - "version": { - "description": "Version of the referenced record.", + "stopOnFailure": { + "default": false, + "description": "Whether to cancel remaining pending steps after the first failure.", + "title": "Stoponfailure", + "type": "boolean" + }, + "maxConcurrency": { + "default": 4, + "description": "Maximum number of independent pipeline steps executed concurrently.", + "maximum": 16, "minimum": 1, - "title": "Version", + "title": "Maxconcurrency", "type": "integer" } }, "required": [ - "paletteId", - "version" + "scope", + "cachePolicy", + "stopOnFailure", + "maxConcurrency" ], - "title": "PaletteProvenance", + "title": "PipelineStart", "type": "object" }, - "PinnedReference": { + "PipelineStartCommand": { "additionalProperties": false, + "description": "Compile and start a durable concurrent Pipeline execution in the background.", "properties": { - "id": { - "description": "Stable identity of this project-owned object.", + "commandId": { + "description": "Stable command ID for idempotent replay.", "format": "uuid", - "title": "Id", + "title": "Commandid", "type": "string" }, "projectId": { @@ -26457,75 +28549,25 @@ "title": "Projectid", "type": "string" }, - "revision": { - "default": 1, - "description": "Current object revision for optimistic concurrency.", - "minimum": 1, - "title": "Revision", - "type": "integer" - }, - "targetSpecId": { - "description": "Target generation configuration ID.", - "format": "uuid", - "title": "Targetspecid", - "type": "string" - }, - "role": { - "default": "reference", - "description": "Business role of this binding or reference.", - "enum": [ - "reference", - "first_frame", - "last_frame", - "continuation", - "control" - ], - "title": "Role", - "type": "string" - }, - "order": { - "default": 0, - "description": "Reference ordering within the target configuration.", - "minimum": 0, - "title": "Order", - "type": "integer" - }, - "active": { - "default": true, - "description": "Whether this reference participates in generation.", - "title": "Active", - "type": "boolean" - }, - "binding": { - "const": "pinned", - "description": "Use a fixed asset version, retaining canvas provenance when supplied.", - "title": "Binding", + "type": { + "const": "pipeline.start", + "description": "Command discriminator.", + "title": "Type", "type": "string" }, - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Fixed asset version used by generation." - }, - "sourceVersion": { - "anyOf": [ - { - "$ref": "#/$defs/CanvasItemVersion" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Source canvas item identity and revision. Required for canvas-derived references to retain their connection." + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" }, - "subjectRole": { + "expectedPreview": { "anyOf": [ { - "enum": [ - "main", - "auxiliary", - "voice" - ], + "pattern": "^[0-9a-f]{64}$", "type": "string" }, { @@ -26533,49 +28575,62 @@ } ], "default": null, - "description": "Subject media slot provenance only; omit for ordinary image references and explicit first_frame/last_frame assets. main does not mean first frame.", - "title": "Subjectrole" + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "payload": { + "$ref": "#/$defs/PipelineStart", + "description": "Compile and start a durable concurrent Pipeline execution in the background." } }, "required": [ - "id", + "commandId", "projectId", - "revision", - "targetSpecId", - "role", - "order", - "active", - "binding", - "source" + "type", + "expectedVersions", + "expectedPreview", + "payload" ], - "title": "PinnedReference", + "title": "PipelineStartCommand", "type": "object" }, - "PinnedReferenceSource": { + "PipelineStepIssue": { "additionalProperties": false, "properties": { - "binding": { - "const": "pinned", - "default": "pinned", - "description": "Use the fixed asset version.", - "title": "Binding", + "code": { + "description": "Stable machine-readable issue code.", + "maxLength": 100, + "minLength": 1, + "title": "Code", "type": "string" }, - "source": { - "$ref": "#/$defs/AssetRef", - "description": "Fixed current asset version." + "message": { + "description": "Human-readable issue summary.", + "maxLength": 1000, + "minLength": 1, + "title": "Message", + "type": "string" }, - "sourceVersion": { - "$ref": "#/$defs/CanvasItemVersion", - "description": "Canvas source version retaining the connection." + "itemId": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Canvas item associated with this issue, if applicable.", + "title": "Itemid" } }, "required": [ - "binding", - "source", - "sourceVersion" + "code", + "message" ], - "title": "PinnedReferenceSource", + "title": "PipelineStepIssue", "type": "object" }, "Playhead": { @@ -28247,6 +30302,34 @@ "title": "SelectionBox", "type": "object" }, + "SelectionPipelineScope": { + "additionalProperties": false, + "properties": { + "kind": { + "const": "selection", + "description": "Run an explicit set of canvas nodes.", + "title": "Kind", + "type": "string" + }, + "itemIds": { + "description": "Selected canvas item IDs.", + "items": { + "format": "uuid", + "type": "string" + }, + "maxItems": 200, + "minItems": 1, + "title": "Itemids", + "type": "array" + } + }, + "required": [ + "kind", + "itemIds" + ], + "title": "SelectionPipelineScope", + "type": "object" + }, "SpecCreateCommand": { "additionalProperties": false, "description": "Create a generation configuration without submitting a job.", @@ -32634,7 +34717,7 @@ "canvas.createGeneration": "#/$defs/CanvasCreateGenerationCommand", "canvas.detachEditor": "#/$defs/CanvasEditorDetachCommand", "canvas.hide": "#/$defs/CanvasHideCommand", - "canvas.layoutRuns": "#/$defs/CanvasLayoutRunsCommand", + "canvas.layoutPipelines": "#/$defs/CanvasLayoutPipelinesCommand", "canvas.materialize": "#/$defs/CanvasMaterializeCommand", "canvas.move": "#/$defs/CanvasMoveCommand", "canvas.publishMedia": "#/$defs/CanvasPublishMediaCommand", @@ -32653,6 +34736,12 @@ "job.cancel": "#/$defs/JobCancelCommand", "job.checkpoint": "#/$defs/JobCheckpointCommand", "job.recover": "#/$defs/JobRecoverCommand", + "pipeline.adopt": "#/$defs/PipelineAdoptCommand", + "pipeline.cancel": "#/$defs/PipelineCancelCommand", + "pipeline.pause": "#/$defs/PipelinePauseCommand", + "pipeline.resume": "#/$defs/PipelineResumeCommand", + "pipeline.retry": "#/$defs/PipelineRetryCommand", + "pipeline.start": "#/$defs/PipelineStartCommand", "project.create": "#/$defs/ProjectCreateCommand", "project.rename": "#/$defs/ProjectRenameCommand", "project.restore": "#/$defs/ProjectRestoreCommand", @@ -32707,7 +34796,7 @@ "$ref": "#/$defs/CanvasUpdateCommand" }, { - "$ref": "#/$defs/CanvasLayoutRunsCommand" + "$ref": "#/$defs/CanvasLayoutPipelinesCommand" }, { "$ref": "#/$defs/CanvasHideCommand" @@ -32724,6 +34813,24 @@ { "$ref": "#/$defs/TimelinePublishRenderCommand" }, + { + "$ref": "#/$defs/PipelineStartCommand" + }, + { + "$ref": "#/$defs/PipelinePauseCommand" + }, + { + "$ref": "#/$defs/PipelineResumeCommand" + }, + { + "$ref": "#/$defs/PipelineCancelCommand" + }, + { + "$ref": "#/$defs/PipelineRetryCommand" + }, + { + "$ref": "#/$defs/PipelineAdoptCommand" + }, { "$ref": "#/$defs/NodeVersionApplyCommand" }, @@ -32810,6 +34917,9 @@ "job.get": "#/$defs/ObjectQuery", "job.status": "#/$defs/JobStatusQuery", "object.get": "#/$defs/ObjectQuery", + "pipeline.execution.get": "#/$defs/PipelineExecutionQuery", + "pipeline.executions.list": "#/$defs/PipelineExecutionsQuery", + "pipeline.plan": "#/$defs/PipelinePlanQuery", "project.get": "#/$defs/ProjectQuery" }, "propertyName": "type" @@ -32838,6 +34948,15 @@ }, { "$ref": "#/$defs/AssetPreviewQuery" + }, + { + "$ref": "#/$defs/PipelinePlanQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionQuery" + }, + { + "$ref": "#/$defs/PipelineExecutionsQuery" } ], "title": "Query" diff --git a/src/contracts/generated.ts b/src/contracts/generated.ts index a59ee3aae..c104a44f5 100644 --- a/src/contracts/generated.ts +++ b/src/contracts/generated.ts @@ -152,7 +152,7 @@ export interface BatchCommandInput extends CommandBaseInput { } export interface BatchPayloadInput extends ContractInput { - readonly operations: ReadonlyArray; + readonly operations: ReadonlyArray; } export interface CameraFrameInput extends ContractInput { @@ -269,13 +269,13 @@ export interface CanvasItemVersionInput extends ObjectVersionInput { readonly objectType: "canvas_item"; } -export interface CanvasLayoutRunsCommandInput extends CommandBaseInput { - readonly type: "canvas.layoutRuns"; +export interface CanvasLayoutPipelinesCommandInput extends CommandBaseInput { + readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayloadInput; } -export interface CanvasLayoutRunsCommandOperationInput { - readonly type: "canvas.layoutRuns"; +export interface CanvasLayoutPipelinesCommandOperationInput { + readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayloadInput; } @@ -323,7 +323,7 @@ export interface CanvasPresentationUpdateInput extends ContractInput { readonly locked?: boolean | null; readonly color?: string | null; readonly parentId?: string | null; - readonly autoLayout?: "run" | "free" | null; + readonly autoLayout?: "pipeline" | "free" | null; } export interface CanvasPublishMediaInput extends ContractInput { @@ -422,6 +422,28 @@ export interface CommandReceiptInput extends ContractInput { readonly jobIds?: ReadonlyArray; readonly issues?: ReadonlyArray; readonly eventCursor?: number | null; + readonly pipelineExecutionId?: string | null; +} + +export interface CompiledPipelineGraphInput extends ContractInput { + readonly projectId: string; + readonly scope: GroupPipelineScopeInput | SelectionPipelineScopeInput | FromNodePipelineScopeInput; + readonly cachePolicy: "reuse" | "force_from_node" | "force_all"; + readonly steps?: ReadonlyArray; + readonly topologicalOrder?: ReadonlyArray; + readonly issues?: ReadonlyArray; + readonly plannedNewJobs?: number; +} + +export interface CompiledPipelineStepInput extends ContractInput { + readonly itemId: string; + readonly kind: "generation" | "assembly"; + readonly upstreamItemIds?: ReadonlyArray; + readonly inputFingerprint: string; + readonly cached?: boolean; + readonly cacheCandidateJobId?: string | null; + readonly cacheCandidateAssetId?: string | null; + readonly expectedVersions?: ReadonlyArray; } export interface ContainerBindingInput extends ContractInput { @@ -445,9 +467,9 @@ export interface CreationContractsInput extends ContractInput { readonly generationSpec: TextGenerationSpecInput | ImageGenerationSpecInput | VideoGenerationSpecInput | AudioGenerationSpecInput; readonly reference: PinnedReferenceInput | FollowingReferenceInput; readonly editorDocument: TimelineDocumentInput | SubjectDocumentInput | LayerDocumentInput | ImageCropDocumentInput | StackDocumentInput | ToolDocumentInput | DirectorDocumentInput | MediaEditDocumentInput; - readonly command: ProjectCreateCommandInput | ProjectRenameCommandInput | ProjectTrashCommandInput | ProjectRestoreCommandInput | AssetImportCommandInput | ArtifactPublishCommandInput | AssetWriteTextCommandInput | AssetMetadataCommandInput | AssetDeleteCommandInput | CanvasCreateGenerationCommandInput | CanvasShowCommandInput | CanvasMoveCommandInput | CanvasUpdateCommandInput | CanvasLayoutRunsCommandInput | CanvasHideCommandInput | CanvasMaterializeCommandInput | CanvasApplyEditCommandInput | CanvasPublishMediaCommandInput | TimelinePublishRenderCommandInput | NodeVersionApplyCommandInput | CanvasConfigureCommandInput | CanvasEditorAttachCommandInput | CanvasEditorDetachCommandInput | SpecCreateCommandInput | SpecUpdateCommandInput | SpecRestoreCommandInput | SpecPromptCommandInput | ReferenceAddCommandInput | ReferenceUpdateCommandInput | ReferenceRestoreCommandInput | ReferenceRemoveCommandInput | GenerationSubmitCommandInput | JobCancelCommandInput | JobRecoverCommandInput | JobCheckpointCommandInput | ResultSelectCommandInput | EditorCreateCommandInput | EditorSaveCommandInput | HistoryUndoCommandInput | HistoryRedoCommandInput | BatchCommandInput; + readonly command: ProjectCreateCommandInput | ProjectRenameCommandInput | ProjectTrashCommandInput | ProjectRestoreCommandInput | AssetImportCommandInput | ArtifactPublishCommandInput | AssetWriteTextCommandInput | AssetMetadataCommandInput | AssetDeleteCommandInput | CanvasCreateGenerationCommandInput | CanvasShowCommandInput | CanvasMoveCommandInput | CanvasUpdateCommandInput | CanvasLayoutPipelinesCommandInput | CanvasHideCommandInput | CanvasMaterializeCommandInput | CanvasApplyEditCommandInput | CanvasPublishMediaCommandInput | TimelinePublishRenderCommandInput | PipelineStartCommandInput | PipelinePauseCommandInput | PipelineResumeCommandInput | PipelineCancelCommandInput | PipelineRetryCommandInput | PipelineAdoptCommandInput | NodeVersionApplyCommandInput | CanvasConfigureCommandInput | CanvasEditorAttachCommandInput | CanvasEditorDetachCommandInput | SpecCreateCommandInput | SpecUpdateCommandInput | SpecRestoreCommandInput | SpecPromptCommandInput | ReferenceAddCommandInput | ReferenceUpdateCommandInput | ReferenceRestoreCommandInput | ReferenceRemoveCommandInput | GenerationSubmitCommandInput | JobCancelCommandInput | JobRecoverCommandInput | JobCheckpointCommandInput | ResultSelectCommandInput | EditorCreateCommandInput | EditorSaveCommandInput | HistoryUndoCommandInput | HistoryRedoCommandInput | BatchCommandInput; readonly receipt: CommandReceiptInput; - readonly query: ProjectQueryInput | ObjectQueryInput | VersionsQueryInput | AssetSearchQueryInput | AssetUsageQueryInput | CanvasStatusQueryInput | JobStatusQueryInput | AssetPreviewQueryInput; + readonly query: ProjectQueryInput | ObjectQueryInput | VersionsQueryInput | AssetSearchQueryInput | AssetUsageQueryInput | CanvasStatusQueryInput | JobStatusQueryInput | AssetPreviewQueryInput | PipelinePlanQueryInput | PipelineExecutionQueryInput | PipelineExecutionsQueryInput; readonly event: ProjectEventInput; readonly job: JobInput; readonly result: ResultVersionInput; @@ -564,6 +586,12 @@ export interface FollowingSourceInput extends ContractInput { readonly id: string; } +export interface FromNodePipelineScopeInput extends ContractInput { + readonly kind: "from_node"; + readonly itemId: string; + readonly groupId?: string | null; +} + export interface GenerationBindingInput extends ContractInput { readonly role: "generation"; readonly objectRef: GenerationSpecRefInput; @@ -611,10 +639,15 @@ export interface GenerationSubmitCommandInput extends CommandBaseInput { export interface GroupCanvasItemInput extends CanvasItemBaseInput { readonly kind: "group"; - readonly autoLayout?: "run" | null; + readonly autoLayout?: "pipeline" | null; readonly binding?: ContainerBindingInput; } +export interface GroupPipelineScopeInput extends ContractInput { + readonly kind: "group"; + readonly groupId: string; +} + export interface HistoryRedoCommandInput extends CommandBaseInput { readonly type: "history.redo"; readonly payload: HistoryReplayInput; @@ -1002,6 +1035,83 @@ export interface PinnedReferenceSourceInput extends ContractInput { readonly sourceVersion: CanvasItemVersionInput; } +export interface PipelineAdoptInput extends ContractInput { + readonly executionId: string; + readonly itemId: string; + readonly jobId: string; +} + +export interface PipelineAdoptCommandInput extends CommandBaseInput { + readonly type: "pipeline.adopt"; + readonly payload: PipelineAdoptInput; +} + +export interface PipelineCancelCommandInput extends CommandBaseInput { + readonly type: "pipeline.cancel"; + readonly payload: PipelineControlInput; +} + +export interface PipelineControlInput extends ContractInput { + readonly executionId: string; +} + +export interface PipelineExecutionQueryInput extends QueryBaseInput { + readonly type: "pipeline.execution.get"; + readonly objectId: string; +} + +export interface PipelineExecutionsQueryInput extends QueryBaseInput { + readonly type: "pipeline.executions.list"; + readonly groupId?: string | null; +} + +export interface PipelinePauseCommandInput extends CommandBaseInput { + readonly type: "pipeline.pause"; + readonly payload: PipelineControlInput; +} + +export interface PipelinePlanQueryInput extends QueryBaseInput { + readonly type: "pipeline.plan"; + readonly scope: GroupPipelineScopeInput | SelectionPipelineScopeInput | FromNodePipelineScopeInput; + readonly cachePolicy?: "reuse" | "force_from_node" | "force_all"; + readonly forceFromItemId?: string | null; +} + +export interface PipelineResumeCommandInput extends CommandBaseInput { + readonly type: "pipeline.resume"; + readonly payload: PipelineControlInput; +} + +export interface PipelineRetryInput extends ContractInput { + readonly executionId: string; + readonly stopOnFailure?: boolean; + readonly maxConcurrency?: number; +} + +export interface PipelineRetryCommandInput extends CommandBaseInput { + readonly type: "pipeline.retry"; + readonly payload: PipelineRetryInput; +} + +export interface PipelineStartInput extends ContractInput { + readonly scope: GroupPipelineScopeInput | SelectionPipelineScopeInput | FromNodePipelineScopeInput; + readonly cachePolicy?: "reuse" | "force_from_node" | "force_all"; + readonly forceFromItemId?: string | null; + readonly stopOnFailure?: boolean; + readonly maxConcurrency?: number; +} + +export interface PipelineStartCommandInput extends CommandBaseInput { + readonly type: "pipeline.start"; + readonly payload: PipelineStartInput; +} + +export interface PipelineStepIssueInput extends ContractInput { + readonly code: string; + readonly message: string; + readonly itemId?: string | null; +} + export interface PlayheadInput extends ContractInput { readonly editorDocumentId: string; readonly seconds?: number; @@ -1207,6 +1317,11 @@ export interface SelectionBoxInput extends ContractInput { readonly height: number; } +export interface SelectionPipelineScopeInput extends ContractInput { + readonly kind: "selection"; + readonly itemIds: ReadonlyArray; +} + export interface SpecCreateCommandInput extends CommandBaseInput { readonly type: "generationSpec.create"; readonly payload: SpecWriteInput; @@ -1657,7 +1772,7 @@ export type ReferenceInput = PinnedReferenceInput | FollowingReferenceInput; export type EditorDocumentInput = TimelineDocumentInput | SubjectDocumentInput | LayerDocumentInput | ImageCropDocumentInput | StackDocumentInput | ToolDocumentInput | DirectorDocumentInput | MediaEditDocumentInput; -export type CommandInput = ProjectCreateCommandInput | ProjectRenameCommandInput | ProjectTrashCommandInput | ProjectRestoreCommandInput | AssetImportCommandInput | ArtifactPublishCommandInput | AssetWriteTextCommandInput | AssetMetadataCommandInput | AssetDeleteCommandInput | CanvasCreateGenerationCommandInput | CanvasShowCommandInput | CanvasMoveCommandInput | CanvasUpdateCommandInput | CanvasLayoutRunsCommandInput | CanvasHideCommandInput | CanvasMaterializeCommandInput | CanvasApplyEditCommandInput | CanvasPublishMediaCommandInput | TimelinePublishRenderCommandInput | NodeVersionApplyCommandInput | CanvasConfigureCommandInput | CanvasEditorAttachCommandInput | CanvasEditorDetachCommandInput | SpecCreateCommandInput | SpecUpdateCommandInput | SpecRestoreCommandInput | SpecPromptCommandInput | ReferenceAddCommandInput | ReferenceUpdateCommandInput | ReferenceRestoreCommandInput | ReferenceRemoveCommandInput | GenerationSubmitCommandInput | JobCancelCommandInput | JobRecoverCommandInput | JobCheckpointCommandInput | ResultSelectCommandInput | EditorCreateCommandInput | EditorSaveCommandInput | HistoryUndoCommandInput | HistoryRedoCommandInput | BatchCommandInput; +export type CommandInput = ProjectCreateCommandInput | ProjectRenameCommandInput | ProjectTrashCommandInput | ProjectRestoreCommandInput | AssetImportCommandInput | ArtifactPublishCommandInput | AssetWriteTextCommandInput | AssetMetadataCommandInput | AssetDeleteCommandInput | CanvasCreateGenerationCommandInput | CanvasShowCommandInput | CanvasMoveCommandInput | CanvasUpdateCommandInput | CanvasLayoutPipelinesCommandInput | CanvasHideCommandInput | CanvasMaterializeCommandInput | CanvasApplyEditCommandInput | CanvasPublishMediaCommandInput | TimelinePublishRenderCommandInput | PipelineStartCommandInput | PipelinePauseCommandInput | PipelineResumeCommandInput | PipelineCancelCommandInput | PipelineRetryCommandInput | PipelineAdoptCommandInput | NodeVersionApplyCommandInput | CanvasConfigureCommandInput | CanvasEditorAttachCommandInput | CanvasEditorDetachCommandInput | SpecCreateCommandInput | SpecUpdateCommandInput | SpecRestoreCommandInput | SpecPromptCommandInput | ReferenceAddCommandInput | ReferenceUpdateCommandInput | ReferenceRestoreCommandInput | ReferenceRemoveCommandInput | GenerationSubmitCommandInput | JobCancelCommandInput | JobRecoverCommandInput | JobCheckpointCommandInput | ResultSelectCommandInput | EditorCreateCommandInput | EditorSaveCommandInput | HistoryUndoCommandInput | HistoryRedoCommandInput | BatchCommandInput; export type ExecutionParametersInput = TextExecutionInput | ImageExecutionInput | VideoExecutionInput | AudioExecutionInput; @@ -1821,7 +1936,7 @@ export interface BatchCommand extends CommandBase { } export interface BatchPayload extends Contract { - readonly operations: ReadonlyArray; + readonly operations: ReadonlyArray; } export interface CameraFrame extends Contract { @@ -1938,13 +2053,13 @@ export interface CanvasItemVersion extends ObjectVersion { readonly objectType: "canvas_item"; } -export interface CanvasLayoutRunsCommand extends CommandBase { - readonly type: "canvas.layoutRuns"; +export interface CanvasLayoutPipelinesCommand extends CommandBase { + readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayload; } -export interface CanvasLayoutRunsCommandOperation { - readonly type: "canvas.layoutRuns"; +export interface CanvasLayoutPipelinesCommandOperation { + readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayload; } @@ -1992,7 +2107,7 @@ export interface CanvasPresentationUpdate extends Contract { readonly locked: boolean | null; readonly color?: string | null; readonly parentId: string | null; - readonly autoLayout?: "run" | "free" | null; + readonly autoLayout?: "pipeline" | "free" | null; } export interface CanvasPublishMedia extends Contract { @@ -2091,6 +2206,28 @@ export interface CommandReceipt extends Contract { readonly jobIds: ReadonlyArray; readonly issues: ReadonlyArray; readonly eventCursor: number | null; + readonly pipelineExecutionId?: string | null; +} + +export interface CompiledPipelineGraph extends Contract { + readonly projectId: string; + readonly scope: GroupPipelineScope | SelectionPipelineScope | FromNodePipelineScope; + readonly cachePolicy: "reuse" | "force_from_node" | "force_all"; + readonly steps: ReadonlyArray; + readonly topologicalOrder: ReadonlyArray; + readonly issues: ReadonlyArray; + readonly plannedNewJobs: number; +} + +export interface CompiledPipelineStep extends Contract { + readonly itemId: string; + readonly kind: "generation" | "assembly"; + readonly upstreamItemIds: ReadonlyArray; + readonly inputFingerprint: string; + readonly cached: boolean; + readonly cacheCandidateJobId?: string | null; + readonly cacheCandidateAssetId?: string | null; + readonly expectedVersions: ReadonlyArray; } export interface ContainerBinding extends Contract { @@ -2114,9 +2251,9 @@ export interface CreationContracts extends Contract { readonly generationSpec: TextGenerationSpec | ImageGenerationSpec | VideoGenerationSpec | AudioGenerationSpec; readonly reference: PinnedReference | FollowingReference; readonly editorDocument: TimelineDocument | SubjectDocument | LayerDocument | ImageCropDocument | StackDocument | ToolDocument | DirectorDocument | MediaEditDocument; - readonly command: ProjectCreateCommand | ProjectRenameCommand | ProjectTrashCommand | ProjectRestoreCommand | AssetImportCommand | ArtifactPublishCommand | AssetWriteTextCommand | AssetMetadataCommand | AssetDeleteCommand | CanvasCreateGenerationCommand | CanvasShowCommand | CanvasMoveCommand | CanvasUpdateCommand | CanvasLayoutRunsCommand | CanvasHideCommand | CanvasMaterializeCommand | CanvasApplyEditCommand | CanvasPublishMediaCommand | TimelinePublishRenderCommand | NodeVersionApplyCommand | CanvasConfigureCommand | CanvasEditorAttachCommand | CanvasEditorDetachCommand | SpecCreateCommand | SpecUpdateCommand | SpecRestoreCommand | SpecPromptCommand | ReferenceAddCommand | ReferenceUpdateCommand | ReferenceRestoreCommand | ReferenceRemoveCommand | GenerationSubmitCommand | JobCancelCommand | JobRecoverCommand | JobCheckpointCommand | ResultSelectCommand | EditorCreateCommand | EditorSaveCommand | HistoryUndoCommand | HistoryRedoCommand | BatchCommand; + readonly command: ProjectCreateCommand | ProjectRenameCommand | ProjectTrashCommand | ProjectRestoreCommand | AssetImportCommand | ArtifactPublishCommand | AssetWriteTextCommand | AssetMetadataCommand | AssetDeleteCommand | CanvasCreateGenerationCommand | CanvasShowCommand | CanvasMoveCommand | CanvasUpdateCommand | CanvasLayoutPipelinesCommand | CanvasHideCommand | CanvasMaterializeCommand | CanvasApplyEditCommand | CanvasPublishMediaCommand | TimelinePublishRenderCommand | PipelineStartCommand | PipelinePauseCommand | PipelineResumeCommand | PipelineCancelCommand | PipelineRetryCommand | PipelineAdoptCommand | NodeVersionApplyCommand | CanvasConfigureCommand | CanvasEditorAttachCommand | CanvasEditorDetachCommand | SpecCreateCommand | SpecUpdateCommand | SpecRestoreCommand | SpecPromptCommand | ReferenceAddCommand | ReferenceUpdateCommand | ReferenceRestoreCommand | ReferenceRemoveCommand | GenerationSubmitCommand | JobCancelCommand | JobRecoverCommand | JobCheckpointCommand | ResultSelectCommand | EditorCreateCommand | EditorSaveCommand | HistoryUndoCommand | HistoryRedoCommand | BatchCommand; readonly receipt: CommandReceipt; - readonly query: ProjectQuery | ObjectQuery | VersionsQuery | AssetSearchQuery | AssetUsageQuery | CanvasStatusQuery | JobStatusQuery | AssetPreviewQuery; + readonly query: ProjectQuery | ObjectQuery | VersionsQuery | AssetSearchQuery | AssetUsageQuery | CanvasStatusQuery | JobStatusQuery | AssetPreviewQuery | PipelinePlanQuery | PipelineExecutionQuery | PipelineExecutionsQuery; readonly event: ProjectEvent; readonly job: Job; readonly result: ResultVersion; @@ -2233,6 +2370,12 @@ export interface FollowingSource extends Contract { readonly id: string; } +export interface FromNodePipelineScope extends Contract { + readonly kind: "from_node"; + readonly itemId: string; + readonly groupId?: string | null; +} + export interface GenerationBinding extends Contract { readonly role: "generation"; readonly objectRef: GenerationSpecRef; @@ -2280,10 +2423,15 @@ export interface GenerationSubmitCommand extends CommandBase { export interface GroupCanvasItem extends CanvasItemBase { readonly kind: "group"; - readonly autoLayout?: "run" | null; + readonly autoLayout?: "pipeline" | null; readonly binding: ContainerBinding; } +export interface GroupPipelineScope extends Contract { + readonly kind: "group"; + readonly groupId: string; +} + export interface HistoryRedoCommand extends CommandBase { readonly type: "history.redo"; readonly payload: HistoryReplay; @@ -2670,6 +2818,83 @@ export interface PinnedReferenceSource extends Contract { readonly sourceVersion: CanvasItemVersion; } +export interface PipelineAdopt extends Contract { + readonly executionId: string; + readonly itemId: string; + readonly jobId: string; +} + +export interface PipelineAdoptCommand extends CommandBase { + readonly type: "pipeline.adopt"; + readonly payload: PipelineAdopt; +} + +export interface PipelineCancelCommand extends CommandBase { + readonly type: "pipeline.cancel"; + readonly payload: PipelineControl; +} + +export interface PipelineControl extends Contract { + readonly executionId: string; +} + +export interface PipelineExecutionQuery extends QueryBase { + readonly type: "pipeline.execution.get"; + readonly objectId: string; +} + +export interface PipelineExecutionsQuery extends QueryBase { + readonly type: "pipeline.executions.list"; + readonly groupId?: string | null; +} + +export interface PipelinePauseCommand extends CommandBase { + readonly type: "pipeline.pause"; + readonly payload: PipelineControl; +} + +export interface PipelinePlanQuery extends QueryBase { + readonly type: "pipeline.plan"; + readonly scope: GroupPipelineScope | SelectionPipelineScope | FromNodePipelineScope; + readonly cachePolicy: "reuse" | "force_from_node" | "force_all"; + readonly forceFromItemId?: string | null; +} + +export interface PipelineResumeCommand extends CommandBase { + readonly type: "pipeline.resume"; + readonly payload: PipelineControl; +} + +export interface PipelineRetry extends Contract { + readonly executionId: string; + readonly stopOnFailure: boolean; + readonly maxConcurrency: number; +} + +export interface PipelineRetryCommand extends CommandBase { + readonly type: "pipeline.retry"; + readonly payload: PipelineRetry; +} + +export interface PipelineStart extends Contract { + readonly scope: GroupPipelineScope | SelectionPipelineScope | FromNodePipelineScope; + readonly cachePolicy: "reuse" | "force_from_node" | "force_all"; + readonly forceFromItemId?: string | null; + readonly stopOnFailure: boolean; + readonly maxConcurrency: number; +} + +export interface PipelineStartCommand extends CommandBase { + readonly type: "pipeline.start"; + readonly payload: PipelineStart; +} + +export interface PipelineStepIssue extends Contract { + readonly code: string; + readonly message: string; + readonly itemId?: string | null; +} + export interface Playhead extends Contract { readonly editorDocumentId: string; readonly seconds: number; @@ -2875,6 +3100,11 @@ export interface SelectionBox extends Contract { readonly height: number; } +export interface SelectionPipelineScope extends Contract { + readonly kind: "selection"; + readonly itemIds: ReadonlyArray; +} + export interface SpecCreateCommand extends CommandBase { readonly type: "generationSpec.create"; readonly payload: SpecWrite; @@ -3325,7 +3555,7 @@ export type Reference = PinnedReference | FollowingReference; export type EditorDocument = TimelineDocument | SubjectDocument | LayerDocument | ImageCropDocument | StackDocument | ToolDocument | DirectorDocument | MediaEditDocument; -export type Command = ProjectCreateCommand | ProjectRenameCommand | ProjectTrashCommand | ProjectRestoreCommand | AssetImportCommand | ArtifactPublishCommand | AssetWriteTextCommand | AssetMetadataCommand | AssetDeleteCommand | CanvasCreateGenerationCommand | CanvasShowCommand | CanvasMoveCommand | CanvasUpdateCommand | CanvasLayoutRunsCommand | CanvasHideCommand | CanvasMaterializeCommand | CanvasApplyEditCommand | CanvasPublishMediaCommand | TimelinePublishRenderCommand | NodeVersionApplyCommand | CanvasConfigureCommand | CanvasEditorAttachCommand | CanvasEditorDetachCommand | SpecCreateCommand | SpecUpdateCommand | SpecRestoreCommand | SpecPromptCommand | ReferenceAddCommand | ReferenceUpdateCommand | ReferenceRestoreCommand | ReferenceRemoveCommand | GenerationSubmitCommand | JobCancelCommand | JobRecoverCommand | JobCheckpointCommand | ResultSelectCommand | EditorCreateCommand | EditorSaveCommand | HistoryUndoCommand | HistoryRedoCommand | BatchCommand; +export type Command = ProjectCreateCommand | ProjectRenameCommand | ProjectTrashCommand | ProjectRestoreCommand | AssetImportCommand | ArtifactPublishCommand | AssetWriteTextCommand | AssetMetadataCommand | AssetDeleteCommand | CanvasCreateGenerationCommand | CanvasShowCommand | CanvasMoveCommand | CanvasUpdateCommand | CanvasLayoutPipelinesCommand | CanvasHideCommand | CanvasMaterializeCommand | CanvasApplyEditCommand | CanvasPublishMediaCommand | TimelinePublishRenderCommand | PipelineStartCommand | PipelinePauseCommand | PipelineResumeCommand | PipelineCancelCommand | PipelineRetryCommand | PipelineAdoptCommand | NodeVersionApplyCommand | CanvasConfigureCommand | CanvasEditorAttachCommand | CanvasEditorDetachCommand | SpecCreateCommand | SpecUpdateCommand | SpecRestoreCommand | SpecPromptCommand | ReferenceAddCommand | ReferenceUpdateCommand | ReferenceRestoreCommand | ReferenceRemoveCommand | GenerationSubmitCommand | JobCancelCommand | JobRecoverCommand | JobCheckpointCommand | ResultSelectCommand | EditorCreateCommand | EditorSaveCommand | HistoryUndoCommand | HistoryRedoCommand | BatchCommand; export type ExecutionParameters = TextExecution | ImageExecution | VideoExecution | AudioExecution; diff --git a/src/i18n/messages/en-US/canvasShell.ts b/src/i18n/messages/en-US/canvasShell.ts index 249c1ad02..c36482bed 100644 --- a/src/i18n/messages/en-US/canvasShell.ts +++ b/src/i18n/messages/en-US/canvasShell.ts @@ -161,6 +161,32 @@ export const canvasShell = { "canvas.selection.group.colorBlue": "Blue", "canvas.selection.group.colorPurple": "Purple", "canvas.selection.group.download": "Download group assets", + "canvas.pipeline.drawerTitle": "Pipeline execution", + "canvas.pipeline.summary": "{total} steps · {succeeded} generated · {cached} cached · {failed} failed", + "canvas.pipeline.action.run": "Run pipeline", + "canvas.pipeline.action.pause": "Pause", + "canvas.pipeline.action.resume": "Resume", + "canvas.pipeline.action.cancel": "Stop", + "canvas.pipeline.action.retryFailed": "Retry failed", + "canvas.pipeline.action.forceAll": "Rerun all", + "canvas.pipeline.action.details": "Pipeline details", + "canvas.pipeline.status.queued": "Queued", + "canvas.pipeline.status.running": "Running", + "canvas.pipeline.status.pausing": "Pausing", + "canvas.pipeline.status.paused": "Paused", + "canvas.pipeline.status.awaitingInput": "Awaiting selection", + "canvas.pipeline.status.succeeded": "Completed", + "canvas.pipeline.status.failed": "Failed", + "canvas.pipeline.status.cancelled": "Stopped", + "canvas.pipeline.step.pending": "Pending", + "canvas.pipeline.step.cached": "Cached", + "canvas.pipeline.step.ready": "Ready", + "canvas.pipeline.step.running": "Running", + "canvas.pipeline.step.awaitingInput": "Awaiting selection", + "canvas.pipeline.step.succeeded": "Done", + "canvas.pipeline.step.failed": "Failed", + "canvas.pipeline.step.skipped": "Skipped", + "canvas.pipeline.step.cancelled": "Stopped", "canvas.selection.duplicate": "Duplicate", "canvas.selection.deleteNode": "Delete node", diff --git a/src/i18n/messages/en-US/canvasWorkspace.ts b/src/i18n/messages/en-US/canvasWorkspace.ts index 94c8d2a7e..dddd1b43d 100644 --- a/src/i18n/messages/en-US/canvasWorkspace.ts +++ b/src/i18n/messages/en-US/canvasWorkspace.ts @@ -147,6 +147,17 @@ export const canvasWorkspace = { "canvas.workspace.menu.organizeRuns": "Organize Runs", "canvas.workspace.menu.lockRun": "Lock Run", "canvas.workspace.menu.runGroupChanged": "This group changed. Select an unlocked top-level group and try again.", + "canvas.workspace.pipeline.started": "Pipeline started.", + "canvas.workspace.pipeline.startFailed": "Could not start pipeline: {error}", + "canvas.workspace.pipeline.done": "Pipeline completed: {count} nodes generated.", + "canvas.workspace.pipeline.doneWithCache": "Pipeline completed: {succeeded} generated, {cached} cached.", + "canvas.workspace.pipeline.incomplete": "Pipeline finished: {succeeded} completed, {failed} failed, {skipped} skipped.", + "canvas.workspace.pipeline.pauseRequested": "Pause requested. The pipeline will stop after in-flight nodes finish.", + "canvas.workspace.pipeline.paused": "Pipeline paused.", + "canvas.workspace.pipeline.resumed": "Pipeline resumed.", + "canvas.workspace.pipeline.cancelled": "Pipeline stopped.", + "canvas.workspace.pipeline.retrying": "Retrying failed and skipped nodes.", + "canvas.workspace.pipeline.actionFailed": "Pipeline action failed: {error}", "canvas.workspace.menu.stackSelection": "Stack assets", "canvas.workspace.menu.ungroup": "Ungroup", "canvas.workspace.menu.autoArrange": "Auto arrange", diff --git a/src/i18n/messages/zh-CN/canvasShell.ts b/src/i18n/messages/zh-CN/canvasShell.ts index 6b0d1b5b3..805cb80cd 100644 --- a/src/i18n/messages/zh-CN/canvasShell.ts +++ b/src/i18n/messages/zh-CN/canvasShell.ts @@ -157,6 +157,32 @@ export const canvasShell = { "canvas.selection.group.colorBlue": "蓝色", "canvas.selection.group.colorPurple": "紫色", "canvas.selection.group.download": "下载组内素材", + "canvas.pipeline.drawerTitle": "流水线执行", + "canvas.pipeline.summary": "共 {total} 步 · 新完成 {succeeded} · 复用 {cached} · 失败 {failed}", + "canvas.pipeline.action.run": "运行流水线", + "canvas.pipeline.action.pause": "暂停", + "canvas.pipeline.action.resume": "继续", + "canvas.pipeline.action.cancel": "停止", + "canvas.pipeline.action.retryFailed": "重试失败项", + "canvas.pipeline.action.forceAll": "全部重跑", + "canvas.pipeline.action.details": "流水线详情", + "canvas.pipeline.status.queued": "排队中", + "canvas.pipeline.status.running": "运行中", + "canvas.pipeline.status.pausing": "暂停中", + "canvas.pipeline.status.paused": "已暂停", + "canvas.pipeline.status.awaitingInput": "待采用", + "canvas.pipeline.status.succeeded": "已完成", + "canvas.pipeline.status.failed": "有失败", + "canvas.pipeline.status.cancelled": "已停止", + "canvas.pipeline.step.pending": "等待中", + "canvas.pipeline.step.cached": "已复用", + "canvas.pipeline.step.ready": "就绪", + "canvas.pipeline.step.running": "生成中", + "canvas.pipeline.step.awaitingInput": "待采用", + "canvas.pipeline.step.succeeded": "已完成", + "canvas.pipeline.step.failed": "失败", + "canvas.pipeline.step.skipped": "已跳过", + "canvas.pipeline.step.cancelled": "已停止", "canvas.selection.duplicate": "创建副本", "canvas.selection.deleteNode": "删除节点", diff --git a/src/i18n/messages/zh-CN/canvasWorkspace.ts b/src/i18n/messages/zh-CN/canvasWorkspace.ts index 9db2e2d52..d2072f0ed 100644 --- a/src/i18n/messages/zh-CN/canvasWorkspace.ts +++ b/src/i18n/messages/zh-CN/canvasWorkspace.ts @@ -146,6 +146,17 @@ export const canvasWorkspace = { "canvas.workspace.menu.organizeRuns": "整理 Run", "canvas.workspace.menu.lockRun": "锁定 Run", "canvas.workspace.menu.runGroupChanged": "分组已发生变化,请选择一个未锁定的顶层分组后重试。", + "canvas.workspace.pipeline.started": "已启动流水线。", + "canvas.workspace.pipeline.startFailed": "无法启动流水线:{error}", + "canvas.workspace.pipeline.done": "流水线已完成,共生成 {count} 个节点。", + "canvas.workspace.pipeline.doneWithCache": "流水线已完成:新生成 {succeeded} 个节点,复用 {cached} 个未改动节点。", + "canvas.workspace.pipeline.incomplete": "流水线结束:完成 {succeeded},失败 {failed},跳过 {skipped}。", + "canvas.workspace.pipeline.pauseRequested": "已请求暂停流水线,当前节点完成后将停下。", + "canvas.workspace.pipeline.paused": "流水线已暂停。", + "canvas.workspace.pipeline.resumed": "已继续流水线。", + "canvas.workspace.pipeline.cancelled": "流水线已停止。", + "canvas.workspace.pipeline.retrying": "正在重试失败与跳过的节点。", + "canvas.workspace.pipeline.actionFailed": "流水线操作失败:{error}", "canvas.workspace.menu.stackSelection": "资源堆叠", "canvas.workspace.menu.ungroup": "取消编组", "canvas.workspace.menu.autoArrange": "自动排列", diff --git a/tests/groupWorkflow.test.ts b/tests/groupWorkflow.test.ts deleted file mode 100644 index 325353fd2..000000000 --- a/tests/groupWorkflow.test.ts +++ /dev/null @@ -1,86 +0,0 @@ -import assert from "node:assert/strict"; -import test from "node:test"; -import { runWorkflowSteps } from "../src/canvas/groupWorkflow.ts"; - -const edge = (source: string, target: string) => ({ source, target, intent: undefined }); - -function harness(fail: readonly string[] = []) { - const events: string[] = []; - const pending = new Map void>(); - let active = 0, - peak = 0; - const runStep = (id: string) => - new Promise((resolve) => { - events.push(`start:${id}`); - active++; - peak = Math.max(peak, active); - pending.set(id, () => { - active--; - events.push(`end:${id}`); - resolve(!fail.includes(id)); - }); - }); - const finish = async (id: string) => { - for (let tries = 0; !pending.has(id) && tries < 50; tries++) - await new Promise((resolve) => setTimeout(resolve, 1)); - pending.get(id)!(); - pending.delete(id); - await new Promise((resolve) => setTimeout(resolve, 1)); - }; - return { events, runStep, finish, peak: () => peak }; -} - -test("independent steps run concurrently and dependents wait for their references", async () => { - const h = harness(); - // a -> c, b -> c, d independent. - const run = runWorkflowSteps(["a", "b", "c", "d"], [edge("a", "c"), edge("b", "c")], h.runStep); - await new Promise((resolve) => setTimeout(resolve, 1)); - assert.deepEqual(h.events, ["start:a", "start:b", "start:d"]); - await h.finish("a"); - assert.ok(!h.events.includes("start:c"), "c waits for b"); - await h.finish("b"); - assert.ok(h.events.includes("start:c")); - await h.finish("c"); - await h.finish("d"); - assert.deepEqual(await run, { succeeded: ["a", "b", "c", "d"], failed: [], skipped: [] }); - assert.equal(h.peak(), 3); -}); - -test("a failure skips its downstream chain but not unrelated steps", async () => { - const h = harness(["a"]); - const run = runWorkflowSteps(["a", "b", "c", "x"], [edge("a", "b"), edge("b", "c")], h.runStep); - await h.finish("a"); - await h.finish("x"); - assert.deepEqual(await run, { succeeded: ["x"], failed: ["a"], skipped: ["b", "c"] }); - assert.ok(!h.events.includes("start:b")); -}); - -test("reference cycles are skipped; inputs-only nodes and edit provenance add no dependency", async () => { - const h = harness(); - const run = runWorkflowSteps( - ["a", "b", "c"], - [edge("a", "b"), edge("b", "a"), edge("material", "c"), { source: "a", target: "c", intent: "post_edit_result" }], - h.runStep, - ); - await h.finish("c"); - assert.deepEqual(await run, { succeeded: ["c"], failed: [], skipped: ["a", "b"] }); -}); - -test("a dependency carried through a non-step node still orders the steps", async () => { - const h = harness(); - // image a -> subject s -> video b: b must wait for a. - const run = runWorkflowSteps(["a", "b"], [edge("a", "s"), edge("s", "b")], h.runStep); - await new Promise((resolve) => setTimeout(resolve, 1)); - assert.deepEqual(h.events, ["start:a"]); - await h.finish("a"); - await h.finish("b"); - assert.deepEqual(await run, { succeeded: ["a", "b"], failed: [], skipped: [] }); -}); - -test("a step that throws counts as failed", async () => { - const result = await runWorkflowSteps(["a", "b"], [edge("a", "b")], async (id) => { - if (id === "a") throw new Error("boom"); - return true; - }); - assert.deepEqual(result, { succeeded: [], failed: ["a"], skipped: ["b"] }); -}); diff --git a/tests/test_creation_api.py b/tests/test_creation_api.py index 4bd390a93..77173ddd1 100644 --- a/tests/test_creation_api.py +++ b/tests/test_creation_api.py @@ -358,7 +358,7 @@ def test_run_layout_reflows_subsequent_rows_after_children_grow(api): group_ids, child_ids, timeline_ids = [], [], [] for name in ('A', 'B', 'C'): group = _show_layout_item(project_id, 'group', title=f'Run {name}', - width=1200, height=300, autoLayout='run') + width=1200, height=300, autoLayout='pipeline') group_id = _layout_item_id(group) plan = _show_layout_item(project_id, 'text', title=f'Plan {name}', parentId=group_id) timeline_id = str(uuid4()) @@ -408,7 +408,7 @@ def test_run_layout_reflows_subsequent_rows_after_children_grow(api): assert 0 <= left < right <= after[a]['width'] assert 0 <= top < bottom <= after[a]['height'] - _layout_command(client, path, project_id, 'canvas.layoutRuns', {}, status='noop') + _layout_command(client, path, project_id, 'canvas.layoutPipelines', {}, status='noop') assert _canvas_items(client.get(path).json()) == after @@ -419,7 +419,7 @@ def test_run_layout_respects_locked_runs_and_ordinary_root_items(api): assert client.post(path + '/open').status_code == 200 fixed = _show_layout_item(project_id, 'group', title='Locked Run', width=650, - height=480, position=dict(x=1100, y=0), autoLayout='run', locked=True) + height=480, position=dict(x=1100, y=0), autoLayout='pipeline', locked=True) ordinary = _show_layout_item(project_id, 'text', title='Source', width=1000, height=480) managed = _show_layout_item(project_id, 'group', title='Run to arrange', width=1200, height=300) fixed_id, ordinary_id, managed_id = map(_layout_item_id, (fixed, ordinary, managed)) @@ -429,13 +429,13 @@ def test_run_layout_respects_locked_runs_and_ordinary_root_items(api): before = _canvas_items(client.get(path).json()) assert before[managed_id]['position'] == before[ordinary_id]['position'] _layout_command(client, path, project_id, 'canvas.update', - dict(itemId=managed_id, autoLayout='run'), + dict(itemId=managed_id, autoLayout='pipeline'), expected_versions=[dict(objectType='canvas_item', id=managed_id, revision=before[managed_id]['revision'])]) after = _canvas_items(client.get(path).json()) assert after[fixed_id] == before[fixed_id] assert after[ordinary_id] == before[ordinary_id] - assert after[managed_id]['autoLayout'] == 'run' + assert after[managed_id]['autoLayout'] == 'pipeline' _assert_disjoint([after[key] for key in (fixed_id, ordinary_id, managed_id)]) child = _show_layout_item(project_id, 'text', parentId=fixed_id) @@ -462,7 +462,7 @@ def test_run_layout_rejects_intersecting_locked_runs_atomically(api): project_id = command['projectId'] assert client.post(path + '/open').status_code == 200 - operations = [_show_layout_item(project_id, 'group', title=title, autoLayout='run', locked=True) + operations = [_show_layout_item(project_id, 'group', title=title, autoLayout='pipeline', locked=True) for title in ('First', 'Second')] response = client.post(path + '/commands', json=dict( type='creation.batch', commandId=str(uuid4()), projectId=project_id, @@ -487,7 +487,7 @@ def test_run_layout_shares_material_but_rejects_shared_editable_objects(api): material = dict(role='material', objectRef=dict( assetId=asset['id'], revision=asset['revision'], fingerprint=asset['fingerprint'], kind='text', )) - runs = [_show_layout_item(project_id, 'group', autoLayout='run') for _ in range(2)] + runs = [_show_layout_item(project_id, 'group', autoLayout='pipeline') for _ in range(2)] run_ids = [_layout_item_id(run) for run in runs] sources = [_show_layout_item(project_id, 'text', parentId=run_id, binding=material) for run_id in run_ids] _layout_command(client, path, project_id, 'creation.batch', dict(operations=[*runs, *sources])) @@ -531,7 +531,7 @@ def test_run_layout_rejects_unrepresentable_placement(api): assert client.post(path + '/open').status_code == 200 before = client.get(path).json() obstacle = _show_layout_item(project_id, 'group', width=3000, height=1e20) - run = _show_layout_item(project_id, 'group', width=2000, autoLayout='run') + run = _show_layout_item(project_id, 'group', width=2000, autoLayout='pipeline') receipt = client.post(path + '/commands', json=dict( type='creation.batch', projectId=project_id, commandId=str(uuid4()), payload=dict(operations=[obstacle, run]), diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py new file mode 100644 index 000000000..180452ecc --- /dev/null +++ b/tests/test_pipeline.py @@ -0,0 +1,377 @@ +"""Tests for Pipeline DAG compilation, caching, concurrent execution, and control lifecycle.""" + +import asyncio +from uuid import UUID, uuid4 + +import pytest + +from opendirector.application.creation_generation import CreationGeneration +from opendirector.application.creation_pipeline import PipelineExecutor +from opendirector.domain.creation.commands import parse_command +from opendirector.domain.creation.pipeline import ( + FromNodePipelineScope, + GroupPipelineScope, + SelectionPipelineScope, + compile_pipeline, +) +from opendirector.domain.projects import ProjectError +from opendirector.infrastructure.model_configs import ModelConfigs +from test_creation_canvas_service import media, project, send, ver + + +pytestmark = [pytest.mark.cpu, pytest.mark.ready] + + +@pytest.fixture +def anyio_backend(): + return 'asyncio' + + +class StubProvider: + def __init__(self, *, barrier_prompts=None, fail_prompts=None, gate=None): + self.calls = [] + self.barrier_prompts = set(barrier_prompts or ()) + self.arrived = set() + self.barrier_ready = asyncio.Event() + self.fail_prompts = set(fail_prompts or ()) + self.gate = gate + + def validate(self, kind, config): + pass + + async def generate(self, config, task, submitted): + prompt = task.inputSnapshot.spec.prompt if hasattr(task, 'inputSnapshot') else task['prompt'] + self.calls.append(prompt) + if prompt in self.barrier_prompts: + self.arrived.add(prompt) + if self.barrier_prompts <= self.arrived: + self.barrier_ready.set() + await asyncio.wait_for(self.barrier_ready.wait(), timeout=5) + if self.gate is not None: + await self.gate.wait() + if prompt in self.fail_prompts: + raise RuntimeError(f'forced failure for {prompt}') + return 'md', f'output:{prompt}:{len(self.calls)}'.encode() + + +def _make_runtime(project_fixture, provider): + store, _, _ = project_fixture + configs = ModelConfigs(store.local.repository) + config = configs.save( + 'agent', 'http://127.0.0.1:12345/v1', 'test-agent', '', + connection_type='self_hosted', protocol='openai', auth_mode='none', + ) + generation = CreationGeneration(store, configs, provider) + pipelines = PipelineExecutor(store, generation, configs) + generation.pipelines = pipelines + return generation, pipelines, config + + +def _make_text_node(project_fixture, config, prompt, *, parent_id=None, title=None): + store, pid, session = project_fixture + item, spec = media(project_fixture, 'text', title=title or prompt, purpose='generation') + if parent_id is not None: + assert send(store, pid, 'canvas.update', session=session, versions=[ver('canvas_item', item)], + itemId=item.id, parentId=parent_id).status == 'applied' + updated_spec = spec.model_copy(update={'prompt': prompt, 'modelConfigId': UUID(config['id'])}) + assert send(store, pid, 'generationSpec.update', session=session, versions=[ver('generation_spec', spec)], + spec=updated_spec).status == 'applied' + snapshot = store.snapshot(pid) + return ( + next(c for c in snapshot.canvasItems if c.id == item.id), + next(s for s in snapshot.generationSpecs if s.id == spec.id), + ) + + +def _link(project_fixture, source_item, target_item, target_spec, order=0): + store, pid, session = project_fixture + snapshot = store.snapshot(pid) + fresh_spec = next(s for s in snapshot.generationSpecs if s.id == target_spec.id) + fresh_source = next(c for c in snapshot.canvasItems if c.id == source_item.id) + fresh_target = next(c for c in snapshot.canvasItems if c.id == target_item.id) + ref = { + 'id': str(uuid4()), + 'projectId': str(pid), + 'targetSpecId': str(fresh_spec.id), + 'role': 'reference', + 'order': order, + 'binding': 'follow_current', + 'source': {'objectType': 'canvas_item', 'id': str(fresh_source.id)}, + } + receipt = send( + store, pid, 'reference.add', session=session, + versions=[ver('generation_spec', fresh_spec), ver('canvas_item', fresh_target)], + reference=ref, + ) + assert receipt.status == 'applied', receipt + + +async def _wait_pipeline(pipelines, project_id, execution_id, *, targets=('succeeded', 'failed', 'paused', 'cancelled')): + for _ in range(200): + status = await pipelines.status(project_id, execution_id) + if status['status'] in targets: + return status + await asyncio.sleep(0.02) + raise AssertionError(f'Pipeline {execution_id} did not reach {targets}: {status}') + + +@pytest.mark.anyio +async def test_pipeline_compile_cycle_rejected_before_execution(project): + store, pid, session = project + provider = StubProvider() + generation, pipelines, config = _make_runtime(project, provider) + group_id = uuid4() + assert send(store, pid, 'canvas.show', session=session, item={ + 'id': str(group_id), 'projectId': str(pid), 'kind': 'group', 'title': 'Cyclic', + }).status == 'applied' + node_a, spec_a = _make_text_node(project, config, 'step-a', parent_id=group_id) + node_b, spec_b = _make_text_node(project, config, 'step-b', parent_id=group_id) + _link(project, node_a, node_b, spec_b) + _link(project, node_b, node_a, spec_a) + + plan = await pipelines.plan(pid, GroupPipelineScope(kind='group', groupId=group_id)) + assert plan['issues'] + assert plan['issues'][0]['code'] == 'pipeline_cycle' + + start_cmd = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'scope': {'kind': 'group', 'groupId': str(group_id)}}, + }) + with pytest.raises(ProjectError) as exc: + await generation.execute(start_cmd, session=session) + assert exc.value.code == 'pipeline_cycle' + assert store.snapshot(pid).jobs == () + + +@pytest.mark.anyio +async def test_pipeline_concurrent_branches_and_default_cache_reuse(project): + store, pid, session = project + provider = StubProvider(barrier_prompts={'branch-left', 'branch-right'}) + generation, pipelines, config = _make_runtime(project, provider) + await generation.start() + await pipelines.start() + try: + group_id = uuid4() + assert send(store, pid, 'canvas.show', session=session, item={ + 'id': str(group_id), 'projectId': str(pid), 'kind': 'group', 'title': 'Diamond', + }).status == 'applied' + left, _ = _make_text_node(project, config, 'branch-left', parent_id=group_id) + right, _ = _make_text_node(project, config, 'branch-right', parent_id=group_id) + merge, spec_merge = _make_text_node(project, config, 'merge-v1', parent_id=group_id) + _link(project, left, merge, spec_merge, order=0) + _link(project, right, merge, spec_merge, order=1) + + cmd1 = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'scope': {'kind': 'group', 'groupId': str(group_id)}}, + }) + receipt1 = await generation.execute(cmd1, session=session) + assert receipt1.pipelineExecutionId == cmd1.commandId + done1 = await _wait_pipeline(pipelines, pid, cmd1.commandId) + assert done1['status'] == 'succeeded' + # Both branches hit the concurrency barrier simultaneously. + assert provider.barrier_ready.is_set() + assert provider.calls.count('branch-left') == 1 + assert provider.calls.count('branch-right') == 1 + assert provider.calls.count('merge-v1') == 1 + + # Edit only the merge node prompt; left and right are untouched. + fresh_merge_spec = next(s for s in store.snapshot(pid).generationSpecs if s.id == spec_merge.id) + assert send(store, pid, 'generationSpec.update', session=session, + versions=[ver('generation_spec', fresh_merge_spec)], + spec=fresh_merge_spec.model_copy(update={'prompt': 'merge-v2'})).status == 'applied' + + plan2 = await pipelines.plan(pid, GroupPipelineScope(kind='group', groupId=group_id)) + assert plan2['plannedNewJobs'] == 1 + cached_ids = {step['itemId'] for step in plan2['steps'] if step['cached']} + assert cached_ids == {str(left.id), str(right.id)} + + cmd2 = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'scope': {'kind': 'group', 'groupId': str(group_id)}, 'cachePolicy': 'reuse'}, + }) + await generation.execute(cmd2, session=session) + done2 = await _wait_pipeline(pipelines, pid, cmd2.commandId) + assert done2['status'] == 'succeeded' + statuses2 = {step['itemId']: step['status'] for step in done2['steps']} + assert statuses2[str(left.id)] == 'cached' + assert statuses2[str(right.id)] == 'cached' + assert statuses2[str(merge.id)] == 'succeeded' + # Left and right were NOT re-run. + assert provider.calls.count('branch-left') == 1 + assert provider.calls.count('branch-right') == 1 + assert provider.calls.count('merge-v2') == 1 + + # Force all re-runs everything. + provider.arrived.clear() + provider.barrier_ready.clear() + cmd3 = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'scope': {'kind': 'group', 'groupId': str(group_id)}, 'cachePolicy': 'force_all'}, + }) + await generation.execute(cmd3, session=session) + done3 = await _wait_pipeline(pipelines, pid, cmd3.commandId) + assert done3['status'] == 'succeeded' + assert provider.calls.count('branch-left') == 2 + assert provider.calls.count('branch-right') == 2 + assert provider.calls.count('merge-v2') == 2 + finally: + await pipelines.close() + await generation.close() + + +@pytest.mark.anyio +async def test_pipeline_partial_failure_skips_downstream_and_retry_reuses_succeeded(project): + store, pid, session = project + provider = StubProvider(fail_prompts={'step-a'}) + generation, pipelines, config = _make_runtime(project, provider) + await generation.start() + await pipelines.start() + try: + node_a, _ = _make_text_node(project, config, 'step-a') + node_b, spec_b = _make_text_node(project, config, 'step-b') + node_c, _ = _make_text_node(project, config, 'step-c') + _link(project, node_a, node_b, spec_b) + + scope = {'kind': 'selection', 'itemIds': [str(node_a.id), str(node_b.id), str(node_c.id)]} + start_cmd = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'scope': scope}, + }) + await generation.execute(start_cmd, session=session) + failed = await _wait_pipeline(pipelines, pid, start_cmd.commandId) + assert failed['status'] == 'failed' + statuses = {step['itemId']: step['status'] for step in failed['steps']} + assert statuses == {str(node_a.id): 'failed', str(node_b.id): 'skipped', str(node_c.id): 'succeeded'} + + # Clear failure and retry: step-c must be reused, only step-a and step-b execute. + provider.fail_prompts.clear() + retry_cmd = parse_command({ + 'type': 'pipeline.retry', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'executionId': str(start_cmd.commandId)}, + }) + await generation.execute(retry_cmd, session=session) + recovered = await _wait_pipeline(pipelines, pid, start_cmd.commandId) + assert recovered['status'] == 'succeeded' + assert provider.calls.count('step-c') == 1 + assert provider.calls.count('step-a') == 2 + assert provider.calls.count('step-b') == 1 + finally: + await pipelines.close() + await generation.close() + + +@pytest.mark.anyio +async def test_pipeline_pause_resume_and_idempotent_replay(project): + store, pid, session = project + gate = asyncio.Event() + provider = StubProvider(gate=gate) + generation, pipelines, config = _make_runtime(project, provider) + await generation.start() + await pipelines.start() + try: + node_a, _ = _make_text_node(project, config, 'first-step') + node_b, spec_b = _make_text_node(project, config, 'second-step') + _link(project, node_a, node_b, spec_b) + + scope = {'kind': 'from_node', 'itemId': str(node_a.id)} + cmd_id = uuid4() + start_cmd = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(cmd_id), + 'payload': {'scope': scope}, + }) + receipt1 = await generation.execute(start_cmd, session=session) + # Idempotent replay with same commandId and payload returns same execution. + receipt2 = await generation.execute(start_cmd, session=session) + assert receipt1.pipelineExecutionId == receipt2.pipelineExecutionId + + # Conflicting payload with same commandId is rejected. + conflict_cmd = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(cmd_id), + 'payload': {'scope': scope, 'cachePolicy': 'force_all'}, + }) + with pytest.raises(ProjectError) as exc: + await generation.execute(conflict_cmd, session=session) + assert exc.value.code == 'command_conflict' + + # Request pause while step A is in-flight; release gate so step A finishes and pipeline pauses before B. + pause_cmd = parse_command({ + 'type': 'pipeline.pause', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'executionId': str(cmd_id)}, + }) + await generation.execute(pause_cmd, session=session) + gate.set() + paused = await _wait_pipeline(pipelines, pid, cmd_id, targets=('paused',)) + assert paused['status'] == 'paused' + assert provider.calls == ['first-step'] + + resume_cmd = parse_command({ + 'type': 'pipeline.resume', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'executionId': str(cmd_id)}, + }) + await generation.execute(resume_cmd, session=session) + done = await _wait_pipeline(pipelines, pid, cmd_id, targets=('succeeded',)) + assert done['status'] == 'succeeded' + assert provider.calls == ['first-step', 'second-step'] + finally: + await pipelines.close() + await generation.close() + + +@pytest.mark.anyio +async def test_pipeline_cancel_marks_pending_steps_cancelled(project): + store, pid, session = project + gate = asyncio.Event() + provider = StubProvider(gate=gate) + generation, pipelines, config = _make_runtime(project, provider) + await generation.start() + await pipelines.start() + try: + node_a, _ = _make_text_node(project, config, 'cancel-a') + node_b, spec_b = _make_text_node(project, config, 'cancel-b') + _link(project, node_a, node_b, spec_b) + + cmd_id = uuid4() + start_cmd = parse_command({ + 'type': 'pipeline.start', + 'projectId': str(pid), + 'commandId': str(cmd_id), + 'payload': {'scope': {'kind': 'from_node', 'itemId': str(node_a.id)}}, + }) + await generation.execute(start_cmd, session=session) + cancel_cmd = parse_command({ + 'type': 'pipeline.cancel', + 'projectId': str(pid), + 'commandId': str(uuid4()), + 'payload': {'executionId': str(cmd_id)}, + }) + await generation.execute(cancel_cmd, session=session) + gate.set() + cancelled = await _wait_pipeline(pipelines, pid, cmd_id, targets=('cancelled',)) + assert cancelled['status'] == 'cancelled' + statuses = {step['itemId']: step['status'] for step in cancelled['steps']} + assert statuses[str(node_b.id)] == 'cancelled' + assert 'cancel-b' not in provider.calls + finally: + await pipelines.close() + await generation.close() From 31a45df1234f9f4ee692dede3fea27c04cc2f1bf Mon Sep 17 00:00:00 2001 From: Weiming Liao Date: Sun, 29 Nov 2026 11:10:08 +0800 Subject: [PATCH 2/2] [bugfix] agent: preserve nested Pipeline query schemas ## summary Remove host-provided IDs only from top-level query branches so the Agent tool gateway can initialize with nested Pipeline scopes. Cover all three scope variants and record the regression in the development lessons. --- docs/development/lessons.md | 6 ++++++ packages/core/src/opendirector/agent/tools.py | 4 +++- tests/test_query_guidance.py | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/development/lessons.md b/docs/development/lessons.md index f012d62d0..a706d3b93 100644 --- a/docs/development/lessons.md +++ b/docs/development/lessons.md @@ -148,3 +148,9 @@ When work exposes a consequential risk or a recurring problem, add a lesson or u - **Trigger:** Reusing one editor component inside a settings dialog and inside a first-run page. - **Lesson:** The model service editor renders under both `.cw-settings-dialog` and the first-run `.cw-welcome` setup step. Every shared control rule was written as a descendant of the dialog, so the second host silently fell back to bare browser controls: buttons lost border, padding and radius, inputs lost their height, and the `--settings-*` metrics declared on the dialog were undefined. The markup was correct in both hosts, which is why text and click assertions passed while the layout was unusable. - **Check:** Hang shared styles off the component's own root and use `:is(hostA, hostB)` only where a rule must still win from the host. Declare the component's design tokens and inherited `font` on that root too; a `var()` whose declaration lives on one host does not fail loudly, it resolves to the inherited or initial value. Compare computed styles and geometry of the same controls under both hosts before and after the change, on a freshly started dev server; a stale module graph can serve the previous CSS and make an unchanged reading look like proof. + +## Tool schemas distinguish query envelopes from nested inputs + +- **Trigger:** Adding a nested input model to an Agent query. +- **Lesson:** [PR #565](https://github.com/ThinkFlowLab/OpenDirector/pull/565) added Pipeline scopes to the query schema. Removing host-provided IDs from every definition raised `KeyError: 'queryId'` on a scope definition and prevented Agent turns from starting. +- **Check:** Project host-owned fields out of the root query branches. Verify that the exposed tool schema preserves nested discriminators and required fields, and that an Agent turn can initialize its tool gateway. diff --git a/packages/core/src/opendirector/agent/tools.py b/packages/core/src/opendirector/agent/tools.py index 1eae68224..a3610de92 100644 --- a/packages/core/src/opendirector/agent/tools.py +++ b/packages/core/src/opendirector/agent/tools.py @@ -260,7 +260,9 @@ def tools() -> list[dict]: 'additionalProperties': False})) query_schema = TypeAdapter(Query).json_schema() query_schema['type'] = 'object' - for definition in query_schema['$defs'].values(): + for branch in query_schema['oneOf']: + name = branch['$ref'].removeprefix('#/$defs/') + definition = query_schema['$defs'][name] for field in ('queryId', 'projectId'): definition['properties'].pop(field) definition['required'].remove(field) diff --git a/tests/test_query_guidance.py b/tests/test_query_guidance.py index a7644452a..7f223c8ba 100644 --- a/tests/test_query_guidance.py +++ b/tests/test_query_guidance.py @@ -27,6 +27,25 @@ def test_the_tool_description_lists_every_legal_type(): assert 'canvas_items' not in QUERY_TYPES +def test_query_tool_keeps_nested_pipeline_scopes_and_hides_host_fields(): + schema = next(item['function']['parameters'] for item in tools() + if item['function']['name'] == 'query') + definitions = schema['$defs'] + queries = schema['discriminator']['mapping'] + for ref in queries.values(): + query = definitions[ref.rsplit('/', 1)[-1]] + assert {'queryId', 'projectId'}.isdisjoint(query['properties']) + assert {'queryId', 'projectId'}.isdisjoint(query['required']) + + plan = definitions[queries['pipeline.plan'].rsplit('/', 1)[-1]] + scope = plan['properties']['scope'] + scopes = scope['discriminator']['mapping'] + assert set(scopes) == {'group', 'selection', 'from_node'} + for kind, field in [('group', 'groupId'), ('selection', 'itemIds'), ('from_node', 'itemId')]: + branch = definitions[scopes[kind].rsplit('/', 1)[-1]] + assert set(branch['required']) == {'kind', field} + + def test_an_unknown_type_is_answered_with_the_closest_legal_one(): message = guidance({'type': 'canvas_items'}) assert 'canvas_items' in message