@kohost/api-client 4.0.4 → 4.0.5

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.
Files changed (51) hide show
  1. package/dist/{chunk-EBJTC6MA.js → chunk-5I2BBUZP.js} +11 -1
  2. package/dist/{chunk-EBJTC6MA.js.map → chunk-5I2BBUZP.js.map} +1 -1
  3. package/dist/{chunk-HKJ2B2AA.js → chunk-FU4IK6I4.js} +3 -1
  4. package/dist/{chunk-MYWOGDCQ.js → chunk-SHLRCTB4.js} +7 -3
  5. package/dist/{chunk-MYWOGDCQ.js.map → chunk-SHLRCTB4.js.map} +1 -1
  6. package/dist/{chunk-KBBL6OJS.js → chunk-SLDNFNED.js} +290 -90
  7. package/dist/{chunk-KBBL6OJS.js.map → chunk-SLDNFNED.js.map} +1 -1
  8. package/dist/{chunk-36WNTEIW.js → chunk-SORMAXAX.js} +35 -2
  9. package/dist/{chunk-36WNTEIW.js.map → chunk-SORMAXAX.js.map} +1 -1
  10. package/dist/{chunk-W2G36LNI.js → chunk-UZQ2AWUY.js} +8 -1
  11. package/dist/{chunk-W2G36LNI.js.map → chunk-UZQ2AWUY.js.map} +1 -1
  12. package/dist/client.cjs +39 -7
  13. package/dist/client.cjs.map +1 -1
  14. package/dist/client.js +39 -9
  15. package/dist/client.js.map +1 -1
  16. package/dist/commands.cjs +85 -0
  17. package/dist/commands.cjs.map +1 -1
  18. package/dist/commands.js +87 -1
  19. package/dist/commands.js.map +1 -1
  20. package/dist/defs.js +1 -1
  21. package/dist/errors.cjs +37 -0
  22. package/dist/errors.cjs.map +1 -1
  23. package/dist/errors.js +3 -3
  24. package/dist/events.cjs +4 -0
  25. package/dist/events.cjs.map +1 -1
  26. package/dist/events.js +2 -2
  27. package/dist/index.cjs +1098 -96
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +1098 -96
  32. package/dist/index.js.map +1 -1
  33. package/dist/models.cjs +292 -86
  34. package/dist/models.cjs.map +1 -1
  35. package/dist/models.js +3 -3
  36. package/dist/socketIoClient.cjs +7 -3
  37. package/dist/socketIoClient.cjs.map +1 -1
  38. package/dist/socketIoClient.d.cts +1 -1
  39. package/dist/socketIoClient.d.ts +1 -1
  40. package/dist/socketIoClient.js +9 -4
  41. package/dist/socketIoClient.js.map +1 -1
  42. package/dist/useCases.cjs +640 -0
  43. package/dist/useCases.cjs.map +1 -1
  44. package/dist/useCases.js +640 -2
  45. package/dist/useCases.js.map +1 -1
  46. package/dist/utils.cjs +328 -86
  47. package/dist/utils.cjs.map +1 -1
  48. package/dist/utils.js +10 -5
  49. package/dist/utils.js.map +1 -1
  50. package/package.json +1 -1
  51. /package/dist/{chunk-HKJ2B2AA.js.map → chunk-FU4IK6I4.js.map} +0 -0
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  ValidationError
3
- } from "./chunk-EBJTC6MA.js";
3
+ } from "./chunk-5I2BBUZP.js";
4
4
  import {
5
- __commonJS
6
- } from "./chunk-HKJ2B2AA.js";
5
+ __commonJS,
6
+ __name
7
+ } from "./chunk-FU4IK6I4.js";
7
8
 
8
9
  // node_modules/fast-deep-equal/index.js
