mirror of
https://github.com/koush/scrypted.git
synced 2026-06-11 05:10:30 +01:00
sdk: add TTYSettings (#1540)
* sdk: add TerminalSettings * update to TTYSettings
This commit is contained in:
@@ -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": [],
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user