From 88370e1516182ab519d22a12fa82d5780a40fee6 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 15 Jul 2026 02:32:52 +0300 Subject: feat: add isolated pane graphics streaming --- docs/next/api/herdr-api.schema.json | 158 ++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) (limited to 'docs/next/api/herdr-api.schema.json') diff --git a/docs/next/api/herdr-api.schema.json b/docs/next/api/herdr-api.schema.json index a769d050..d146e11b 100644 --- a/docs/next/api/herdr-api.schema.json +++ b/docs/next/api/herdr-api.schema.json @@ -2075,6 +2075,92 @@ ], "type": "object" }, + "PaneGraphicsClearParams": { + "properties": { + "pane_id": { + "type": "string" + } + }, + "required": [ + "pane_id" + ], + "type": "object" + }, + "PaneGraphicsFormat": { + "enum": [ + "png", + "rgb", + "rgba" + ], + "type": "string" + }, + "PaneGraphicsPlacementParams": { + "properties": { + "grid_cols": { + "default": 0, + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "grid_rows": { + "default": 0, + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "viewport_col": { + "default": 0, + "format": "int32", + "type": "integer" + }, + "viewport_row": { + "default": 0, + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "PaneGraphicsSetParams": { + "properties": { + "data_base64": { + "default": "", + "type": "string" + }, + "format": { + "$ref": "#/schemas/request/$defs/PaneGraphicsFormat" + }, + "image_height": { + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "image_width": { + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "pane_id": { + "type": "string" + }, + "placement": { + "$ref": "#/schemas/request/$defs/PaneGraphicsPlacementParams", + "default": { + "grid_cols": 0, + "grid_rows": 0, + "viewport_col": 0, + "viewport_row": 0 + } + } + }, + "required": [ + "pane_id", + "format", + "image_width", + "image_height" + ], + "type": "object" + }, "PaneLayoutParams": { "properties": { "pane_id": { @@ -4797,6 +4883,54 @@ ], "type": "object" }, + { + "properties": { + "method": { + "const": "pane.graphics.set", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/PaneGraphicsSetParams" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, + { + "properties": { + "method": { + "const": "pane.graphics.clear", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/PaneGraphicsClearParams" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, + { + "properties": { + "method": { + "const": "pane.graphics.info", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/PaneTarget" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, { "properties": { "method": { @@ -8350,6 +8484,30 @@ ], "type": "object" }, + { + "properties": { + "cell_height_px": { + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "cell_width_px": { + "format": "uint32", + "minimum": 0, + "type": "integer" + }, + "type": { + "const": "pane_graphics_info", + "type": "string" + } + }, + "required": [ + "type", + "cell_width_px", + "cell_height_px" + ], + "type": "object" + }, { "properties": { "explain": true, -- cgit v1.2.3