9
10
  var require_fast_deep_equal = __commonJS({
10
11
  "node_modules/fast-deep-equal/index.js"(exports, module) {
11
12
  "use strict";
12
- module.exports = function equal(a, b) {
13
+ module.exports = /* @__PURE__ */ __name(function equal(a, b) {
13
14
  if (a === b) return true;
14
15
  if (a && b && typeof a == "object" && typeof b == "object") {
15
16
  if (a.constructor !== b.constructor) return false;
@@ -36,7 +37,7 @@ var require_fast_deep_equal = __commonJS({
36
37
  return true;
37
38
  }
38
39
  return a !== a && b !== b;
39
- };
40
+ }, "equal");
40
41
  }
41
42
  });
42
43
 
@@ -72,6 +73,7 @@ var require_ucs2length = __commonJS({
72
73
  }
73
74
  return length;
74
75
  }
76
+ __name(ucs2length, "ucs2length");
75
77
  exports.default = ucs2length;
76
78
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
77
79
  }
@@ -86,6 +88,7 @@ var require_formats = __commonJS({
86
88
  function fmtDef(validate, compare) {
87
89
  return { validate, compare };
88
90
  }
91
+ __name(fmtDef, "fmtDef");
89
92
  exports.fullFormats = {
90
93
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
91
94
  date: fmtDef(date, compareDate),
@@ -152,6 +155,7 @@ var require_formats = __commonJS({
152
155
  function isLeapYear(year) {
153
156
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
154
157
  }
158
+ __name(isLeapYear, "isLeapYear");
155
159
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
156
160
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
157
161
  function date(str) {
@@ -163,6 +167,7 @@ var require_formats = __commonJS({
163
167
  const day = +matches[3];
164
168
  return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
165
169
  }
170
+ __name(date, "date");
166
171
  function compareDate(d1, d2) {
167
172
  if (!(d1 && d2))
168
173
  return void 0;
@@ -172,9 +177,10 @@ var require_formats = __commonJS({
172
177
  return -1;
173
178
  return 0;
174
179
  }
180
+ __name(compareDate, "compareDate");
175
181
  var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
176
182
  function getTime(strictTimeZone) {
177
- return function time(str) {
183
+ return /* @__PURE__ */ __name(function time(str) {
178
184
  const matches = TIME.exec(str);
179
185
  if (!matches)
180
186
  return false;
@@ -192,8 +198,9 @@ var require_formats = __commonJS({
192
198
  const utcMin = min - tzM * tzSign;
193
199
  const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
194
200
  return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
195
- };
201
+ }, "time");
196
202
  }
203
+ __name(getTime, "getTime");
197
204
  function compareTime(s1, s2) {
198
205
  if (!(s1 && s2))
199
206
  return void 0;
@@ -203,6 +210,7 @@ var require_formats = __commonJS({
203
210
  return void 0;
204
211
  return t1 - t2;
205
212
  }
213
+ __name(compareTime, "compareTime");
206
214
  function compareIsoTime(t1, t2) {
207
215
  if (!(t1 && t2))
208
216
  return void 0;
@@ -218,14 +226,16 @@ var require_formats = __commonJS({
218
226
  return -1;
219
227
  return 0;
220
228
  }
229
+ __name(compareIsoTime, "compareIsoTime");
221
230
  var DATE_TIME_SEPARATOR = /t|\s/i;
222
231
  function getDateTime(strictTimeZone) {
223
232
  const time = getTime(strictTimeZone);
224
- return function date_time(str) {
233
+ return /* @__PURE__ */ __name(function date_time(str) {
225
234
  const dateTime = str.split(DATE_TIME_SEPARATOR);
226
235
  return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
227
- };
236
+ }, "date_time");
228
237
  }
238
+ __name(getDateTime, "getDateTime");
229
239
  function compareDateTime(dt1, dt2) {
230
240
  if (!(dt1 && dt2))
231
241
  return void 0;
@@ -235,6 +245,7 @@ var require_formats = __commonJS({
235
245
  return void 0;
236
246
  return d1 - d2;
237
247
  }
248
+ __name(compareDateTime, "compareDateTime");
238
249
  function compareIsoDateTime(dt1, dt2) {
239
250
  if (!(dt1 && dt2))
240
251
  return void 0;
@@ -245,27 +256,33 @@ var require_formats = __commonJS({
245
256
  return void 0;
246
257
  return res || compareTime(t1, t2);
247
258
  }
259
+ __name(compareIsoDateTime, "compareIsoDateTime");
248
260
  var NOT_URI_FRAGMENT = /\/|:/;
249
261
  var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
250
262
  function uri(str) {
251
263
  return NOT_URI_FRAGMENT.test(str) && URI.test(str);
252
264
  }
265
+ __name(uri, "uri");
253
266
  var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
254
267
  function byte(str) {
255
268
  BYTE.lastIndex = 0;
256
269
  return BYTE.test(str);
257
270
  }
271
+ __name(byte, "byte");
258
272
  var MIN_INT32 = -(2 ** 31);
259
273
  var MAX_INT32 = 2 ** 31 - 1;
260
274
  function validateInt32(value) {
261
275
  return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
262
276
  }
277
+ __name(validateInt32, "validateInt32");
263
278
  function validateInt64(value) {
264
279
  return Number.isInteger(value);
265
280
  }
281
+ __name(validateInt64, "validateInt64");
266
282
  function validateNumber() {
267
283
  return true;
268
284
  }
285
+ __name(validateNumber, "validateNumber");
269
286
  var Z_ANCHOR = /[^\\]\\Z/;
270
287
  function regex(str) {
271
288
  if (Z_ANCHOR.test(str))
@@ -277,11 +294,15 @@ var require_formats = __commonJS({
277
294
  return false;
278
295
  }
279
296
  }
297
+ __name(regex, "regex");
280
298
  }
281
299
  });
282
300
 
283
301
  // src/models/entity.js
284
302
  var Entity = class {
303
+ static {
304
+ __name(this, "Entity");
305
+ }
285
306
  constructor(data) {
286
307
  if (!this.schema) {
287
308
  throw new Error("Schema is not defined");
@@ -600,6 +621,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
600
621
  validate12.errors = vErrors;
601
622
  return errors === 0;
602
623
  }
624
+ __name(validate12, "validate12");
603
625
  function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
604
626
  let vErrors = null;
605
627
  let errors = 0;
@@ -1454,6 +1476,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1454
1476
  validate10.errors = vErrors;
1455
1477
  return errors === 0;
1456
1478
  }
1479
+ __name(validate10, "validate10");
1457
1480
  var validateAnnouncement = validate14;
1458
1481
  var schema21 = {
1459
1482
  $schema: "http://json-schema.org/draft-07/schema",
@@ -2002,6 +2025,7 @@ function validate15(data, { instancePath = "", parentData, parentDataProperty, r
2002
2025
  validate15.errors = vErrors;
2003
2026
  return errors === 0;
2004
2027
  }
2028
+ __name(validate15, "validate15");
2005
2029
  function validate14(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2006
2030
  let vErrors = null;
2007
2031
  let errors = 0;
@@ -2350,6 +2374,7 @@ function validate14(data, { instancePath = "", parentData, parentDataProperty, r
2350
2374
  validate14.errors = vErrors;
2351
2375
  return errors === 0;
2352
2376
  }
2377
+ __name(validate14, "validate14");
2353
2378
  var validateCamera = validate17;
2354
2379
  var schema29 = {
2355
2380
  $schema: "http://json-schema.org/draft-07/schema",
@@ -2545,6 +2570,7 @@ function validate18(data, { instancePath = "", parentData, parentDataProperty, r
2545
2570
  validate18.errors = vErrors;
2546
2571
  return errors === 0;
2547
2572
  }
2573
+ __name(validate18, "validate18");
2548
2574
  function validate17(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2549
2575
  let vErrors = null;
2550
2576
  let errors = 0;
@@ -3266,6 +3292,7 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
3266
3292
  validate17.errors = vErrors;
3267
3293
  return errors === 0;
3268
3294
  }
3295
+ __name(validate17, "validate17");
3269
3296
  var validateCategory = validate20;
3270
3297
  var schema38 = {
3271
3298
  $schema: "http://json-schema.org/draft-07/schema",
@@ -3604,6 +3631,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
3604
3631
  validate20.errors = vErrors;
3605
3632
  return errors === 0;
3606
3633
  }
3634
+ __name(validate20, "validate20");
3607
3635
  var validateCourtesy = validate22;
3608
3636
  var schema42 = {
3609
3637
  $schema: "http://json-schema.org/draft-07/schema",
@@ -3740,6 +3768,7 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
3740
3768
  validate23.errors = vErrors;
3741
3769
  return errors === 0;
3742
3770
  }
3771
+ __name(validate23, "validate23");
3743
3772
  function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3744
3773
  let vErrors = null;
3745
3774
  let errors = 0;
@@ -4212,6 +4241,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
4212
4241
  validate22.errors = vErrors;
4213
4242
  return errors === 0;
4214
4243
  }
4244
+ __name(validate22, "validate22");
4215
4245
  var validateCredential = validate25;
4216
4246
  var schema52 = {
4217
4247
  $schema: "http://json-schema.org/draft-07/schema",
@@ -4586,6 +4616,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
4586
4616
  validate25.errors = vErrors;
4587
4617
  return errors === 0;
4588
4618
  }
4619
+ __name(validate25, "validate25");
4589
4620
  var validateDeviceRouter = validate26;
4590
4621
  var schema56 = {
4591
4622
  $schema: "http://json-schema.org/draft-07/schema",
@@ -4799,6 +4830,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
4799
4830
  validate26.errors = vErrors;
4800
4831
  return errors === 0;
4801
4832
  }
4833
+ __name(validate26, "validate26");
4802
4834
  var validateDimmer = validate27;
4803
4835
  var schema58 = {
4804
4836
  $schema: "http://json-schema.org/draft-07/schema",
@@ -4929,6 +4961,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
4929
4961
  validate28.errors = vErrors;
4930
4962
  return errors === 0;
4931
4963
  }
4964
+ __name(validate28, "validate28");
4932
4965
  function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4933
4966
  let vErrors = null;
4934
4967
  let errors = 0;
@@ -5339,6 +5372,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
5339
5372
  validate27.errors = vErrors;
5340
5373
  return errors === 0;
5341
5374
  }
5375
+ __name(validate27, "validate27");
5342
5376
  var validateDiscoveredDevice = validate30;
5343
5377
  var schema67 = {
5344
5378
  $schema: "http://json-schema.org/draft-07/schema",
@@ -5680,6 +5714,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
5680
5714
  validate30.errors = vErrors;
5681
5715
  return errors === 0;
5682
5716
  }
5717
+ __name(validate30, "validate30");
5683
5718
  var validateEmailMessage = validate31;
5684
5719
  var schema70 = {
5685
5720
  $schema: "http://json-schema.org/draft-07/schema",
@@ -6202,6 +6237,7 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
6202
6237
  validate31.errors = vErrors;
6203
6238
  return errors === 0;
6204
6239
  }
6240
+ __name(validate31, "validate31");
6205
6241
  var validateEnergyReport = validate32;
6206
6242
  var schema75 = {
6207
6243
  $schema: "http://json-schema.org/draft-07/schema",
@@ -7050,6 +7086,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
7050
7086
  validate32.errors = vErrors;
7051
7087
  return errors === 0;
7052
7088
  }
7089
+ __name(validate32, "validate32");
7053
7090
  var validateEnergyReportShard = validate33;
7054
7091
  var schema80 = {
7055
7092
  $schema: "http://json-schema.org/draft-07/schema",
@@ -7856,6 +7893,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
7856
7893
  validate33.errors = vErrors;
7857
7894
  return errors === 0;
7858
7895
  }
7896
+ __name(validate33, "validate33");
7859
7897
  var validateGateway = validate34;
7860
7898
  function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7861
7899
  let vErrors = null;
@@ -7964,6 +8002,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
7964
8002
  validate35.errors = vErrors;
7965
8003
  return errors === 0;
7966
8004
  }
8005
+ __name(validate35, "validate35");
7967
8006
  function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7968
8007
  let vErrors = null;
7969
8008
  let errors = 0;
@@ -8307,6 +8346,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
8307
8346
  validate34.errors = vErrors;
8308
8347
  return errors === 0;
8309
8348
  }
8349
+ __name(validate34, "validate34");
8310
8350
  var validateIdentification = validate37;
8311
8351
  var schema95 = {
8312
8352
  $schema: "http://json-schema.org/draft-07/schema",
@@ -8726,6 +8766,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
8726
8766
  validate37.errors = vErrors;
8727
8767
  return errors === 0;
8728
8768
  }
8769
+ __name(validate37, "validate37");
8729
8770
  var validateIssue = validate38;
8730
8771
  var schema98 = {
8731
8772
  $schema: "http://json-schema.org/draft-07/schema",
@@ -9137,6 +9178,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
9137
9178
  validate38.errors = vErrors;
9138
9179
  return errors === 0;
9139
9180
  }
9181
+ __name(validate38, "validate38");
9140
9182
  var validateLock = validate45;
9141
9183
  var schema110 = {
9142
9184
  $schema: "http://json-schema.org/draft-07/schema",
@@ -9297,6 +9339,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
9297
9339
  validate46.errors = vErrors;
9298
9340
  return errors === 0;
9299
9341
  }
9342
+ __name(validate46, "validate46");
9300
9343
  function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
9301
9344
  let vErrors = null;
9302
9345
  let errors = 0;
@@ -9837,6 +9880,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
9837
9880
  validate45.errors = vErrors;
9838
9881
  return errors === 0;
9839
9882
  }
9883
+ __name(validate45, "validate45");
9840
9884
  var validateLog = validate48;
9841
9885
  var schema120 = {
9842
9886
  $schema: "http://json-schema.org/draft-07/schema",
@@ -10484,6 +10528,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
10484
10528
  validate48.errors = vErrors;
10485
10529
  return errors === 0;
10486
10530
  }
10531
+ __name(validate48, "validate48");
10487
10532
  var validateMediaFile = validate15;
10488
10533
  var validateMediaSource = validate49;
10489
10534
  var schema121 = {
@@ -10780,6 +10825,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
10780
10825
  validate50.errors = vErrors;
10781
10826
  return errors === 0;
10782
10827
  }
10828
+ __name(validate50, "validate50");
10783
10829
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
10784
10830
  let vErrors = null;
10785
10831
  let errors = 0;
@@ -11753,6 +11799,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
11753
11799
  validate49.errors = vErrors;
11754
11800
  return errors === 0;
11755
11801
  }
11802
+ __name(validate49, "validate49");
11756
11803
  var validateMotionSensor = validate52;
11757
11804
  function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
11758
11805
  let vErrors = null;
@@ -11861,6 +11908,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
11861
11908
  validate53.errors = vErrors;
11862
11909
  return errors === 0;
11863
11910
  }
11911
+ __name(validate53, "validate53");
11864
11912
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
11865
11913
  let vErrors = null;
11866
11914
  let errors = 0;
@@ -12189,6 +12237,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
12189
12237
  validate52.errors = vErrors;
12190
12238
  return errors === 0;
12191
12239
  }
12240
+ __name(validate52, "validate52");
12192
12241
  var validateOrder = validate55;
12193
12242
  var schema141 = {
12194
12243
  $schema: "http://json-schema.org/draft-07/schema",
@@ -13523,6 +13572,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
13523
13572
  validate55.errors = vErrors;
13524
13573
  return errors === 0;
13525
13574
  }
13575
+ __name(validate55, "validate55");
13526
13576
  var validateOrganization = validate56;
13527
13577
  var schema147 = {
13528
13578
  $schema: "http://json-schema.org/draft-07/schema",
@@ -14452,6 +14502,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
14452
14502
  validate56.errors = vErrors;
14453
14503
  return errors === 0;
14454
14504
  }
14505
+ __name(validate56, "validate56");
14455
14506
  var validatePayment = validate57;
14456
14507
  var schema151 = {
14457
14508
  $schema: "http://json-schema.org/draft-07/schema",
@@ -14710,6 +14761,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
14710
14761
  validate57.errors = vErrors;
14711
14762
  return errors === 0;
14712
14763
  }
14764
+ __name(validate57, "validate57");
14713
14765
  var validatePolicy = validate58;
14714
14766
  var schema154 = {
14715
14767
  $schema: "http://json-schema.org/draft-07/schema",
@@ -15226,6 +15278,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
15226
15278
  validate58.errors = vErrors;
15227
15279
  return errors === 0;
15228
15280
  }
15281
+ __name(validate58, "validate58");
15229
15282
  var validateProduct = validate59;
15230
15283
  var schema156 = {
15231
15284
  $schema: "http://json-schema.org/draft-07/schema",
@@ -15568,6 +15621,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
15568
15621
  validate59.errors = vErrors;
15569
15622
  return errors === 0;
15570
15623
  }
15624
+ __name(validate59, "validate59");
15571
15625
  var validateProperty = validate61;
15572
15626
  var schema160 = {
15573
15627
  $schema: "http://json-schema.org/draft-07/schema",
@@ -18306,6 +18360,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18306
18360
  validate61.errors = vErrors;
18307
18361
  return errors === 0;
18308
18362
  }
18363
+ __name(validate61, "validate61");
18309
18364
  var validateReservation = validate63;
18310
18365
  var schema163 = {
18311
18366
  $schema: "http://json-schema.org/draft-07/schema",
@@ -18584,6 +18639,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18584
18639
  validate64.errors = vErrors;
18585
18640
  return errors === 0;
18586
18641
  }
18642
+ __name(validate64, "validate64");
18587
18643
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
18588
18644
  let vErrors = null;
18589
18645
  let errors = 0;
@@ -19445,6 +19501,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
19445
19501
  validate63.errors = vErrors;
19446
19502
  return errors === 0;
19447
19503
  }
19504
+ __name(validate63, "validate63");
19448
19505
  var validateRoom = validate66;
19449
19506
  var schema170 = {
19450
19507
  $schema: "http://json-schema.org/draft-07/schema",
@@ -19620,6 +19677,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19620
19677
  validate69.errors = vErrors;
19621
19678
  return errors === 0;
19622
19679
  }
19680
+ __name(validate69, "validate69");
19623
19681
  function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
19624
19682
  let vErrors = null;
19625
19683
  let errors = 0;
@@ -20046,6 +20104,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
20046
20104
  validate68.errors = vErrors;
20047
20105
  return errors === 0;
20048
20106
  }
20107
+ __name(validate68, "validate68");
20049
20108
  var schema181 = {
20050
20109
  $schema: "http://json-schema.org/draft-07/schema",
20051
20110
  $id: "thermostat.json",
@@ -20245,6 +20304,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
20245
20304
  validate73.errors = vErrors;
20246
20305
  return errors === 0;
20247
20306
  }
20307
+ __name(validate73, "validate73");
20248
20308
  var schema193 = { type: ["number", "null"], minimum: 0, maximum: 99 };
20249
20309
  function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
20250
20310
  let vErrors = null;
@@ -20434,6 +20494,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
20434
20494
  validate75.errors = vErrors;
20435
20495
  return errors === 0;
20436
20496
  }
20497
+ __name(validate75, "validate75");
20437
20498
  function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
20438
20499
  let vErrors = null;
20439
20500
  let errors = 0;
@@ -21446,6 +21507,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
21446
21507
  validate72.errors = vErrors;
21447
21508
  return errors === 0;
21448
21509
  }
21510
+ __name(validate72, "validate72");
21449
21511
  var schema198 = {
21450
21512
  $schema: "http://json-schema.org/draft-07/schema",
21451
21513
  $id: "windowCovering.json",
@@ -21583,6 +21645,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
21583
21645
  validate82.errors = vErrors;
21584
21646
  return errors === 0;
21585
21647
  }
21648
+ __name(validate82, "validate82");
21586
21649
  function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
21587
21650
  let vErrors = null;
21588
21651
  let errors = 0;
@@ -22028,6 +22091,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
22028
22091
  validate81.errors = vErrors;
22029
22092
  return errors === 0;
22030
22093
  }
22094
+ __name(validate81, "validate81");
22031
22095
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22032
22096
  let vErrors = null;
22033
22097
  let errors = 0;
@@ -22644,6 +22708,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
22644
22708
  validate66.errors = vErrors;
22645
22709
  return errors === 0;
22646
22710
  }
22711
+ __name(validate66, "validate66");
22647
22712
  var validateScene = validate90;
22648
22713
  var schema210 = {
22649
22714
  $schema: "http://json-schema.org/draft-07/schema",
@@ -22794,6 +22859,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
22794
22859
  validate91.errors = vErrors;
22795
22860
  return errors === 0;
22796
22861
  }
22862
+ __name(validate91, "validate91");
22797
22863
  function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22798
22864
  let vErrors = null;
22799
22865
  let errors = 0;
@@ -22866,6 +22932,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
22866
22932
  validate93.errors = vErrors;
22867
22933
  return errors === 0;
22868
22934
  }
22935
+ __name(validate93, "validate93");
22869
22936
  function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22870
22937
  let vErrors = null;
22871
22938
  let errors = 0;
@@ -22902,6 +22969,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
22902
22969
  validate98.errors = vErrors;
22903
22970
  return errors === 0;
22904
22971
  }
22972
+ __name(validate98, "validate98");
22905
22973
  function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22906
22974
  let vErrors = null;
22907
22975
  let errors = 0;
@@ -24076,6 +24144,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
24076
24144
  validate90.errors = vErrors;
24077
24145
  return errors === 0;
24078
24146
  }
24147
+ __name(validate90, "validate90");
24079
24148
  var validateShortLink = validate100;
24080
24149
  var schema228 = {
24081
24150
  $schema: "http://json-schema.org/draft-07/schema",
@@ -24306,6 +24375,7 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
24306
24375
  validate100.errors = vErrors;
24307
24376
  return errors === 0;
24308
24377
  }
24378
+ __name(validate100, "validate100");
24309
24379
  var validateSmsMessage = validate101;
24310
24380
  var schema231 = {
24311
24381
  $schema: "http://json-schema.org/draft-07/schema",
@@ -24772,6 +24842,7 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
24772
24842
  validate101.errors = vErrors;
24773
24843
  return errors === 0;
24774
24844
  }
24845
+ __name(validate101, "validate101");
24775
24846
  var validateSpace = validate102;
24776
24847
  var schema236 = {
24777
24848
  $schema: "http://json-schema.org/draft-07/schema",
@@ -24937,6 +25008,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
24937
25008
  validate103.errors = vErrors;
24938
25009
  return errors === 0;
24939
25010
  }
25011
+ __name(validate103, "validate103");
24940
25012
  function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
24941
25013
  let vErrors = null;
24942
25014
  let errors = 0;
@@ -25834,6 +25906,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
25834
25906
  validate102.errors = vErrors;
25835
25907
  return errors === 0;
25836
25908
  }
25909
+ __name(validate102, "validate102");
25837
25910
  var validateSwitch = validate68;
25838
25911
  var validateSystemUser = validate108;
25839
25912
  var schema241 = {
@@ -26064,6 +26137,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
26064
26137
  validate112.errors = vErrors;
26065
26138
  return errors === 0;
26066
26139
  }
26140
+ __name(validate112, "validate112");
26067
26141
  function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26068
26142
  let vErrors = null;
26069
26143
  let errors = 0;
@@ -26942,6 +27016,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
26942
27016
  validate108.errors = vErrors;
26943
27017
  return errors === 0;
26944
27018
  }
27019
+ __name(validate108, "validate108");
26945
27020
  var validateThermostat = validate72;
26946
27021
  var validateTicket = validate39;
26947
27022
  var schema100 = {
@@ -28942,6 +29017,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
28942
29017
  validate39.errors = vErrors;
28943
29018
  return errors === 0;
28944
29019
  }
29020
+ __name(validate39, "validate39");
28945
29021
  var validateTimeSheet = validate114;
28946
29022
  var schema250 = {
28947
29023
  $schema: "http://json-schema.org/draft-07/schema",
@@ -29512,6 +29588,7 @@ function validate114(data, { instancePath = "", parentData, parentDataProperty,
29512
29588
  validate114.errors = vErrors;
29513
29589
  return errors === 0;
29514
29590
  }
29591
+ __name(validate114, "validate114");
29515
29592
  var validateUser = validate115;
29516
29593
  var schema254 = {
29517
29594
  $schema: "http://json-schema.org/draft-07/schema",
@@ -29801,6 +29878,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
29801
29878
  validate122.errors = vErrors;
29802
29879
  return errors === 0;
29803
29880
  }
29881
+ __name(validate122, "validate122");
29804
29882
  function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29805
29883
  let vErrors = null;
29806
29884
  let errors = 0;
@@ -31238,6 +31316,7 @@ function validate115(data, { instancePath = "", parentData, parentDataProperty,
31238
31316
  validate115.errors = vErrors;
31239
31317
  return errors === 0;
31240
31318
  }
31319
+ __name(validate115, "validate115");
31241
31320
  var validateVendor = validate124;
31242
31321
  var schema261 = {
31243
31322
  $schema: "http://json-schema.org/draft-07/schema",
@@ -31752,10 +31831,14 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
31752
31831
  validate124.errors = vErrors;
31753
31832
  return errors === 0;
31754
31833
  }
31834
+ __name(validate124, "validate124");
31755
31835
  var validateWindowCovering = validate81;
31756
31836
 
31757
31837
  // src/models/alarm.js
31758
31838
  var Alarm = class extends Entity {
31839
+ static {
31840
+ __name(this, "Alarm");
31841
+ }
31759
31842
  /**
31760
31843
  * @typedef {Object} AlarmData Any smart alarm system
31761
31844
  * @property {string} id - Identifier of the object.
@@ -31850,13 +31933,16 @@ Object.defineProperty(Alarm.prototype, "schema", {
31850
31933
  }
31851
31934
  });
31852
31935
  Object.defineProperty(Alarm.prototype, "validator", {
31853
- get: function() {
31936
+ get: /* @__PURE__ */ __name(function() {
31854
31937
  return validateAlarm;
31855
- }
31938
+ }, "get")
31856
31939
  });
31857
31940
 
31858
31941
  // src/models/announcement.js
31859
31942
  var Announcement = class extends Entity {
31943
+ static {
31944
+ __name(this, "Announcement");
31945
+ }
31860
31946
  /**
31861
31947
  * @typedef {Object} AnnouncementData Announcement message sent to users
31862
31948
  * @property {string} [id] - Identifier of the object.
@@ -31911,13 +31997,16 @@ Object.defineProperty(Announcement.prototype, "schema", {
31911
31997
  }
31912
31998
  });
31913
31999
  Object.defineProperty(Announcement.prototype, "validator", {
31914
- get: function() {
32000
+ get: /* @__PURE__ */ __name(function() {
31915
32001
  return validateAnnouncement;
31916
- }
32002
+ }, "get")
31917
32003
  });
31918
32004
 
31919
32005
  // src/models/camera.js
31920
32006
  var Camera = class extends Entity {
32007
+ static {
32008
+ __name(this, "Camera");
32009
+ }
31921
32010
  /**
31922
32011
  * @typedef {Object} CameraData Any smart camera
31923
32012
  * @property {string} id - Identifier of the object.
@@ -32032,13 +32121,16 @@ Object.defineProperty(Camera.prototype, "schema", {
32032
32121
  }
32033
32122
  });
32034
32123
  Object.defineProperty(Camera.prototype, "validator", {
32035
- get: function() {
32124
+ get: /* @__PURE__ */ __name(function() {
32036
32125
  return validateCamera;
32037
- }
32126
+ }, "get")
32038
32127
  });
32039
32128
 
32040
32129
  // src/models/category.js
32041
32130
  var Category = class extends Entity {
32131
+ static {
32132
+ __name(this, "Category");
32133
+ }
32042
32134
  /**
32043
32135
  * @typedef {Object} CategoryData
32044
32136
  * @property {string} [id] - Identifier of the object.
@@ -32092,13 +32184,16 @@ Object.defineProperty(Category.prototype, "schema", {
32092
32184
  }
32093
32185
  });
32094
32186
  Object.defineProperty(Category.prototype, "validator", {
32095
- get: function() {
32187
+ get: /* @__PURE__ */ __name(function() {
32096
32188
  return validateCategory;
32097
- }
32189
+ }, "get")
32098
32190
  });
32099
32191
 
32100
32192
  // src/models/courtesy.js
32101
32193
  var Courtesy = class extends Entity {
32194
+ static {
32195
+ __name(this, "Courtesy");
32196
+ }
32102
32197
  /**
32103
32198
  * @typedef {Object} CourtesyData Any smart courtesy system
32104
32199
  * @property {string} id - Identifier of the object.
@@ -32162,13 +32257,16 @@ Object.defineProperty(Courtesy.prototype, "schema", {
32162
32257
  }
32163
32258
  });
32164
32259
  Object.defineProperty(Courtesy.prototype, "validator", {
32165
- get: function() {
32260
+ get: /* @__PURE__ */ __name(function() {
32166
32261
  return validateCourtesy;
32167
- }
32262
+ }, "get")
32168
32263
  });
