{"$id": "https://yakov.khalinsky.com/s2ui/schema/s2ui-surface-v1-draft.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "description": "DRAFT — shape taken from the reference composer's real output. An S2UI surface payload is a list of A2UI 1.0 messages. The snapshot form is a single createSurface message carrying the components and the full data model inline; bindings are {\"@path\": ...} references into that data model. Live surfaces may follow with updateComponents / updateDataModel / deleteSurface messages (spec §7). catalogId is the A2UI Basic Catalog URL until a Beth catalog file ships with a stable catalogId of its own (spec §5).", "items": {"properties": {"createSurface": {"properties": {"catalogId": {"minLength": 1, "type": "string"}, "components": {"items": {"properties": {"component": {"minLength": 1, "type": "string"}, "id": {"minLength": 1, "type": "string"}}, "required": ["id", "component"], "type": "object"}, "type": "array"}, "dataModel": {"type": "object"}, "surfaceId": {"minLength": 1, "type": "string"}}, "required": ["surfaceId", "catalogId"], "type": "object"}, "deleteSurface": {"properties": {"surfaceId": {"minLength": 1, "type": "string"}}, "required": ["surfaceId"], "type": "object"}, "updateComponents": {"properties": {"components": {"type": "array"}, "surfaceId": {"minLength": 1, "type": "string"}}, "required": ["surfaceId", "components"], "type": "object"}, "updateDataModel": {"properties": {"path": {"type": "string"}, "surfaceId": {"minLength": 1, "type": "string"}, "value": {}}, "required": ["surfaceId"], "type": "object"}, "version": {"const": "1.0", "type": "string"}}, "required": ["version"], "type": "object"}, "minItems": 1, "title": "S2UI Surface Messages v1 — DRAFT", "type": "array"}
