@camera.ui/sdk 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3684,6 +3684,8 @@ declare enum SensorType {
3684
3684
  Classifier = "classifier",
3685
3685
  /** CLIP embedding generation for semantic search */
3686
3686
  Clip = "clip",
3687
+ /** Object assist that locates objects in a frame so secondaries get real crops from camera-side detections */
3688
+ ObjectAssist = "objectAssist",
3687
3689
  /** Contact/open-close sensor (door, window) */
3688
3690
  Contact = "contact",
3689
3691
  /** Temperature sensor (°C) */
@@ -4537,6 +4539,14 @@ declare const SENSOR_META: readonly [{
4537
4539
  };
4538
4540
  };
4539
4541
  readonly semantics: null;
4542
+ }, {
4543
+ readonly type: SensorType.ObjectAssist;
4544
+ readonly category: SensorCategory.Sensor;
4545
+ readonly assignmentKey: "objectAssist";
4546
+ readonly multiProvider: false;
4547
+ readonly isDetectionType: true;
4548
+ readonly properties: {};
4549
+ readonly semantics: null;
4540
4550
  }, {
4541
4551
  readonly type: SensorType.Occupancy;
4542
4552
  readonly category: SensorCategory.Sensor;
@@ -4883,6 +4893,8 @@ interface AudioDetectionSettings {
4883
4893
  minDecibels: number;
4884
4894
  /** Audio dwell time in seconds */
4885
4895
  timeout: number;
4896
+ /** Minimum confidence threshold (0 - 1) for a labelled audio detection to count. */
4897
+ confidence?: number;
4886
4898
  }
4887
4899
  /**
4888
4900
  * Face detection settings.
@@ -5281,6 +5293,8 @@ interface RtpSessionOptions {
5281
5293
  width?: number;
5282
5294
  /** Output height */
5283
5295
  height?: number;
5296
+ /** Maximum output bitrate in bits per second */
5297
+ bitrate?: number;
5284
5298
  /** Additional encoder options */
5285
5299
  encoderOptions?: Record<string, string | number | boolean | undefined | null>;
5286
5300
  };