32169
32264
 
32170
32265
  // src/models/credential.js
32171
32266
  var Credential = class extends Entity {
32267
+ static {
32268
+ __name(this, "Credential");
32269
+ }
32172
32270
  /**
32173
32271
  * @typedef {Object} CredentialData
32174
32272
  * @property {string} [id] - Identifier of the object.
@@ -32238,13 +32336,16 @@ Object.defineProperty(Credential.prototype, "schema", {
32238
32336
  }
32239
32337
  });
32240
32338
  Object.defineProperty(Credential.prototype, "validator", {
32241
- get: function() {
32339
+ get: /* @__PURE__ */ __name(function() {
32242
32340
  return validateCredential;
32243
- }
32341
+ }, "get")
32244
32342
  });
32245
32343
 
32246
32344
  // src/models/deviceRouter.js
32247
32345
  var DeviceRouter = class extends Entity {
32346
+ static {
32347
+ __name(this, "DeviceRouter");
32348
+ }
32248
32349
  /**
32249
32350
  * @typedef {Object} DeviceRouterData A device router contains instructions on where to route devices based on their organization and driver.
32250
32351
  * @property {string} [id] - Identifier of the object.
@@ -32287,13 +32388,16 @@ Object.defineProperty(DeviceRouter.prototype, "schema", {
32287
32388
  }
32288
32389
  });
32289
32390
  Object.defineProperty(DeviceRouter.prototype, "validator", {
32290
- get: function() {
32391
+ get: /* @__PURE__ */ __name(function() {
32291
32392
  return validateDeviceRouter;
32292
- }
32393
+ }, "get")
32293
32394
  });
