sdk: update

This commit is contained in:
Koushik Dutta
2023-08-26 16:51:01 -07:00
parent 4f1aad895f
commit 7ecee4298c
3 changed files with 23 additions and 1 deletions

View File

@@ -183,6 +183,7 @@ class ScryptedInterface(str, Enum):
VideoClips = "VideoClips"
VideoFrameGenerator = "VideoFrameGenerator"
VideoRecorder = "VideoRecorder"
VideoRecorderManagement = "VideoRecorderManagement"
class ScryptedMimeTypes(str, Enum):
@@ -380,6 +381,12 @@ class ColorRgb(TypedDict):
g: float
r: float
class DeleteRecordingStreamOptions(TypedDict):
destination: MediaStreamDestination
duration: float
startTime: float
class Device(TypedDict):
"""Device objects are created by DeviceProviders when new devices are discover and synced to Scrypted via the DeviceManager."""
@@ -1422,6 +1429,12 @@ class VideoRecorder:
pass
class VideoRecorderManagement:
async def deleteRecordingStream(self, options: DeleteRecordingStreamOptions) -> None:
pass
class Logger:
"""Logger is exposed via log.* to allow writing to the Scrypted log."""
@@ -1714,6 +1727,7 @@ class ScryptedInterfaceMethods(str, Enum):
getRecordingStreamCurrentTime = "getRecordingStreamCurrentTime"
getRecordingStreamOptions = "getRecordingStreamOptions"
getRecordingStreamThumbnail = "getRecordingStreamThumbnail"
deleteRecordingStream = "deleteRecordingStream"
ptzCommand = "ptzCommand"
getRecordedEvents = "getRecordedEvents"
getVideoClip = "getVideoClip"
@@ -2488,6 +2502,13 @@ ScryptedInterfaceDescriptors = {
],
"properties": []
},
"VideoRecorderManagement": {
"name": "VideoRecorderManagement",
"methods": [
"deleteRecordingStream"
],
"properties": []
},
"PanTiltZoom": {
"name": "PanTiltZoom",
"methods": [

View File

@@ -1953,6 +1953,7 @@ export enum ScryptedInterface {
Display = "Display",
VideoCamera = "VideoCamera",
VideoRecorder = "VideoRecorder",
VideoRecorderManagement = "VideoRecorderManagement",
PanTiltZoom = "PanTiltZoom",
EventRecorder = "EventRecorder",
VideoClips = "VideoClips",