@kohost/api-client 3.1.18 → 3.1.20

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.
@@ -37,6 +37,10 @@ export interface MediaFile {
37
37
  type: string;
38
38
  name?: string;
39
39
  fileHash?: string;
40
+ /**
41
+ * This is the category id
42
+ */
43
+ category?: string;
40
44
  mimeType?:
41
45
  | "image/*"
42
46
  | "image/jpeg"
@@ -49,7 +49,7 @@ export interface Category {
49
49
  description?: string;
50
50
  image?: MediaFile;
51
51
  rating?: number;
52
- discriminator: "space" | "product";
52
+ discriminator: "space" | "product" | "mediaFile";
53
53
  systemId?: string;
54
54
  [k: string]: unknown;
55
55
  }
@@ -61,6 +61,10 @@ export interface MediaFile {
61
61
  type: string;
62
62
  name?: string;
63
63
  fileHash?: string;
64
+ /**
65
+ * This is the category id
66
+ */
67
+ category?: string;
64
68
  mimeType?:
65
69
  | "image/*"
66
70
  | "image/jpeg"
@@ -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;
@@ -19,6 +19,10 @@ export interface MediaFile {
19
19
  type: string;
20
20
  name?: string;
21
21
  fileHash?: string;
22
+ /**
23
+ * This is the category id
24
+ */
25
+ category?: string;
22
26
  mimeType?:
23
27
  | "image/*"
24
28
  | "image/jpeg"
@@ -66,6 +66,10 @@ export interface MediaFile {
66
66
  type: string;
67
67
  name?: string;
68
68
  fileHash?: string;
69
+ /**
70
+ * This is the category id
71
+ */
72
+ category?: string;
69
73
  mimeType?:
70
74
  | "image/*"
71
75
  | "image/jpeg"
@@ -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;
@@ -114,6 +114,10 @@ export interface MediaFile {
114
114
  type: string;
115
115
  name?: string;
116
116
  fileHash?: string;
117
+ /**
118
+ * This is the category id
119
+ */
120
+ category?: string;
117
121
  mimeType?:
118
122
  | "image/*"
119
123
  | "image/jpeg"
@@ -68,6 +68,10 @@ export interface MediaFile {
68
68
  type: string;
69
69
  name?: string;
70
70
  fileHash?: string;
71
+ /**
72
+ * This is the category id
73
+ */
74
+ category?: string;
71
75
  mimeType?:
72
76
  | "image/*"
73
77
  | "image/jpeg"
@@ -111,6 +111,10 @@ export interface MediaFile {
111
111
  type: string;
112
112
  name?: string;
113
113
  fileHash?: string;
114
+ /**
115
+ * This is the category id
116
+ */
117
+ category?: string;
114
118
  mimeType?:
115
119
  | "image/*"
116
120
  | "image/jpeg"
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "discriminator": {
35
35
  "type": "string",
36
- "enum": ["space", "product"]
36
+ "enum": ["space", "product", "mediaFile"]
37
37
  },
38
38
  "systemId": {
39
39
  "$ref": "definitions.json#/definitions/systemId"
@@ -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
  },
@@ -18,6 +18,10 @@
18
18
  "fileHash": {
19
19
  "type": "string"
20
20
  },
21
+ "category": {
22
+ "type": "string",
23
+ "description": "This is the category id"
24
+ },
21
25
  "mimeType": {
22
26
  "type": "string",
23
27
  "enum": [
@@ -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
@@ -8360,6 +8360,10 @@ var require_mediaFile = __commonJS({
8360
8360
  fileHash: {
8361
8361
  type: "string"
8362
8362
  },
8363
+ category: {
8364
+ type: "string",
8365
+ description: "This is the category id"
8366
+ },
8363
8367
  mimeType: {
8364
8368
  type: "string",
8365
8369
  enum: [
@@ -8813,7 +8817,7 @@ var require_lock = __commonJS({
8813
8817
  },
8814
8818
  mode: {
8815
8819
  type: ["string", "null"],
8816
- enum: ["normal", "autoLock", null],
8820
+ enum: ["normal", "autoLock", "emergencyOpen", "emergencyClose", null],
8817
8821
  description: "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
8818
8822
  default: "normal"
8819
8823
  },
@@ -10593,6 +10597,23 @@ var require_scene = __commonJS({
10593
10597
  }
10594
10598
  }
10595
10599
  }
10600
+ },
10601
+ locks: {
10602
+ type: "array",
10603
+ items: {
10604
+ type: "object",
10605
+ properties: {
10606
+ id: {
10607
+ $ref: "definitions.json#/definitions/id"
10608
+ },
10609
+ state: {
10610
+ $ref: "lock.json#/properties/state"
10611
+ },
10612
+ mode: {
10613
+ $ref: "lock.json#/properties/mode"
10614
+ }
10615
+ }
10616
+ }
10596
10617
  }
10597
10618
  },
10598
10619
  additionalProperties: false
@@ -11232,7 +11253,7 @@ var require_category = __commonJS({
11232
11253
  },
11233
11254
  discriminator: {
11234
11255
  type: "string",
11235
- enum: ["space", "product"]
11256
+ enum: ["space", "product", "mediaFile"]
11236
11257
  },
11237
11258
  systemId: {
11238
11259
  $ref: "definitions.json#/definitions/systemId"