32294
32395
 
32295
32396
  // src/models/dimmer.js
32296
32397
  var Dimmer = class extends Entity {
32398
+ static {
32399
+ __name(this, "Dimmer");
32400
+ }
32297
32401
  /**
32298
32402
  * @typedef {Object} DimmerData Any smart dimmer
32299
32403
  * @property {string} id - Identifier of the object.
@@ -32350,13 +32454,16 @@ Object.defineProperty(Dimmer.prototype, "schema", {
32350
32454
  }
32351
32455
  });
32352
32456
  Object.defineProperty(Dimmer.prototype, "validator", {
32353
- get: function() {
32457
+ get: /* @__PURE__ */ __name(function() {
32354
32458
  return validateDimmer;
32355
- }
32459
+ }, "get")
32356
32460
  });
32357
32461
 
32358
32462
  // src/models/discoveredDevice.js
32359
32463
  var DiscoveredDevice = class extends Entity {
32464
+ static {
32465
+ __name(this, "DiscoveredDevice");
32466
+ }
32360
32467
  /**
32361
32468
  * @typedef {Object} DiscoveredDeviceData A device that has been discovered by Kohost, but not yet added to the Kohost system.
32362
32469
  * @property {string} [id] - Identifier of the object.
@@ -32421,13 +32528,16 @@ Object.defineProperty(DiscoveredDevice.prototype, "schema", {
32421
32528
  }
32422
32529
  });
32423
32530
  Object.defineProperty(DiscoveredDevice.prototype, "validator", {
32424
- get: function() {
32531
+ get: /* @__PURE__ */ __name(function() {
32425
32532
  return validateDiscoveredDevice;
32426
- }
32533
+ }, "get")
32427
32534
  });
