@kohost/api-client 3.1.6 → 3.1.8

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.
@@ -124,7 +124,7 @@ export interface Alarm {
124
124
  | "igor"
125
125
  | "inncom"
126
126
  | "kohost-k7"
127
- | "kohost-pms"
127
+ | "kohost"
128
128
  | "lg"
129
129
  | "lirc"
130
130
  | "mews"
@@ -140,6 +140,7 @@ export interface Alarm {
140
140
  | "sonifi"
141
141
  | "stay-n-touch"
142
142
  | "twilio"
143
+ | "vizio"
143
144
  | "cloudflare-images"
144
145
  | "cloudflare-stream"
145
146
  | "insperia-privacy";
@@ -122,7 +122,7 @@ export interface Camera {
122
122
  | "igor"
123
123
  | "inncom"
124
124
  | "kohost-k7"
125
- | "kohost-pms"
125
+ | "kohost"
126
126
  | "lg"
127
127
  | "lirc"
128
128
  | "mews"
@@ -138,6 +138,7 @@ export interface Camera {
138
138
  | "sonifi"
139
139
  | "stay-n-touch"
140
140
  | "twilio"
141
+ | "vizio"
141
142
  | "cloudflare-images"
142
143
  | "cloudflare-stream"
143
144
  | "insperia-privacy";
@@ -26,7 +26,7 @@ export interface Category {
26
26
  | "igor"
27
27
  | "inncom"
28
28
  | "kohost-k7"
29
- | "kohost-pms"
29
+ | "kohost"
30
30
  | "lg"
31
31
  | "lirc"
32
32
  | "mews"
@@ -42,6 +42,7 @@ export interface Category {
42
42
  | "sonifi"
43
43
  | "stay-n-touch"
44
44
  | "twilio"
45
+ | "vizio"
45
46
  | "cloudflare-images"
46
47
  | "cloudflare-stream"
47
48
  | "insperia-privacy";
@@ -122,7 +122,7 @@ export interface Courtesy {
122
122
  | "igor"
123
123
  | "inncom"
124
124
  | "kohost-k7"
125
- | "kohost-pms"
125
+ | "kohost"
126
126
  | "lg"
127
127
  | "lirc"
128
128
  | "mews"
@@ -138,6 +138,7 @@ export interface Courtesy {
138
138
  | "sonifi"
139
139
  | "stay-n-touch"
140
140
  | "twilio"
141
+ | "vizio"
141
142
  | "cloudflare-images"
142
143
  | "cloudflare-stream"
143
144
  | "insperia-privacy";
@@ -19,7 +19,7 @@ export interface Credential {
19
19
  | "igor"
20
20
  | "inncom"
21
21
  | "kohost-k7"
22
- | "kohost-pms"
22
+ | "kohost"
23
23
  | "lg"
24
24
  | "lirc"
25
25
  | "mews"
@@ -35,6 +35,7 @@ export interface Credential {
35
35
  | "sonifi"
36
36
  | "stay-n-touch"
37
37
  | "twilio"
38
+ | "vizio"
38
39
  | "cloudflare-images"
39
40
  | "cloudflare-stream"
40
41
  | "insperia-privacy";
@@ -122,7 +122,7 @@ export interface Dimmer {
122
122
  | "igor"
123
123
  | "inncom"
124
124
  | "kohost-k7"
125
- | "kohost-pms"
125
+ | "kohost"
126
126
  | "lg"
127
127
  | "lirc"
128
128
  | "mews"
@@ -138,6 +138,7 @@ export interface Dimmer {
138
138
  | "sonifi"
139
139
  | "stay-n-touch"
140
140
  | "twilio"
141
+ | "vizio"
141
142
  | "cloudflare-images"
142
143
  | "cloudflare-stream"
143
144
  | "insperia-privacy";
@@ -123,7 +123,7 @@ export interface IoTGateway {
123
123
  | "igor"
124
124
  | "inncom"
125
125
  | "kohost-k7"
126
- | "kohost-pms"
126
+ | "kohost"
127
127
  | "lg"
128
128
  | "lirc"
129
129
  | "mews"
@@ -139,6 +139,7 @@ export interface IoTGateway {
139
139
  | "sonifi"
140
140
  | "stay-n-touch"
141
141
  | "twilio"
142
+ | "vizio"
142
143
  | "cloudflare-images"
143
144
  | "cloudflare-stream"
144
145
  | "insperia-privacy";
@@ -123,7 +123,7 @@ export interface Lock {
123
123
  | "igor"
124
124
  | "inncom"
125
125
  | "kohost-k7"
126
- | "kohost-pms"
126
+ | "kohost"
127
127
  | "lg"
128
128
  | "lirc"
129
129
  | "mews"
@@ -139,6 +139,7 @@ export interface Lock {
139
139
  | "sonifi"
140
140
  | "stay-n-touch"
141
141
  | "twilio"
142
+ | "vizio"
142
143
  | "cloudflare-images"
143
144
  | "cloudflare-stream"
144
145
  | "insperia-privacy";
@@ -147,7 +148,7 @@ export interface Lock {
147
148
  * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
148
149
  */
149
150
  mode?: "normal" | "autoLock" | null;
150
- batteryLevel?: number | null;
151
+ batteryLevel?: number;
151
152
  systemId?: string;
152
153
  watts?: number;
153
154
  [k: string]: unknown;
@@ -105,7 +105,7 @@ export interface MediaSource {
105
105
  | "igor"
106
106
  | "inncom"
107
107
  | "kohost-k7"
108
- | "kohost-pms"
108
+ | "kohost"
109
109
  | "lg"
110
110
  | "lirc"
111
111
  | "mews"
@@ -121,6 +121,7 @@ export interface MediaSource {
121
121
  | "sonifi"
122
122
  | "stay-n-touch"
123
123
  | "twilio"
124
+ | "vizio"
124
125
  | "cloudflare-images"
125
126
  | "cloudflare-stream"
126
127
  | "insperia-privacy";
@@ -119,7 +119,7 @@ export interface MotionSensor {
119
119
  | "igor"
120
120
  | "inncom"
121
121
  | "kohost-k7"
122
- | "kohost-pms"
122
+ | "kohost"
123
123
  | "lg"
124
124
  | "lirc"
125
125
  | "mews"
@@ -135,6 +135,7 @@ export interface MotionSensor {
135
135
  | "sonifi"
136
136
  | "stay-n-touch"
137
137
  | "twilio"
138
+ | "vizio"
138
139
  | "cloudflare-images"
139
140
  | "cloudflare-stream"
140
141
  | "insperia-privacy";
@@ -20,7 +20,7 @@ export interface Product {
20
20
  | "igor"
21
21
  | "inncom"
22
22
  | "kohost-k7"
23
- | "kohost-pms"
23
+ | "kohost"
24
24
  | "lg"
25
25
  | "lirc"
26
26
  | "mews"
@@ -36,6 +36,7 @@ export interface Product {
36
36
  | "sonifi"
37
37
  | "stay-n-touch"
38
38
  | "twilio"
39
+ | "vizio"
39
40
  | "cloudflare-images"
40
41
  | "cloudflare-stream"
41
42
  | "insperia-privacy";
@@ -32,7 +32,7 @@ export interface Reservation {
32
32
  | "igor"
33
33
  | "inncom"
34
34
  | "kohost-k7"
35
- | "kohost-pms"
35
+ | "kohost"
36
36
  | "lg"
37
37
  | "lirc"
38
38
  | "mews"
@@ -48,6 +48,7 @@ export interface Reservation {
48
48
  | "sonifi"
49
49
  | "stay-n-touch"
50
50
  | "twilio"
51
+ | "vizio"
51
52
  | "cloudflare-images"
52
53
  | "cloudflare-stream"
53
54
  | "insperia-privacy";
@@ -153,7 +153,7 @@ export interface Dimmer {
153
153
  | "igor"
154
154
  | "inncom"
155
155
  | "kohost-k7"
156
- | "kohost-pms"
156
+ | "kohost"
157
157
  | "lg"
158
158
  | "lirc"
159
159
  | "mews"
@@ -169,6 +169,7 @@ export interface Dimmer {
169
169
  | "sonifi"
170
170
  | "stay-n-touch"
171
171
  | "twilio"
172
+ | "vizio"
172
173
  | "cloudflare-images"
173
174
  | "cloudflare-stream"
174
175
  | "insperia-privacy";
@@ -243,7 +244,7 @@ export interface Switch {
243
244
  | "igor"
244
245
  | "inncom"
245
246
  | "kohost-k7"
246
- | "kohost-pms"
247
+ | "kohost"
247
248
  | "lg"
248
249
  | "lirc"
249
250
  | "mews"
@@ -259,6 +260,7 @@ export interface Switch {
259
260
  | "sonifi"
260
261
  | "stay-n-touch"
261
262
  | "twilio"
263
+ | "vizio"
262
264
  | "cloudflare-images"
263
265
  | "cloudflare-stream"
264
266
  | "insperia-privacy";
@@ -303,7 +305,7 @@ export interface Thermostat {
303
305
  | "igor"
304
306
  | "inncom"
305
307
  | "kohost-k7"
306
- | "kohost-pms"
308
+ | "kohost"
307
309
  | "lg"
308
310
  | "lirc"
309
311
  | "mews"
@@ -319,6 +321,7 @@ export interface Thermostat {
319
321
  | "sonifi"
320
322
  | "stay-n-touch"
321
323
  | "twilio"
324
+ | "vizio"
322
325
  | "cloudflare-images"
323
326
  | "cloudflare-stream"
324
327
  | "insperia-privacy";
@@ -376,7 +379,7 @@ export interface Thermostat {
376
379
  };
377
380
  minAutoDelta?: number;
378
381
  cycleRate?: number;
379
- batteryLevel?: number | null;
382
+ batteryLevel?: number;
380
383
  systemId?: string;
381
384
  watts?: number;
382
385
  [k: string]: unknown;
@@ -451,7 +454,7 @@ export interface Lock {
451
454
  | "igor"
452
455
  | "inncom"
453
456
  | "kohost-k7"
454
- | "kohost-pms"
457
+ | "kohost"
455
458
  | "lg"
456
459
  | "lirc"
457
460
  | "mews"
@@ -467,6 +470,7 @@ export interface Lock {
467
470
  | "sonifi"
468
471
  | "stay-n-touch"
469
472
  | "twilio"
473
+ | "vizio"
470
474
  | "cloudflare-images"
471
475
  | "cloudflare-stream"
472
476
  | "insperia-privacy";
@@ -475,7 +479,7 @@ export interface Lock {
475
479
  * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
476
480
  */
477
481
  mode?: "normal" | "autoLock" | null;
478
- batteryLevel?: number | null;
482
+ batteryLevel?: number;
479
483
  systemId?: string;
480
484
  watts?: number;
481
485
  [k: string]: unknown;
@@ -545,7 +549,7 @@ export interface WindowCovering {
545
549
  | "igor"
546
550
  | "inncom"
547
551
  | "kohost-k7"
548
- | "kohost-pms"
552
+ | "kohost"
549
553
  | "lg"
550
554
  | "lirc"
551
555
  | "mews"
@@ -561,6 +565,7 @@ export interface WindowCovering {
561
565
  | "sonifi"
562
566
  | "stay-n-touch"
563
567
  | "twilio"
568
+ | "vizio"
564
569
  | "cloudflare-images"
565
570
  | "cloudflare-stream"
566
571
  | "insperia-privacy";
@@ -634,7 +639,7 @@ export interface Courtesy {
634
639
  | "igor"
635
640
  | "inncom"
636
641
  | "kohost-k7"
637
- | "kohost-pms"
642
+ | "kohost"
638
643
  | "lg"
639
644
  | "lirc"
640
645
  | "mews"
@@ -650,6 +655,7 @@ export interface Courtesy {
650
655
  | "sonifi"
651
656
  | "stay-n-touch"
652
657
  | "twilio"
658
+ | "vizio"
653
659
  | "cloudflare-images"
654
660
  | "cloudflare-stream"
655
661
  | "insperia-privacy";
@@ -724,7 +730,7 @@ export interface Camera {
724
730
  | "igor"
725
731
  | "inncom"
726
732
  | "kohost-k7"
727
- | "kohost-pms"
733
+ | "kohost"
728
734
  | "lg"
729
735
  | "lirc"
730
736
  | "mews"
@@ -740,6 +746,7 @@ export interface Camera {
740
746
  | "sonifi"
741
747
  | "stay-n-touch"
742
748
  | "twilio"
749
+ | "vizio"
743
750
  | "cloudflare-images"
744
751
  | "cloudflare-stream"
745
752
  | "insperia-privacy";
@@ -771,7 +778,7 @@ export interface MediaSource {
771
778
  | "igor"
772
779
  | "inncom"
773
780
  | "kohost-k7"
774
- | "kohost-pms"
781
+ | "kohost"
775
782
  | "lg"
776
783
  | "lirc"
777
784
  | "mews"
@@ -787,6 +794,7 @@ export interface MediaSource {
787
794
  | "sonifi"
788
795
  | "stay-n-touch"
789
796
  | "twilio"
797
+ | "vizio"
790
798
  | "cloudflare-images"
791
799
  | "cloudflare-stream"
792
800
  | "insperia-privacy";
@@ -974,7 +982,7 @@ export interface MotionSensor {
974
982
  | "igor"
975
983
  | "inncom"
976
984
  | "kohost-k7"
977
- | "kohost-pms"
985
+ | "kohost"
978
986
  | "lg"
979
987
  | "lirc"
980
988
  | "mews"
@@ -990,6 +998,7 @@ export interface MotionSensor {
990
998
  | "sonifi"
991
999
  | "stay-n-touch"
992
1000
  | "twilio"
1001
+ | "vizio"
993
1002
  | "cloudflare-images"
994
1003
  | "cloudflare-stream"
995
1004
  | "insperia-privacy";
@@ -1091,7 +1100,7 @@ export interface Alarm {
1091
1100
  | "igor"
1092
1101
  | "inncom"
1093
1102
  | "kohost-k7"
1094
- | "kohost-pms"
1103
+ | "kohost"
1095
1104
  | "lg"
1096
1105
  | "lirc"
1097
1106
  | "mews"
@@ -1107,6 +1116,7 @@ export interface Alarm {
1107
1116
  | "sonifi"
1108
1117
  | "stay-n-touch"
1109
1118
  | "twilio"
1119
+ | "vizio"
1110
1120
  | "cloudflare-images"
1111
1121
  | "cloudflare-stream"
1112
1122
  | "insperia-privacy";
@@ -31,7 +31,7 @@ export interface Space {
31
31
  | "igor"
32
32
  | "inncom"
33
33
  | "kohost-k7"
34
- | "kohost-pms"
34
+ | "kohost"
35
35
  | "lg"
36
36
  | "lirc"
37
37
  | "mews"
@@ -47,6 +47,7 @@ export interface Space {
47
47
  | "sonifi"
48
48
  | "stay-n-touch"
49
49
  | "twilio"
50
+ | "vizio"
50
51
  | "cloudflare-images"
51
52
  | "cloudflare-stream"
52
53
  | "insperia-privacy";
@@ -123,7 +123,7 @@ export interface Switch {
123
123
  | "igor"
124
124
  | "inncom"
125
125
  | "kohost-k7"
126
- | "kohost-pms"
126
+ | "kohost"
127
127
  | "lg"
128
128
  | "lirc"
129
129
  | "mews"
@@ -139,6 +139,7 @@ export interface Switch {
139
139
  | "sonifi"
140
140
  | "stay-n-touch"
141
141
  | "twilio"
142
+ | "vizio"
142
143
  | "cloudflare-images"
143
144
  | "cloudflare-stream"
144
145
  | "insperia-privacy";
@@ -54,7 +54,7 @@ export interface SystemUser {
54
54
  | "igor"
55
55
  | "inncom"
56
56
  | "kohost-k7"
57
- | "kohost-pms"
57
+ | "kohost"
58
58
  | "lg"
59
59
  | "lirc"
60
60
  | "mews"
@@ -70,6 +70,7 @@ export interface SystemUser {
70
70
  | "sonifi"
71
71
  | "stay-n-touch"
72
72
  | "twilio"
73
+ | "vizio"
73
74
  | "cloudflare-images"
74
75
  | "cloudflare-stream"
75
76
  | "insperia-privacy";
@@ -122,7 +122,7 @@ export interface Thermostat {
122
122
  | "igor"
123
123
  | "inncom"
124
124
  | "kohost-k7"
125
- | "kohost-pms"
125
+ | "kohost"
126
126
  | "lg"
127
127
  | "lirc"
128
128
  | "mews"
@@ -138,6 +138,7 @@ export interface Thermostat {
138
138
  | "sonifi"
139
139
  | "stay-n-touch"
140
140
  | "twilio"
141
+ | "vizio"
141
142
  | "cloudflare-images"
142
143
  | "cloudflare-stream"
143
144
  | "insperia-privacy";
@@ -168,7 +169,7 @@ export interface Thermostat {
168
169
  };
169
170
  minAutoDelta?: number;
170
171
  cycleRate?: number;
171
- batteryLevel?: number | null;
172
+ batteryLevel?: number;
172
173
  systemId?: string;
173
174
  watts?: number;
174
175
  [k: string]: unknown;
@@ -204,7 +204,7 @@ export interface Reservation {
204
204
  | "igor"
205
205
  | "inncom"
206
206
  | "kohost-k7"
207
- | "kohost-pms"
207
+ | "kohost"
208
208
  | "lg"
209
209
  | "lirc"
210
210
  | "mews"
@@ -220,6 +220,7 @@ export interface Reservation {
220
220
  | "sonifi"
221
221
  | "stay-n-touch"
222
222
  | "twilio"
223
+ | "vizio"
223
224
  | "cloudflare-images"
224
225
  | "cloudflare-stream"
225
226
  | "insperia-privacy";
@@ -123,7 +123,7 @@ export interface WindowCovering {
123
123
  | "igor"
124
124
  | "inncom"
125
125
  | "kohost-k7"
126
- | "kohost-pms"
126
+ | "kohost"
127
127
  | "lg"
128
128
  | "lirc"
129
129
  | "mews"
@@ -139,6 +139,7 @@ export interface WindowCovering {
139
139
  | "sonifi"
140
140
  | "stay-n-touch"
141
141
  | "twilio"
142
+ | "vizio"
142
143
  | "cloudflare-images"
143
144
  | "cloudflare-stream"
144
145
  | "insperia-privacy";
@@ -93,7 +93,7 @@
93
93
  "igor",
94
94
  "inncom",
95
95
  "kohost-k7",
96
- "kohost-pms",
96
+ "kohost",
97
97
  "lg",
98
98
  "lirc",
99
99
  "mews",
@@ -109,6 +109,7 @@
109
109
  "sonifi",
110
110
  "stay-n-touch",
111
111
  "twilio",
112
+ "vizio",
112
113
  "cloudflare-images",
113
114
  "cloudflare-stream",
114
115
  "insperia-privacy"
@@ -189,7 +190,7 @@
189
190
  }
190
191
  },
191
192
  "batteryLevel": {
192
- "type": ["number", "null"],
193
+ "type": "number",
193
194
  "minimum": 0,
194
195
  "maximum": 100
195
196
  },
@@ -8180,6 +8180,8 @@ var require_axios = __commonJS({
8180
8180
  function formDataToJSON(formData) {
8181
8181
  function buildPath(path, value, target, index) {
8182
8182
  let name = path[index++];
8183
+ if (name === "__proto__")
8184
+ return true;
8183
8185
  const isNumericKey = Number.isFinite(+name);
8184
8186
  const isLast = index >= path.length;
8185
8187
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -8665,7 +8667,7 @@ var require_axios = __commonJS({
8665
8667
  }
8666
8668
  __name(isAbsoluteURL, "isAbsoluteURL");
8667
8669
  function combineURLs(baseURL, relativeURL) {
8668
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
8670
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
8669
8671
  }
8670
8672
  __name(combineURLs, "combineURLs");
8671
8673
  function buildFullPath(baseURL, requestedURL) {
@@ -9105,7 +9107,7 @@ var require_axios = __commonJS({
9105
9107
  return config;
9106
9108
  }
9107
9109
  __name(mergeConfig, "mergeConfig");
9108
- var VERSION = "1.6.2";
9110
+ var VERSION = "1.6.5";
9109
9111
  var validators$1 = {};
9110
9112
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
9111
9113
  validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) {