diff --git a/sdk/types/scrypted_python/scrypted_sdk/types.py b/sdk/types/scrypted_python/scrypted_sdk/types.py index 41e8182d3..4d3f1979b 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/types.py +++ b/sdk/types/scrypted_python/scrypted_sdk/types.py @@ -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": [], diff --git a/sdk/types/src/types.input.ts b/sdk/types/src/types.input.ts index b7ebc81a5..e310fcee6 100644 --- a/sdk/types/src/types.input.ts +++ b/sdk/types/src/types.input.ts @@ -1536,6 +1536,15 @@ export interface StreamService { */ 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",