32428
32535
 
32429
32536
  // src/models/emailMessage.js
32430
32537
  var EmailMessage = class extends Entity {
32538
+ static {
32539
+ __name(this, "EmailMessage");
32540
+ }
32431
32541
  /**
32432
32542
  * @typedef {Object} EmailMessageData
32433
32543
  * @property {string} [id] - Identifier of the object.
@@ -32518,13 +32628,16 @@ Object.defineProperty(EmailMessage.prototype, "schema", {
32518
32628
  }
32519
32629
  });
32520
32630
  Object.defineProperty(EmailMessage.prototype, "validator", {
32521
- get: function() {
32631
+ get: /* @__PURE__ */ __name(function() {
32522
32632
  return validateEmailMessage;
32523
- }
32633
+ }, "get")
32524
32634
  });
32525
32635
 
32526
32636
  // src/models/energyReport.js
32527
32637
  var EnergyReport = class extends Entity {
32638
+ static {
32639
+ __name(this, "EnergyReport");
32640
+ }
32528
32641
  /**
32529
32642
  * @typedef {Object} EnergyReportData Hourly Report for Energy based on energy report shards
32530
32643
  * @property {string} id - Identifier of the object.
@@ -32607,13 +32720,16 @@ Object.defineProperty(EnergyReport.prototype, "schema", {
32607
32720
  }
32608
32721
  });
32609
32722
  Object.defineProperty(EnergyReport.prototype, "validator", {
32610
- get: function() {
32723
+ get: /* @__PURE__ */ __name(function() {
32611
32724
  return validateEnergyReport;
32612
- }
32725
+ }, "get")
32613
32726
  });
