From fd67756ec6d2cf7e56d65fd211dd3be75d00cc45 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 11 Mar 2024 09:57:00 -0700 Subject: [PATCH] sdk: add context to notification on triggering event, if any --- sdk/types/scrypted_python/scrypted_sdk/types.py | 1 + sdk/types/src/types.input.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/sdk/types/scrypted_python/scrypted_sdk/types.py b/sdk/types/scrypted_python/scrypted_sdk/types.py index b82152e8c..c72c83678 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/types.py +++ b/sdk/types/scrypted_python/scrypted_sdk/types.py @@ -588,6 +588,7 @@ class NotifierOptions(TypedDict): data: Any dir: NotificationDirection lang: str + recordedEvent: RecordedEvent renotify: bool requireInteraction: bool silent: bool diff --git a/sdk/types/src/types.input.ts b/sdk/types/src/types.input.ts index 657b3c1a9..819ce60ba 100644 --- a/sdk/types/src/types.input.ts +++ b/sdk/types/src/types.input.ts @@ -221,6 +221,7 @@ export interface NotifierOptions { tag?: string; timestamp?: number; vibrate?: VibratePattern; + recordedEvent?: RecordedEvent; } /**