aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/schema')
-rw-r--r--src/api/schema/common.rs6
-rw-r--r--src/api/schema/response.rs6
-rw-r--r--src/api/schema/server.rs6
-rw-r--r--src/api/schema/tests.rs2
4 files changed, 20 insertions, 0 deletions
diff --git a/src/api/schema/common.rs b/src/api/schema/common.rs
index 15f56e6c..bf0d7caf 100644
--- a/src/api/schema/common.rs
+++ b/src/api/schema/common.rs
@@ -61,6 +61,12 @@ pub struct ClientWindowTitleSetParams {
pub title: String,
}
+/// Updates whether the requesting client shell receives and controls pane presentation.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
+pub struct ClientShellSurfaceSetParams {
+ pub active: bool,
+}
+
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum SplitDirection {
diff --git a/src/api/schema/response.rs b/src/api/schema/response.rs
index 180d6645..e6d4de4d 100644
--- a/src/api/schema/response.rs
+++ b/src/api/schema/response.rs
@@ -295,6 +295,12 @@ pub enum ResponseResult {
status: crate::config::ConfigReloadStatus,
diagnostics: Vec<String>,
},
+ /// Acknowledgement for the client-shell surface interest lease. This method is new on the
+ /// endpoint protocol, so its revision-bearing result can establish an activation floor.
+ ClientShellSurfaceSet {
+ active: bool,
+ projection_revision: u64,
+ },
Ok {},
}
diff --git a/src/api/schema/server.rs b/src/api/schema/server.rs
index 96e51564..b274bc95 100644
--- a/src/api/schema/server.rs
+++ b/src/api/schema/server.rs
@@ -21,4 +21,10 @@ pub struct ServerCapabilities {
/// Stable client-owned endpoint generation supported by this server.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub endpoint_protocol_generation: Option<u32>,
+ /// Whether this server supports explicit client-shell surface interest.
+ #[serde(default)]
+ pub surface_interest: bool,
+ /// Whether this server supports endpoint health probes.
+ #[serde(default)]
+ pub health_check: bool,
}
diff --git a/src/api/schema/tests.rs b/src/api/schema/tests.rs
index 693f0e85..b566e8f6 100644
--- a/src/api/schema/tests.rs
+++ b/src/api/schema/tests.rs
@@ -725,6 +725,8 @@ fn success_response_round_trips() {
live_handoff: true,
detached_server_daemon: true,
endpoint_protocol_generation: Some(1),
+ surface_interest: true,
+ health_check: true,
}),
},
};