32614
32727
 
32615
32728
  // src/models/energyReportShard.js
32616
32729
  var EnergyReportShard = class extends Entity {
32730
+ static {
32731
+ __name(this, "EnergyReportShard");
32732
+ }
32617
32733
  /**
32618
32734
  * @typedef {Object} EnergyReportShardData Shard used for Energy Reports
32619
32735
  * @property {string} id - Identifier of the object.
@@ -32688,13 +32804,16 @@ Object.defineProperty(EnergyReportShard.prototype, "schema", {
32688
32804
  }
32689
32805
  });
32690
32806
  Object.defineProperty(EnergyReportShard.prototype, "validator", {
32691
- get: function() {
32807
+ get: /* @__PURE__ */ __name(function() {
32692
32808
  return validateEnergyReportShard;
32693
- }
32809
+ }, "get")
32694
32810
  });
32695
32811
 
32696
32812
  // src/models/gateway.js
32697
32813
  var Gateway = class extends Entity {
32814
+ static {
32815
+ __name(this, "Gateway");
32816
+ }
32698
32817
  /**
32699
32818
  * @typedef {Object} GatewayData Any smart gateway that is an entrypoint for controlling devices
32700
32819
  * @property {string} id - Identifier of the object.
@@ -32745,13 +32864,16 @@ Object.defineProperty(Gateway.prototype, "schema", {
32745
32864
  }
32746
32865
  });
32747
32866
  Object.defineProperty(Gateway.prototype, "validator", {
32748
- get: function() {
32867
+ get: /* @__PURE__ */ __name(function() {
32749
32868
  return validateGateway;
32750
- }
32869
+ }, "get")
32751
32870
  });
32752
32871
 
32753
32872
  // src/models/identification.js
32754
32873
  var Identification = class extends Entity {
32874
+ static {
32875
+ __name(this, "Identification");
32876
+ }
32755
32877
  /**
32756
32878
  * @typedef {Object} IdentificationData
32757
32879
  * @property {string} [id] - Identifier of the object.
@@ -32818,13 +32940,16 @@ Object.defineProperty(Identification.prototype, "schema", {
32818
32940
  }
32819
32941
  });
32820
32942
  Object.defineProperty(Identification.prototype, "validator", {
32821
- get: function() {
32943
+ get: /* @__PURE__ */ __name(function() {
32822
32944
  return validateIdentification;
32823
- }
32945
+ }, "get")
32824
32946
  });
32825
32947
 
32826
32948
  // src/models/issue.js
32827
32949
  var Issue = class extends Entity {
32950
+ static {
32951
+ __name(this, "Issue");
32952
+ }
32828
32953
  /**
32829
32954
  * @typedef {Object} IssueData An issue associated with ticketing and concierge.
32830
32955
  * @property {string} id - Identifier of the object.
@@ -32885,13 +33010,16 @@ Object.defineProperty(Issue.prototype, "schema", {
32885
33010
  }
32886
33011
  });
32887
33012
  Object.defineProperty(Issue.prototype, "validator", {
32888
- get: function() {
33013
+ get: /* @__PURE__ */ __name(function() {
32889
33014
  return validateIssue;
32890
- }
33015
+ }, "get")
32891
33016
  });
32892
33017
 
32893
33018
  // src/models/lock.js
32894
33019
  var Lock = class extends Entity {
33020
+ static {
33021
+ __name(this, "Lock");
33022
+ }
32895
33023
  /**
32896
33024
  * @typedef {Object} LockData Any smart lock
32897
33025
  * @property {string} id - Identifier of the object.
@@ -32984,13 +33112,16 @@ Object.defineProperty(Lock.prototype, "schema", {
32984
33112
  }
32985
33113
  });
32986
33114
  Object.defineProperty(Lock.prototype, "validator", {
32987
- get: function() {
33115
+ get: /* @__PURE__ */ __name(function() {
32988
33116
  return validateLock;
32989
- }
33117
+ }, "get")
32990
33118
  });
32991
33119
 
32992
33120
  // src/models/log.js
32993
33121
  var Log = class extends Entity {
33122
+ static {
33123
+ __name(this, "Log");
33124
+ }
32994
33125
  /**
32995
33126
  * @typedef {Object} LogData
32996
33127
  * @property {"log"} [type] - Default: "log"
@@ -33076,13 +33207,16 @@ Object.defineProperty(Log.prototype, "schema", {
33076
33207
  }
33077
33208
  });
33078
33209
  Object.defineProperty(Log.prototype, "validator", {
33079
- get: function() {
33210
+ get: /* @__PURE__ */ __name(function() {
33080
33211
  return validateLog;
33081
- }
33212
+ }, "get")
33082
33213
  });
33083
33214
 
33084
33215
  // src/models/mediaFile.js
33085
33216
  var MediaFile = class extends Entity {
33217
+ static {
33218
+ __name(this, "MediaFile");
33219
+ }
33086
33220
  /**
33087
33221
  * @typedef {Object} MediaFileData Any media file
33088
33222
  * @property {string} [id] - Identifier of the object.
@@ -33172,13 +33306,16 @@ Object.defineProperty(MediaFile.prototype, "schema", {
33172
33306
  }
33173
33307
  });
33174
33308
  Object.defineProperty(MediaFile.prototype, "validator", {
33175
- get: function() {
33309
+ get: /* @__PURE__ */ __name(function() {
33176
33310
  return validateMediaFile;
33177
- }
33311
+ }, "get")
33178
33312
  });
33179
33313
 
33180
33314
  // src/models/mediaSource.js
33181
33315
  var MediaSource = class extends Entity {
33316
+ static {
33317
+ __name(this, "MediaSource");
33318
+ }
33182
33319
  /**
33183
33320
  * @typedef {Object} MediaSourceData Any media source
33184
33321
  * @property {string} id - Identifier of the object.
@@ -33430,13 +33567,16 @@ Object.defineProperty(MediaSource.prototype, "schema", {
33430
33567
  }
33431
33568
  });
33432
33569
  Object.defineProperty(MediaSource.prototype, "validator", {
33433
- get: function() {
33570
+ get: /* @__PURE__ */ __name(function() {
33434
33571
  return validateMediaSource;
33435
- }
33572
+ }, "get")
33436
33573
  });
33437
33574
 
33438
33575
  // src/models/motionSensor.js
33439
33576
  var MotionSensor = class extends Entity {
33577
+ static {
33578
+ __name(this, "MotionSensor");
33579
+ }
33440
33580
  /**
33441
33581
  * @typedef {Object} MotionSensorData Any smart motion sensor
33442
33582
  * @property {string} id - Identifier of the object.
@@ -33485,13 +33625,16 @@ Object.defineProperty(MotionSensor.prototype, "schema", {
33485
33625
  }
33486
33626
  });
33487
33627
  Object.defineProperty(MotionSensor.prototype, "validator", {
33488
- get: function() {
33628
+ get: /* @__PURE__ */ __name(function() {
33489
33629
  return validateMotionSensor;
33490
- }
33630
+ }, "get")
33491
33631
  });
33492
33632
 
33493
33633
  // src/models/order.js
33494
33634
  var Order = class extends Entity {
33635
+ static {
33636
+ __name(this, "Order");
33637
+ }
33495
33638
  /**
33496
33639
  * @typedef {Object} OrderData A purchase order for products or services.
33497
33640
  * @property {string} [id] - Identifier of the object.
@@ -33721,13 +33864,16 @@ Object.defineProperty(Order.prototype, "schema", {
33721
33864
  }
33722
33865
  });
33723
33866
  Object.defineProperty(Order.prototype, "validator", {
33724
- get: function() {
33867
+ get: /* @__PURE__ */ __name(function() {
33725
33868
  return validateOrder;
33726
- }
33869
+ }, "get")
33727
33870
  });
