Skip to content

Commit

Permalink
sdk: add missing dom types
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 14, 2024
1 parent 3d58600 commit 0f4ff0d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ class HttpResponseOptions(TypedDict):
code: float
headers: object

class NotificationAction(TypedDict):

action: str
icon: str
title: str

class ObjectDetectionResult(TypedDict):

boundingBox: tuple[float, float, float, float] # x, y, width, height
Expand Down Expand Up @@ -602,6 +608,7 @@ class NotifierOptions(TypedDict):
bodyWithSubtitle: str
data: Any
dir: NotificationDirection
image: str
lang: str
recordedEvent: RecordedEvent
renotify: bool
Expand Down
11 changes: 10 additions & 1 deletion sdk/types/src/types.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,14 @@ export interface ColorHsv {
v?: number;
}

export interface NotificationAction {
action: string;
icon?: string;
title: string;
}

export interface NotifierOptions {
subtitle?: string;
actions?: NotificationAction[];
badge?: string;
bodyWithSubtitle?: string;
body?: string;
Expand All @@ -229,6 +234,10 @@ export interface NotifierOptions {
timestamp?: number;
vibrate?: VibratePattern;
recordedEvent?: RecordedEvent;

// removed from typescript dom?
actions?: NotificationAction[];
image?: string;
}

/**
Expand Down

0 comments on commit 0f4ff0d

Please sign in to comment.