unifi-protect 4.6.1 → 4.7.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.
@@ -756,7 +756,7 @@ export interface ProtectEventAddInterface {
756
756
  camera: string;
757
757
  end: number;
758
758
  id: string;
759
- metadata: Record<string, unknown>;
759
+ metadata: ProtectEventMetadata;
760
760
  modelKey: string;
761
761
  partition: string;
762
762
  score: number;
@@ -766,6 +766,12 @@ export interface ProtectEventAddInterface {
766
766
  type: string;
767
767
  user: string;
768
768
  }
769
+ export interface ProtectEventMetadataInterface {
770
+ licensePlate: {
771
+ confidenceLevel: number;
772
+ name: string;
773
+ };
774
+ }
769
775
  /** @ignore */
770
776
  export type DeepPartial<T> = {
771
777
  [P in keyof T]?: T[P] extends Array<infer I> ? Array<DeepPartial<I>> : DeepPartial<T[P]>;
@@ -773,6 +779,8 @@ export type DeepPartial<T> = {
773
779
  /** @interface */
774
780
  export type ProtectEventAdd = Readonly<ProtectEventAddInterface>;
775
781
  /** @interface */
782
+ export type ProtectEventMetadata = Readonly<ProtectEventMetadataInterface>;
783
+ /** @interface */
776
784
  export type ProtectNvrBootstrap = Readonly<ProtectNvrBootstrapInterface>;
777
785
  /** @interface */
778
786
  export type ProtectNvrConfig = Readonly<ProtectNvrConfigInterface>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unifi-protect",
3
3
  "type": "module",
4
- "version": "4.6.1",
4
+ "version": "4.7.0",
5
5
  "displayName": "UniFi Protect API",
6
6
  "description": "A complete implementation of the UniFi Protect API.",
7
7
  "author": {
@@ -62,18 +62,18 @@
62
62
  "watch": "npm run build && npm link && nodemon"
63
63
  },
64
64
  "devDependencies": {
65
- "@types/node": "20.5.1",
66
- "@types/ws": "8.5.5",
67
- "@typescript-eslint/eslint-plugin": "6.4.0",
68
- "@typescript-eslint/parser": "6.4.0",
69
- "eslint": "8.47.0",
70
- "rimraf": "5.0.1",
71
- "typedoc": "0.24.8",
72
- "typedoc-plugin-markdown": "3.15.4",
73
- "typescript": "5.1.6"
65
+ "@types/node": "20.8.0",
66
+ "@types/ws": "8.5.6",
67
+ "@typescript-eslint/eslint-plugin": "6.7.3",
68
+ "@typescript-eslint/parser": "6.7.3",
69
+ "eslint": "8.50.0",
70
+ "rimraf": "5.0.5",
71
+ "typedoc": "0.25.1",
72
+ "typedoc-plugin-markdown": "3.16.0",
73
+ "typescript": "5.2.2"
74
74
  },
75
75
  "dependencies": {
76
- "@adobe/fetch": "4.0.13",
77
- "ws": "8.13.0"
76
+ "@adobe/fetch": "4.1.0",
77
+ "ws": "8.14.2"
78
78
  }
79
79
  }