unifi-protect 4.12.0 → 4.14.0

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.
@@ -29,6 +29,7 @@ export interface ProtectNvrBootstrapInterface {
29
29
  lights: ProtectLightConfig[];
30
30
  liveviews: ProtectNvrLiveviewConfig[];
31
31
  nvr: ProtectNvrConfig;
32
+ ringtones: ProtectRingtoneConfigInterface[];
32
33
  sensors: ProtectSensorConfig[];
33
34
  users: ProtectNvrUserConfig[];
34
35
  viewers: ProtectViewerConfig[];
@@ -360,6 +361,7 @@ export interface ProtectCameraConfigInterface {
360
361
  focusMode: string;
361
362
  focusPosition: number;
362
363
  hue: number;
364
+ icrCustomValue: number;
363
365
  icrSensitivity: number;
364
366
  irLedLevel: number;
365
367
  irLedMode: string;
@@ -555,7 +557,9 @@ export interface ProtectChimeConfigInterface {
555
557
  connectionHost: string;
556
558
  elementInfo: string;
557
559
  featureFlags: {
560
+ hasHttpsClientOTA: boolean;
558
561
  hasWifi: boolean;
562
+ supportCustomRingtone: boolean;
559
563
  };
560
564
  firmwareBuild: string;
561
565
  firmwareVersion: string;
@@ -582,10 +586,28 @@ export interface ProtectChimeConfigInterface {
582
586
  marketName: string;
583
587
  modelKey: string;
584
588
  name: string;
589
+ platform: string;
590
+ repeatTimes: number;
591
+ ringSettings: {
592
+ cameraId: string;
593
+ repeatTimes: number;
594
+ ringtoneId: string;
595
+ volume: number;
596
+ }[];
597
+ speakerTrackList: {
598
+ md5: string;
599
+ name: string;
600
+ size: number;
601
+ state: string;
602
+ track_no: number;
603
+ volume: number;
604
+ }[];
585
605
  state: string;
606
+ sysId: string;
586
607
  type: string;
587
608
  upSince: number;
588
609
  uptime: number;
610
+ userConfiguredAp: boolean;
589
611
  volume: number;
590
612
  wifiConnectionState: {
591
613
  apName: string | null;
@@ -775,6 +797,17 @@ export interface ProtectNvrSystemEventControllerInterface {
775
797
  updateAvailable: string;
776
798
  version: string;
777
799
  }
800
+ /**
801
+ * A semi-complete description of the UniFi Protect ringtone JSON.
802
+ */
803
+ export interface ProtectRingtoneConfigInterface {
804
+ id: string;
805
+ isDefault: boolean;
806
+ modelKey: string;
807
+ name: string;
808
+ nvrMac: string;
809
+ size: number;
810
+ }
778
811
  /**
779
812
  * A semi-complete description of the UniFi Protect sensor JSON.
780
813
  */
@@ -985,6 +1018,8 @@ export type ProtectNvrSystemEvent = ProtectNvrSystemEventInterface;
985
1018
  export type ProtectNvrSystemEventController = ProtectNvrSystemEventControllerInterface;
986
1019
  /** @see {@link ProtectNvrUserConfigInterface} */
987
1020
  export type ProtectNvrUserConfig = ProtectNvrUserConfigInterface;
1021
+ /** @see {@link ProtectRingtoneConfigInterface} */
1022
+ export type ProtectRingtoneConfig = ProtectRingtoneConfigInterface;
988
1023
  /** @see {@link ProtectSensorConfigInterface} */
989
1024
  export type ProtectSensorConfig = ProtectSensorConfigInterface;
990
1025
  /** @see {@link ProtectSensorConfigInterface} */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unifi-protect",
3
3
  "type": "module",
4
- "version": "4.12.0",
4
+ "version": "4.14.0",
5
5
  "displayName": "UniFi Protect API",
6
6
  "description": "A complete implementation of the UniFi Protect API.",
7
7
  "author": {
@@ -64,17 +64,17 @@
64
64
  "@stylistic/eslint-plugin": "2.8.0",
65
65
  "@types/node": "22.5.5",
66
66
  "@types/ws": "8.5.12",
67
- "eslint": "9.10.0",
67
+ "eslint": "9.11.0",
68
68
  "homebridge": "1.8.4",
69
- "homebridge-plugin-utils": "^1.8.1",
69
+ "homebridge-plugin-utils": "^1.8.2",
70
70
  "shx": "0.3.4",
71
71
  "typedoc": "0.26.7",
72
- "typedoc-plugin-markdown": "4.2.7",
72
+ "typedoc-plugin-markdown": "4.2.8",
73
73
  "typescript": "5.6.2",
74
- "typescript-eslint": "8.5.0"
74
+ "typescript-eslint": "8.6.0"
75
75
  },
76
76
  "dependencies": {
77
- "@adobe/fetch": "4.1.8",
77
+ "@adobe/fetch": "4.1.9",
78
78
  "ws": "8.18.0"
79
79
  },
80
80
  "optionalDependencies": {