sync: auto-sync from HOWARD-HOME at 2026-06-21 18:54:05

Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-06-21 18:54:05
This commit is contained in:
2026-06-21 18:54:31 -07:00
parent 5299f3d32e
commit f90d753d13
4 changed files with 302 additions and 15 deletions

View File

@@ -214,25 +214,21 @@ class ScreenConnectClient:
return self.call("GetSessionDetailsBySessionID", {"sessionID": session_id})
def send_command_to_session(self, session_id: str, command: str) -> Any:
"""SendCommandToSession — run a backstage command on a guest. PENDING UNLOCK.
STATE-CHANGING (gate behind --confirm at the call site)."""
return self.call(
"SendCommandToSession", {"sessionID": session_id, "command": command}
)
"""SendCommandToSession — run a backstage command on a guest. EXISTS on this
instance. POST body is a POSITIONAL ARRAY [sessionID, command]
(e.g. ["<uuid>", "ipconfig"]). STATE-CHANGING (gate behind --confirm)."""
return self.call("SendCommandToSession", [session_id, command])
def send_message_to_session(self, session_id: str, message: str) -> Any:
"""SendMessageToSession — send a chat message to a guest. PENDING UNLOCK."""
return self.call(
"SendMessageToSession", {"sessionID": session_id, "message": message}
)
"""SendMessageToSession — send a chat message to a guest. EXISTS.
POST body positional array [sessionID, message]. STATE-CHANGING."""
return self.call("SendMessageToSession", [session_id, message])
def update_session_custom_properties(self, session_id: str, properties: list) -> Any:
"""UpdateSessionCustomProperties (CP1=Company, CP2=Site, CP3=Tag). PENDING UNLOCK.
STATE-CHANGING."""
return self.call(
"UpdateSessionCustomProperties",
{"sessionID": session_id, "customProperties": properties},
)
"""UpdateSessionCustomProperties (CP1=Company, CP2=Site, CP3=Tag). EXISTS.
POST body positional array [sessionID, [cp1, cp2, cp3, ...]]. STATE-CHANGING.
(Confirm exact arg order against a safe test session before relying on it.)"""
return self.call("UpdateSessionCustomProperties", [session_id, properties])
def raw(self, method: str, body: Any = None, http_method: str = "POST") -> Any:
"""Call any RESTful API Manager method directly (power use / probing)."""