sdk: add TTYSettings (#1540)

* sdk: add TerminalSettings

* update to TTYSettings
This commit is contained in:
Brett Jia
2024-08-05 00:01:34 -04:00
committed by GitHub
parent aa5c4d5064
commit 2569e7c823
2 changed files with 26 additions and 0 deletions

View File

@@ -183,6 +183,7 @@ class ScryptedInterface(str, Enum):
StartStop = "StartStop"
StreamService = "StreamService"
TTY = "TTY"
TTYSettings = "TTYSettings"
TamperSensor = "TamperSensor"
TemperatureSetting = "TemperatureSetting"
Thermometer = "Thermometer"
@@ -1477,6 +1478,13 @@ class TTY:
pass
class TTYSettings:
"""TTYSettings allows TTY backends to query plugins for modifications to the (non-)interactive terminal environment."""
async def getTTYSettings(self) -> Any:
pass
class TamperSensor:
tampered: TamperState
@@ -1928,6 +1936,7 @@ class ScryptedInterfaceMethods(str, Enum):
getScryptedUserAccessControl = "getScryptedUserAccessControl"
generateVideoFrames = "generateVideoFrames"
connectStream = "connectStream"
getTTYSettings = "getTTYSettings"
class DeviceState:
@@ -3142,6 +3151,13 @@ ScryptedInterfaceDescriptors = {
"methods": [],
"properties": []
},
"TTYSettings": {
"name": "TTYSettings",
"methods": [
"getTTYSettings"
],
"properties": []
},
"ScryptedSystemDevice": {
"name": "ScryptedSystemDevice",
"methods": [],

View File

@@ -1536,6 +1536,15 @@ export interface StreamService<Input, Output=Input> {
*/
export interface TTY {
}
/**
* TTYSettings allows TTY backends to query plugins for modifications
* to the (non-)interactive terminal environment.
*/
export interface TTYSettings {
getTTYSettings(): Promise<{
paths?: string[];
}>;
}
/**
* Logger is exposed via log.* to allow writing to the Scrypted log.
*/
@@ -2152,6 +2161,7 @@ export enum ScryptedInterface {
VideoFrameGenerator = 'VideoFrameGenerator',
StreamService = 'StreamService',
TTY = 'TTY',
TTYSettings = 'TTYSettings',
ScryptedSystemDevice = "ScryptedSystemDevice",
ScryptedDeviceCreator = "ScryptedDeviceCreator",