@kohost/api-client 3.1.18 → 3.1.19

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.
@@ -153,7 +153,7 @@ export interface Lock {
153
153
  /**
154
154
  * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
155
155
  */
156
- mode?: "normal" | "autoLock" | null;
156
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
157
157
  batteryLevel?: number;
158
158
  systemId?: string;
159
159
  watts?: number;
@@ -490,7 +490,7 @@ export interface Lock {
490
490
  /**
491
491
  * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
492
492
  */
493
- mode?: "normal" | "autoLock" | null;
493
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
494
494
  batteryLevel?: number;
495
495
  systemId?: string;
496
496
  watts?: number;
@@ -42,6 +42,15 @@ export interface Scene {
42
42
  commands?: string[];
43
43
  [k: string]: unknown;
44
44
  }[];
45
+ locks?: {
46
+ id?: string;
47
+ state?: "locked" | "unlocked" | null;
48
+ /**
49
+ * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
50
+ */
51
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
52
+ [k: string]: unknown;
53
+ }[];
45
54
  };
46
55
  isDefault?: boolean;
47
56
  showOnUi?: boolean;
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "mode": {
34
34
  "type": ["string", "null"],
35
- "enum": ["normal", "autoLock", null],
35
+ "enum": ["normal", "autoLock", "emergencyOpen", "emergencyClose", null],
36
36
  "description": "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
37
37
  "default": "normal"
38
38
  },
@@ -107,6 +107,23 @@
107
107
  }
108
108
  }
109
109
  }
110
+ },
111
+ "locks": {
112
+ "type": "array",
113
+ "items": {
114
+ "type": "object",
115
+ "properties": {
116
+ "id": {
117
+ "$ref": "definitions.json#/definitions/id"
118
+ },
119
+ "state": {
120
+ "$ref": "lock.json#/properties/state"
121
+ },
122
+ "mode": {
123
+ "$ref": "lock.json#/properties/mode"
124
+ }
125
+ }
126
+ }
110
127
  }
111
128
  },
112
129
  "additionalProperties": false
@@ -8813,7 +8813,7 @@ var require_lock = __commonJS({
8813
8813
  },
8814
8814
  mode: {
8815
8815
  type: ["string", "null"],
8816
- enum: ["normal", "autoLock", null],
8816
+ enum: ["normal", "autoLock", "emergencyOpen", "emergencyClose", null],
8817
8817
  description: "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
8818
8818
  default: "normal"
8819
8819
  },
@@ -10593,6 +10593,23 @@ var require_scene = __commonJS({
10593
10593
  }
10594
10594
  }
10595
10595
  }
10596
+ },
10597
+ locks: {
10598
+ type: "array",
10599
+ items: {
10600
+ type: "object",
10601
+ properties: {
10602
+ id: {
10603
+ $ref: "definitions.json#/definitions/id"
10604
+ },
10605
+ state: {
10606
+ $ref: "lock.json#/properties/state"
10607
+ },
10608
+ mode: {
10609
+ $ref: "lock.json#/properties/mode"
10610
+ }
10611
+ }
10612
+ }
10596
10613
  }
10597
10614
  },
10598
10615
  additionalProperties: false