{ "openapi": "3.1.0", "info": { "title": "Arcadia Studio model API", "version": "1.0.0", "description": "Current schema-6 snapshots and conditional atomic writes. Request body limit: 8 MiB; at most 200 nested commands; no retained revisions, request receipts, automatic retries or persistent transition plans. See docs/api.rst. Fixed store capacity: 128 models / 256 MiB serialized envelopes. Stateless transition preview/apply. Artifact URI/revision strings remain opaque core fields. Model admission before structural validation: 5,000 graph objects, 20,000 total records and 50,000 ordered references. Preparation uses snapshots outside the catalog lock; final commits recheck the exact ETag. Each accepted envelope couples model and authored source under one revision. Source-only edits advance the shared ETag. Source bundles resolve logical paths only, preserve authored files/comments, and have a stabilized JSON cap of 8 MiB, 256 files, 32 include edges along a path and 1,024 include edges overall." }, "servers": [ { "url": "http://127.0.0.1:8787" } ], "security": [ { "bearerAuth": [] } ], "paths": { "/health": { "get": { "operationId": "_health", "summary": "Store was opened and HTTP service is responding", "parameters": [], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "const": "ok" } }, "required": [ "status" ], "additionalProperties": false } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "security": [] } }, "/health/live": { "get": { "operationId": "_health_live", "summary": "Store was opened and HTTP service is responding", "parameters": [], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "const": "ok" } }, "required": [ "status" ], "additionalProperties": false } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "security": [] } }, "/health/ready": { "get": { "operationId": "_health_ready", "summary": "Store was opened and HTTP service is responding", "parameters": [], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "const": "ok" } }, "required": [ "status" ], "additionalProperties": false } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "security": [] } }, "/openapi.json": { "get": { "operationId": "_openapi_json", "summary": "OpenAPI contract", "parameters": [], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "type": "object" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "security": [] } }, "/api/v1/openapi.json": { "get": { "operationId": "_api_v1_openapi_json", "summary": "OpenAPI contract", "parameters": [], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "type": "object" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "security": [] } }, "/api/v1/projects": { "get": { "operationId": "listProjects", "summary": "List current hosted projects in UUID order", "parameters": [ { "name": "limit", "in": "query", "required": false, "description": "", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 100 } }, { "name": "after", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "q", "in": "query", "required": false, "description": "", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectPage" } } } }, "default": { "$ref": "#/components/responses/Problem" } } }, "post": { "operationId": "createProject", "summary": "Create and persist an empty model", "parameters": [], "responses": { "201": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSummary" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NameRequest" } } } } } }, "/api/v1/projects/import": { "post": { "operationId": "importProject", "summary": "Import JSON or UTF-8 Arcadia source as a new hosted resource", "parameters": [], "responses": { "201": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSummary" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } }, "text/plain": { "schema": { "type": "string" } } } }, "description": "Schema-6 native JSON is described below. Schema-1/2/3/4/5 JSON and source are accepted through explicit frozen readers and migration, also on replacement and candidate validation. Earlier versions reject source-6 constructors and saved view fields. Prior prose and typed reviews remain intact; absent semantic review stays Unreviewed. Export emits schema 6 / arcadia 6. See docs/language.rst." } }, "/api/v1/projects/{id}": { "get": { "operationId": "getProject", "summary": "Get complete current envelope", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-None-Match", "in": "header", "required": false, "description": "Return 304 when the current representation's revision matches.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoredProject" } } } }, "304": { "description": "Unchanged; empty body." }, "default": { "$ref": "#/components/responses/Problem" } } }, "patch": { "operationId": "renameProject", "summary": "Rename the project atomically", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NameRequest" } } } } }, "delete": { "operationId": "deleteProject", "summary": "Permanently delete the current hosted envelope", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "204": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } } } }, "/api/v1/projects/{id}/model": { "get": { "operationId": "getModel", "summary": "Export native model JSON", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-None-Match", "in": "header", "required": false, "description": "Return 304 when the current representation's revision matches.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "304": { "description": "Unchanged; empty body." }, "default": { "$ref": "#/components/responses/Problem" } } }, "put": { "operationId": "replaceModel", "summary": "Conditionally replace model JSON", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project" } } } }, "description": "Replace semantics while preserving the accepted authored source layout and comments, using common UUIDs as identity correspondence. Model and source commit together. Use source-project PUT to replace authored files." } }, "/api/v1/projects/{id}/source": { "get": { "operationId": "getSource", "summary": "Export canonical Arcadia source", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-None-Match", "in": "header", "required": false, "description": "Return 304 when the current representation's revision matches.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "text/plain": { "schema": { "type": "string" } } } }, "304": { "description": "Unchanged; empty body." }, "default": { "$ref": "#/components/responses/Problem" } }, "description": "Canonical single-file interchange view of the current model. Use source-project GET to export exact authored files and comments." }, "put": { "operationId": "replaceSource", "summary": "Conditionally replace from UTF-8 Arcadia source", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "text/plain": { "schema": { "type": "string" } } } }, "description": "Replace semantics from canonical single-file interchange while preserving the existing authored source bundle using common UUIDs. Submitted formatting/comments do not replace the authored workspace. Use source-project PUT for that purpose." } }, "/api/v1/projects/{id}/elements": { "get": { "operationId": "listElements", "summary": "Filter current elements; AND semantics", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "limit", "in": "query", "required": false, "description": "", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 100 } }, { "name": "after", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "revision", "in": "query", "required": false, "description": "For project lists, pin current revision across pages; 409 if it changed. No historical snapshots.", "schema": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." } }, { "name": "kind", "in": "query", "required": false, "description": "", "schema": { "$ref": "#/components/schemas/Kind" } }, { "name": "layer", "in": "query", "required": false, "description": "", "schema": { "$ref": "#/components/schemas/Layer" } }, { "name": "alias", "in": "query", "required": false, "description": "", "schema": { "type": "string" } }, { "name": "q", "in": "query", "required": false, "description": "", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ElementPage" } } } }, "default": { "$ref": "#/components/responses/Problem" } } } }, "/api/v1/projects/{id}/relations": { "get": { "operationId": "listRelations", "summary": "Filter relations by typed kind and endpoints", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "limit", "in": "query", "required": false, "description": "", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 100 } }, { "name": "after", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "revision", "in": "query", "required": false, "description": "For project lists, pin current revision across pages; 409 if it changed. No historical snapshots.", "schema": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." } }, { "name": "kind", "in": "query", "required": false, "description": "", "schema": { "$ref": "#/components/schemas/RelationKind" } }, { "name": "source", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "target", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "incident_to", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationPage" } } } }, "default": { "$ref": "#/components/responses/Problem" } } } }, "/api/v1/projects/{id}/artifact-links": { "get": { "operationId": "listArtifacts", "summary": "List model artifact links without fetching URIs", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "limit", "in": "query", "required": false, "description": "", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 100 } }, { "name": "after", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "revision", "in": "query", "required": false, "description": "For project lists, pin current revision across pages; 409 if it changed. No historical snapshots.", "schema": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." } }, { "name": "object", "in": "query", "required": false, "description": "Owner ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ArtifactPage" } } } }, "default": { "$ref": "#/components/responses/Problem" } } } }, "/api/v1/projects/{id}/traces": { "get": { "operationId": "listTraces", "summary": "List OA/SA traces", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "limit", "in": "query", "required": false, "description": "", "schema": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 100 } }, { "name": "after", "in": "query", "required": false, "description": "", "schema": { "type": "string", "format": "uuid" } }, { "name": "revision", "in": "query", "required": false, "description": "For project lists, pin current revision across pages; 409 if it changed. No historical snapshots.", "schema": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." } }, { "name": "object", "in": "query", "required": false, "description": "OA or SA endpoint ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TracePage" } } } }, "default": { "$ref": "#/components/responses/Problem" } } } }, "/api/v1/projects/{id}/query": { "post": { "operationId": "queryNeighborhood", "summary": "Bounded graph neighborhood including relation endpoint closure", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NeighborhoodResult" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NeighborhoodRequest" } } } } } }, "/api/v1/projects/{id}/validation": { "get": { "operationId": "validateCurrent", "summary": "Shared core validation of current snapshot", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationResult" } } } }, "default": { "$ref": "#/components/responses/Problem" } } }, "post": { "operationId": "validateCandidate", "summary": "Check submitted model/source without mutation", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationResult" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationRequest" } } } }, "description": "Validate native model JSON, canonical Arcadia source, or a complete source-project bundle without adoption. Source-project diagnostics refer to submitted file paths and positions. Stabilized source/model byte limits are also checked." } }, "/api/v1/projects/{id}/transactions": { "post": { "operationId": "executeTransaction", "summary": "Atomic shared typed commands; optional dry run", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionRequest" } } } }, "description": "Command identity correspondence drives source writeback, including UUID swaps and delete/recreate operations even when final models compare equal. Dry runs return both proposed representations and validate writeback. Failure preserves the accepted pair." } }, "/api/v1/projects/{id}/transitions/preview": { "post": { "operationId": "previewTransition", "summary": "Preview a shared core transition without persisting a plan", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Validated result; preview may include unresolved conflicts.", "headers": { "ETag": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransitionEnvelope" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransitionRequest" } } } }, "description": "Conflict-free previews also validate authored-source writeback and stabilized model/source capacities." } }, "/api/v1/projects/{id}/transitions/apply": { "post": { "operationId": "applyTransition", "summary": "Apply client-held transition plan against its original revision", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Validated result; preview may include unresolved conflicts.", "headers": { "ETag": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransitionEnvelope" } } } } } }, "/api/v1/projects/import-source-project": { "post": { "operationId": "importSourceProject", "summary": "Import an authored source bundle as a new hosted resource", "parameters": [], "responses": { "201": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } }, "Location": { "schema": { "type": "string" }, "description": "Path to the created hosted resource." } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSummary" } } } }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceBundle" } } } }, "description": "Compile all logical source files, stabilize missing IDs, and persist the accepted model and bundle together. Importing source3 bundles never reads the service filesystem. Export the accepted bundle after import to retain inserted IDs." } }, "/api/v1/projects/{id}/source-project": { "get": { "operationId": "getSourceProject", "summary": "Export the exact accepted authored source bundle", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-None-Match", "in": "header", "required": false, "description": "Return 304 when the current representation's revision matches.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceBundle" } } } }, "304": { "description": "Unchanged; empty body." }, "default": { "$ref": "#/components/responses/Problem" } }, "description": "Returns entry and all files with stable IDs, original comments, line endings and module layout. Shares the model ETag; comment-only changes advance that revision." }, "put": { "operationId": "replaceSourceProject", "summary": "Conditionally replace the complete authored source bundle", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "headers": { "ETag": { "schema": { "type": "string" }, "description": "Project revision validator when scoped to a project." }, "X-Request-ID": { "schema": { "type": "string", "format": "uuid" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceProjectMutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceBundle" } } } }, "description": "Compile and validate the full submitted bundle; return accepted text with missing UUIDs inserted. Model and source persist together under the exact If-Match precondition. Comment-only or file-layout edits advance revision; an exact pair no-op retains it. Rejected candidates preserve both representations." } }, "/api/v1/projects/{id}/semantic-transitions/query": { "post": { "operationId": "querySemanticTransition", "summary": "Query typed trace drift and linked impacts without mutation", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Validated result; preview may include unresolved conflicts.", "headers": { "ETag": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SemanticQueryResult" } } } }, "default": { "$ref": "#/components/responses/Problem" }, "409": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SemanticQueryRequest" } } } }, "description": "Read one immutable snapshot. Optional revision mismatch returns409; missing trace returns404; duplicate/empty trace selection returns400. References are canonical OA-to-SA correspondence. No write, baseline refresh or external artifact fetch." } }, "/api/v1/projects/{id}/semantic-transitions/preview": { "post": { "operationId": "previewSemanticTransition", "summary": "Preview and source-validate a typed semantic transition without writing", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Validated result; preview may include unresolved conflicts.", "headers": { "ETag": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SemanticTransitionEnvelope" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SemanticTransitionRequest" } } } }, "description": "Uses the frozen core typed semantic contract. A supplied plan is a client-owned candidate, not a signed receipt; fingerprints check consistency, not original review authorship. Preview validates source writeback when conflict-free. Apply preserves preview-generated IDs and does not replan random identities." } }, "/api/v1/projects/{id}/semantic-transitions/apply": { "post": { "operationId": "applySemanticTransition", "summary": "Conditionally apply a prepared semantic candidate in one model/source revision", "parameters": [ { "name": "id", "in": "path", "required": true, "description": "Hosted resource UUID; distinct from editable model ID.", "schema": { "type": "string", "format": "uuid" } }, { "name": "If-Match", "in": "header", "required": true, "description": "One exact strong project ETag. Missing: 428; stale: 412. Weak/list/wildcard unsupported.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Validated result; preview may include unresolved conflicts.", "headers": { "ETag": { "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MutationResult" } } } }, "412": { "$ref": "#/components/responses/Problem" }, "428": { "$ref": "#/components/responses/Problem" }, "default": { "$ref": "#/components/responses/Problem" } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SemanticTransitionEnvelope" } } } }, "description": "Uses the frozen core typed semantic contract. A supplied plan is a client-owned candidate, not a signed receipt; fingerprints check consistency, not original review authorship. Preview validates source writeback when conflict-free. Apply preserves preview-generated IDs and does not replan random identities." } } }, "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "description": "Optional for unconfigured loopback; required on non-loopback." } }, "responses": { "Problem": { "description": "Structured problem response. See code/detail and docs/api.rst status mapping.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } } }, "schemas": { "Id": { "type": "string", "format": "uuid" }, "Revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "Layer": { "type": "string", "enum": [ "Oa", "Sa" ] }, "Kind": { "type": "string", "enum": [ "Entity", "Actor", "Role", "Activity", "Capability", "OperationalMission", "Process", "System", "SystemActor", "Function", "SystemCapability", "Mission", "FunctionalChain", "ExchangeItem", "ExchangeCategory", "DataType", "DataField", "Interface", "Port", "Scenario", "Lifeline", "Occurrence", "StateMachine", "Region", "State", "Mode", "Initial", "Final", "Choice", "Junction", "Fork", "Join", "ShallowHistory", "DeepHistory", "EntryPoint", "ExitPoint", "Terminate", "Event", "Constraint" ] }, "RelationKind": { "type": "string", "enum": [ "InterfaceItemAllocation", "DataAssociation", "Allocation", "PortAllocation", "Interaction", "CapabilityInvolvement", "ChainInvolvement", "RoleRealization", "RoleAssignment", "FunctionalExchange", "BoundaryExchange", "CommunicationMean", "MissionCapability", "CapabilityInclude", "CapabilityExtend", "CapabilityGeneralization", "MissionInvolvement", "SequenceLink", "StateTransition", "Availability", "ExchangeAllocation", "InterfaceProvision", "InterfaceRequirement", "StateAction" ] }, "Position": { "type": "object", "properties": { "x": { "type": "number", "minimum": -1000000, "maximum": 1000000 }, "y": { "type": "number", "minimum": -1000000, "maximum": 1000000 } }, "required": [ "x", "y" ], "additionalProperties": false }, "EdgeLabel": { "type": "object", "description": "Authored label placement relative to the computed polyline. Both fields are required.", "properties": { "fraction": { "type": "number", "minimum": 0, "maximum": 1, "description": "Fraction of source-to-target polyline arc length." }, "offset": { "$ref": "#/components/schemas/Position", "description": "Relative diagram-space displacement." } }, "required": [ "fraction", "offset" ], "additionalProperties": false }, "EdgeRoute": { "type": "object", "description": "One diagram's authored route for an existing Relation or Trace, including currently hidden edges. No separate identity. Only pinned points are stored; explicit empty routes are retained.", "properties": { "edge": { "type": "string", "format": "uuid", "description": "Existing Relation or Trace identity, never a node placement." }, "waypoints": { "type": "array", "items": { "$ref": "#/components/schemas/Position" }, "maxItems": 128, "default": [], "description": "Absolute diagram positions in traversal order." }, "label": { "oneOf": [ { "$ref": "#/components/schemas/EdgeLabel" }, { "type": "null" } ], "default": null } }, "required": [ "edge" ], "additionalProperties": false }, "Size": { "type": "object", "properties": { "width": { "type": "number", "exclusiveMinimum": 0 }, "height": { "type": "number", "exclusiveMinimum": 0 } }, "required": [ "width", "height" ], "additionalProperties": false }, "DataTypeDefinition": { "oneOf": [ { "type": "string", "enum": [ "Boolean" ] }, { "type": "object", "properties": { "Integer": { "type": "object", "properties": { "minimum": { "anyOf": [ { "type": "integer", "format": "int64", "minimum": -9223372036854775808, "maximum": 9223372036854775807 }, { "type": "null" } ] }, "maximum": { "anyOf": [ { "type": "integer", "format": "int64", "minimum": -9223372036854775808, "maximum": 9223372036854775807 }, { "type": "null" } ] } }, "required": [ "minimum", "maximum" ], "additionalProperties": false } }, "required": [ "Integer" ], "additionalProperties": false }, { "type": "object", "properties": { "Real": { "type": "object", "properties": { "minimum": { "anyOf": [ { "type": "number", "format": "double", "description": "Finite IEEE-754 binary64; no coercion from typed Integer values." }, { "type": "null" } ] }, "maximum": { "anyOf": [ { "type": "number", "format": "double", "description": "Finite IEEE-754 binary64; no coercion from typed Integer values." }, { "type": "null" } ] } }, "required": [ "minimum", "maximum" ], "additionalProperties": false } }, "required": [ "Real" ], "additionalProperties": false }, { "type": "object", "properties": { "String": { "type": "object", "properties": { "minimum_length": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "maximum_length": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] } }, "required": [ "minimum_length", "maximum_length" ], "additionalProperties": false } }, "required": [ "String" ], "additionalProperties": false }, { "type": "object", "properties": { "Enumeration": { "type": "object", "properties": { "literals": { "type": "array", "items": { "type": "string" } } }, "required": [ "literals" ], "additionalProperties": false } }, "required": [ "Enumeration" ], "additionalProperties": false }, { "type": "object", "properties": { "Record": { "type": "object", "properties": { "supertype": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "supertype" ], "additionalProperties": false } }, "required": [ "Record" ], "additionalProperties": false } ] }, "TypeRef": { "oneOf": [ { "type": "string", "enum": [ "Boolean", "Integer", "Real", "String" ] }, { "oneOf": [ { "type": "object", "properties": { "Named": { "type": "string", "format": "uuid" } }, "required": [ "Named" ], "additionalProperties": false } ] } ] }, "OccurrenceBody": { "oneOf": [ { "type": "object", "properties": { "Exchange": { "type": "object", "properties": { "exchange": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "sender": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "receiver": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "message_kind": { "$ref": "#/components/schemas/MessageKind", "default": "Asynchronous" }, "reply_to": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "default": null }, "values": { "type": "array", "items": { "$ref": "#/components/schemas/MessageValue" }, "default": [] } }, "required": [ "exchange", "sender", "receiver" ], "additionalProperties": false, "description": "Missing new message fields use schema-2 compatibility defaults; canonical output makes these fields explicit." } }, "required": [ "Exchange" ], "additionalProperties": false }, { "type": "object", "properties": { "Action": { "type": "object", "properties": { "action": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "lifeline": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "action", "lifeline" ], "additionalProperties": false } }, "required": [ "Action" ], "additionalProperties": false }, { "type": "object", "properties": { "State": { "type": "object", "properties": { "state": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "lifeline": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "state", "lifeline" ], "additionalProperties": false } }, "required": [ "State" ], "additionalProperties": false }, { "type": "object", "properties": { "Fragment": { "type": "object", "properties": { "operator": { "type": "string", "enum": [ "Alternative", "Parallel", "Loop", "Optional" ] }, "branches": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "operator", "branches" ], "additionalProperties": false } }, "required": [ "Fragment" ], "additionalProperties": false }, { "type": "object", "properties": { "Branch": { "type": "object", "properties": { "guard": { "type": "string" }, "occurrences": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "guard", "occurrences" ], "additionalProperties": false } }, "required": [ "Branch" ], "additionalProperties": false }, { "type": "object", "properties": { "Control": { "type": "object", "properties": { "kind": { "$ref": "#/components/schemas/ControlKind" } }, "required": [ "kind" ], "additionalProperties": false } }, "required": [ "Control" ], "additionalProperties": false }, { "type": "object", "properties": { "SequenceReference": { "type": "object", "properties": { "sequence": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "sequence" ], "additionalProperties": false } }, "required": [ "SequenceReference" ], "additionalProperties": false }, { "type": "object", "properties": { "ScenarioUse": { "type": "object", "properties": { "scenario": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "bindings": { "type": "array", "items": { "$ref": "#/components/schemas/LifelineBinding" } } }, "required": [ "scenario", "bindings" ], "additionalProperties": false } }, "required": [ "ScenarioUse" ], "additionalProperties": false } ] }, "SharedBody": { "oneOf": [ { "type": "string", "enum": [ "StateMachine", "Region" ] }, { "oneOf": [ { "type": "object", "properties": { "ExchangeItem": { "type": "object", "properties": { "kind": { "$ref": "#/components/schemas/ExchangeItemKind" }, "mechanism": { "$ref": "#/components/schemas/ExchangeMechanism" }, "supertype": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "kind", "mechanism", "supertype" ], "additionalProperties": false } }, "required": [ "ExchangeItem" ], "additionalProperties": false }, { "type": "object", "properties": { "DataType": { "type": "object", "properties": { "definition": { "$ref": "#/components/schemas/DataTypeDefinition" }, "default": { "anyOf": [ { "$ref": "#/components/schemas/DataValue" }, { "type": "null" } ] }, "unit": { "type": "string" } }, "required": [ "definition", "default", "unit" ], "additionalProperties": false } }, "required": [ "DataType" ], "additionalProperties": false }, { "type": "object", "properties": { "DataField": { "type": "object", "properties": { "type_ref": { "$ref": "#/components/schemas/TypeRef" }, "minimum": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "maximum": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] }, "unit": { "type": "string" }, "direction": { "$ref": "#/components/schemas/ParameterDirection" }, "storage": { "$ref": "#/components/schemas/FieldStorage" }, "default": { "anyOf": [ { "type": "array", "items": { "$ref": "#/components/schemas/DataValue" } }, { "type": "null" } ] } }, "required": [ "type_ref", "minimum", "maximum", "unit", "direction", "storage", "default" ], "additionalProperties": false } }, "required": [ "DataField" ], "additionalProperties": false }, { "type": "object", "properties": { "Interface": { "type": "object", "properties": { "supertype": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "supertype" ], "additionalProperties": false } }, "required": [ "Interface" ], "additionalProperties": false }, { "type": "object", "properties": { "Port": { "type": "object", "properties": { "contract": { "$ref": "#/components/schemas/PortContract" }, "legacy": { "anyOf": [ { "$ref": "#/components/schemas/LegacyPortContract" }, { "type": "null" } ] } }, "required": [ "contract", "legacy" ], "additionalProperties": false } }, "required": [ "Port" ], "additionalProperties": false }, { "type": "object", "properties": { "Scenario": { "type": "object", "properties": { "context": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "precondition": { "type": "string" }, "postcondition": { "type": "string" }, "steps": { "type": "array", "items": { "type": "string", "format": "uuid" } }, "viewpoint": { "$ref": "#/components/schemas/ScenarioViewpoint", "default": "MixedLegacy", "description": "Omitted schema-2 viewpoint retains legacy mixed lifelines. New graphical factories select OperationalActivity or Functional explicitly." } }, "required": [ "context", "precondition", "postcondition", "steps" ], "additionalProperties": false } }, "required": [ "Scenario" ], "additionalProperties": false }, { "type": "object", "properties": { "Lifeline": { "type": "object", "properties": { "represented": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "represented" ], "additionalProperties": false } }, "required": [ "Lifeline" ], "additionalProperties": false }, { "type": "object", "properties": { "Occurrence": { "type": "object", "properties": { "body": { "$ref": "#/components/schemas/OccurrenceBody" }, "precondition": { "type": "string" }, "postcondition": { "type": "string" } }, "required": [ "body", "precondition", "postcondition" ], "additionalProperties": false } }, "required": [ "Occurrence" ], "additionalProperties": false }, { "type": "object", "properties": { "State": { "type": "object", "properties": { "kind": { "$ref": "#/components/schemas/StateKind" }, "entry": { "type": "string" }, "exit": { "type": "string" }, "do_activity": { "type": "string" } }, "required": [ "kind", "entry", "exit", "do_activity" ], "additionalProperties": false } }, "required": [ "State" ], "additionalProperties": false }, { "type": "object", "properties": { "Constraint": { "type": "object", "properties": { "expression": { "type": "string" }, "constrained": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "expression", "constrained" ], "additionalProperties": false } }, "required": [ "Constraint" ], "additionalProperties": false }, { "type": "object", "properties": { "Event": { "type": "object", "properties": { "body": { "$ref": "#/components/schemas/EventBody" } }, "required": [ "body" ], "additionalProperties": false } }, "required": [ "Event" ], "additionalProperties": false }, { "type": "object", "properties": { "ExchangeCategory": { "type": "object", "properties": { "family": { "$ref": "#/components/schemas/ExchangeFamily" }, "exchanges": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "family", "exchanges" ], "additionalProperties": false } }, "required": [ "ExchangeCategory" ], "additionalProperties": false } ] } ] }, "OaBody": { "oneOf": [ { "type": "string", "enum": [ "Entity", "Actor", "Role", "Activity", "Capability", "Mission" ] }, { "oneOf": [ { "type": "object", "properties": { "Process": { "type": "object", "properties": { "steps": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "steps" ], "additionalProperties": false } }, "required": [ "Process" ], "additionalProperties": false }, { "type": "object", "properties": { "Shared": { "$ref": "#/components/schemas/SharedBody" } }, "required": [ "Shared" ], "additionalProperties": false } ] } ] }, "SaBody": { "oneOf": [ { "type": "string", "enum": [ "System", "Actor", "Function", "Capability", "Mission" ] }, { "oneOf": [ { "type": "object", "properties": { "FunctionalChain": { "type": "object", "properties": { "steps": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "steps" ], "additionalProperties": false } }, "required": [ "FunctionalChain" ], "additionalProperties": false }, { "type": "object", "properties": { "Shared": { "$ref": "#/components/schemas/SharedBody" } }, "required": [ "Shared" ], "additionalProperties": false } ] } ] }, "ElementBody": { "oneOf": [ { "type": "object", "properties": { "Oa": { "$ref": "#/components/schemas/OaBody" } }, "required": [ "Oa" ], "additionalProperties": false }, { "type": "object", "properties": { "Sa": { "$ref": "#/components/schemas/SaBody" } }, "required": [ "Sa" ], "additionalProperties": false } ] }, "Element": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "parent": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] }, "body": { "$ref": "#/components/schemas/ElementBody" } }, "required": [ "id", "alias", "name", "description", "parent", "body" ], "additionalProperties": false }, "RelationBody": { "oneOf": [ { "type": "object", "properties": { "Allocation": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "Allocation" ], "additionalProperties": false }, { "type": "object", "properties": { "CapabilityInvolvement": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "CapabilityInvolvement" ], "additionalProperties": false }, { "type": "object", "properties": { "ChainInvolvement": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "ChainInvolvement" ], "additionalProperties": false }, { "type": "object", "properties": { "RoleRealization": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "RoleRealization" ], "additionalProperties": false }, { "type": "object", "properties": { "RoleAssignment": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "RoleAssignment" ], "additionalProperties": false }, { "type": "object", "properties": { "MissionCapability": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "MissionCapability" ], "additionalProperties": false }, { "type": "object", "properties": { "Availability": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "Availability" ], "additionalProperties": false }, { "type": "object", "properties": { "ExchangeAllocation": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "ExchangeAllocation" ], "additionalProperties": false }, { "type": "object", "properties": { "InterfaceProvision": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "InterfaceProvision" ], "additionalProperties": false }, { "type": "object", "properties": { "InterfaceRequirement": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "InterfaceRequirement" ], "additionalProperties": false }, { "type": "object", "properties": { "Interaction": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "items": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "source", "target", "items" ], "additionalProperties": false } }, "required": [ "Interaction" ], "additionalProperties": false }, { "type": "object", "properties": { "BoundaryExchange": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "items": { "type": "array", "items": { "type": "string", "format": "uuid" } }, "oriented": { "type": "boolean", "description": "Independent of component port kind/orientation. Old V2 exchanges migrate to true." } }, "required": [ "source", "target", "items", "oriented" ], "additionalProperties": false } }, "required": [ "BoundaryExchange" ], "additionalProperties": false }, { "type": "object", "properties": { "FunctionalExchange": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "source_port": { "type": "string", "format": "uuid" }, "target_port": { "type": "string", "format": "uuid" }, "items": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "source", "target", "source_port", "target_port", "items" ], "additionalProperties": false } }, "required": [ "FunctionalExchange" ], "additionalProperties": false }, { "type": "object", "properties": { "StateTransition": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "trigger": { "type": "string" }, "guard": { "type": "string" }, "effect": { "type": "string" }, "transition_kind": { "$ref": "#/components/schemas/TransitionKind", "default": "External", "description": "Omitted legacy schema-2 value is External." }, "triggers": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "uniqueItems": true, "description": "Same-layer Event or Activity/Function references; alternatives, not implicit conjunction.", "default": [] }, "effects": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "uniqueItems": true, "description": "Same-layer Activity/Function references describing transition effects.", "default": [] } }, "required": [ "source", "target", "trigger", "guard", "effect" ], "additionalProperties": false, "description": "Existing trigger, guard and effect prose is preserved exactly. New typed properties are optional only for staged schema-2 compatibility. Removing the last typed trigger retains a descriptive unresolved-trigger placeholder instead of silently introducing completion semantics." } }, "required": [ "StateTransition" ], "additionalProperties": false }, { "type": "object", "properties": { "StateAction": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "phase": { "type": "string", "enum": [ "Entry", "Do", "Exit" ] } }, "required": [ "source", "target", "phase" ], "additionalProperties": false } }, "required": [ "StateAction" ], "additionalProperties": false }, { "type": "object", "properties": { "CapabilityInclude": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "CapabilityInclude" ], "additionalProperties": false }, { "type": "object", "properties": { "CapabilityExtend": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "condition": { "type": "string", "description": "Engineering condition under which the extending capability adds behavior." } }, "required": [ "source", "target", "condition" ], "additionalProperties": false } }, "required": [ "CapabilityExtend" ], "additionalProperties": false }, { "type": "object", "properties": { "CapabilityGeneralization": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "CapabilityGeneralization" ], "additionalProperties": false }, { "type": "object", "properties": { "MissionInvolvement": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "MissionInvolvement" ], "additionalProperties": false }, { "type": "object", "properties": { "SequenceLink": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "guard": { "type": "string", "description": "Condition for a contextual process/chain path. Choice and loop paths should use explicit conditions or else." } }, "required": [ "source", "target", "guard" ], "additionalProperties": false } }, "required": [ "SequenceLink" ], "additionalProperties": false }, { "type": "object", "properties": { "PortAllocation": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" } }, "required": [ "source", "target" ], "additionalProperties": false } }, "required": [ "PortAllocation" ], "additionalProperties": false }, { "type": "object", "properties": { "InterfaceItemAllocation": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "order": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "transmission": { "$ref": "#/components/schemas/TransmissionProtocol" }, "acquisition": { "$ref": "#/components/schemas/AcquisitionProtocol" } }, "required": [ "source", "target", "order", "transmission", "acquisition" ], "additionalProperties": false } }, "required": [ "InterfaceItemAllocation" ], "additionalProperties": false }, { "type": "object", "properties": { "DataAssociation": { "type": "object", "properties": { "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "source_role": { "type": "string" }, "target_role": { "type": "string" }, "source_minimum": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "source_maximum": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] }, "target_minimum": { "type": "integer", "minimum": 0, "maximum": 4294967295 }, "target_maximum": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] }, "source_navigable": { "type": "boolean" }, "target_navigable": { "type": "boolean" } }, "required": [ "source", "target", "source_role", "target_role", "source_minimum", "source_maximum", "target_minimum", "target_maximum", "source_navigable", "target_navigable" ], "additionalProperties": false } }, "required": [ "DataAssociation" ], "additionalProperties": false }, { "type": "object", "properties": { "CommunicationMean": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "target": { "$ref": "#/components/schemas/Id" }, "oriented": { "type": "boolean" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "source", "target", "oriented", "items" ], "additionalProperties": false } }, "required": [ "CommunicationMean" ], "additionalProperties": false } ] }, "Relation": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "body": { "$ref": "#/components/schemas/RelationBody" } }, "required": [ "id", "alias", "name", "description", "body" ], "additionalProperties": false }, "PortAnchorSide": { "type": "string", "enum": [ "Left", "Right", "Top", "Bottom" ], "description": "Presentation side of the owner placement; independent of semantic port direction." }, "PortAnchor": { "type": "object", "description": "Manual position of a direct child Port on one owner placement. Each port occurs at most once per placement; this record has no separate identity.", "properties": { "port": { "type": "string", "format": "uuid" }, "side": { "$ref": "#/components/schemas/PortAnchorSide" }, "offset": { "type": "number", "minimum": 0, "maximum": 1, "description": "Finite binary32 fraction of the complete owner edge, measured from top on Left/Right and from left on Top/Bottom." } }, "required": [ "port", "side", "offset" ], "additionalProperties": false }, "NodePlacement": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "element": { "type": "string", "format": "uuid" }, "position": { "$ref": "#/components/schemas/Position" }, "size": { "$ref": "#/components/schemas/Size" }, "collapsed": { "type": "boolean" }, "port_anchors": { "type": "array", "items": { "$ref": "#/components/schemas/PortAnchor" }, "default": [], "description": "Per-placement manual port positions. Omitted and empty both select automatic positioning; empty lists are omitted on serialization. Duplicate port references are invalid." } }, "required": [ "id", "alias", "element", "position", "size", "collapsed" ], "additionalProperties": false }, "ProjectionKind": { "description": "Existing projections remain strings. StateMachine carries one required UUID reference to an existing StateMachine in the diagram layer (state_diagram_context). Its placements may contain only that machine and its regions/state vertices, including nested members (state_diagram_member). Empty and partial views are valid. Incompatible placements must be removed or relocated in the same transaction when changing context; accepting or reading a view does not synthesize semantic records or placements.", "oneOf": [ { "type": "string", "enum": [ "FunctionalDataflow", "Capabilities", "Overview", "Decomposition", "Allocation", "Traceability" ] }, { "type": "object", "properties": { "StateMachine": { "type": "object", "properties": { "machine": { "type": "string", "format": "uuid", "description": "Required identity of the same-layer StateMachine that owns this view's members." } }, "required": [ "machine" ], "additionalProperties": false } }, "required": [ "StateMachine" ], "additionalProperties": false } ], "examples": [ "Overview", { "StateMachine": { "machine": "11111111-1111-4111-8111-111111111111" } } ] }, "Diagram": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "layer": { "$ref": "#/components/schemas/Layer" }, "projection": { "$ref": "#/components/schemas/ProjectionKind" }, "nodes": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/NodePlacement" } }, "routes": { "type": "array", "items": { "$ref": "#/components/schemas/EdgeRoute" }, "default": [], "description": "Unique by edge identity within this diagram. Stored order is retained. Each entry counts against the total model record admission limit. Missing routes in earlier schema-3 models default to empty." }, "view_options": { "$ref": "#/components/schemas/ViewOptions", "default": {} } }, "required": [ "id", "alias", "name", "description", "layer", "projection", "nodes" ], "additionalProperties": false }, "ArtifactLink": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "owner": { "type": "string", "format": "uuid" }, "relation": { "type": "string", "enum": [ "References", "Satisfies", "Verifies", "Implements", "DerivedFrom" ] }, "uri": { "type": "string", "description": "Opaque external artifact reference. Server never fetches or executes it." }, "revision": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "fragment": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "id", "alias", "name", "description", "owner", "relation", "uri", "revision", "fragment" ], "additionalProperties": false }, "TracedProperties": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, "required": [ "name", "description" ], "additionalProperties": false }, "TraceBaseline": { "type": "object", "properties": { "oa": { "$ref": "#/components/schemas/TracedProperties" }, "sa": { "$ref": "#/components/schemas/TracedProperties" }, "semantic": { "anyOf": [ { "$ref": "#/components/schemas/SemanticBaseline" }, { "type": "null" } ], "default": null, "description": "Absent/null means Unreviewed. Historical typed facts never become live graph references." } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "Trace": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "oa": { "type": "string", "format": "uuid" }, "sa": { "type": "string", "format": "uuid" }, "kind": { "type": "string", "enum": [ "Refinement", "Participant", "Capability", "Mission", "Exchange", "Sequence", "Item", "Scenario", "State", "Manual" ] }, "baseline": { "anyOf": [ { "$ref": "#/components/schemas/TraceBaseline" }, { "type": "null" } ] } }, "required": [ "id", "alias", "name", "description", "oa", "sa", "kind", "baseline" ], "additionalProperties": false }, "Project": { "type": "object", "properties": { "schema_version": { "type": "integer", "const": 6 }, "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" }, "elements": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Element" } }, "relations": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Relation" } }, "diagrams": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Diagram" } }, "artifact_links": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/ArtifactLink" } }, "traces": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Trace" } } }, "required": [ "schema_version", "id", "alias", "name", "description", "elements", "relations", "diagrams", "artifact_links", "traces" ], "additionalProperties": false }, "StoredProject": { "type": "object", "properties": { "resource_id": { "type": "string", "format": "uuid" }, "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "model": { "$ref": "#/components/schemas/Project" }, "migration": { "anyOf": [ { "$ref": "#/components/schemas/MigrationReport" }, { "type": "null" } ], "description": "Present after legacy import/reopen; excluded from persisted envelopes. Resource identity and revision are unchanged by reopening." }, "source_project": { "$ref": "#/components/schemas/SourceBundle" } }, "required": [ "resource_id", "revision", "model", "source_project" ], "additionalProperties": false, "description": "Accepted coupled model/source snapshot. Compiling source_project reproduces model; revision changes once if either representation changes. Older model-only or schema3 coupled envelopes migrate in memory without a write or revision change; both representations must independently migrate to the same graph." }, "ProjectSummary": { "type": "object", "properties": { "resource_id": { "type": "string", "format": "uuid" }, "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "model_id": { "type": "string", "format": "uuid" }, "schema_version": { "type": "integer" }, "name": { "type": "string" }, "elements": { "type": "integer", "minimum": 0 }, "relations": { "type": "integer", "minimum": 0 }, "migration": { "anyOf": [ { "$ref": "#/components/schemas/MigrationReport" }, { "type": "null" } ] } }, "required": [ "resource_id", "revision", "model_id", "schema_version", "name", "elements", "relations" ], "additionalProperties": false }, "Issue": { "type": "object", "properties": { "severity": { "type": "string", "enum": [ "error", "warning" ] }, "message": { "type": "string" }, "object_id": { "type": "string", "format": "uuid" }, "line": { "type": "integer", "minimum": 1 }, "column": { "type": "integer", "minimum": 1, "description": "One-based Unicode scalar column." }, "code": { "type": "string" }, "field": { "type": "string" }, "path": { "type": "string", "description": "Logical source file path, when a source project supplied the diagnostic." }, "span": { "$ref": "#/components/schemas/SourceSpan" }, "related": { "type": "array", "items": { "$ref": "#/components/schemas/SourceLocation" } } }, "required": [ "severity", "message", "code" ], "additionalProperties": false }, "Problem": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string" }, "status": { "type": "integer" }, "code": { "type": "string" }, "detail": { "type": "string" }, "current_revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/Issue" } } }, "required": [ "type", "title", "status", "code", "detail" ], "additionalProperties": false }, "NameRequest": { "type": "object", "properties": { "name": { "type": "string" } }, "required": [ "name" ], "additionalProperties": false }, "Command": { "oneOf": [ { "type": "object", "properties": { "Replace": { "$ref": "#/components/schemas/Project" } }, "required": [ "Replace" ], "additionalProperties": false }, { "type": "object", "properties": { "Batch": { "type": "array", "items": { "$ref": "#/components/schemas/Command" } } }, "required": [ "Batch" ], "additionalProperties": false }, { "type": "object", "properties": { "Add": { "$ref": "#/components/schemas/Kind" } }, "required": [ "Add" ], "additionalProperties": false }, { "type": "object", "properties": { "AddElement": { "type": "object", "properties": { "kind": { "$ref": "#/components/schemas/Kind" }, "layer": { "$ref": "#/components/schemas/Layer" }, "name": { "type": "string" }, "parent": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "kind", "layer", "name", "parent" ], "additionalProperties": false } }, "required": [ "AddElement" ], "additionalProperties": false }, { "type": "object", "properties": { "Connect": { "type": "array", "prefixItems": [ { "$ref": "#/components/schemas/RelationKind" }, { "type": "string" }, { "type": "string", "format": "uuid" }, { "type": "string", "format": "uuid" } ], "minItems": 4, "maxItems": 4 } }, "required": [ "Connect" ], "additionalProperties": false }, { "type": "object", "properties": { "EditProject": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "description": "Unique persistent alias; core reserved words are forbidden." }, "name": { "type": "string" }, "description": { "type": "string" } }, "required": [ "id", "alias", "name", "description" ], "additionalProperties": false } }, "required": [ "EditProject" ], "additionalProperties": false }, { "type": "object", "properties": { "Reparent": { "type": "object", "properties": { "element": { "type": "string", "format": "uuid" }, "parent": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "element", "parent" ], "additionalProperties": false } }, "required": [ "Reparent" ], "additionalProperties": false }, { "type": "object", "properties": { "Reidentify": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "string", "format": "uuid" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "Reidentify" ], "additionalProperties": false }, { "type": "object", "properties": { "Rename": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "string" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "Rename" ], "additionalProperties": false }, { "type": "object", "properties": { "Describe": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "string" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "Describe" ], "additionalProperties": false }, { "type": "object", "properties": { "SetAlias": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "string" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "SetAlias" ], "additionalProperties": false }, { "type": "object", "properties": { "Delete": { "type": "string", "format": "uuid" } }, "required": [ "Delete" ], "additionalProperties": false }, { "type": "object", "properties": { "AddStep": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "string", "format": "uuid" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "AddStep" ], "additionalProperties": false }, { "type": "object", "properties": { "RemoveStep": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "integer", "minimum": 0 } ], "minItems": 2, "maxItems": 2 } }, "required": [ "RemoveStep" ], "additionalProperties": false }, { "type": "object", "properties": { "MoveStep": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "integer", "minimum": 0 }, { "type": "integer", "minimum": 0 } ], "minItems": 3, "maxItems": 3 } }, "required": [ "MoveStep" ], "additionalProperties": false }, { "type": "object", "properties": { "SetSteps": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "type": "array", "items": { "type": "string", "format": "uuid" } } ], "minItems": 2, "maxItems": 2 } }, "required": [ "SetSteps" ], "additionalProperties": false }, { "type": "object", "properties": { "Layout": { "type": "string", "format": "uuid" } }, "required": [ "Layout" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateNode": { "type": "object", "properties": { "diagram": { "type": "string", "format": "uuid" }, "node": { "$ref": "#/components/schemas/NodePlacement" } }, "required": [ "diagram", "node" ], "additionalProperties": false } }, "required": [ "CreateNode" ], "additionalProperties": false }, { "type": "object", "properties": { "EditNode": { "type": "object", "properties": { "diagram": { "type": "string", "format": "uuid" }, "original": { "type": "string", "format": "uuid" }, "node": { "$ref": "#/components/schemas/NodePlacement" } }, "required": [ "diagram", "original", "node" ], "additionalProperties": false } }, "required": [ "EditNode" ], "additionalProperties": false }, { "type": "object", "properties": { "RelocateNode": { "type": "object", "description": "Move an existing placement to another diagram while preserving its UUID, alias, geometry, collapse state and dependent artifact references. The target diagram must accept the element and must not already contain its placement.", "properties": { "node": { "type": "string", "format": "uuid" }, "diagram": { "type": "string", "format": "uuid" } }, "required": [ "node", "diagram" ], "additionalProperties": false } }, "required": [ "RelocateNode" ], "additionalProperties": false }, { "type": "object", "properties": { "MoveNode": { "type": "object", "properties": { "diagram": { "type": "string", "format": "uuid" }, "node": { "type": "string", "format": "uuid" }, "position": { "$ref": "#/components/schemas/Position" }, "with_descendants": { "type": "boolean" } }, "required": [ "diagram", "node", "position", "with_descendants" ], "additionalProperties": false } }, "required": [ "MoveNode" ], "additionalProperties": false }, { "type": "object", "properties": { "SetEdgeRoute": { "type": "object", "description": "Upsert by edge identity; preserves unrelated route entries and order. Uses existing transaction validation and ETag checks.", "properties": { "diagram": { "type": "string", "format": "uuid" }, "route": { "$ref": "#/components/schemas/EdgeRoute" } }, "required": [ "diagram", "route" ], "additionalProperties": false } }, "required": [ "SetEdgeRoute" ], "additionalProperties": false }, { "type": "object", "properties": { "RemoveEdgeRoute": { "type": "object", "description": "Reset to automatic routing. No-op if this existing diagram has no route for the existing edge.", "properties": { "diagram": { "type": "string", "format": "uuid" }, "edge": { "type": "string", "format": "uuid" } }, "required": [ "diagram", "edge" ], "additionalProperties": false } }, "required": [ "RemoveEdgeRoute" ], "additionalProperties": false }, { "type": "object", "properties": { "SetPortAnchor": { "type": "object", "description": "Upsert manual port position by port identity on an existing owner placement, preserving unrelated entries. Port must be a direct child of the placement's semantic element.", "properties": { "diagram": { "type": "string", "format": "uuid" }, "node": { "type": "string", "format": "uuid" }, "anchor": { "$ref": "#/components/schemas/PortAnchor" } }, "required": [ "diagram", "node", "anchor" ], "additionalProperties": false } }, "required": [ "SetPortAnchor" ], "additionalProperties": false }, { "type": "object", "properties": { "RemovePortAnchor": { "type": "object", "description": "Restore automatic positioning for an existing direct child Port. No-op when that valid owner placement has no manual anchor for the port; wrong or stale ownership is rejected.", "properties": { "diagram": { "type": "string", "format": "uuid" }, "node": { "type": "string", "format": "uuid" }, "port": { "type": "string", "format": "uuid" } }, "required": [ "diagram", "node", "port" ], "additionalProperties": false } }, "required": [ "RemovePortAnchor" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateElement": { "$ref": "#/components/schemas/Element" } }, "required": [ "CreateElement" ], "additionalProperties": false }, { "type": "object", "properties": { "EditElement": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "$ref": "#/components/schemas/Element" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "EditElement" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateRelation": { "$ref": "#/components/schemas/Relation" } }, "required": [ "CreateRelation" ], "additionalProperties": false }, { "type": "object", "properties": { "EditRelation": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "$ref": "#/components/schemas/Relation" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "EditRelation" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateDiagram": { "$ref": "#/components/schemas/Diagram" } }, "required": [ "CreateDiagram" ], "additionalProperties": false }, { "type": "object", "properties": { "EditDiagram": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "$ref": "#/components/schemas/Diagram" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "EditDiagram" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateArtifact": { "$ref": "#/components/schemas/ArtifactLink" } }, "required": [ "CreateArtifact" ], "additionalProperties": false }, { "type": "object", "properties": { "EditArtifact": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "$ref": "#/components/schemas/ArtifactLink" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "EditArtifact" ], "additionalProperties": false }, { "type": "object", "properties": { "CreateTrace": { "$ref": "#/components/schemas/Trace" } }, "required": [ "CreateTrace" ], "additionalProperties": false }, { "type": "object", "properties": { "EditTrace": { "type": "array", "prefixItems": [ { "type": "string", "format": "uuid" }, { "$ref": "#/components/schemas/Trace" } ], "minItems": 2, "maxItems": 2 } }, "required": [ "EditTrace" ], "additionalProperties": false } ] }, "TransactionRequest": { "type": "object", "properties": { "commands": { "type": "array", "items": { "$ref": "#/components/schemas/Command" }, "minItems": 1, "maxItems": 200 }, "dry_run": { "type": "boolean", "default": false } }, "required": [ "commands" ], "additionalProperties": false }, "TransactionResult": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "dry_run": { "type": "boolean" }, "changed": { "type": "boolean" }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/Issue" } }, "model": { "$ref": "#/components/schemas/Project", "description": "Proposed model, present only for a dry run." }, "source_project": { "$ref": "#/components/schemas/SourceBundle", "description": "Proposed accepted bundle, present only for a dry run. Source writeback is validated before returning a successful candidate." } }, "required": [ "revision", "dry_run", "changed", "issues" ], "additionalProperties": false }, "MutationResult": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "changed": { "type": "boolean" }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/Issue" } }, "migration": { "anyOf": [ { "$ref": "#/components/schemas/MigrationReport" }, { "type": "null" } ] } }, "required": [ "revision", "changed" ], "additionalProperties": false }, "ValidationRequest": { "oneOf": [ { "type": "object", "properties": { "format": { "const": "json" }, "model": { "$ref": "#/components/schemas/Project" } }, "required": [ "format", "model" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "const": "arcadia" }, "source": { "type": "string" } }, "required": [ "format", "source" ], "additionalProperties": false }, { "type": "object", "properties": { "format": { "const": "source-project" }, "source_project": { "$ref": "#/components/schemas/SourceBundle" } }, "required": [ "format", "source_project" ], "additionalProperties": false } ] }, "ValidationResult": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "valid": { "type": "boolean" }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/Issue" } }, "migration": { "anyOf": [ { "$ref": "#/components/schemas/MigrationReport" }, { "type": "null" } ] } }, "required": [ "revision", "valid", "issues" ], "additionalProperties": false }, "NeighborhoodRequest": { "type": "object", "properties": { "roots": { "type": "array", "items": { "type": "string", "format": "uuid" }, "minItems": 1, "maxItems": 100 }, "direction": { "type": "string", "enum": [ "incoming", "outgoing", "both" ], "default": "both" }, "relation_kinds": { "type": "array", "items": { "$ref": "#/components/schemas/RelationKind" } }, "max_depth": { "type": "integer", "minimum": 0, "maximum": 4, "default": 1 }, "max_objects": { "type": "integer", "minimum": 1, "maximum": 1000, "default": 200 }, "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." } }, "required": [ "roots" ], "additionalProperties": false }, "NeighborhoodResult": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "elements": { "type": "array", "items": { "$ref": "#/components/schemas/Element" } }, "relations": { "type": "array", "items": { "$ref": "#/components/schemas/Relation" } }, "truncated": { "type": "boolean" } }, "required": [ "revision", "elements", "relations", "truncated" ], "additionalProperties": false }, "ElementPage": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/Element" } }, "next_after": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "revision", "items", "next_after" ], "additionalProperties": false }, "RelationPage": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/Relation" } }, "next_after": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "revision", "items", "next_after" ], "additionalProperties": false }, "ArtifactPage": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/ArtifactLink" } }, "next_after": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "revision", "items", "next_after" ], "additionalProperties": false }, "TracePage": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/Trace" } }, "next_after": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "revision", "items", "next_after" ], "additionalProperties": false }, "ProjectPage": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/ProjectSummary" } }, "next_after": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "items", "next_after" ], "additionalProperties": false }, "TransitionDirection": { "type": "string", "enum": [ "OaToSa", "SaToOa" ] }, "TransitionField": { "type": "string", "enum": [ "Name", "Description" ] }, "TransitionMapping": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "target": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] }, "target_kind": { "anyOf": [ { "$ref": "#/components/schemas/Kind" }, { "type": "null" } ] } }, "required": [ "source", "target", "target_kind" ], "additionalProperties": false }, "FieldDecision": { "oneOf": [ { "type": "string", "enum": [ "TakeSource", "KeepTarget" ] }, { "type": "object", "properties": { "Value": { "type": "string" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "FieldResolution": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "field": { "$ref": "#/components/schemas/TransitionField" }, "decision": { "$ref": "#/components/schemas/FieldDecision" } }, "required": [ "source", "field", "decision" ], "additionalProperties": false }, "TransitionRequest": { "type": "object", "properties": { "direction": { "$ref": "#/components/schemas/TransitionDirection" }, "sources": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "maxItems": 100 }, "scope": { "type": "string", "enum": [ "SelectedOnly", "Required", "Subtree" ] }, "mappings": { "type": "array", "items": { "$ref": "#/components/schemas/TransitionMapping" }, "maxItems": 200 }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/TransitionField" } }, "resolutions": { "type": "array", "items": { "$ref": "#/components/schemas/FieldResolution" }, "maxItems": 400 }, "destination_diagram": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] }, "communication_endpoints": { "type": "array", "items": { "$ref": "#/components/schemas/CommunicationEndpointDecision" }, "maxItems": 200, "default": [], "description": "Explicit SA component-port pair per selected OA CommunicationMean. Reuse or Create only. Owners follow reviewed participant mappings; no participant-to-port substitution or automatic interface allocation." } }, "required": [ "direction", "sources", "scope", "mappings", "fields", "resolutions", "destination_diagram" ], "additionalProperties": false }, "FieldChange": { "type": "object", "properties": { "field": { "$ref": "#/components/schemas/TransitionField" }, "before": { "type": "string" }, "after": { "type": "string" } }, "required": [ "field", "before", "after" ], "additionalProperties": false }, "TransitionChange": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "target": { "$ref": "#/components/schemas/Id" }, "action": { "type": "string", "enum": [ "Create", "Update", "Reuse" ] }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/FieldChange" } } }, "required": [ "source", "target", "action", "fields" ], "additionalProperties": false }, "TransitionConflict": { "type": "object", "properties": { "source": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] }, "target": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] }, "field": { "anyOf": [ { "$ref": "#/components/schemas/TransitionField" }, { "type": "null" } ] }, "message": { "type": "string" } }, "required": [ "source", "target", "field", "message" ], "additionalProperties": false }, "TransitionPlan": { "type": "object", "properties": { "base_fingerprint": { "type": "string" }, "request": { "$ref": "#/components/schemas/TransitionRequest" }, "changes": { "type": "array", "items": { "$ref": "#/components/schemas/TransitionChange" } }, "conflicts": { "type": "array", "items": { "$ref": "#/components/schemas/TransitionConflict" } }, "warnings": { "type": "array", "items": { "type": "string" } }, "commands": { "type": "array", "items": { "$ref": "#/components/schemas/Command" } } }, "required": [ "base_fingerprint", "request", "changes", "conflicts", "warnings", "commands" ], "additionalProperties": false }, "TransitionEnvelope": { "type": "object", "properties": { "base_revision": { "$ref": "#/components/schemas/Revision" }, "plan": { "$ref": "#/components/schemas/TransitionPlan" } }, "required": [ "base_revision", "plan" ], "additionalProperties": false }, "ControlKind": { "type": "string", "enum": [ "Choice", "Merge", "Fork", "Join", "Loop" ] }, "ScenarioViewpoint": { "type": "string", "enum": [ "OperationalActivity", "ParticipantInteraction", "Functional", "BoundaryInterface", "MixedLegacy" ] }, "MessageKind": { "oneOf": [ { "type": "string", "enum": [ "Asynchronous", "Call", "Reply", "Create", "Delete" ] }, { "type": "object", "properties": { "Timer": { "type": "object", "properties": { "expression": { "type": "string" } }, "required": [ "expression" ], "additionalProperties": false } }, "required": [ "Timer" ], "additionalProperties": false } ] }, "MessageValue": { "type": "object", "properties": { "path": { "type": "array", "items": { "type": "string", "format": "uuid" }, "default": [] }, "field": { "type": "string", "format": "uuid" }, "expression": { "type": "string" } }, "required": [ "field", "expression" ], "additionalProperties": false, "description": "Identity is (path, field). Path lists enclosing DataField UUIDs, excluding the terminal field. Value storage traverses named Records; Reference storage stops traversal. Operation Call accepts In/InOut and Reply accepts Out/InOut/Return. Unspecified direction and retained ambiguous legacy empty paths warn. Expressions are descriptive, never executed." }, "LifelineBinding": { "type": "object", "properties": { "referenced": { "type": "string", "format": "uuid" }, "local": { "type": "string", "format": "uuid" } }, "required": [ "referenced", "local" ], "additionalProperties": false }, "StateKind": { "type": "string", "enum": [ "State", "Mode", "Initial", "Final", "Choice", "Junction", "Fork", "Join", "ShallowHistory", "DeepHistory", "EntryPoint", "ExitPoint", "Terminate" ] }, "TimeEventKind": { "type": "string", "enum": [ "After", "At" ], "description": "After is relative to source-state activation; At describes an absolute instant. Expressions are descriptive, not executed." }, "TransitionKind": { "type": "string", "enum": [ "External", "Local", "Internal" ] }, "EventBody": { "oneOf": [ { "type": "object", "properties": { "Signal": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "uniqueItems": true, "description": "Same-layer ExchangeItem identities carried by the signal." } }, "required": [ "items" ], "additionalProperties": false } }, "required": [ "Signal" ], "additionalProperties": false }, { "type": "object", "properties": { "Time": { "type": "object", "properties": { "kind": { "$ref": "#/components/schemas/TimeEventKind" }, "expression": { "type": "string" } }, "required": [ "kind", "expression" ], "additionalProperties": false } }, "required": [ "Time" ], "additionalProperties": false }, { "type": "object", "properties": { "Change": { "type": "object", "properties": { "expression": { "type": "string" } }, "required": [ "expression" ], "additionalProperties": false } }, "required": [ "Change" ], "additionalProperties": false } ] }, "PortContract": { "oneOf": [ { "type": "object", "properties": { "FunctionInput": { "type": "object", "properties": { "incoming_items": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "incoming_items" ], "additionalProperties": false } }, "required": [ "FunctionInput" ], "additionalProperties": false }, { "type": "object", "properties": { "FunctionOutput": { "type": "object", "properties": { "outgoing_items": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "outgoing_items" ], "additionalProperties": false } }, "required": [ "FunctionOutput" ], "additionalProperties": false }, { "type": "object", "properties": { "Component": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "Standard", "Flow" ] }, "orientation": { "type": "string", "enum": [ "Unset", "In", "Out", "InOut" ] } }, "required": [ "kind", "orientation" ], "additionalProperties": false } }, "required": [ "Component" ], "additionalProperties": false }, { "type": "string", "enum": [ "Legacy" ] } ], "description": "FunctionInput/Output are SA Function-owned item contracts. Component is SA System/SystemActor-owned; Standard requires Unset. Legacy requires a preserved legacy record and emits compatibility warnings. Mixed Standard/Flow component connections are invalid." }, "LegacyPortContract": { "type": "object", "properties": { "direction": { "type": "string", "enum": [ "In", "Out", "InOut" ] }, "interface": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ] } }, "required": [ "direction", "interface" ], "additionalProperties": false }, "MigrationReport": { "type": "object", "properties": { "from_schema": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ] }, "to_schema": { "type": "integer", "const": 6 }, "preserved_ports": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "alias": { "type": "string" }, "required_resolution": { "type": "string" } }, "required": [ "id", "alias", "required_resolution" ], "additionalProperties": false } }, "generated_endpoints": { "type": "array", "items": { "type": "object", "properties": { "exchange": { "type": "string", "format": "uuid" }, "side": { "type": "string", "enum": [ "source", "target" ] }, "port": { "type": "string", "format": "uuid" }, "owner": { "type": "string", "format": "uuid" }, "alias": { "type": "string" } }, "required": [ "exchange", "side", "port", "owner", "alias" ], "additionalProperties": false } }, "orientation_defaults": { "type": "array", "items": { "type": "object", "properties": { "exchange": { "type": "string", "format": "uuid" }, "oriented": { "type": "boolean", "const": true } }, "required": [ "exchange", "oriented" ], "additionalProperties": false } }, "required_resolutions": { "type": "array", "items": { "type": "string", "format": "uuid" } }, "semantic_defaults": { "type": "array", "items": { "type": "object", "properties": { "object": { "type": "string", "format": "uuid" }, "field": { "type": "string" }, "description": { "type": "string" } }, "required": [ "object", "field", "description" ], "additionalProperties": false } }, "generated_interface_allocations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "source": { "type": "string", "format": "uuid" }, "target": { "type": "string", "format": "uuid" }, "alias": { "type": "string" }, "order": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, "required": [ "id", "source", "target", "alias", "order" ], "additionalProperties": false } }, "unresolved_message_values": { "type": "array", "items": { "type": "object", "properties": { "occurrence": { "type": "string", "format": "uuid" }, "field": { "type": "string", "format": "uuid" }, "reason": { "type": "string" } }, "required": [ "occurrence", "field", "reason" ], "additionalProperties": false } } }, "required": [ "from_schema", "to_schema", "preserved_ports", "generated_endpoints", "orientation_defaults", "required_resolutions" ], "additionalProperties": false, "description": "Transient observations from explicit V1/V2/V3/V4/V5 to V6 migration. New report lists default to empty when reading older responses. Reading an old envelope neither saves nor changes its revision. Allocation UUIDv5 uses project namespace and v2-interface-item::." }, "SourceBundle": { "type": "object", "description": "Complete source6 workspace (source3/4/5 migrate explicitly). The entry is a root filename. Files use canonical portable slash-separated relative .arcadia paths and all must be reachable. Includes resolve only against this map, never the service filesystem. Up to 256 files, 32 include edges along a path and 1,024 include edges overall. Serialized bundle JSON is at most 8 MiB, checked again after missing UUIDs are inserted. GET returns exact accepted stable text.", "properties": { "entry": { "type": "string" }, "files": { "type": "object", "maxProperties": 256, "additionalProperties": { "type": "string" } } }, "required": [ "entry", "files" ], "additionalProperties": false }, "SourceSpan": { "type": "object", "description": "Half-open UTF-8 byte offsets [start,end) in the named source file.", "properties": { "start": { "type": "integer", "minimum": 0 }, "end": { "type": "integer", "minimum": 0 } }, "required": [ "start", "end" ], "additionalProperties": false }, "SourceLocation": { "type": "object", "properties": { "path": { "type": "string" }, "span": { "$ref": "#/components/schemas/SourceSpan" } }, "required": [ "path", "span" ], "additionalProperties": false }, "SourceProjectMutationResult": { "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "description": "Current revision counter; use ETag as the opaque write validator." }, "changed": { "type": "boolean" }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/Issue" } }, "source_project": { "$ref": "#/components/schemas/SourceBundle" }, "migration": { "anyOf": [ { "$ref": "#/components/schemas/MigrationReport" }, { "type": "null" } ] } }, "required": [ "revision", "changed", "issues", "source_project", "migration" ], "additionalProperties": false }, "ExchangeItemKind": { "type": "string", "enum": [ "Information", "Material", "Energy" ] }, "ExchangeMechanism": { "type": "string", "enum": [ "Unspecified", "Flow", "Event", "Operation", "SharedData" ] }, "ParameterDirection": { "type": "string", "enum": [ "Unspecified", "In", "Out", "InOut", "Return" ] }, "FieldStorage": { "type": "string", "enum": [ "Value", "Reference" ] }, "TransmissionProtocol": { "type": "string", "enum": [ "Unspecified", "Synchronous", "Asynchronous", "Unicast", "Multicast", "Broadcast" ] }, "AcquisitionProtocol": { "type": "string", "enum": [ "Unspecified", "Read", "Accept" ] }, "DataValue": { "oneOf": [ { "type": "object", "properties": { "Boolean": { "type": "boolean" } }, "required": [ "Boolean" ], "additionalProperties": false }, { "type": "object", "properties": { "Integer": { "type": "integer", "format": "int64", "minimum": -9223372036854775808, "maximum": 9223372036854775807 } }, "required": [ "Integer" ], "additionalProperties": false }, { "type": "object", "properties": { "Real": { "type": "number", "format": "double", "description": "Finite IEEE-754 binary64; no coercion from typed Integer values." } }, "required": [ "Real" ], "additionalProperties": false }, { "type": "object", "properties": { "String": { "type": "string" } }, "required": [ "String" ], "additionalProperties": false }, { "type": "object", "properties": { "Enumeration": { "type": "string" } }, "required": [ "Enumeration" ], "additionalProperties": false } ] }, "DataConstructor": { "type": "string", "enum": [ "Boolean", "Integer", "Real", "String", "Enumeration", "Record" ] }, "PortConstructor": { "type": "string", "enum": [ "FunctionInput", "FunctionOutput", "Component", "Legacy" ] }, "OccurrenceConstructor": { "type": "string", "enum": [ "Exchange", "Action", "Control", "SequenceReference", "ScenarioUse", "State", "Fragment", "Branch" ] }, "EventConstructor": { "type": "string", "enum": [ "Signal", "Time", "Change" ] }, "MessageConstructor": { "type": "string", "enum": [ "Asynchronous", "Call", "Reply", "Create", "Delete", "Timer" ] }, "ReferenceCollection": { "type": "string", "enum": [ "Steps", "FragmentBranches", "FunctionInputItems", "FunctionOutputItems", "SignalItems", "ExchangeItems", "CategoryExchanges", "TransitionTriggers", "TransitionEffects", "Constrained" ] }, "OrderedCollection": { "type": "string", "enum": [ "Steps", "FragmentBranches" ] }, "IncidentEnd": { "type": "string", "enum": [ "Source", "Target" ] }, "ArtifactFacet": { "type": "string", "enum": [ "Presence", "Name", "Description", "Owner", "Relation", "Uri", "Revision", "Fragment" ] }, "ComponentPortKind": { "type": "string", "enum": [ "Standard", "Flow" ] }, "ComponentPortOrientation": { "type": "string", "enum": [ "Unset", "In", "Out", "InOut" ] }, "PortDirection": { "type": "string", "enum": [ "In", "Out", "InOut" ] }, "FragmentOperator": { "type": "string", "enum": [ "Alternative", "Parallel", "Loop", "Optional" ] }, "StateActionKind": { "type": "string", "enum": [ "Entry", "Do", "Exit" ] }, "ArtifactRelation": { "type": "string", "enum": [ "References", "Satisfies", "Verifies", "Implements", "DerivedFrom" ] }, "HeaderFacet": { "type": "string", "enum": [ "Name", "Description", "Parent" ] }, "ReviewedString": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "string" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "string" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionId": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "HeaderReview": { "oneOf": [ { "type": "object", "properties": { "Name": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Name" ], "additionalProperties": false }, { "type": "object", "properties": { "Description": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Description" ], "additionalProperties": false }, { "type": "object", "properties": { "Parent": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Parent" ], "additionalProperties": false } ] }, "ExchangeItemFacet": { "type": "string", "enum": [ "Nature", "Mechanism", "Supertype" ] }, "ReviewedExchangeItemKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeItemKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeItemKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedExchangeMechanism": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeMechanism" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeMechanism" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ExchangeItemReview": { "oneOf": [ { "type": "object", "properties": { "Nature": { "$ref": "#/components/schemas/ReviewedExchangeItemKind" } }, "required": [ "Nature" ], "additionalProperties": false }, { "type": "object", "properties": { "Mechanism": { "$ref": "#/components/schemas/ReviewedExchangeMechanism" } }, "required": [ "Mechanism" ], "additionalProperties": false }, { "type": "object", "properties": { "Supertype": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Supertype" ], "additionalProperties": false } ] }, "InterfaceFacet": { "type": "string", "enum": [ "Supertype" ] }, "InterfaceReview": { "oneOf": [ { "type": "object", "properties": { "Supertype": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Supertype" ], "additionalProperties": false } ] }, "DataFacet": { "type": "string", "enum": [ "Constructor", "IntegerMinimum", "IntegerMaximum", "RealMinimum", "RealMaximum", "StringMinimumLength", "StringMaximumLength", "RecordSupertype", "Default", "Unit" ] }, "ReviewedDataConstructor": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/DataConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/DataConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptioni64": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "integer", "minimum": -9223372036854775808, "maximum": 9223372036854775807 }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "integer", "minimum": -9223372036854775808, "maximum": 9223372036854775807 }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionf64": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "number" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "number" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "Reviewedu32": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "integer", "minimum": 0, "maximum": 4294967295 } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionu32": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionDataValue": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/DataValue" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/DataValue" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "DataReview": { "oneOf": [ { "type": "object", "properties": { "Constructor": { "$ref": "#/components/schemas/ReviewedDataConstructor" } }, "required": [ "Constructor" ], "additionalProperties": false }, { "type": "object", "properties": { "IntegerMinimum": { "$ref": "#/components/schemas/ReviewedOptioni64" } }, "required": [ "IntegerMinimum" ], "additionalProperties": false }, { "type": "object", "properties": { "IntegerMaximum": { "$ref": "#/components/schemas/ReviewedOptioni64" } }, "required": [ "IntegerMaximum" ], "additionalProperties": false }, { "type": "object", "properties": { "RealMinimum": { "$ref": "#/components/schemas/ReviewedOptionf64" } }, "required": [ "RealMinimum" ], "additionalProperties": false }, { "type": "object", "properties": { "RealMaximum": { "$ref": "#/components/schemas/ReviewedOptionf64" } }, "required": [ "RealMaximum" ], "additionalProperties": false }, { "type": "object", "properties": { "StringMinimumLength": { "$ref": "#/components/schemas/Reviewedu32" } }, "required": [ "StringMinimumLength" ], "additionalProperties": false }, { "type": "object", "properties": { "StringMaximumLength": { "$ref": "#/components/schemas/ReviewedOptionu32" } }, "required": [ "StringMaximumLength" ], "additionalProperties": false }, { "type": "object", "properties": { "RecordSupertype": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "RecordSupertype" ], "additionalProperties": false }, { "type": "object", "properties": { "Default": { "$ref": "#/components/schemas/ReviewedOptionDataValue" } }, "required": [ "Default" ], "additionalProperties": false }, { "type": "object", "properties": { "Unit": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Unit" ], "additionalProperties": false } ] }, "FieldFacet": { "type": "string", "enum": [ "Type", "Minimum", "Maximum", "Unit", "Direction", "Storage", "Default" ] }, "ReviewedTypeRef": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TypeRef" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TypeRef" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedParameterDirection": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ParameterDirection" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ParameterDirection" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedFieldStorage": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/FieldStorage" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/FieldStorage" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionVecDataValue": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "array", "items": { "$ref": "#/components/schemas/DataValue" } }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "array", "items": { "$ref": "#/components/schemas/DataValue" } }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "FieldReview": { "oneOf": [ { "type": "object", "properties": { "Type": { "$ref": "#/components/schemas/ReviewedTypeRef" } }, "required": [ "Type" ], "additionalProperties": false }, { "type": "object", "properties": { "Minimum": { "$ref": "#/components/schemas/Reviewedu32" } }, "required": [ "Minimum" ], "additionalProperties": false }, { "type": "object", "properties": { "Maximum": { "$ref": "#/components/schemas/ReviewedOptionu32" } }, "required": [ "Maximum" ], "additionalProperties": false }, { "type": "object", "properties": { "Unit": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Unit" ], "additionalProperties": false }, { "type": "object", "properties": { "Direction": { "$ref": "#/components/schemas/ReviewedParameterDirection" } }, "required": [ "Direction" ], "additionalProperties": false }, { "type": "object", "properties": { "Storage": { "$ref": "#/components/schemas/ReviewedFieldStorage" } }, "required": [ "Storage" ], "additionalProperties": false }, { "type": "object", "properties": { "Default": { "$ref": "#/components/schemas/ReviewedOptionVecDataValue" } }, "required": [ "Default" ], "additionalProperties": false } ] }, "PortFacet": { "type": "string", "enum": [ "Constructor", "ComponentKind", "Orientation", "LegacyDirection", "LegacyInterface" ] }, "ReviewedPortConstructor": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/PortConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/PortConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedComponentPortKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ComponentPortKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ComponentPortKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedComponentPortOrientation": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ComponentPortOrientation" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ComponentPortOrientation" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedPortDirection": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/PortDirection" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/PortDirection" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "PortReview": { "oneOf": [ { "type": "object", "properties": { "Constructor": { "$ref": "#/components/schemas/ReviewedPortConstructor" } }, "required": [ "Constructor" ], "additionalProperties": false }, { "type": "object", "properties": { "ComponentKind": { "$ref": "#/components/schemas/ReviewedComponentPortKind" } }, "required": [ "ComponentKind" ], "additionalProperties": false }, { "type": "object", "properties": { "Orientation": { "$ref": "#/components/schemas/ReviewedComponentPortOrientation" } }, "required": [ "Orientation" ], "additionalProperties": false }, { "type": "object", "properties": { "LegacyDirection": { "$ref": "#/components/schemas/ReviewedPortDirection" } }, "required": [ "LegacyDirection" ], "additionalProperties": false }, { "type": "object", "properties": { "LegacyInterface": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "LegacyInterface" ], "additionalProperties": false } ] }, "ScenarioFacet": { "type": "string", "enum": [ "Viewpoint", "Context", "Precondition", "Postcondition" ] }, "ReviewedScenarioViewpoint": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ScenarioViewpoint" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ScenarioViewpoint" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ScenarioReview": { "oneOf": [ { "type": "object", "properties": { "Viewpoint": { "$ref": "#/components/schemas/ReviewedScenarioViewpoint" } }, "required": [ "Viewpoint" ], "additionalProperties": false }, { "type": "object", "properties": { "Context": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Context" ], "additionalProperties": false }, { "type": "object", "properties": { "Precondition": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Precondition" ], "additionalProperties": false }, { "type": "object", "properties": { "Postcondition": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Postcondition" ], "additionalProperties": false } ] }, "LifelineFacet": { "type": "string", "enum": [ "Represented" ] }, "LifelineReview": { "oneOf": [ { "type": "object", "properties": { "Represented": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Represented" ], "additionalProperties": false } ] }, "OccurrenceFacet": { "type": "string", "enum": [ "Constructor", "Precondition", "Postcondition", "Exchange", "Sender", "Receiver", "MessageKind", "TimerExpression", "ReplyTo", "Action", "ActionLifeline", "ControlKind", "Sequence", "Scenario", "State", "StateLifeline", "FragmentOperator", "BranchGuard" ] }, "ReviewedOccurrenceConstructor": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/OccurrenceConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/OccurrenceConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedMessageConstructor": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/MessageConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/MessageConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedControlKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ControlKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ControlKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedFragmentOperator": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/FragmentOperator" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/FragmentOperator" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "OccurrenceReview": { "oneOf": [ { "type": "object", "properties": { "Constructor": { "$ref": "#/components/schemas/ReviewedOccurrenceConstructor" } }, "required": [ "Constructor" ], "additionalProperties": false }, { "type": "object", "properties": { "Precondition": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Precondition" ], "additionalProperties": false }, { "type": "object", "properties": { "Postcondition": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Postcondition" ], "additionalProperties": false }, { "type": "object", "properties": { "Exchange": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Exchange" ], "additionalProperties": false }, { "type": "object", "properties": { "Sender": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Sender" ], "additionalProperties": false }, { "type": "object", "properties": { "Receiver": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Receiver" ], "additionalProperties": false }, { "type": "object", "properties": { "MessageKind": { "$ref": "#/components/schemas/ReviewedMessageConstructor" } }, "required": [ "MessageKind" ], "additionalProperties": false }, { "type": "object", "properties": { "TimerExpression": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "TimerExpression" ], "additionalProperties": false }, { "type": "object", "properties": { "ReplyTo": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "ReplyTo" ], "additionalProperties": false }, { "type": "object", "properties": { "Action": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Action" ], "additionalProperties": false }, { "type": "object", "properties": { "ActionLifeline": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "ActionLifeline" ], "additionalProperties": false }, { "type": "object", "properties": { "ControlKind": { "$ref": "#/components/schemas/ReviewedControlKind" } }, "required": [ "ControlKind" ], "additionalProperties": false }, { "type": "object", "properties": { "Sequence": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Sequence" ], "additionalProperties": false }, { "type": "object", "properties": { "Scenario": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "Scenario" ], "additionalProperties": false }, { "type": "object", "properties": { "State": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "State" ], "additionalProperties": false }, { "type": "object", "properties": { "StateLifeline": { "$ref": "#/components/schemas/ReviewedOptionId" } }, "required": [ "StateLifeline" ], "additionalProperties": false }, { "type": "object", "properties": { "FragmentOperator": { "$ref": "#/components/schemas/ReviewedFragmentOperator" } }, "required": [ "FragmentOperator" ], "additionalProperties": false }, { "type": "object", "properties": { "BranchGuard": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "BranchGuard" ], "additionalProperties": false } ] }, "EventFacet": { "type": "string", "enum": [ "Constructor", "TimeKind", "TimeExpression", "ChangeExpression" ] }, "ReviewedEventConstructor": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/EventConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/EventConstructor" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedTimeEventKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TimeEventKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TimeEventKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "EventReview": { "oneOf": [ { "type": "object", "properties": { "Constructor": { "$ref": "#/components/schemas/ReviewedEventConstructor" } }, "required": [ "Constructor" ], "additionalProperties": false }, { "type": "object", "properties": { "TimeKind": { "$ref": "#/components/schemas/ReviewedTimeEventKind" } }, "required": [ "TimeKind" ], "additionalProperties": false }, { "type": "object", "properties": { "TimeExpression": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "TimeExpression" ], "additionalProperties": false }, { "type": "object", "properties": { "ChangeExpression": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "ChangeExpression" ], "additionalProperties": false } ] }, "StateFacet": { "type": "string", "enum": [ "Kind", "Entry", "Exit", "DoActivity" ] }, "ReviewedStateKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/StateKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/StateKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "StateReview": { "oneOf": [ { "type": "object", "properties": { "Kind": { "$ref": "#/components/schemas/ReviewedStateKind" } }, "required": [ "Kind" ], "additionalProperties": false }, { "type": "object", "properties": { "Entry": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Entry" ], "additionalProperties": false }, { "type": "object", "properties": { "Exit": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Exit" ], "additionalProperties": false }, { "type": "object", "properties": { "DoActivity": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "DoActivity" ], "additionalProperties": false } ] }, "ConstraintFacet": { "type": "string", "enum": [ "Expression" ] }, "ConstraintReview": { "oneOf": [ { "type": "object", "properties": { "Expression": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Expression" ], "additionalProperties": false } ] }, "RelationFacet": { "type": "string", "enum": [ "Source", "Target", "AllocationOrder", "Transmission", "Acquisition", "SourceRole", "TargetRole", "SourceMinimum", "SourceMaximum", "TargetMinimum", "TargetMaximum", "SourceNavigable", "TargetNavigable", "SourcePort", "TargetPort", "Oriented", "ExtendCondition", "SequenceGuard", "TransitionKind", "Trigger", "Guard", "Effect", "StateActionPhase" ] }, "ReviewedId": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/Id" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/Id" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedTransmissionProtocol": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TransmissionProtocol" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TransmissionProtocol" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedAcquisitionProtocol": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/AcquisitionProtocol" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/AcquisitionProtocol" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "Reviewedbool": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "boolean" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "boolean" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedTransitionKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TransitionKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/TransitionKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedStateActionKind": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/StateActionKind" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/StateActionKind" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "RelationReview": { "oneOf": [ { "type": "object", "properties": { "Source": { "$ref": "#/components/schemas/ReviewedId" } }, "required": [ "Source" ], "additionalProperties": false }, { "type": "object", "properties": { "Target": { "$ref": "#/components/schemas/ReviewedId" } }, "required": [ "Target" ], "additionalProperties": false }, { "type": "object", "properties": { "AllocationOrder": { "$ref": "#/components/schemas/Reviewedu32" } }, "required": [ "AllocationOrder" ], "additionalProperties": false }, { "type": "object", "properties": { "Transmission": { "$ref": "#/components/schemas/ReviewedTransmissionProtocol" } }, "required": [ "Transmission" ], "additionalProperties": false }, { "type": "object", "properties": { "Acquisition": { "$ref": "#/components/schemas/ReviewedAcquisitionProtocol" } }, "required": [ "Acquisition" ], "additionalProperties": false }, { "type": "object", "properties": { "SourceRole": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "SourceRole" ], "additionalProperties": false }, { "type": "object", "properties": { "TargetRole": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "TargetRole" ], "additionalProperties": false }, { "type": "object", "properties": { "SourceMinimum": { "$ref": "#/components/schemas/Reviewedu32" } }, "required": [ "SourceMinimum" ], "additionalProperties": false }, { "type": "object", "properties": { "SourceMaximum": { "$ref": "#/components/schemas/ReviewedOptionu32" } }, "required": [ "SourceMaximum" ], "additionalProperties": false }, { "type": "object", "properties": { "TargetMinimum": { "$ref": "#/components/schemas/Reviewedu32" } }, "required": [ "TargetMinimum" ], "additionalProperties": false }, { "type": "object", "properties": { "TargetMaximum": { "$ref": "#/components/schemas/ReviewedOptionu32" } }, "required": [ "TargetMaximum" ], "additionalProperties": false }, { "type": "object", "properties": { "SourceNavigable": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "SourceNavigable" ], "additionalProperties": false }, { "type": "object", "properties": { "TargetNavigable": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "TargetNavigable" ], "additionalProperties": false }, { "type": "object", "properties": { "SourcePort": { "$ref": "#/components/schemas/ReviewedId" } }, "required": [ "SourcePort" ], "additionalProperties": false }, { "type": "object", "properties": { "TargetPort": { "$ref": "#/components/schemas/ReviewedId" } }, "required": [ "TargetPort" ], "additionalProperties": false }, { "type": "object", "properties": { "Oriented": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "Oriented" ], "additionalProperties": false }, { "type": "object", "properties": { "ExtendCondition": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "ExtendCondition" ], "additionalProperties": false }, { "type": "object", "properties": { "SequenceGuard": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "SequenceGuard" ], "additionalProperties": false }, { "type": "object", "properties": { "TransitionKind": { "$ref": "#/components/schemas/ReviewedTransitionKind" } }, "required": [ "TransitionKind" ], "additionalProperties": false }, { "type": "object", "properties": { "Trigger": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Trigger" ], "additionalProperties": false }, { "type": "object", "properties": { "Guard": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Guard" ], "additionalProperties": false }, { "type": "object", "properties": { "Effect": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Effect" ], "additionalProperties": false }, { "type": "object", "properties": { "StateActionPhase": { "$ref": "#/components/schemas/ReviewedStateActionKind" } }, "required": [ "StateActionPhase" ], "additionalProperties": false } ] }, "AnnotationKey": { "type": "object", "properties": { "path": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } }, "field": { "$ref": "#/components/schemas/Id" } }, "required": [ "path", "field" ], "additionalProperties": false }, "KeyPairId": { "type": "object", "properties": { "oa": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] }, "sa": { "anyOf": [ { "$ref": "#/components/schemas/Id" }, { "type": "null" } ] } }, "required": [], "additionalProperties": false }, "KeyPairString": { "type": "object", "properties": { "oa": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "sa": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [], "additionalProperties": false }, "KeyPairAnnotationKey": { "type": "object", "properties": { "oa": { "anyOf": [ { "$ref": "#/components/schemas/AnnotationKey" }, { "type": "null" } ] }, "sa": { "anyOf": [ { "$ref": "#/components/schemas/AnnotationKey" }, { "type": "null" } ] } }, "required": [], "additionalProperties": false }, "ReviewedArtifactRelation": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ArtifactRelation" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ArtifactRelation" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionString": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ArtifactReview": { "oneOf": [ { "type": "object", "properties": { "Presence": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "Presence" ], "additionalProperties": false }, { "type": "object", "properties": { "Name": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Name" ], "additionalProperties": false }, { "type": "object", "properties": { "Description": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Description" ], "additionalProperties": false }, { "type": "object", "properties": { "Owner": { "$ref": "#/components/schemas/ReviewedId" } }, "required": [ "Owner" ], "additionalProperties": false }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/ReviewedArtifactRelation" } }, "required": [ "Relation" ], "additionalProperties": false }, { "type": "object", "properties": { "Uri": { "$ref": "#/components/schemas/ReviewedString" } }, "required": [ "Uri" ], "additionalProperties": false }, { "type": "object", "properties": { "Revision": { "$ref": "#/components/schemas/ReviewedOptionString" } }, "required": [ "Revision" ], "additionalProperties": false }, { "type": "object", "properties": { "Fragment": { "$ref": "#/components/schemas/ReviewedOptionString" } }, "required": [ "Fragment" ], "additionalProperties": false } ] }, "ReviewedVecId": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionMessageValue": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/MessageValue" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/MessageValue" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "ReviewedOptionLifelineBinding": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/LifelineBinding" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "anyOf": [ { "$ref": "#/components/schemas/LifelineBinding" }, { "type": "null" } ] } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "FacetSelector": { "oneOf": [ { "type": "object", "properties": { "Header": { "$ref": "#/components/schemas/HeaderFacet" } }, "required": [ "Header" ], "additionalProperties": false }, { "type": "object", "properties": { "ExchangeItem": { "$ref": "#/components/schemas/ExchangeItemFacet" } }, "required": [ "ExchangeItem" ], "additionalProperties": false }, { "type": "object", "properties": { "Category": { "$ref": "#/components/schemas/CategoryFacet" } }, "required": [ "Category" ], "additionalProperties": false }, { "type": "object", "properties": { "Interface": { "$ref": "#/components/schemas/InterfaceFacet" } }, "required": [ "Interface" ], "additionalProperties": false }, { "type": "object", "properties": { "Data": { "$ref": "#/components/schemas/DataFacet" } }, "required": [ "Data" ], "additionalProperties": false }, { "type": "object", "properties": { "Field": { "$ref": "#/components/schemas/FieldFacet" } }, "required": [ "Field" ], "additionalProperties": false }, { "type": "object", "properties": { "Port": { "$ref": "#/components/schemas/PortFacet" } }, "required": [ "Port" ], "additionalProperties": false }, { "type": "object", "properties": { "Scenario": { "$ref": "#/components/schemas/ScenarioFacet" } }, "required": [ "Scenario" ], "additionalProperties": false }, { "type": "object", "properties": { "Lifeline": { "$ref": "#/components/schemas/LifelineFacet" } }, "required": [ "Lifeline" ], "additionalProperties": false }, { "type": "object", "properties": { "Occurrence": { "$ref": "#/components/schemas/OccurrenceFacet" } }, "required": [ "Occurrence" ], "additionalProperties": false }, { "type": "object", "properties": { "Event": { "$ref": "#/components/schemas/EventFacet" } }, "required": [ "Event" ], "additionalProperties": false }, { "type": "object", "properties": { "State": { "$ref": "#/components/schemas/StateFacet" } }, "required": [ "State" ], "additionalProperties": false }, { "type": "object", "properties": { "Constraint": { "$ref": "#/components/schemas/ConstraintFacet" } }, "required": [ "Constraint" ], "additionalProperties": false }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/RelationFacet" } }, "required": [ "Relation" ], "additionalProperties": false }, { "type": "object", "properties": { "Member": { "type": "object", "properties": { "collection": { "$ref": "#/components/schemas/ReferenceCollection" }, "keys": { "$ref": "#/components/schemas/KeyPairId" } }, "required": [ "collection", "keys" ], "additionalProperties": false } }, "required": [ "Member" ], "additionalProperties": false }, { "type": "object", "properties": { "Order": { "$ref": "#/components/schemas/OrderedCollection" } }, "required": [ "Order" ], "additionalProperties": false }, { "type": "object", "properties": { "Literal": { "$ref": "#/components/schemas/KeyPairString" } }, "required": [ "Literal" ], "additionalProperties": false }, { "type": "object", "properties": { "Annotation": { "$ref": "#/components/schemas/KeyPairAnnotationKey" } }, "required": [ "Annotation" ], "additionalProperties": false }, { "type": "object", "properties": { "Binding": { "$ref": "#/components/schemas/KeyPairId" } }, "required": [ "Binding" ], "additionalProperties": false }, { "type": "object", "properties": { "Child": { "$ref": "#/components/schemas/KeyPairId" } }, "required": [ "Child" ], "additionalProperties": false }, { "type": "object", "properties": { "Incident": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "end": { "$ref": "#/components/schemas/IncidentEnd" } }, "required": [ "keys", "end" ], "additionalProperties": false } }, "required": [ "Incident" ], "additionalProperties": false }, { "type": "object", "properties": { "Artifact": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "facet": { "$ref": "#/components/schemas/ArtifactFacet" } }, "required": [ "keys", "facet" ], "additionalProperties": false } }, "required": [ "Artifact" ], "additionalProperties": false } ] }, "FacetReview": { "oneOf": [ { "type": "object", "properties": { "Header": { "$ref": "#/components/schemas/HeaderReview" } }, "required": [ "Header" ], "additionalProperties": false }, { "type": "object", "properties": { "ExchangeItem": { "$ref": "#/components/schemas/ExchangeItemReview" } }, "required": [ "ExchangeItem" ], "additionalProperties": false }, { "type": "object", "properties": { "Category": { "$ref": "#/components/schemas/CategoryReview" } }, "required": [ "Category" ], "additionalProperties": false }, { "type": "object", "properties": { "Interface": { "$ref": "#/components/schemas/InterfaceReview" } }, "required": [ "Interface" ], "additionalProperties": false }, { "type": "object", "properties": { "Data": { "$ref": "#/components/schemas/DataReview" } }, "required": [ "Data" ], "additionalProperties": false }, { "type": "object", "properties": { "Field": { "$ref": "#/components/schemas/FieldReview" } }, "required": [ "Field" ], "additionalProperties": false }, { "type": "object", "properties": { "Port": { "$ref": "#/components/schemas/PortReview" } }, "required": [ "Port" ], "additionalProperties": false }, { "type": "object", "properties": { "Scenario": { "$ref": "#/components/schemas/ScenarioReview" } }, "required": [ "Scenario" ], "additionalProperties": false }, { "type": "object", "properties": { "Lifeline": { "$ref": "#/components/schemas/LifelineReview" } }, "required": [ "Lifeline" ], "additionalProperties": false }, { "type": "object", "properties": { "Occurrence": { "$ref": "#/components/schemas/OccurrenceReview" } }, "required": [ "Occurrence" ], "additionalProperties": false }, { "type": "object", "properties": { "Event": { "$ref": "#/components/schemas/EventReview" } }, "required": [ "Event" ], "additionalProperties": false }, { "type": "object", "properties": { "State": { "$ref": "#/components/schemas/StateReview" } }, "required": [ "State" ], "additionalProperties": false }, { "type": "object", "properties": { "Constraint": { "$ref": "#/components/schemas/ConstraintReview" } }, "required": [ "Constraint" ], "additionalProperties": false }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/RelationReview" } }, "required": [ "Relation" ], "additionalProperties": false }, { "type": "object", "properties": { "Member": { "type": "object", "properties": { "collection": { "$ref": "#/components/schemas/ReferenceCollection" }, "keys": { "$ref": "#/components/schemas/KeyPairId" }, "review": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "collection", "keys", "review" ], "additionalProperties": false } }, "required": [ "Member" ], "additionalProperties": false }, { "type": "object", "properties": { "Order": { "type": "object", "properties": { "collection": { "$ref": "#/components/schemas/OrderedCollection" }, "review": { "$ref": "#/components/schemas/ReviewedVecId" } }, "required": [ "collection", "review" ], "additionalProperties": false } }, "required": [ "Order" ], "additionalProperties": false }, { "type": "object", "properties": { "Literal": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairString" }, "review": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "keys", "review" ], "additionalProperties": false } }, "required": [ "Literal" ], "additionalProperties": false }, { "type": "object", "properties": { "Annotation": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairAnnotationKey" }, "review": { "$ref": "#/components/schemas/ReviewedOptionMessageValue" } }, "required": [ "keys", "review" ], "additionalProperties": false } }, "required": [ "Annotation" ], "additionalProperties": false }, { "type": "object", "properties": { "Binding": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "review": { "$ref": "#/components/schemas/ReviewedOptionLifelineBinding" } }, "required": [ "keys", "review" ], "additionalProperties": false } }, "required": [ "Binding" ], "additionalProperties": false }, { "type": "object", "properties": { "Child": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "review": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "keys", "review" ], "additionalProperties": false } }, "required": [ "Child" ], "additionalProperties": false }, { "type": "object", "properties": { "Incident": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "end": { "$ref": "#/components/schemas/IncidentEnd" }, "review": { "$ref": "#/components/schemas/Reviewedbool" } }, "required": [ "keys", "end", "review" ], "additionalProperties": false } }, "required": [ "Incident" ], "additionalProperties": false }, { "type": "object", "properties": { "Artifact": { "type": "object", "properties": { "keys": { "$ref": "#/components/schemas/KeyPairId" }, "review": { "$ref": "#/components/schemas/ArtifactReview" } }, "required": [ "keys", "review" ], "additionalProperties": false } }, "required": [ "Artifact" ], "additionalProperties": false } ] }, "SemanticBaseline": { "type": "object", "properties": { "facets": { "type": "array", "items": { "$ref": "#/components/schemas/FacetReview" } } }, "required": [ "facets" ], "additionalProperties": false }, "Drift": { "type": "string", "enum": [ "Unreviewed", "Unchanged", "OaChanged", "SaChanged", "BothChanged" ] }, "FacetDrift": { "type": "object", "properties": { "selector": { "$ref": "#/components/schemas/FacetSelector" }, "current": { "$ref": "#/components/schemas/FacetReview" }, "drift": { "$ref": "#/components/schemas/Drift" } }, "required": [ "selector", "current", "drift" ], "additionalProperties": false }, "SemanticDrift": { "type": "object", "properties": { "own": { "$ref": "#/components/schemas/Drift" }, "linked": { "$ref": "#/components/schemas/Drift" }, "own_unreviewed": { "type": "boolean" }, "linked_unreviewed": { "type": "boolean" } }, "required": [ "own", "linked", "own_unreviewed", "linked_unreviewed" ], "additionalProperties": false }, "LinkedSemanticImpact": { "type": "object", "properties": { "objects": { "$ref": "#/components/schemas/KeyPairId" }, "traces": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } }, "drift": { "$ref": "#/components/schemas/Drift" }, "unreviewed": { "type": "boolean" } }, "required": [ "objects", "traces", "drift", "unreviewed" ], "additionalProperties": false }, "SemanticRecord": { "oneOf": [ { "type": "object", "properties": { "Element": { "$ref": "#/components/schemas/Element" } }, "required": [ "Element" ], "additionalProperties": false }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/Relation" } }, "required": [ "Relation" ], "additionalProperties": false }, { "type": "object", "properties": { "Artifact": { "$ref": "#/components/schemas/ArtifactLink" } }, "required": [ "Artifact" ], "additionalProperties": false } ] }, "ImpactRecord": { "oneOf": [ { "type": "object", "properties": { "Element": { "$ref": "#/components/schemas/Element" } }, "required": [ "Element" ], "additionalProperties": false }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/Relation" } }, "required": [ "Relation" ], "additionalProperties": false }, { "type": "object", "properties": { "Artifact": { "$ref": "#/components/schemas/ArtifactLink" } }, "required": [ "Artifact" ], "additionalProperties": false }, { "type": "object", "properties": { "Diagram": { "$ref": "#/components/schemas/Diagram" } }, "required": [ "Diagram" ], "additionalProperties": false }, { "type": "object", "properties": { "Trace": { "$ref": "#/components/schemas/Trace" } }, "required": [ "Trace" ], "additionalProperties": false } ] }, "SemanticImpact": { "type": "object", "properties": { "object": { "$ref": "#/components/schemas/Id" }, "before": { "anyOf": [ { "$ref": "#/components/schemas/ImpactRecord" }, { "type": "null" } ] }, "after": { "anyOf": [ { "$ref": "#/components/schemas/ImpactRecord" }, { "type": "null" } ] } }, "required": [ "object" ], "additionalProperties": false }, "SemanticDecision": { "type": "string", "enum": [ "KeepTarget", "TakeSource", "Candidate" ] }, "FacetResolution": { "type": "object", "properties": { "facet": { "$ref": "#/components/schemas/FacetSelector" }, "decision": { "$ref": "#/components/schemas/SemanticDecision" } }, "required": [ "facet", "decision" ], "additionalProperties": false }, "SemanticReviewRequest": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "resolutions": { "type": "array", "items": { "$ref": "#/components/schemas/FacetResolution" }, "maxItems": 5000 }, "reset": { "type": "array", "items": { "$ref": "#/components/schemas/FacetSelector" }, "maxItems": 5000, "default": [] } }, "required": [ "source", "resolutions" ], "additionalProperties": false }, "SemanticTransitionRequest": { "type": "object", "properties": { "transition": { "$ref": "#/components/schemas/TransitionRequest" }, "traces": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Id" }, "maxProperties": 100, "default": {} }, "references": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Id" }, "maxProperties": 5000, "default": {} }, "reviews": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticReviewRequest" }, "maxItems": 100, "default": [] }, "candidates": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticRecord" }, "maxItems": 200, "default": [] }, "accepted_impacts": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticImpact" }, "maxItems": 200, "default": [] } }, "required": [ "transition" ], "additionalProperties": false, "description": "Canonical OA-to-SA references include historical UUIDs. Traces map selected source IDs to trace IDs. Combined resolutions/reset limit: 5,000. Candidates must equal exactly the result of their selected facets; accepted_impacts explicitly acknowledge exact induced changes." }, "SemanticReviewPreview": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "target": { "$ref": "#/components/schemas/Id" }, "facets": { "type": "array", "items": { "$ref": "#/components/schemas/FacetDrift" } }, "acknowledged": { "type": "array", "items": { "$ref": "#/components/schemas/FacetSelector" } }, "retired": { "type": "array", "items": { "$ref": "#/components/schemas/FacetSelector" } }, "linked_impacts": { "type": "array", "items": { "$ref": "#/components/schemas/LinkedSemanticImpact" } } }, "required": [ "source", "target", "facets", "acknowledged", "retired", "linked_impacts" ], "additionalProperties": false }, "SemanticTransitionPlan": { "type": "object", "properties": { "base_fingerprint": { "type": "string" }, "request": { "$ref": "#/components/schemas/SemanticTransitionRequest" }, "transition": { "$ref": "#/components/schemas/TransitionPlan" }, "reviews": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticReviewPreview" } }, "impacts": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticImpact" } }, "conflicts": { "type": "array", "items": { "type": "string" } }, "commands": { "type": "array", "items": { "$ref": "#/components/schemas/Command" }, "maxItems": 200 }, "prepared_fingerprint": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "base_fingerprint", "request", "transition", "reviews", "impacts", "conflicts", "commands" ], "additionalProperties": false }, "SemanticTransitionEnvelope": { "type": "object", "properties": { "base_revision": { "$ref": "#/components/schemas/Revision" }, "plan": { "$ref": "#/components/schemas/SemanticTransitionPlan" } }, "required": [ "base_revision", "plan" ], "additionalProperties": false }, "SemanticQueryRequest": { "type": "object", "properties": { "traces": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "maxItems": 100, "minItems": 1, "uniqueItems": true }, "references": { "type": "object", "propertyNames": { "format": "uuid" }, "additionalProperties": { "$ref": "#/components/schemas/Id" }, "maxProperties": 5000, "default": {} }, "revision": { "anyOf": [ { "$ref": "#/components/schemas/Revision" }, { "type": "null" } ] } }, "required": [ "traces" ], "additionalProperties": false }, "SemanticQueryItem": { "type": "object", "properties": { "trace": { "$ref": "#/components/schemas/Id" }, "oa": { "$ref": "#/components/schemas/Id" }, "sa": { "$ref": "#/components/schemas/Id" }, "facets": { "type": "array", "items": { "$ref": "#/components/schemas/FacetDrift" } }, "drift": { "$ref": "#/components/schemas/SemanticDrift" }, "linked_impacts": { "type": "array", "items": { "$ref": "#/components/schemas/LinkedSemanticImpact" } } }, "required": [ "trace", "oa", "sa", "facets", "drift", "linked_impacts" ], "additionalProperties": false }, "SemanticQueryResult": { "type": "object", "properties": { "revision": { "$ref": "#/components/schemas/Revision" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/SemanticQueryItem" }, "maxItems": 100 } }, "required": [ "revision", "items" ], "additionalProperties": false }, "ExchangeFamily": { "type": "string", "enum": [ "Work", "Participant" ] }, "Coverage": { "type": "string", "enum": [ "All", "InBehavior", "OutsideBehavior" ] }, "ExchangeLabels": { "type": "string", "enum": [ "Name", "Items", "NameAndItems" ] }, "CategoryFacet": { "type": "string", "enum": [ "Family" ] }, "ReviewedExchangeFamily": { "type": "object", "properties": { "oa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeFamily" } }, "required": [ "Value" ], "additionalProperties": false } ] }, "sa": { "oneOf": [ { "type": "string", "enum": [ "NotApplicable" ] }, { "type": "object", "properties": { "Value": { "$ref": "#/components/schemas/ExchangeFamily" } }, "required": [ "Value" ], "additionalProperties": false } ] } }, "required": [ "oa", "sa" ], "additionalProperties": false }, "CategoryReview": { "oneOf": [ { "type": "object", "properties": { "Family": { "$ref": "#/components/schemas/ReviewedExchangeFamily" } }, "required": [ "Family" ], "additionalProperties": false } ] }, "EdgeKind": { "oneOf": [ { "type": "string", "enum": [ "Trace" ] }, { "type": "object", "properties": { "Relation": { "$ref": "#/components/schemas/RelationKind" } }, "required": [ "Relation" ], "additionalProperties": false } ] }, "RelationKinds": { "oneOf": [ { "type": "string", "enum": [ "All" ] }, { "type": "object", "properties": { "Only": { "type": "array", "items": { "$ref": "#/components/schemas/EdgeKind" } } }, "required": [ "Only" ], "additionalProperties": false } ] }, "CategorySelection": { "oneOf": [ { "type": "string", "enum": [ "All" ] }, { "type": "object", "properties": { "Any": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "Any" ], "additionalProperties": false } ] }, "ContextSelection": { "oneOf": [ { "type": "string", "enum": [ "All" ] }, { "type": "object", "properties": { "Any": { "type": "array", "items": { "$ref": "#/components/schemas/Id" } } }, "required": [ "Any" ], "additionalProperties": false } ] }, "ViewOptions": { "type": "object", "properties": { "hidden_edges": { "type": "array", "items": { "$ref": "#/components/schemas/Id" }, "default": [] }, "relation_kinds": { "$ref": "#/components/schemas/RelationKinds", "default": "All" }, "work_categories": { "$ref": "#/components/schemas/CategorySelection", "default": "All" }, "participant_categories": { "$ref": "#/components/schemas/CategorySelection", "default": "All" }, "coverage": { "$ref": "#/components/schemas/Coverage", "default": "All" }, "work_contexts": { "$ref": "#/components/schemas/ContextSelection", "default": "All" }, "exchange_labels": { "$ref": "#/components/schemas/ExchangeLabels", "default": "Name" } }, "required": [], "additionalProperties": false, "description": "Presentation only. Independent predicates intersect; category members union within a family. Only([]) hides all relations and traces. Any([]) remains an explicit empty selection. Traceability permits both-layer hidden/category/context references; ordinary projections require the diagram layer. Filtering preserves unfiltered automatic port positions." }, "CommunicationPortChoice": { "oneOf": [ { "type": "object", "properties": { "Reuse": { "type": "object", "properties": { "port": { "$ref": "#/components/schemas/Id" } }, "required": [ "port" ], "additionalProperties": false } }, "required": [ "Reuse" ], "additionalProperties": false }, { "type": "object", "properties": { "Create": { "type": "object", "properties": { "id": { "$ref": "#/components/schemas/Id" }, "alias": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "kind": { "$ref": "#/components/schemas/ComponentPortKind" }, "orientation": { "$ref": "#/components/schemas/ComponentPortOrientation" } }, "required": [ "id", "alias", "name", "description", "kind", "orientation" ], "additionalProperties": false } }, "required": [ "Create" ], "additionalProperties": false } ] }, "CommunicationEndpointDecision": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Id" }, "source_port": { "$ref": "#/components/schemas/CommunicationPortChoice" }, "target_port": { "$ref": "#/components/schemas/CommunicationPortChoice" } }, "required": [ "source", "source_port", "target_port" ], "additionalProperties": false } } } }