diff --git a/sdk/types/scrypted_python/scrypted_sdk/types.py b/sdk/types/scrypted_python/scrypted_sdk/types.py index 70df3ccd9..52c13c8af 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/types.py +++ b/sdk/types/scrypted_python/scrypted_sdk/types.py @@ -687,6 +687,7 @@ class ObjectDetectionGeneratorResult(TypedDict): class ObjectDetectionGeneratorSession(TypedDict): + clusterWorkerId: str settings: Any sourceId: str zones: list[ObjectDetectionZone] @@ -705,6 +706,7 @@ class ObjectDetectionModel(TypedDict): class ObjectDetectionSession(TypedDict): batch: float # Denotes that this is the first sample in a batch of samples. + clusterWorkerId: str settings: Any sourceId: str zones: list[ObjectDetectionZone] diff --git a/sdk/types/src/types.input.ts b/sdk/types/src/types.input.ts index 924f6080a..82070dacb 100644 --- a/sdk/types/src/types.input.ts +++ b/sdk/types/src/types.input.ts @@ -1603,6 +1603,7 @@ export interface ObjectDetectionGeneratorSession { zones?: ObjectDetectionZone[]; settings?: { [key: string]: any }; sourceId?: string; + clusterWorkerId?: ForkOptions['clusterWorkerId']; } export interface ObjectDetectionSession extends ObjectDetectionGeneratorSession { /** @@ -1683,7 +1684,7 @@ export interface VideoFrameGeneratorOptions extends ImageOptions { queue?: number; fps?: number; firstFrameOnly?: boolean; - clusterWorkerId: ForkOptions['clusterWorkerId']; + clusterWorkerId?: ForkOptions['clusterWorkerId']; } export interface VideoFrameGenerator { generateVideoFrames(mediaObject: MediaObject, options?: VideoFrameGeneratorOptions): Promise>;