Skip to content

Commit

Permalink
sdk: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Oct 29, 2024
1 parent 78236a5 commit 1b5ef31
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 81 deletions.
4 changes: 2 additions & 2 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.3.68",
"version": "0.3.69",
"description": "",
"main": "dist/src/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.3.63",
"version": "0.3.64",
"description": "",
"main": "dist/index.js",
"author": "",
Expand Down
143 changes: 70 additions & 73 deletions sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class PanTiltZoomMovement(str, Enum):

class ScryptedDeviceType(str, Enum):

AirPurifier = "AirPurifier"
API = "API"
AirPurifier = "AirPurifier"
Automation = "Automation"
Builtin = "Builtin"
Camera = "Camera"
Expand Down Expand Up @@ -117,9 +117,9 @@ class ScryptedInterface(str, Enum):
BinarySensor = "BinarySensor"
Brightness = "Brightness"
BufferConverter = "BufferConverter"
CO2Sensor = "CO2Sensor"
Camera = "Camera"
Charger = "Charger"
CO2Sensor = "CO2Sensor"
ColorSettingHsv = "ColorSettingHsv"
ColorSettingRgb = "ColorSettingRgb"
ColorSettingTemperature = "ColorSettingTemperature"
Expand Down Expand Up @@ -147,31 +147,31 @@ class ScryptedInterface(str, Enum):
Microphone = "Microphone"
MixinProvider = "MixinProvider"
MotionSensor = "MotionSensor"
Notifier = "Notifier"
NOXSensor = "NOXSensor"
Notifier = "Notifier"
OauthClient = "OauthClient"
ObjectDetection = "ObjectDetection"
ObjectDetectionGenerator = "ObjectDetectionGenerator"
ObjectDetectionPreview = "ObjectDetectionPreview"
ObjectDetector = "ObjectDetector"
ObjectTracker = "ObjectTracker"
OccupancySensor = "OccupancySensor"
Online = "Online"
OnOff = "OnOff"
Online = "Online"
PM10Sensor = "PM10Sensor"
PM25Sensor = "PM25Sensor"
PanTiltZoom = "PanTiltZoom"
PasswordStore = "PasswordStore"
Pause = "Pause"
PM10Sensor = "PM10Sensor"
PM25Sensor = "PM25Sensor"
PositionSensor = "PositionSensor"
PowerSensor = "PowerSensor"
Program = "Program"
PushHandler = "PushHandler"
RTCSignalingChannel = "RTCSignalingChannel"
RTCSignalingClient = "RTCSignalingClient"
Readme = "Readme"
Reboot = "Reboot"
Refresh = "Refresh"
RTCSignalingChannel = "RTCSignalingChannel"
RTCSignalingClient = "RTCSignalingClient"
Scene = "Scene"
Scriptable = "Scriptable"
ScryptedDevice = "ScryptedDevice"
Expand All @@ -185,20 +185,20 @@ class ScryptedInterface(str, Enum):
Settings = "Settings"
StartStop = "StartStop"
StreamService = "StreamService"
TTY = "TTY"
TTYSettings = "TTYSettings"
TamperSensor = "TamperSensor"
TemperatureSetting = "TemperatureSetting"
Thermometer = "Thermometer"
TTY = "TTY"
TTYSettings = "TTYSettings"
UltravioletSensor = "UltravioletSensor"
VOCSensor = "VOCSensor"
VideoCamera = "VideoCamera"
VideoCameraConfiguration = "VideoCameraConfiguration"
VideoCameraMask = "VideoCameraMask"
VideoClips = "VideoClips"
VideoFrameGenerator = "VideoFrameGenerator"
VideoRecorder = "VideoRecorder"
VideoRecorderManagement = "VideoRecorderManagement"
VOCSensor = "VOCSensor"

class ScryptedMimeTypes(str, Enum):