33728
33871
 
33729
33872
  // src/models/organization.js
33730
33873
  var Organization = class extends Entity {
33874
+ static {
33875
+ __name(this, "Organization");
33876
+ }
33731
33877
  /**
33732
33878
  * @typedef {Object} OrganizationData An organization is a group or entity that subscribes to Kohost software.
33733
33879
  * @property {string} [id] - Identifier of the object.
@@ -33882,13 +34028,16 @@ Object.defineProperty(Organization.prototype, "schema", {
33882
34028
  }
33883
34029
  });
33884
34030
  Object.defineProperty(Organization.prototype, "validator", {
33885
- get: function() {
34031
+ get: /* @__PURE__ */ __name(function() {
33886
34032
  return validateOrganization;
33887
- }
34033
+ }, "get")
33888
34034
  });
33889
34035
 
33890
34036
  // src/models/payment.js
33891
34037
  var Payment = class extends Entity {
34038
+ static {
34039
+ __name(this, "Payment");
34040
+ }
33892
34041
  /**
33893
34042
  * @typedef {Object} PaymentData
33894
34043
  * @property {string} [id] - Identifier of the object.
@@ -33951,13 +34100,16 @@ Object.defineProperty(Payment.prototype, "schema", {
33951
34100
  }
33952
34101
  });
33953
34102
  Object.defineProperty(Payment.prototype, "validator", {
33954
- get: function() {
34103
+ get: /* @__PURE__ */ __name(function() {
33955
34104
  return validatePayment;
33956
- }
34105
+ }, "get")
33957
34106
  });
33958
34107
 
33959
34108
  // src/models/policy.js
33960
34109
  var Policy = class extends Entity {
34110
+ static {
34111
+ __name(this, "Policy");
34112
+ }
33961
34113
  /**
33962
34114
  * @typedef {Object} PolicyData A policy is a set of permissions that can be applied to a user to limit their access to resources.
33963
34115
  * @property {string} [id] - Identifier of the object.
@@ -34026,13 +34178,16 @@ Object.defineProperty(Policy.prototype, "schema", {
34026
34178
  }
34027
34179
  });
34028
34180
  Object.defineProperty(Policy.prototype, "validator", {
34029
- get: function() {
34181
+ get: /* @__PURE__ */ __name(function() {
34030
34182
  return validatePolicy;
34031
- }
34183
+ }, "get")
34032
34184
  });
34033
34185
 
34034
34186
  // src/models/product.js
34035
34187
  var Product = class extends Entity {
34188
+ static {
34189
+ __name(this, "Product");
34190
+ }
34036
34191
  /**
34037
34192
  * @typedef {Object} ProductData
34038
34193
  * @property {string} [id] - Identifier of the object.
@@ -34089,13 +34244,16 @@ Object.defineProperty(Product.prototype, "schema", {
34089
34244
  }
34090
34245
  });
34091
34246
  Object.defineProperty(Product.prototype, "validator", {
34092
- get: function() {
34247
+ get: /* @__PURE__ */ __name(function() {
34093
34248
  return validateProduct;
34094
- }
34249
+ }, "get")
34095
34250
  });
34096
34251
 
34097
34252
  // src/models/property.js
34098
34253
  var Property = class extends Entity {
34254
+ static {
34255
+ __name(this, "Property");
34256
+ }
34099
34257
  /**
34100
34258
  * @typedef {Object} PropertyData A property is a physical asset or building
34101
34259
  * @property {string} id - Identifier of the object.
@@ -34504,13 +34662,16 @@ Object.defineProperty(Property.prototype, "schema", {
34504
34662
  }
34505
34663
  });
34506
34664
  Object.defineProperty(Property.prototype, "validator", {
34507
- get: function() {
34665
+ get: /* @__PURE__ */ __name(function() {
34508
34666
  return validateProperty;
34509
- }
34667
+ }, "get")
34510
34668
  });
34511
34669
 
34512
34670
  // src/models/reservation.js
34513
34671
  var Reservation = class extends Entity {
34672
+ static {
34673
+ __name(this, "Reservation");
34674
+ }
34514
34675
  /**
34515
34676
  * @typedef {Object} ReservationData
34516
34677
  * @property {string} [id] - Identifier of the object.
@@ -34693,13 +34854,16 @@ Object.defineProperty(Reservation.prototype, "schema", {
34693
34854
  }
34694
34855
  });
34695
34856
  Object.defineProperty(Reservation.prototype, "validator", {
34696
- get: function() {
34857
+ get: /* @__PURE__ */ __name(function() {
34697
34858
  return validateReservation;
34698
- }
34859
+ }, "get")
34699
34860
  });
34700
34861
 
34701
34862
  // src/models/room.js
34702
34863
  var Room = class extends Entity {
34864
+ static {
34865
+ __name(this, "Room");
34866
+ }
34703
34867
  /**
34704
34868
  * @typedef {Object} RoomData A room represents a physical space of controllable IoT devices
34705
34869
  * @property {string} id - Identifier of the object.
@@ -34897,13 +35061,16 @@ Object.defineProperty(Room.prototype, "schema", {
34897
35061
  }
34898
35062
  });
34899
35063
  Object.defineProperty(Room.prototype, "validator", {
34900
- get: function() {
35064
+ get: /* @__PURE__ */ __name(function() {
34901
35065
  return validateRoom;
34902
- }
35066
+ }, "get")
34903
35067
  });
34904
35068
 
34905
35069
  // src/models/scene.js
34906
35070
  var Scene = class extends Entity {
35071
+ static {
35072
+ __name(this, "Scene");
35073
+ }
34907
35074
  /**
34908
35075
  * @typedef {Object} SceneData A room represents a physical space of controllable IoT devices
34909
35076
  * @property {string} id - Identifier of the object.
@@ -35030,13 +35197,16 @@ Object.defineProperty(Scene.prototype, "schema", {
35030
35197
  }
35031
35198
  });
35032
35199
  Object.defineProperty(Scene.prototype, "validator", {
35033
- get: function() {
35200
+ get: /* @__PURE__ */ __name(function() {
35034
35201
  return validateScene;
35035
- }
35202
+ }, "get")
35036
35203
  });
35037
35204
 
35038
35205
  // src/models/shortLink.js
35039
35206
  var ShortLink = class extends Entity {
35207
+ static {
35208
+ __name(this, "ShortLink");
35209
+ }
35040
35210
  /**
35041
35211
  * @typedef {Object} ShortLinkData
35042
35212
  * @property {string} [id] - Identifier of the object.
@@ -35078,13 +35248,16 @@ Object.defineProperty(ShortLink.prototype, "schema", {
35078
35248
  }
35079
35249
  });
35080
35250
  Object.defineProperty(ShortLink.prototype, "validator", {
35081
- get: function() {
35251
+ get: /* @__PURE__ */ __name(function() {
35082
35252
  return validateShortLink;
35083
- }
35253
+ }, "get")
35084
35254
  });
35085
35255
 
35086
35256
  // src/models/smsMessage.js
35087
35257
  var SmsMessage = class extends Entity {
35258
+ static {
35259
+ __name(this, "SmsMessage");
35260
+ }
35088
35261
  /**
35089
35262
  * @typedef {Object} SmsMessageData
35090
35263
  * @property {string} [id] - Identifier of the object.
@@ -35158,13 +35331,16 @@ Object.defineProperty(SmsMessage.prototype, "schema", {
35158
35331
  }
35159
35332
  });
35160
35333
  Object.defineProperty(SmsMessage.prototype, "validator", {
35161
- get: function() {
35334
+ get: /* @__PURE__ */ __name(function() {
35162
35335
  return validateSmsMessage;
35163
- }
35336
+ }, "get")
35164
35337
  });