@@ -5391,7 +5405,7 @@ interface Fmp4SessionOptions {
5391
5405
  width?: number;
5392
5406
  /** Output height */
5393
5407
  height?: number;
5394
- /** Maximum video bitrate in bits per second (VBV cap, applied on transcode only) */
5408
+ /** Maximum video bitrate in bits per second */
5395
5409
  bitrate?: number;
5396
5410
  /** Additional encoder options */
5397
5411
  encoderOptions?: Record<string, string | number | boolean | undefined | null>;
@@ -7384,5 +7398,22 @@ interface OAuthClientCredentialsCapable extends OAuthCapable {
7384
7398
  configureClientCredentials(clientId: string, clientSecret: string): Promise<OAuthState>;
7385
7399
  }
7386
7400
 
7387
- export { API_EVENT, AudioDetectorSensor, AudioProperty, AudioSensor, BASE_AUDIO_LABELS, BasePlugin, BatteryCapability, BatteryInfo, BatteryProperty, BehaviorSubject, ChargingState, ClassifierDetectorSensor, ClassifierProperty, ClassifierSensor, ClipDetectorSensor, ContactProperty, ContactSensor, DETECTION_ATTRIBUTES, DETECTION_LABELS, Disposable, DoorbellProperty, DoorbellTrigger, EVENT_TRIGGER_TYPES, FaceDetectorSensor, FaceProperty, FaceSensor, GarageControl, GarageProperty, GarageState, HumidityInfo, HumidityProperty, LeakProperty, LeakSensor, LicensePlateDetectorSensor, LicensePlateProperty, LicensePlateSensor, LightCapability, LightControl, LightProperty, LockControl, LockProperty, LockState, MotionDetectorSensor, MotionProperty, MotionSensor, OBJECT_DETECTION_LABELS, ObjectDetectorSensor, ObjectProperty, ObjectSensor, Observable, OccupancyProperty, OccupancySensor, PTZCapability, PTZControl, PTZProperty, PluginCapability, PluginInterface, PluginRole, RING_AUTO_RESET_MS, ReplaySubject, RtpPacket, SENSOR_META, SecuritySystem, SecuritySystemProperty, SecuritySystemState, Sensor, SensorCategory, SensorDomain, SensorType, Severity, SirenCapability, SirenControl, SirenProperty, SmokeProperty, SmokeSensor, Subject, SwitchControl, SwitchProperty, TemperatureInfo, TemperatureProperty, audioMeta, batteryMeta, canCreateCameras, canProvideSensorsToAnyCameras, classifierMeta, clipMeta, contactMeta, defineSensor, distinctUntilChanged, doorbellMeta, faceMeta, filter, firstValueFrom, garageMeta, getContractValidationErrors, hasCapability, hasInterface, humidityMeta, isHub, leakMeta, licensePlateMeta, lightMeta, lockMeta, map, mergeMap, motionMeta, objectMeta, occupancyMeta, pairwise, ptzMeta, securitySystemMeta, sensorMeta, share, sirenMeta, smokeMeta, switchMeta, temperatureMeta, validateContractConsistency };
7401
+ /**
7402
+ * Registry metadata for the object assist slot.
7403
+ *
7404
+ * There is no sensor class for this type: a plugin assigned to the slot serves
7405
+ * it with the {@link ObjectDetectorSensor} it already registers, so plugins
7406
+ * declare and implement object detection only.
7407
+ */
7408
+ declare const objectAssistMeta: {
7409
+ readonly type: SensorType.ObjectAssist;
7410
+ readonly category: SensorCategory.Sensor;
7411
+ readonly assignmentKey: "objectAssist";
7412
+ readonly multiProvider: false;
7413
+ readonly isDetectionType: true;
7414
+ readonly properties: {};
7415
+ readonly semantics: null;
7416
+ };
7417
+
7418
+ export { API_EVENT, AudioDetectorSensor, AudioProperty, AudioSensor, BASE_AUDIO_LABELS, BasePlugin, BatteryCapability, BatteryInfo, BatteryProperty, BehaviorSubject, ChargingState, ClassifierDetectorSensor, ClassifierProperty, ClassifierSensor, ClipDetectorSensor, ContactProperty, ContactSensor, DETECTION_ATTRIBUTES, DETECTION_LABELS, Disposable, DoorbellProperty, DoorbellTrigger, EVENT_TRIGGER_TYPES, FaceDetectorSensor, FaceProperty, FaceSensor, GarageControl, GarageProperty, GarageState, HumidityInfo, HumidityProperty, LeakProperty, LeakSensor, LicensePlateDetectorSensor, LicensePlateProperty, LicensePlateSensor, LightCapability, LightControl, LightProperty, LockControl, LockProperty, LockState, MotionDetectorSensor, MotionProperty, MotionSensor, OBJECT_DETECTION_LABELS, ObjectDetectorSensor, ObjectProperty, ObjectSensor, Observable, OccupancyProperty, OccupancySensor, PTZCapability, PTZControl, PTZProperty, PluginCapability, PluginInterface, PluginRole, RING_AUTO_RESET_MS, ReplaySubject, RtpPacket, SENSOR_META, SecuritySystem, SecuritySystemProperty, SecuritySystemState, Sensor, SensorCategory, SensorDomain, SensorType, Severity, SirenCapability, SirenControl, SirenProperty, SmokeProperty, SmokeSensor, Subject, SwitchControl, SwitchProperty, TemperatureInfo, TemperatureProperty, audioMeta, batteryMeta, canCreateCameras, canProvideSensorsToAnyCameras, classifierMeta, clipMeta, contactMeta, defineSensor, distinctUntilChanged, doorbellMeta, faceMeta, filter, firstValueFrom, garageMeta, getContractValidationErrors, hasCapability, hasInterface, humidityMeta, isHub, leakMeta, licensePlateMeta, lightMeta, lockMeta, map, mergeMap, motionMeta, objectAssistMeta, objectMeta, occupancyMeta, pairwise, ptzMeta, securitySystemMeta, sensorMeta, share, sirenMeta, smokeMeta, switchMeta, temperatureMeta, validateContractConsistency };
7388
7419
  export type { AssignedPlugin, AudioCodec, AudioCodecProperties, AudioDetectionInterface, AudioDetectionPluginResponse, AudioDetectionSettings, AudioFFmpegCodec, AudioFrameData, AudioInputSpec, AudioLabel, AudioMetadata, AudioModelSpec, AudioResult, AudioSensorLike, AudioSensorProperties, AudioStreamInfo, BaseAudioLabel, BaseCamera, BaseCameraConfig, BatteryInfoLike, BatteryInfoProperties, BoundingBox, Camera, CameraAspectRatio, CameraAspectRatioPreset, CameraConfig, CameraConfigInputSettings, CameraDetectionSettings, CameraDevice, CameraDeviceSource, CameraFrameWorkerSettings, CameraImplementation, CameraInformation, CameraInput, CameraPluginInfo, CameraRecordingSettings, CameraRole, CameraSource, CameraType, CameraUiSettings, ClassifierDetection, ClassifierDetectionInterface, ClassifierDetectionPluginResponse, ClassifierResult, ClassifierSensorLike, ClassifierSensorProperties, ClipDetectionInterface, ClipDetectionPluginResponse, ClipEmbedding, ClipResult, ClipTextEmbeddingResult, ContactSensorLike, ContactSensorProperties, CoreManager, CoreManagerEvent, CreateDownloadOptions, CreateStreamDownloadOptions, Detection, DetectionAttribute, DetectionEvent, DetectionEventState, DetectionEventType, DetectionLabel, DetectionLine, DetectionZone, DeviceManager, DeviceStorage, DiscoveredCamera, DiscoveryProvider, DoorbellTriggerLike, DoorbellTriggerProperties, DownloadCleanup, DownloadManager, DownloadToken, EventAttribute, EventDescription, EventDetection, EventSegment, EventTrigger, EventTriggerType, FMTPInfo, FaceDetection, FaceDetectionInterface, FaceDetectionPluginResponse, FaceDetectionSettings, FaceResult, FaceSensorLike, FaceSensorProperties, Fmp4Session, Fmp4SessionOptions, FormSubmitResponse, FormSubmitSchema, GarageControlLike, GarageControlProperties, Go2RtcRTSPSource, Go2RtcSnapshotSource, Go2RtcWSSource, HardwareAcceleration, HumidityInfoLike, HumidityInfoProperties, ImageMetadata, JsonArraySchema, JsonBaseSchema, JsonBaseSchemaWithoutCallbacks, JsonBooleanSchema, JsonEnumSchema, JsonFactorySchema, JsonNumberSchema, JsonSchema, JsonSchemaArray, JsonSchemaArrayWithoutCallbacks, JsonSchemaBoolean, JsonSchemaBooleanWithoutCallbacks, JsonSchemaButton, JsonSchemaEnum, JsonSchemaEnumWithoutCallbacks, JsonSchemaNumber, JsonSchemaNumberWithoutCallbacks, JsonSchemaString, JsonSchemaStringWithoutCallbacks, JsonSchemaSubmit, JsonSchemaType, JsonSchemaWithoutCallbacks, JsonSchemaWithoutKey, JsonStringSchema, LeakSensorLike, LeakSensorProperties, LicensePlateDetection, LicensePlateDetectionInterface, LicensePlateDetectionPluginResponse, LicensePlateDetectionSettings, LicensePlateResult, LicensePlateSensorLike, LicensePlateSensorProperties, LightControlLike, LightControlProperties, LineDirection, LockControlLike, LockControlProperties, LoggerService, ModelSpec, MotionDetectionInterface, MotionDetectionPluginResponse, MotionDetectionSettings, MotionResolution, MotionResult, MotionSensorLike, MotionSensorProperties, Notification, NotificationManager, NotifierDevice, NotifierInterface, OAuthAuthCodeFlowCapable, OAuthCapable, OAuthClientCredentialsCapable, OAuthDeviceFlowCapable, OAuthMetadata, OAuthProviderConfig, OAuthProviderDeclaration, OAuthState, OAuthStatus, ObjectDetectionInterface, ObjectDetectionLabel, ObjectDetectionPluginResponse, ObjectDetectionSettings, ObjectModelSpec, ObjectResult, ObjectSensorLike, ObjectSensorProperties, OccupancySensorLike, OccupancySensorProperties, OperatorFn, PTZControlLike, PTZControlProperties, PTZDirection, PTZPosition, PTZRelativeMove, PluginAPI, PluginAssignments, PluginConfig, PluginContract, PluginInfo, PluginInterfaces, Point, ProbeAudioCodec, ProbeConfig, ProbeStream, PropertyChangeOf, PtzAutotrackSettings, PythonVersion, RTPInfo, RTSPAudioCodec, RTSPUrlOptions, RecordingMode, RecordingSource, RtpSession, RtpSessionBackchannelOptions, RtpSessionOptions, SchemaCondition, SchemaConditionOperator, SchemaConfig, SecuritySystemLike, SecuritySystemProperties, SensorAssignmentKey, SensorCapability, SensorCascadeTrigger, SensorLike, SensorMeta, SensorPropertySpec, SensorPropertyType, SensorPropertyValueType, SensorSemantics, SensorTriggerRef, SensorTriggerSettings, SensorVirtualDefaults, SirenControlLike, SirenControlProperties, SmokeSensorLike, SmokeSensorProperties, SnapshotInterface, SnapshotSettings, SnapshotUrlOptions, StreamDirection, StreamUrls, StreamingInterface, StreamingRole, SwitchControlLike, SwitchControlProperties, TemperatureInfoLike, TemperatureInfoProperties, ToastMessage, TrackedDetection, VideoCodec, VideoCodecProperties, VideoFFmpegCodec, VideoFrameData, VideoInputSpec, VideoStreamInfo, VideoStreamingMode, ZoneFilter, ZoneType };
@@ -358,6 +358,8 @@ declare enum SensorType {
358
358
  Classifier = "classifier",
359
359
  /** CLIP embedding generation for semantic search */
360
360
  Clip = "clip",
361
+ /** Object assist that locates objects in a frame so secondaries get real crops from camera-side detections */
362
+ ObjectAssist = "objectAssist",
361
363
  /** Contact/open-close sensor (door, window) */
362
364
  Contact = "contact",
363
365
  /** Temperature sensor (°C) */
@@ -21,6 +21,8 @@ export var SensorType;
21
21
  SensorType["Classifier"] = "classifier";
22
22
  /** CLIP embedding generation for semantic search */
23
23
  SensorType["Clip"] = "clip";
24
+ /** Object assist that locates objects in a frame so secondaries get real crops from camera-side detections */
25
+ SensorType["ObjectAssist"] = "objectAssist";
24
26
  // Sensors — read-only state/environment sensors
25
27
  /** Contact/open-close sensor (door, window) */
26
28
  SensorType["Contact"] = "contact";
@@ -17,6 +17,7 @@ export * from './registry.js';
17
17
  export * from './lock.js';
18
18
  export * from './motion.js';
19
19
  export * from './object.js';
20
+ export * from './objectAssist.js';
20
21
  export * from './occupancy.js';
21
22
  export * from './ptz.js';
22
23
  export * from './securitySystem.js';
@@ -0,0 +1,18 @@
1
+ import { SensorCategory, SensorType } from './base.js';
2
+ import { defineSensor } from './meta.js';
3
+ /**
4
+ * Registry metadata for the object assist slot.
5
+ *
6
+ * There is no sensor class for this type: a plugin assigned to the slot serves
7
+ * it with the {@link ObjectDetectorSensor} it already registers, so plugins
8
+ * declare and implement object detection only.
9
+ */
10
+ export const objectAssistMeta = defineSensor({
11
+ type: SensorType.ObjectAssist,
12
+ category: SensorCategory.Sensor,
13
+ assignmentKey: 'objectAssist',
14
+ multiProvider: false,
15
+ isDetectionType: true,
16
+ properties: {},
17
+ semantics: null,
18
+ });
@@ -13,6 +13,7 @@ import { lightMeta } from './light.js';
13
13
  import { lockMeta } from './lock.js';
14
14
  import { motionMeta } from './motion.js';
15
15
  import { objectMeta } from './object.js';
16
+ import { objectAssistMeta } from './objectAssist.js';
16
17
  import { occupancyMeta } from './occupancy.js';
17
18
  import { ptzMeta } from './ptz.js';
18
19
  import { securitySystemMeta } from './securitySystem.js';
@@ -37,6 +38,7 @@ export const SENSOR_META = [
37
38
  lockMeta,
38
39
  motionMeta,
39
40
  objectMeta,
41
+ objectAssistMeta,
40
42
  occupancyMeta,
41
43
  ptzMeta,
42
44
  securitySystemMeta,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "camera.ui sdk",
5
5
  "exports": {
6
6
  ".": {
@@ -35,7 +35,7 @@
35
35
  "@stylistic/eslint-plugin": "^5.10.0",
36
36
  "@types/multicast-dns": "^7.2.4",
37
37
  "@types/node": "26.1.1",
38
- "@typescript-eslint/parser": "^8.64.0",
38
+ "@typescript-eslint/parser": "^8.65.0",
39
39
  "cpy-cli": "^7.0.0",
40
40
  "eslint": "9.39.2",
41
41
  "eslint-plugin-jsdoc": "^63.2.0",
@@ -48,7 +48,7 @@
48
48
  "typedoc-plugin-markdown": "^4.12.0",
49
49
  "typedoc-vitepress-theme": "^1.1.3",
50
50
  "typescript": "5.9.3",
51
- "typescript-eslint": "^8.64.0",
51
+ "typescript-eslint": "^8.65.0",
52
52
  "vitepress": "^1.6.4",
53
53
  "vitest": "^4.1.10",
54
54
  "werift": "0.23.0",