Expand All @@ -211,11 +211,11 @@ class ScryptedMimeTypes(str, Enum):
MediaStreamFeedback = "x-scrypted/x-media-stream-feedback"
MediaStreamUrl = "text/x-media-url"
PushEndpoint = "text/x-push-endpoint"
RequestMediaObject = "x-scrypted/x-scrypted-request-media-object"
RequestMediaStream = "x-scrypted/x-scrypted-request-stream"
RTCConnectionManagement = "x-scrypted/x-scrypted-rtc-connection-management"
RTCSignalingChannel = "x-scrypted/x-scrypted-rtc-signaling-channel"
RTCSignalingSession = "x-scrypted/x-scrypted-rtc-signaling-session"
RequestMediaObject = "x-scrypted/x-scrypted-request-media-object"
RequestMediaStream = "x-scrypted/x-scrypted-request-stream"
SchemePrefix = "x-scrypted/x-scrypted-scheme-"
ServerId = "text/x-server-id"
Url = "text/x-uri"
Expand Down Expand Up @@ -543,6 +543,20 @@ class EventListenerOptions(TypedDict):
mixinId: str # The EventListener will listen to events and property changes from a device or mixin that is suppressed by a mixin.
watch: bool # This EventListener will passively watch for events, and not initiate polling.

class FFmpegInput(TypedDict):

container: str
destinationVideoBitrate: float
env: Any # Environment variables to set when launching FFmpeg.
ffmpegPath: str # Path to a custom FFmpeg binary.
h264EncoderArguments: list[str]
h264FilterArguments: list[str]
inputArguments: list[str]
mediaStreamOptions: ResponseMediaStreamOptions
url: str # The media url for this FFmpegInput.
urls: list[str] # Alternate media urls for this FFmpegInput.
videoDecoderArguments: list[str]

class FanState(TypedDict):

counterClockwise: bool
Expand All @@ -560,20 +574,6 @@ class FanStatus(TypedDict):
speed: float # Rotations per minute, if available, otherwise 0 or 1.
swing: bool

class FFmpegInput(TypedDict):

container: str
destinationVideoBitrate: float
env: Any # Environment variables to set when launching FFmpeg.
ffmpegPath: str # Path to a custom FFmpeg binary.
h264EncoderArguments: list[str]
h264FilterArguments: list[str]
inputArguments: list[str]
mediaStreamOptions: ResponseMediaStreamOptions
url: str # The media url for this FFmpegInput.
urls: list[str] # Alternate media urls for this FFmpegInput.
videoDecoderArguments: list[str]

class HttpRequest(TypedDict):

aclId: str
Expand Down Expand Up @@ -643,13 +643,10 @@ class MediaStreamOptions(TypedDict):
tool: MediaStreamTool # The tool was used to write the container or will be used to read teh container. Ie, scrypted, the ffmpeg tools, gstreamer.
video: VideoStreamOptions

class AndroidNotificationOptions(TypedDict):
channel: str

class NotifierOptions(TypedDict):