35165
35338
 
35166
35339
  // src/models/space.js
35167
35340
  var Space = class extends Entity {
35341
+ static {
35342
+ __name(this, "Space");
35343
+ }
35168
35344
  /**
35169
35345
  * @typedef {Object} SpaceData
35170
35346
  * @property {string} [id] - Identifier of the object.
@@ -35340,13 +35516,16 @@ Object.defineProperty(Space.prototype, "schema", {
35340
35516
  }
35341
35517
  });
35342
35518
  Object.defineProperty(Space.prototype, "validator", {
35343
- get: function() {
35519
+ get: /* @__PURE__ */ __name(function() {
35344
35520
  return validateSpace;
35345
- }
35521
+ }, "get")
35346
35522
  });
35347
35523
 
35348
35524
  // src/models/switch.js
35349
35525
  var Switch = class extends Entity {
35526
+ static {
35527
+ __name(this, "Switch");
35528
+ }
35350
35529
  /**
35351
35530
  * @typedef {Object} SwitchData Any smart switch
35352
35531
  * @property {string} id - Identifier of the object.
@@ -35406,13 +35585,16 @@ Object.defineProperty(Switch.prototype, "schema", {
35406
35585
  }
35407
35586
  });
35408
35587
  Object.defineProperty(Switch.prototype, "validator", {
35409
- get: function() {
35588
+ get: /* @__PURE__ */ __name(function() {
35410
35589
  return validateSwitch;
35411
- }
35590
+ }, "get")
35412
35591
  });
35413
35592
 
35414
35593
  // src/models/systemUser.js
35415
35594
  var SystemUser = class extends Entity {
35595
+ static {
35596
+ __name(this, "SystemUser");
35597
+ }
35416
35598
  /**
35417
35599
  * @typedef {Object} SystemUserData A system user is a user that originated from an external 3rd party system.
35418
35600
  * @property {string} [id] - Identifier of the object.
@@ -35519,13 +35701,16 @@ Object.defineProperty(SystemUser.prototype, "schema", {
35519
35701
  }
35520
35702
  });
35521
35703
  Object.defineProperty(SystemUser.prototype, "validator", {
35522
- get: function() {
35704
+ get: /* @__PURE__ */ __name(function() {
35523
35705
  return validateSystemUser;
35524
- }
35706
+ }, "get")
35525
35707
  });
35526
35708
 
35527
35709
  // src/models/thermostat.js
35528
35710
  var Thermostat = class extends Entity {
35711
+ static {
35712
+ __name(this, "Thermostat");
35713
+ }
35529
35714
  /**
35530
35715
  * @typedef {Object} ThermostatData Any smart thermostat
35531
35716
  * @property {string} id - Identifier of the object.
@@ -35685,13 +35870,16 @@ Object.defineProperty(Thermostat.prototype, "schema", {
35685
35870
  }
35686
35871
  });
35687
35872
  Object.defineProperty(Thermostat.prototype, "validator", {
35688
- get: function() {
35873
+ get: /* @__PURE__ */ __name(function() {
35689
35874
  return validateThermostat;
35690
- }
35875
+ }, "get")
35691
35876
  });
35692
35877
 
35693
35878
  // src/models/ticket.js
35694
35879
  var Ticket = class extends Entity {
35880
+ static {
35881
+ __name(this, "Ticket");
35882
+ }
35695
35883
  /**
35696
35884
  * @typedef {Object} TicketData A ticket is a request from a user.
35697
35885
  * @property {string} id - Identifier of the object.
@@ -35895,13 +36083,16 @@ Object.defineProperty(Ticket.prototype, "schema", {
35895
36083
  }
35896
36084
  });
35897
36085
  Object.defineProperty(Ticket.prototype, "validator", {
35898
- get: function() {
36086
+ get: /* @__PURE__ */ __name(function() {
35899
36087
  return validateTicket;
35900
- }
36088
+ }, "get")
35901
36089
  });
35902
36090
 
35903
36091
  // src/models/timeSheet.js
35904
36092
  var TimeSheet = class extends Entity {
36093
+ static {
36094
+ __name(this, "TimeSheet");
36095
+ }
35905
36096
  /**
35906
36097
  * @typedef {Object} TimeSheetData
35907
36098
  * @property {string} [id] - Identifier of the object.
@@ -35966,13 +36157,16 @@ Object.defineProperty(TimeSheet.prototype, "schema", {
35966
36157
  }
35967
36158
  });
35968
36159
  Object.defineProperty(TimeSheet.prototype, "validator", {
35969
- get: function() {
36160
+ get: /* @__PURE__ */ __name(function() {
35970
36161
  return validateTimeSheet;
35971
- }
36162
+ }, "get")
35972
36163
  });
35973
36164
 
35974
36165
  // src/models/user.js
35975
36166
  var User = class extends Entity {
36167
+ static {
36168
+ __name(this, "User");
36169
+ }
35976
36170
  /**
35977
36171
  * @typedef {Object} UserData
35978
36172
  * @property {string} [id] - Identifier of the object.
@@ -36178,13 +36372,16 @@ Object.defineProperty(User.prototype, "schema", {
36178
36372
  }
36179
36373
  });
36180
36374
  Object.defineProperty(User.prototype, "validator", {
36181
- get: function() {
36375
+ get: /* @__PURE__ */ __name(function() {
36182
36376
  return validateUser;
36183
- }
36377
+ }, "get")
36184
36378
  });
36185
36379
 
36186
36380
  // src/models/vendor.js
36187
36381
  var Vendor = class extends Entity {
36382
+ static {
36383
+ __name(this, "Vendor");
36384
+ }
36188
36385
  /**
36189
36386
  * @typedef {Object} VendorData
36190
36387
  * @property {string} [id] - Identifier of the object.
@@ -36235,13 +36432,16 @@ Object.defineProperty(Vendor.prototype, "schema", {
36235
36432
  }
36236
36433
  });
36237
36434
  Object.defineProperty(Vendor.prototype, "validator", {
36238
- get: function() {
36435
+ get: /* @__PURE__ */ __name(function() {
36239
36436
  return validateVendor;
36240
- }
36437
+ }, "get")
36241
36438
  });
36242
36439
 
36243
36440
  // src/models/windowCovering.js
36244
36441
  var WindowCovering = class extends Entity {
36442
+ static {
36443
+ __name(this, "WindowCovering");
36444
+ }
36245
36445
  /**
36246
36446
  * @typedef {Object} WindowCoveringData Any smart window covering
36247
36447
  * @property {string} id - Identifier of the object.
@@ -36308,9 +36508,9 @@ Object.defineProperty(WindowCovering.prototype, "schema", {
36308
36508
  }
36309
36509
  });
36310
36510
  Object.defineProperty(WindowCovering.prototype, "validator", {
36311
- get: function() {
36511
+ get: /* @__PURE__ */ __name(function() {
36312
36512
  return validateWindowCovering;
36313
- }
36513
+ }, "get")
36314
36514
  });
36315
36515
 
36316
36516
  export {
@@ -36356,4 +36556,4 @@ export {
36356
36556
  Vendor,
36357
36557
  WindowCovering
36358
36558
  };
36359
- //# sourceMappingURL=chunk-KBBL6OJS.js.map
36559
+ //# sourceMappingURL=chunk-SLDNFNED.js.map