actions: list[NotificationAction]
android: AndroidNotificationOptions
android: Any
badge: str
body: str
bodyWithSubtitle: str
Expand Down Expand Up @@ -986,6 +983,10 @@ async def convert(self, data: Any, fromMimeType: str, toMimeType: str, options:
pass


class CO2Sensor:

co2ppm: float

class Camera:
"""Camera devices can take still photos."""

Expand All @@ -1001,10 +1002,6 @@ class Charger:

chargeState: ChargeState

class CO2Sensor:

co2ppm: float

class ColorSettingHsv:
"""ColorSettingHsv sets the color of a colored light using the HSV representation."""

Expand Down Expand Up @@ -1222,17 +1219,17 @@ class MotionSensor:

motionDetected: bool

class NOXSensor:

noxDensity: float

class Notifier:
"""Notifier can be any endpoint that can receive messages, such as speakers, phone numbers, messaging clients, etc. The messages may optionally contain media."""

async def sendNotification(self, title: str, options: NotifierOptions = None, media: str | MediaObject = None, icon: str | MediaObject = None) -> None:
pass


class NOXSensor:

noxDensity: float

class OauthClient:
"""The OauthClient can be implemented to perform the browser based Oauth process from within a plugin."""

Expand Down Expand Up @@ -1287,11 +1284,6 @@ class OccupancySensor:

occupied: bool

class Online:
"""Online denotes whether the device is online or unresponsive. It may be unresponsive due to being unplugged, network error, etc."""

online: bool

class OnOff:
"""OnOff is a basic binary switch."""

Expand All @@ -1303,6 +1295,19 @@ async def turnOn(self) -> None:
pass


class Online:
"""Online denotes whether the device is online or unresponsive. It may be unresponsive due to being unplugged, network error, etc."""

online: bool

class PM10Sensor:

pm10Density: float

class PM25Sensor:

pm25Density: float

class PanTiltZoom:

ptzCapabilities: PanTiltZoomCapabilities
Expand Down Expand Up @@ -1333,14 +1338,6 @@ async def resume(self) -> None:
pass


class PM10Sensor:

pm10Density: float

class PM25Sensor:

pm25Density: float

class PositionSensor:

position: Position
Expand Down Expand Up @@ -1514,6 +1511,19 @@ async def connectStream(self, input: AsyncGenerator[Any, None] = None, options:
pass


class TTY:
"""TTY connection offered by a remote device that can be connected to by an interactive terminal interface. Implementors should also implement StreamService to handle the actual data transfer."""


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
Expand All @@ -1534,23 +1544,14 @@ async def setTemperatureUnit(self, temperatureUnit: TemperatureUnit) -> None:
pass


class TTY:
"""TTY connection offered by a remote device that can be connected to by an interactive terminal interface. Implementors should also implement StreamService to handle the actual data transfer."""


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 UltravioletSensor:

ultraviolet: float

class VOCSensor:

vocDensity: float

class VideoCamera:
"""VideoCamera devices can capture video streams."""

Expand Down Expand Up @@ -1581,10 +1582,10 @@ class VideoClips:
async def getVideoClip(self, videoId: str) -> MediaObject:
pass

async def getVideoClips(self, options: VideoClipOptions = None) -> list[VideoClip]:
async def getVideoClipThumbnail(self, thumbnailId: str, options: VideoClipThumbnailOptions = None) -> MediaObject:
pass

async def getVideoClipThumbnail(self, thumbnailId: str, options: VideoClipThumbnailOptions = None) -> MediaObject:
async def getVideoClips(self, options: VideoClipOptions = None) -> list[VideoClip]:
pass

async def removeVideoClips(self, videoClipIds: list[str]) -> None:
Expand Down Expand Up @@ -1622,10 +1623,6 @@ async def setRecordingActive(self, recordingActive: bool) -> None:
pass


class VOCSensor:

vocDensity: float

class Logger:
"""Logger is exposed via log.* to allow writing to the Scrypted log."""

Expand Down Expand Up @@ -1915,8 +1912,8 @@ class ScryptedInterfaceMethods(str, Enum):
ptzCommand = "ptzCommand"
getRecordedEvents = "getRecordedEvents"
getVideoClip = "getVideoClip"
getVideoClips = "getVideoClips"
getVideoClipThumbnail = "getVideoClipThumbnail"
getVideoClips = "getVideoClips"
removeVideoClips = "removeVideoClips"
setVideoStreamOptions = "setVideoStreamOptions"
startIntercom = "startIntercom"
Expand Down Expand Up @@ -2725,8 +2722,8 @@ def systemDevice(self, value: ScryptedSystemDeviceInfo):
"name": "VideoClips",
"methods": [
"getVideoClip",
"getVideoClips",
"getVideoClipThumbnail",
"getVideoClips",
"removeVideoClips"
],
"properties": []
Expand Down
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b5ef31

Please sign in to comment.