@kohost/api-client 4.0.4 → 4.0.6

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 (56) 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-KBBL6OJS.js → chunk-SLDNFNED.js} +290 -90
  5. package/dist/{chunk-KBBL6OJS.js.map → chunk-SLDNFNED.js.map} +1 -1
  6. package/dist/{chunk-36WNTEIW.js → chunk-SORMAXAX.js} +35 -2
  7. package/dist/{chunk-36WNTEIW.js.map → chunk-SORMAXAX.js.map} +1 -1
  8. package/dist/{chunk-MYWOGDCQ.js → chunk-TBEXLKDH.js} +25 -21
  9. package/dist/chunk-TBEXLKDH.js.map +1 -0
  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 +16 -12
  25. package/dist/events.cjs.map +1 -1
  26. package/dist/events.d.cts +7 -7
  27. package/dist/events.d.ts +7 -7
  28. package/dist/events.js +14 -14
  29. package/dist/index.cjs +1110 -108
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +21 -21
  32. package/dist/index.d.ts +21 -21
  33. package/dist/index.js +1110 -108
  34. package/dist/index.js.map +1 -1
  35. package/dist/models.cjs +292 -86
  36. package/dist/models.cjs.map +1 -1
  37. package/dist/models.js +3 -3
  38. package/dist/socketIoClient.cjs +7 -3
  39. package/dist/socketIoClient.cjs.map +1 -1
  40. package/dist/socketIoClient.d.cts +1 -1
  41. package/dist/socketIoClient.d.ts +1 -1
  42. package/dist/socketIoClient.js +9 -4
  43. package/dist/socketIoClient.js.map +1 -1
  44. package/dist/useCases.cjs +640 -0
  45. package/dist/useCases.cjs.map +1 -1
  46. package/dist/useCases.js +640 -2
  47. package/dist/useCases.js.map +1 -1
  48. package/dist/utils.cjs +340 -98
  49. package/dist/utils.cjs.map +1 -1
  50. package/dist/utils.d.cts +2 -2
  51. package/dist/utils.d.ts +2 -2
  52. package/dist/utils.js +10 -5
  53. package/dist/utils.js.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/chunk-MYWOGDCQ.js.map +0 -1
  56. /package/dist/{chunk-HKJ2B2AA.js.map → chunk-FU4IK6I4.js.map} +0 -0
package/dist/models.cjs CHANGED
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
6
  var __commonJS = (cb, mod) => function __require() {
6
7
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
7
8
  };
@@ -23,7 +24,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
24
  var require_fast_deep_equal = __commonJS({
24
25
  "node_modules/fast-deep-equal/index.js"(exports, module2) {
25
26
  "use strict";
26
- module2.exports = function equal(a, b) {
27
+ module2.exports = /* @__PURE__ */ __name(function equal(a, b) {
27
28
  if (a === b) return true;
28
29
  if (a && b && typeof a == "object" && typeof b == "object") {
29
30
  if (a.constructor !== b.constructor) return false;
@@ -50,7 +51,7 @@ var require_fast_deep_equal = __commonJS({
50
51
  return true;
51
52
  }
52
53
  return a !== a && b !== b;
53
- };
54
+ }, "equal");
54
55
  }
55
56
  });
56
57
 
@@ -86,6 +87,7 @@ var require_ucs2length = __commonJS({
86
87
  }
87
88
  return length;
88
89
  }
90
+ __name(ucs2length, "ucs2length");
89
91
  exports.default = ucs2length;
90
92
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
91
93
  }
@@ -100,6 +102,7 @@ var require_formats = __commonJS({
100
102
  function fmtDef(validate, compare) {
101
103
  return { validate, compare };
102
104
  }
105
+ __name(fmtDef, "fmtDef");
103
106
  exports.fullFormats = {
104
107
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
105
108
  date: fmtDef(date, compareDate),
@@ -166,6 +169,7 @@ var require_formats = __commonJS({
166
169
  function isLeapYear(year) {
167
170
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
168
171
  }
172
+ __name(isLeapYear, "isLeapYear");
169
173
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
170
174
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
171
175
  function date(str) {
@@ -177,6 +181,7 @@ var require_formats = __commonJS({
177
181
  const day = +matches[3];
178
182
  return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
179
183
  }
184
+ __name(date, "date");
180
185
  function compareDate(d1, d2) {
181
186
  if (!(d1 && d2))
182
187
  return void 0;
@@ -186,9 +191,10 @@ var require_formats = __commonJS({
186
191
  return -1;
187
192
  return 0;
188
193
  }
194
+ __name(compareDate, "compareDate");
189
195
  var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
190
196
  function getTime(strictTimeZone) {
191
- return function time(str) {
197
+ return /* @__PURE__ */ __name(function time(str) {
192
198
  const matches = TIME.exec(str);
193
199
  if (!matches)
194
200
  return false;
@@ -206,8 +212,9 @@ var require_formats = __commonJS({
206
212
  const utcMin = min - tzM * tzSign;
207
213
  const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
208
214
  return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
209
- };
215
+ }, "time");
210
216
  }
217
+ __name(getTime, "getTime");
211
218
  function compareTime(s1, s2) {
212
219
  if (!(s1 && s2))
213
220
  return void 0;
@@ -217,6 +224,7 @@ var require_formats = __commonJS({
217
224
  return void 0;
218
225
  return t1 - t2;
219
226
  }
227
+ __name(compareTime, "compareTime");
220
228
  function compareIsoTime(t1, t2) {
221
229
  if (!(t1 && t2))
222
230
  return void 0;
@@ -232,14 +240,16 @@ var require_formats = __commonJS({
232
240
  return -1;
233
241
  return 0;
234
242
  }
243
+ __name(compareIsoTime, "compareIsoTime");
235
244
  var DATE_TIME_SEPARATOR = /t|\s/i;
236
245
  function getDateTime(strictTimeZone) {
237
246
  const time = getTime(strictTimeZone);
238
- return function date_time(str) {
247
+ return /* @__PURE__ */ __name(function date_time(str) {
239
248
  const dateTime = str.split(DATE_TIME_SEPARATOR);
240
249
  return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
241
- };
250
+ }, "date_time");
242
251
  }
252
+ __name(getDateTime, "getDateTime");
243
253
  function compareDateTime(dt1, dt2) {
244
254
  if (!(dt1 && dt2))
245
255
  return void 0;
@@ -249,6 +259,7 @@ var require_formats = __commonJS({
249
259
  return void 0;
250
260
  return d1 - d2;
251
261
  }
262
+ __name(compareDateTime, "compareDateTime");
252
263
  function compareIsoDateTime(dt1, dt2) {
253
264
  if (!(dt1 && dt2))
254
265
  return void 0;
@@ -259,27 +270,33 @@ var require_formats = __commonJS({
259
270
  return void 0;
260
271
  return res || compareTime(t1, t2);
261
272
  }
273
+ __name(compareIsoDateTime, "compareIsoDateTime");
262
274
  var NOT_URI_FRAGMENT = /\/|:/;
263
275
  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;
264
276
  function uri(str) {
265
277
  return NOT_URI_FRAGMENT.test(str) && URI.test(str);
266
278
  }
279
+ __name(uri, "uri");
267
280
  var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
268
281
  function byte(str) {
269
282
  BYTE.lastIndex = 0;
270
283
  return BYTE.test(str);
271
284
  }
285
+ __name(byte, "byte");
272
286
  var MIN_INT32 = -(2 ** 31);
273
287
  var MAX_INT32 = 2 ** 31 - 1;
274
288
  function validateInt32(value) {
275
289
  return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
276
290
  }
291
+ __name(validateInt32, "validateInt32");
277
292
  function validateInt64(value) {
278
293
  return Number.isInteger(value);
279
294
  }
295
+ __name(validateInt64, "validateInt64");
280
296
  function validateNumber() {
281
297
  return true;
282
298
  }
299
+ __name(validateNumber, "validateNumber");
283
300
  var Z_ANCHOR = /[^\\]\\Z/;
284
301
  function regex(str) {
285
302
  if (Z_ANCHOR.test(str))
@@ -291,6 +308,7 @@ var require_formats = __commonJS({
291
308
  return false;
292
309
  }
293
310
  }
311
+ __name(regex, "regex");
294
312
  }
295
313
  });
296
314
 
@@ -343,6 +361,9 @@ module.exports = __toCommonJS(models_exports);
343
361
 
344
362
  // src/errors/appError.js
345
363
  var AppError = class _AppError extends Error {
364
+ static {
365
+ __name(this, "AppError");
366
+ }
346
367
  constructor(message = "Internal Server Error", options) {
347
368
  super(message, options);
348
369
  this.type = this.constructor.name;
@@ -354,6 +375,9 @@ var AppError = class _AppError extends Error {
354
375
 
355
376
  // src/errors/validationError.js
356
377
  var ValidationError = class _ValidationError extends AppError {
378
+ static {
379
+ __name(this, "ValidationError");
380
+ }
357
381
  constructor(message = "Validation Error", options = {}) {
358
382
  super(message, options);
359
383
  this.statusCode = 400;
@@ -364,6 +388,9 @@ var ValidationError = class _ValidationError extends AppError {
364
388
 
365
389
  // src/models/entity.js
366
390
  var Entity = class {
391
+ static {
392
+ __name(this, "Entity");
393
+ }
367
394
  constructor(data) {
368
395
  if (!this.schema) {
369
396
  throw new Error("Schema is not defined");
@@ -682,6 +709,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
682
709
  validate12.errors = vErrors;
683
710
  return errors === 0;
684
711
  }
712
+ __name(validate12, "validate12");
685
713
  function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
686
714
  let vErrors = null;
687
715
  let errors = 0;
@@ -1536,6 +1564,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1536
1564
  validate10.errors = vErrors;
1537
1565
  return errors === 0;
1538
1566
  }
1567
+ __name(validate10, "validate10");
1539
1568
  var validateAnnouncement = validate14;
1540
1569
  var schema21 = {
1541
1570
  $schema: "http://json-schema.org/draft-07/schema",
@@ -2084,6 +2113,7 @@ function validate15(data, { instancePath = "", parentData, parentDataProperty, r
2084
2113
  validate15.errors = vErrors;
2085
2114
  return errors === 0;
2086
2115
  }
2116
+ __name(validate15, "validate15");
2087
2117
  function validate14(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2088
2118
  let vErrors = null;
2089
2119
  let errors = 0;
@@ -2432,6 +2462,7 @@ function validate14(data, { instancePath = "", parentData, parentDataProperty, r
2432
2462
  validate14.errors = vErrors;
2433
2463
  return errors === 0;
2434
2464
  }
2465
+ __name(validate14, "validate14");
2435
2466
  var validateCamera = validate17;
2436
2467
  var schema29 = {
2437
2468
  $schema: "http://json-schema.org/draft-07/schema",
@@ -2627,6 +2658,7 @@ function validate18(data, { instancePath = "", parentData, parentDataProperty, r
2627
2658
  validate18.errors = vErrors;
2628
2659
  return errors === 0;
2629
2660
  }
2661
+ __name(validate18, "validate18");
2630
2662
  function validate17(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
2631
2663
  let vErrors = null;
2632
2664
  let errors = 0;
@@ -3348,6 +3380,7 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
3348
3380
  validate17.errors = vErrors;
3349
3381
  return errors === 0;
3350
3382
  }
3383
+ __name(validate17, "validate17");
3351
3384
  var validateCategory = validate20;
3352
3385
  var schema38 = {
3353
3386
  $schema: "http://json-schema.org/draft-07/schema",
@@ -3686,6 +3719,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
3686
3719
  validate20.errors = vErrors;
3687
3720
  return errors === 0;
3688
3721
  }
3722
+ __name(validate20, "validate20");
3689
3723
  var validateCourtesy = validate22;
3690
3724
  var schema42 = {
3691
3725
  $schema: "http://json-schema.org/draft-07/schema",
@@ -3822,6 +3856,7 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
3822
3856
  validate23.errors = vErrors;
3823
3857
  return errors === 0;
3824
3858
  }
3859
+ __name(validate23, "validate23");
3825
3860
  function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3826
3861
  let vErrors = null;
3827
3862
  let errors = 0;
@@ -4294,6 +4329,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
4294
4329
  validate22.errors = vErrors;
4295
4330
  return errors === 0;
4296
4331
  }
4332
+ __name(validate22, "validate22");
4297
4333
  var validateCredential = validate25;
4298
4334
  var schema52 = {
4299
4335
  $schema: "http://json-schema.org/draft-07/schema",
@@ -4668,6 +4704,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
4668
4704
  validate25.errors = vErrors;
4669
4705
  return errors === 0;
4670
4706
  }
4707
+ __name(validate25, "validate25");
4671
4708
  var validateDeviceRouter = validate26;
4672
4709
  var schema56 = {
4673
4710
  $schema: "http://json-schema.org/draft-07/schema",
@@ -4881,6 +4918,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
4881
4918
  validate26.errors = vErrors;
4882
4919
  return errors === 0;
4883
4920
  }
4921
+ __name(validate26, "validate26");
4884
4922
  var validateDimmer = validate27;
4885
4923
  var schema58 = {
4886
4924
  $schema: "http://json-schema.org/draft-07/schema",
@@ -5011,6 +5049,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
5011
5049
  validate28.errors = vErrors;
5012
5050
  return errors === 0;
5013
5051
  }
5052
+ __name(validate28, "validate28");
5014
5053
  function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5015
5054
  let vErrors = null;
5016
5055
  let errors = 0;
@@ -5421,6 +5460,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
5421
5460
  validate27.errors = vErrors;
5422
5461
  return errors === 0;
5423
5462
  }
5463
+ __name(validate27, "validate27");
5424
5464
  var validateDiscoveredDevice = validate30;
5425
5465
  var schema67 = {
5426
5466
  $schema: "http://json-schema.org/draft-07/schema",
@@ -5762,6 +5802,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
5762
5802
  validate30.errors = vErrors;
5763
5803
  return errors === 0;
5764
5804
  }
5805
+ __name(validate30, "validate30");
5765
5806
  var validateEmailMessage = validate31;
5766
5807
  var schema70 = {
5767
5808
  $schema: "http://json-schema.org/draft-07/schema",
@@ -6284,6 +6325,7 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
6284
6325
  validate31.errors = vErrors;
6285
6326
  return errors === 0;
6286
6327
  }
6328
+ __name(validate31, "validate31");
6287
6329
  var validateEnergyReport = validate32;
6288
6330
  var schema75 = {
6289
6331
  $schema: "http://json-schema.org/draft-07/schema",
@@ -7132,6 +7174,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
7132
7174
  validate32.errors = vErrors;
7133
7175
  return errors === 0;
7134
7176
  }
7177
+ __name(validate32, "validate32");
7135
7178
  var validateEnergyReportShard = validate33;
7136
7179
  var schema80 = {
7137
7180
  $schema: "http://json-schema.org/draft-07/schema",
@@ -7938,6 +7981,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
7938
7981
  validate33.errors = vErrors;
7939
7982
  return errors === 0;
7940
7983
  }
7984
+ __name(validate33, "validate33");
7941
7985
  var validateGateway = validate34;
7942
7986
  function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
7943
7987
  let vErrors = null;
@@ -8046,6 +8090,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8046
8090
  validate35.errors = vErrors;
8047
8091
  return errors === 0;
8048
8092
  }
8093
+ __name(validate35, "validate35");
8049
8094
  function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
8050
8095
  let vErrors = null;
8051
8096
  let errors = 0;
@@ -8389,6 +8434,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
8389
8434
  validate34.errors = vErrors;
8390
8435
  return errors === 0;
8391
8436
  }
8437
+ __name(validate34, "validate34");
8392
8438
  var validateIdentification = validate37;
8393
8439
  var schema95 = {
8394
8440
  $schema: "http://json-schema.org/draft-07/schema",
@@ -8808,6 +8854,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
8808
8854
  validate37.errors = vErrors;
8809
8855
  return errors === 0;
8810
8856
  }
8857
+ __name(validate37, "validate37");
8811
8858
  var validateIssue = validate38;
8812
8859
  var schema98 = {
8813
8860
  $schema: "http://json-schema.org/draft-07/schema",
@@ -9219,6 +9266,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
9219
9266
  validate38.errors = vErrors;
9220
9267
  return errors === 0;
9221
9268
  }
9269
+ __name(validate38, "validate38");
9222
9270
  var validateLock = validate45;
9223
9271
  var schema110 = {
9224
9272
  $schema: "http://json-schema.org/draft-07/schema",
@@ -9379,6 +9427,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
9379
9427
  validate46.errors = vErrors;
9380
9428
  return errors === 0;
9381
9429
  }
9430
+ __name(validate46, "validate46");
9382
9431
  function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
9383
9432
  let vErrors = null;
9384
9433
  let errors = 0;
@@ -9919,6 +9968,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
9919
9968
  validate45.errors = vErrors;
9920
9969
  return errors === 0;
9921
9970
  }
9971
+ __name(validate45, "validate45");
9922
9972
  var validateLog = validate48;
9923
9973
  var schema120 = {
9924
9974
  $schema: "http://json-schema.org/draft-07/schema",
@@ -10566,6 +10616,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
10566
10616
  validate48.errors = vErrors;
10567
10617
  return errors === 0;
10568
10618
  }
10619
+ __name(validate48, "validate48");
10569
10620
  var validateMediaFile = validate15;
10570
10621
  var validateMediaSource = validate49;
10571
10622
  var schema121 = {
@@ -10862,6 +10913,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
10862
10913
  validate50.errors = vErrors;
10863
10914
  return errors === 0;
10864
10915
  }
10916
+ __name(validate50, "validate50");
10865
10917
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
10866
10918
  let vErrors = null;
10867
10919
  let errors = 0;
@@ -11835,6 +11887,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
11835
11887
  validate49.errors = vErrors;
11836
11888
  return errors === 0;
11837
11889
  }
11890
+ __name(validate49, "validate49");
11838
11891
  var validateMotionSensor = validate52;
11839
11892
  function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
11840
11893
  let vErrors = null;
@@ -11943,6 +11996,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
11943
11996
  validate53.errors = vErrors;
11944
11997
  return errors === 0;
11945
11998
  }
11999
+ __name(validate53, "validate53");
11946
12000
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
11947
12001
  let vErrors = null;
11948
12002
  let errors = 0;
@@ -12271,6 +12325,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
12271
12325
  validate52.errors = vErrors;
12272
12326
  return errors === 0;
12273
12327
  }
12328
+ __name(validate52, "validate52");
12274
12329
  var validateOrder = validate55;
12275
12330
  var schema141 = {
12276
12331
  $schema: "http://json-schema.org/draft-07/schema",
@@ -13605,6 +13660,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
13605
13660
  validate55.errors = vErrors;
13606
13661
  return errors === 0;
13607
13662
  }
13663
+ __name(validate55, "validate55");
13608
13664
  var validateOrganization = validate56;
13609
13665
  var schema147 = {
13610
13666
  $schema: "http://json-schema.org/draft-07/schema",
@@ -14534,6 +14590,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
14534
14590
  validate56.errors = vErrors;
14535
14591
  return errors === 0;
14536
14592
  }
14593
+ __name(validate56, "validate56");
14537
14594
  var validatePayment = validate57;
14538
14595
  var schema151 = {
14539
14596
  $schema: "http://json-schema.org/draft-07/schema",
@@ -14792,6 +14849,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
14792
14849
  validate57.errors = vErrors;
14793
14850
  return errors === 0;
14794
14851
  }
14852
+ __name(validate57, "validate57");
14795
14853
  var validatePolicy = validate58;
14796
14854
  var schema154 = {
14797
14855
  $schema: "http://json-schema.org/draft-07/schema",
@@ -15308,6 +15366,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
15308
15366
  validate58.errors = vErrors;
15309
15367
  return errors === 0;
15310
15368
  }
15369
+ __name(validate58, "validate58");
15311
15370
  var validateProduct = validate59;
15312
15371
  var schema156 = {
15313
15372
  $schema: "http://json-schema.org/draft-07/schema",
@@ -15650,6 +15709,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
15650
15709
  validate59.errors = vErrors;
15651
15710
  return errors === 0;
15652
15711
  }
15712
+ __name(validate59, "validate59");
15653
15713
  var validateProperty = validate61;
15654
15714
  var schema160 = {
15655
15715
  $schema: "http://json-schema.org/draft-07/schema",
@@ -18388,6 +18448,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18388
18448
  validate61.errors = vErrors;
18389
18449
  return errors === 0;
18390
18450
  }
18451
+ __name(validate61, "validate61");
18391
18452
  var validateReservation = validate63;
18392
18453
  var schema163 = {
18393
18454
  $schema: "http://json-schema.org/draft-07/schema",
@@ -18666,6 +18727,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18666
18727
  validate64.errors = vErrors;
18667
18728
  return errors === 0;
18668
18729
  }
18730
+ __name(validate64, "validate64");
18669
18731
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
18670
18732
  let vErrors = null;
18671
18733
  let errors = 0;
@@ -19527,6 +19589,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
19527
19589
  validate63.errors = vErrors;
19528
19590
  return errors === 0;
19529
19591
  }
19592
+ __name(validate63, "validate63");
19530
19593
  var validateRoom = validate66;
19531
19594
  var schema170 = {
19532
19595
  $schema: "http://json-schema.org/draft-07/schema",
@@ -19702,6 +19765,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19702
19765
  validate69.errors = vErrors;
19703
19766
  return errors === 0;
19704
19767
  }
19768
+ __name(validate69, "validate69");
19705
19769
  function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
19706
19770
  let vErrors = null;
19707
19771
  let errors = 0;
@@ -20128,6 +20192,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
20128
20192
  validate68.errors = vErrors;
20129
20193
  return errors === 0;
20130
20194
  }
20195
+ __name(validate68, "validate68");
20131
20196
  var schema181 = {
20132
20197
  $schema: "http://json-schema.org/draft-07/schema",
20133
20198
  $id: "thermostat.json",
@@ -20327,6 +20392,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
20327
20392
  validate73.errors = vErrors;
20328
20393
  return errors === 0;
20329
20394
  }
20395
+ __name(validate73, "validate73");
20330
20396
  var schema193 = { type: ["number", "null"], minimum: 0, maximum: 99 };
20331
20397
  function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
20332
20398
  let vErrors = null;
@@ -20516,6 +20582,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
20516
20582
  validate75.errors = vErrors;
20517
20583
  return errors === 0;
20518
20584
  }
20585
+ __name(validate75, "validate75");
20519
20586
  function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
20520
20587
  let vErrors = null;
20521
20588
  let errors = 0;
@@ -21528,6 +21595,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
21528
21595
  validate72.errors = vErrors;
21529
21596
  return errors === 0;
21530
21597
  }
21598
+ __name(validate72, "validate72");
21531
21599
  var schema198 = {
21532
21600
  $schema: "http://json-schema.org/draft-07/schema",
21533
21601
  $id: "windowCovering.json",
@@ -21665,6 +21733,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
21665
21733
  validate82.errors = vErrors;
21666
21734
  return errors === 0;
21667
21735
  }
21736
+ __name(validate82, "validate82");
21668
21737
  function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
21669
21738
  let vErrors = null;
21670
21739
  let errors = 0;
@@ -22110,6 +22179,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
22110
22179
  validate81.errors = vErrors;
22111
22180
  return errors === 0;
22112
22181
  }
22182
+ __name(validate81, "validate81");
22113
22183
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22114
22184
  let vErrors = null;
22115
22185
  let errors = 0;
@@ -22726,6 +22796,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
22726
22796
  validate66.errors = vErrors;
22727
22797
  return errors === 0;
22728
22798
  }
22799
+ __name(validate66, "validate66");
22729
22800
  var validateScene = validate90;
22730
22801
  var schema210 = {
22731
22802
  $schema: "http://json-schema.org/draft-07/schema",
@@ -22876,6 +22947,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
22876
22947
  validate91.errors = vErrors;
22877
22948
  return errors === 0;
22878
22949
  }
22950
+ __name(validate91, "validate91");
22879
22951
  function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22880
22952
  let vErrors = null;
22881
22953
  let errors = 0;
@@ -22948,6 +23020,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
22948
23020
  validate93.errors = vErrors;
22949
23021
  return errors === 0;
22950
23022
  }
23023
+ __name(validate93, "validate93");
22951
23024
  function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22952
23025
  let vErrors = null;
22953
23026
  let errors = 0;
@@ -22984,6 +23057,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
22984
23057
  validate98.errors = vErrors;
22985
23058
  return errors === 0;
22986
23059
  }
23060
+ __name(validate98, "validate98");
22987
23061
  function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
22988
23062
  let vErrors = null;
22989
23063
  let errors = 0;
@@ -24158,6 +24232,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
24158
24232
  validate90.errors = vErrors;
24159
24233
  return errors === 0;
24160
24234
  }
24235
+ __name(validate90, "validate90");
24161
24236
  var validateShortLink = validate100;
24162
24237
  var schema228 = {
24163
24238
  $schema: "http://json-schema.org/draft-07/schema",
@@ -24388,6 +24463,7 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
24388
24463
  validate100.errors = vErrors;
24389
24464
  return errors === 0;
24390
24465
  }
24466
+ __name(validate100, "validate100");
24391
24467
  var validateSmsMessage = validate101;
24392
24468
  var schema231 = {
24393
24469
  $schema: "http://json-schema.org/draft-07/schema",
@@ -24854,6 +24930,7 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
24854
24930
  validate101.errors = vErrors;
24855
24931
  return errors === 0;
24856
24932
  }
24933
+ __name(validate101, "validate101");
24857
24934
  var validateSpace = validate102;
24858
24935
  var schema236 = {
24859
24936
  $schema: "http://json-schema.org/draft-07/schema",
@@ -25019,6 +25096,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
25019
25096
  validate103.errors = vErrors;
25020
25097
  return errors === 0;
25021
25098
  }
25099
+ __name(validate103, "validate103");
25022
25100
  function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
25023
25101
  let vErrors = null;
25024
25102
  let errors = 0;
@@ -25916,6 +25994,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
25916
25994
  validate102.errors = vErrors;
25917
25995
  return errors === 0;
25918
25996
  }
25997
+ __name(validate102, "validate102");
25919
25998
  var validateSwitch = validate68;
25920
25999
  var validateSystemUser = validate108;
25921
26000
  var schema241 = {
@@ -26146,6 +26225,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
26146
26225
  validate112.errors = vErrors;
26147
26226
  return errors === 0;
26148
26227
  }
26228
+ __name(validate112, "validate112");
26149
26229
  function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
26150
26230
  let vErrors = null;
26151
26231
  let errors = 0;
@@ -27024,6 +27104,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
27024
27104
  validate108.errors = vErrors;
27025
27105
  return errors === 0;
27026
27106
  }
27107
+ __name(validate108, "validate108");
27027
27108
  var validateThermostat = validate72;
27028
27109
  var validateTicket = validate39;
27029
27110
  var schema100 = {
@@ -29024,6 +29105,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
29024
29105
  validate39.errors = vErrors;
29025
29106
  return errors === 0;
29026
29107
  }
29108
+ __name(validate39, "validate39");
29027
29109
  var validateTimeSheet = validate114;
29028
29110
  var schema250 = {
29029
29111
  $schema: "http://json-schema.org/draft-07/schema",
@@ -29594,6 +29676,7 @@ function validate114(data, { instancePath = "", parentData, parentDataProperty,
29594
29676
  validate114.errors = vErrors;
29595
29677
  return errors === 0;
29596
29678
  }
29679
+ __name(validate114, "validate114");
29597
29680
  var validateUser = validate115;
29598
29681
  var schema254 = {
29599
29682
  $schema: "http://json-schema.org/draft-07/schema",
@@ -29883,6 +29966,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
29883
29966
  validate122.errors = vErrors;
29884
29967
  return errors === 0;
29885
29968
  }
29969
+ __name(validate122, "validate122");
29886
29970
  function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
29887
29971
  let vErrors = null;
29888
29972
  let errors = 0;
@@ -31320,6 +31404,7 @@ function validate115(data, { instancePath = "", parentData, parentDataProperty,
31320
31404
  validate115.errors = vErrors;
31321
31405
  return errors === 0;
31322
31406
  }
31407
+ __name(validate115, "validate115");
31323
31408
  var validateVendor = validate124;
31324
31409
  var schema261 = {
31325
31410
  $schema: "http://json-schema.org/draft-07/schema",
@@ -31834,10 +31919,14 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
31834
31919
  validate124.errors = vErrors;
31835
31920
  return errors === 0;
31836
31921
  }
31922
+ __name(validate124, "validate124");
31837
31923
  var validateWindowCovering = validate81;
31838
31924
 
31839
31925
  // src/models/alarm.js
31840
31926
  var Alarm = class extends Entity {
31927
+ static {
31928
+ __name(this, "Alarm");
31929
+ }
31841
31930
  /**
31842
31931
  * @typedef {Object} AlarmData Any smart alarm system
31843
31932
  * @property {string} id - Identifier of the object.
@@ -31932,13 +32021,16 @@ Object.defineProperty(Alarm.prototype, "schema", {
31932
32021
  }
31933
32022
  });
31934
32023
  Object.defineProperty(Alarm.prototype, "validator", {
31935
- get: function() {
32024
+ get: /* @__PURE__ */ __name(function() {
31936
32025
  return validateAlarm;
31937
- }
32026
+ }, "get")
31938
32027
  });
31939
32028
 
31940
32029
  // src/models/announcement.js
31941
32030
  var Announcement = class extends Entity {
32031
+ static {
32032
+ __name(this, "Announcement");
32033
+ }
31942
32034
  /**
31943
32035
  * @typedef {Object} AnnouncementData Announcement message sent to users
31944
32036
  * @property {string} [id] - Identifier of the object.
@@ -31993,13 +32085,16 @@ Object.defineProperty(Announcement.prototype, "schema", {
31993
32085
  }
31994
32086
  });
31995
32087
  Object.defineProperty(Announcement.prototype, "validator", {
31996
- get: function() {
32088
+ get: /* @__PURE__ */ __name(function() {
31997
32089
  return validateAnnouncement;
31998
- }
32090
+ }, "get")
31999
32091
  });
32000
32092
 
32001
32093
  // src/models/camera.js
32002
32094
  var Camera = class extends Entity {
32095
+ static {
32096
+ __name(this, "Camera");
32097
+ }
32003
32098
  /**
32004
32099
  * @typedef {Object} CameraData Any smart camera
32005
32100
  * @property {string} id - Identifier of the object.
@@ -32114,13 +32209,16 @@ Object.defineProperty(Camera.prototype, "schema", {
32114
32209
  }
32115
32210
  });
32116
32211
  Object.defineProperty(Camera.prototype, "validator", {
32117
- get: function() {
32212
+ get: /* @__PURE__ */ __name(function() {
32118
32213
  return validateCamera;
32119
- }
32214
+ }, "get")
32120
32215
  });
32121
32216
 
32122
32217
  // src/models/category.js
32123
32218
  var Category = class extends Entity {
32219
+ static {
32220
+ __name(this, "Category");
32221
+ }
32124
32222
  /**
32125
32223
  * @typedef {Object} CategoryData
32126
32224
  * @property {string} [id] - Identifier of the object.
@@ -32174,13 +32272,16 @@ Object.defineProperty(Category.prototype, "schema", {
32174
32272
  }
32175
32273
  });
32176
32274
  Object.defineProperty(Category.prototype, "validator", {
32177
- get: function() {
32275
+ get: /* @__PURE__ */ __name(function() {
32178
32276
  return validateCategory;
32179
- }
32277
+ }, "get")
32180
32278
  });
32181
32279
 
32182
32280
  // src/models/courtesy.js
32183
32281
  var Courtesy = class extends Entity {
32282
+ static {
32283
+ __name(this, "Courtesy");
32284
+ }
32184
32285
  /**
32185
32286
  * @typedef {Object} CourtesyData Any smart courtesy system
32186
32287
  * @property {string} id - Identifier of the object.
@@ -32244,13 +32345,16 @@ Object.defineProperty(Courtesy.prototype, "schema", {
32244
32345
  }
32245
32346
  });
32246
32347
  Object.defineProperty(Courtesy.prototype, "validator", {
32247
- get: function() {
32348
+ get: /* @__PURE__ */ __name(function() {
32248
32349
  return validateCourtesy;
32249
- }
32350
+ }, "get")
32250
32351
  });
32251
32352
 
32252
32353
  // src/models/credential.js
32253
32354
  var Credential = class extends Entity {
32355
+ static {
32356
+ __name(this, "Credential");
32357
+ }
32254
32358
  /**
32255
32359
  * @typedef {Object} CredentialData
32256
32360
  * @property {string} [id] - Identifier of the object.
@@ -32320,13 +32424,16 @@ Object.defineProperty(Credential.prototype, "schema", {
32320
32424
  }
32321
32425
  });
32322
32426
  Object.defineProperty(Credential.prototype, "validator", {
32323
- get: function() {
32427
+ get: /* @__PURE__ */ __name(function() {
32324
32428
  return validateCredential;
32325
- }
32429
+ }, "get")
32326
32430
  });
32327
32431
 
32328
32432
  // src/models/deviceRouter.js
32329
32433
  var DeviceRouter = class extends Entity {
32434
+ static {
32435
+ __name(this, "DeviceRouter");
32436
+ }
32330
32437
  /**
32331
32438
  * @typedef {Object} DeviceRouterData A device router contains instructions on where to route devices based on their organization and driver.
32332
32439
  * @property {string} [id] - Identifier of the object.
@@ -32369,13 +32476,16 @@ Object.defineProperty(DeviceRouter.prototype, "schema", {
32369
32476
  }
32370
32477
  });
32371
32478
  Object.defineProperty(DeviceRouter.prototype, "validator", {
32372
- get: function() {
32479
+ get: /* @__PURE__ */ __name(function() {
32373
32480
  return validateDeviceRouter;
32374
- }
32481
+ }, "get")
32375
32482
  });
32376
32483
 
32377
32484
  // src/models/dimmer.js
32378
32485
  var Dimmer = class extends Entity {
32486
+ static {
32487
+ __name(this, "Dimmer");
32488
+ }
32379
32489
  /**
32380
32490
  * @typedef {Object} DimmerData Any smart dimmer
32381
32491
  * @property {string} id - Identifier of the object.
@@ -32432,13 +32542,16 @@ Object.defineProperty(Dimmer.prototype, "schema", {
32432
32542
  }
32433
32543
  });
32434
32544
  Object.defineProperty(Dimmer.prototype, "validator", {
32435
- get: function() {
32545
+ get: /* @__PURE__ */ __name(function() {
32436
32546
  return validateDimmer;
32437
- }
32547
+ }, "get")
32438
32548
  });
32439
32549
 
32440
32550
  // src/models/discoveredDevice.js
32441
32551
  var DiscoveredDevice = class extends Entity {
32552
+ static {
32553
+ __name(this, "DiscoveredDevice");
32554
+ }
32442
32555
  /**
32443
32556
  * @typedef {Object} DiscoveredDeviceData A device that has been discovered by Kohost, but not yet added to the Kohost system.
32444
32557
  * @property {string} [id] - Identifier of the object.
@@ -32503,13 +32616,16 @@ Object.defineProperty(DiscoveredDevice.prototype, "schema", {
32503
32616
  }
32504
32617
  });
32505
32618
  Object.defineProperty(DiscoveredDevice.prototype, "validator", {
32506
- get: function() {
32619
+ get: /* @__PURE__ */ __name(function() {
32507
32620
  return validateDiscoveredDevice;
32508
- }
32621
+ }, "get")
32509
32622
  });
32510
32623
 
32511
32624
  // src/models/emailMessage.js
32512
32625
  var EmailMessage = class extends Entity {
32626
+ static {
32627
+ __name(this, "EmailMessage");
32628
+ }
32513
32629
  /**
32514
32630
  * @typedef {Object} EmailMessageData
32515
32631
  * @property {string} [id] - Identifier of the object.
@@ -32600,13 +32716,16 @@ Object.defineProperty(EmailMessage.prototype, "schema", {
32600
32716
  }
32601
32717
  });
32602
32718
  Object.defineProperty(EmailMessage.prototype, "validator", {
32603
- get: function() {
32719
+ get: /* @__PURE__ */ __name(function() {
32604
32720
  return validateEmailMessage;
32605
- }
32721
+ }, "get")
32606
32722
  });
32607
32723
 
32608
32724
  // src/models/energyReport.js
32609
32725
  var EnergyReport = class extends Entity {
32726
+ static {
32727
+ __name(this, "EnergyReport");
32728
+ }
32610
32729
  /**
32611
32730
  * @typedef {Object} EnergyReportData Hourly Report for Energy based on energy report shards
32612
32731
  * @property {string} id - Identifier of the object.
@@ -32689,13 +32808,16 @@ Object.defineProperty(EnergyReport.prototype, "schema", {
32689
32808
  }
32690
32809
  });
32691
32810
  Object.defineProperty(EnergyReport.prototype, "validator", {
32692
- get: function() {
32811
+ get: /* @__PURE__ */ __name(function() {
32693
32812
  return validateEnergyReport;
32694
- }
32813
+ }, "get")
32695
32814
  });
32696
32815
 
32697
32816
  // src/models/energyReportShard.js
32698
32817
  var EnergyReportShard = class extends Entity {
32818
+ static {
32819
+ __name(this, "EnergyReportShard");
32820
+ }
32699
32821
  /**
32700
32822
  * @typedef {Object} EnergyReportShardData Shard used for Energy Reports
32701
32823
  * @property {string} id - Identifier of the object.
@@ -32770,13 +32892,16 @@ Object.defineProperty(EnergyReportShard.prototype, "schema", {
32770
32892
  }
32771
32893
  });
32772
32894
  Object.defineProperty(EnergyReportShard.prototype, "validator", {
32773
- get: function() {
32895
+ get: /* @__PURE__ */ __name(function() {
32774
32896
  return validateEnergyReportShard;
32775
- }
32897
+ }, "get")
32776
32898
  });
32777
32899
 
32778
32900
  // src/models/gateway.js
32779
32901
  var Gateway = class extends Entity {
32902
+ static {
32903
+ __name(this, "Gateway");
32904
+ }
32780
32905
  /**
32781
32906
  * @typedef {Object} GatewayData Any smart gateway that is an entrypoint for controlling devices
32782
32907
  * @property {string} id - Identifier of the object.
@@ -32827,13 +32952,16 @@ Object.defineProperty(Gateway.prototype, "schema", {
32827
32952
  }
32828
32953
  });
32829
32954
  Object.defineProperty(Gateway.prototype, "validator", {
32830
- get: function() {
32955
+ get: /* @__PURE__ */ __name(function() {
32831
32956
  return validateGateway;
32832
- }
32957
+ }, "get")
32833
32958
  });
32834
32959
 
32835
32960
  // src/models/identification.js
32836
32961
  var Identification = class extends Entity {
32962
+ static {
32963
+ __name(this, "Identification");
32964
+ }
32837
32965
  /**
32838
32966
  * @typedef {Object} IdentificationData
32839
32967
  * @property {string} [id] - Identifier of the object.
@@ -32900,13 +33028,16 @@ Object.defineProperty(Identification.prototype, "schema", {
32900
33028
  }
32901
33029
  });
32902
33030
  Object.defineProperty(Identification.prototype, "validator", {
32903
- get: function() {
33031
+ get: /* @__PURE__ */ __name(function() {
32904
33032
  return validateIdentification;
32905
- }
33033
+ }, "get")
32906
33034
  });
32907
33035
 
32908
33036
  // src/models/issue.js
32909
33037
  var Issue = class extends Entity {
33038
+ static {
33039
+ __name(this, "Issue");
33040
+ }
32910
33041
  /**
32911
33042
  * @typedef {Object} IssueData An issue associated with ticketing and concierge.
32912
33043
  * @property {string} id - Identifier of the object.
@@ -32967,13 +33098,16 @@ Object.defineProperty(Issue.prototype, "schema", {
32967
33098
  }
32968
33099
  });
32969
33100
  Object.defineProperty(Issue.prototype, "validator", {
32970
- get: function() {
33101
+ get: /* @__PURE__ */ __name(function() {
32971
33102
  return validateIssue;
32972
- }
33103
+ }, "get")
32973
33104
  });
32974
33105
 
32975
33106
  // src/models/lock.js
32976
33107
  var Lock = class extends Entity {
33108
+ static {
33109
+ __name(this, "Lock");
33110
+ }
32977
33111
  /**
32978
33112
  * @typedef {Object} LockData Any smart lock
32979
33113
  * @property {string} id - Identifier of the object.
@@ -33066,13 +33200,16 @@ Object.defineProperty(Lock.prototype, "schema", {
33066
33200
  }
33067
33201
  });
33068
33202
  Object.defineProperty(Lock.prototype, "validator", {
33069
- get: function() {
33203
+ get: /* @__PURE__ */ __name(function() {
33070
33204
  return validateLock;
33071
- }
33205
+ }, "get")
33072
33206
  });
33073
33207
 
33074
33208
  // src/models/log.js
33075
33209
  var Log = class extends Entity {
33210
+ static {
33211
+ __name(this, "Log");
33212
+ }
33076
33213
  /**
33077
33214
  * @typedef {Object} LogData
33078
33215
  * @property {"log"} [type] - Default: "log"
@@ -33158,13 +33295,16 @@ Object.defineProperty(Log.prototype, "schema", {
33158
33295
  }
33159
33296
  });
33160
33297
  Object.defineProperty(Log.prototype, "validator", {
33161
- get: function() {
33298
+ get: /* @__PURE__ */ __name(function() {
33162
33299
  return validateLog;
33163
- }
33300
+ }, "get")
33164
33301
  });
33165
33302
 
33166
33303
  // src/models/mediaFile.js
33167
33304
  var MediaFile = class extends Entity {
33305
+ static {
33306
+ __name(this, "MediaFile");
33307
+ }
33168
33308
  /**
33169
33309
  * @typedef {Object} MediaFileData Any media file
33170
33310
  * @property {string} [id] - Identifier of the object.
@@ -33254,13 +33394,16 @@ Object.defineProperty(MediaFile.prototype, "schema", {
33254
33394
  }
33255
33395
  });
33256
33396
  Object.defineProperty(MediaFile.prototype, "validator", {
33257
- get: function() {
33397
+ get: /* @__PURE__ */ __name(function() {
33258
33398
  return validateMediaFile;
33259
- }
33399
+ }, "get")
33260
33400
  });
33261
33401
 
33262
33402
  // src/models/mediaSource.js
33263
33403
  var MediaSource = class extends Entity {
33404
+ static {
33405
+ __name(this, "MediaSource");
33406
+ }
33264
33407
  /**
33265
33408
  * @typedef {Object} MediaSourceData Any media source
33266
33409
  * @property {string} id - Identifier of the object.
@@ -33512,13 +33655,16 @@ Object.defineProperty(MediaSource.prototype, "schema", {
33512
33655
  }
33513
33656
  });
33514
33657
  Object.defineProperty(MediaSource.prototype, "validator", {
33515
- get: function() {
33658
+ get: /* @__PURE__ */ __name(function() {
33516
33659
  return validateMediaSource;
33517
- }
33660
+ }, "get")
33518
33661
  });
33519
33662
 
33520
33663
  // src/models/motionSensor.js
33521
33664
  var MotionSensor = class extends Entity {
33665
+ static {
33666
+ __name(this, "MotionSensor");
33667
+ }
33522
33668
  /**
33523
33669
  * @typedef {Object} MotionSensorData Any smart motion sensor
33524
33670
  * @property {string} id - Identifier of the object.
@@ -33567,13 +33713,16 @@ Object.defineProperty(MotionSensor.prototype, "schema", {
33567
33713
  }
33568
33714
  });
33569
33715
  Object.defineProperty(MotionSensor.prototype, "validator", {
33570
- get: function() {
33716
+ get: /* @__PURE__ */ __name(function() {
33571
33717
  return validateMotionSensor;
33572
- }
33718
+ }, "get")
33573
33719
  });
33574
33720
 
33575
33721
  // src/models/order.js
33576
33722
  var Order = class extends Entity {
33723
+ static {
33724
+ __name(this, "Order");
33725
+ }
33577
33726
  /**
33578
33727
  * @typedef {Object} OrderData A purchase order for products or services.
33579
33728
  * @property {string} [id] - Identifier of the object.
@@ -33803,13 +33952,16 @@ Object.defineProperty(Order.prototype, "schema", {
33803
33952
  }
33804
33953
  });
33805
33954
  Object.defineProperty(Order.prototype, "validator", {
33806
- get: function() {
33955
+ get: /* @__PURE__ */ __name(function() {
33807
33956
  return validateOrder;
33808
- }
33957
+ }, "get")
33809
33958
  });
33810
33959
 
33811
33960
  // src/models/organization.js
33812
33961
  var Organization = class extends Entity {
33962
+ static {
33963
+ __name(this, "Organization");
33964
+ }
33813
33965
  /**
33814
33966
  * @typedef {Object} OrganizationData An organization is a group or entity that subscribes to Kohost software.
33815
33967
  * @property {string} [id] - Identifier of the object.
@@ -33964,13 +34116,16 @@ Object.defineProperty(Organization.prototype, "schema", {
33964
34116
  }
33965
34117
  });
33966
34118
  Object.defineProperty(Organization.prototype, "validator", {
33967
- get: function() {
34119
+ get: /* @__PURE__ */ __name(function() {
33968
34120
  return validateOrganization;
33969
- }
34121
+ }, "get")
33970
34122
  });
33971
34123
 
33972
34124
  // src/models/payment.js
33973
34125
  var Payment = class extends Entity {
34126
+ static {
34127
+ __name(this, "Payment");
34128
+ }
33974
34129
  /**
33975
34130
  * @typedef {Object} PaymentData
33976
34131
  * @property {string} [id] - Identifier of the object.
@@ -34033,13 +34188,16 @@ Object.defineProperty(Payment.prototype, "schema", {
34033
34188
  }
34034
34189
  });
34035
34190
  Object.defineProperty(Payment.prototype, "validator", {
34036
- get: function() {
34191
+ get: /* @__PURE__ */ __name(function() {
34037
34192
  return validatePayment;
34038
- }
34193
+ }, "get")
34039
34194
  });
34040
34195
 
34041
34196
  // src/models/policy.js
34042
34197
  var Policy = class extends Entity {
34198
+ static {
34199
+ __name(this, "Policy");
34200
+ }
34043
34201
  /**
34044
34202
  * @typedef {Object} PolicyData A policy is a set of permissions that can be applied to a user to limit their access to resources.
34045
34203
  * @property {string} [id] - Identifier of the object.
@@ -34108,13 +34266,16 @@ Object.defineProperty(Policy.prototype, "schema", {
34108
34266
  }
34109
34267
  });
34110
34268
  Object.defineProperty(Policy.prototype, "validator", {
34111
- get: function() {
34269
+ get: /* @__PURE__ */ __name(function() {
34112
34270
  return validatePolicy;
34113
- }
34271
+ }, "get")
34114
34272
  });
34115
34273
 
34116
34274
  // src/models/product.js
34117
34275
  var Product = class extends Entity {
34276
+ static {
34277
+ __name(this, "Product");
34278
+ }
34118
34279
  /**
34119
34280
  * @typedef {Object} ProductData
34120
34281
  * @property {string} [id] - Identifier of the object.
@@ -34171,13 +34332,16 @@ Object.defineProperty(Product.prototype, "schema", {
34171
34332
  }
34172
34333
  });
34173
34334
  Object.defineProperty(Product.prototype, "validator", {
34174
- get: function() {
34335
+ get: /* @__PURE__ */ __name(function() {
34175
34336
  return validateProduct;
34176
- }
34337
+ }, "get")
34177
34338
  });
34178
34339
 
34179
34340
  // src/models/property.js
34180
34341
  var Property = class extends Entity {
34342
+ static {
34343
+ __name(this, "Property");
34344
+ }
34181
34345
  /**
34182
34346
  * @typedef {Object} PropertyData A property is a physical asset or building
34183
34347
  * @property {string} id - Identifier of the object.
@@ -34586,13 +34750,16 @@ Object.defineProperty(Property.prototype, "schema", {
34586
34750
  }
34587
34751
  });
34588
34752
  Object.defineProperty(Property.prototype, "validator", {
34589
- get: function() {
34753
+ get: /* @__PURE__ */ __name(function() {
34590
34754
  return validateProperty;
34591
- }
34755
+ }, "get")
34592
34756
  });
34593
34757
 
34594
34758
  // src/models/reservation.js
34595
34759
  var Reservation = class extends Entity {
34760
+ static {
34761
+ __name(this, "Reservation");
34762
+ }
34596
34763
  /**
34597
34764
  * @typedef {Object} ReservationData
34598
34765
  * @property {string} [id] - Identifier of the object.
@@ -34775,13 +34942,16 @@ Object.defineProperty(Reservation.prototype, "schema", {
34775
34942
  }
34776
34943
  });
34777
34944
  Object.defineProperty(Reservation.prototype, "validator", {
34778
- get: function() {
34945
+ get: /* @__PURE__ */ __name(function() {
34779
34946
  return validateReservation;
34780
- }
34947
+ }, "get")
34781
34948
  });
34782
34949
 
34783
34950
  // src/models/room.js
34784
34951
  var Room = class extends Entity {
34952
+ static {
34953
+ __name(this, "Room");
34954
+ }
34785
34955
  /**
34786
34956
  * @typedef {Object} RoomData A room represents a physical space of controllable IoT devices
34787
34957
  * @property {string} id - Identifier of the object.
@@ -34979,13 +35149,16 @@ Object.defineProperty(Room.prototype, "schema", {
34979
35149
  }
34980
35150
  });
34981
35151
  Object.defineProperty(Room.prototype, "validator", {
34982
- get: function() {
35152
+ get: /* @__PURE__ */ __name(function() {
34983
35153
  return validateRoom;
34984
- }
35154
+ }, "get")
34985
35155
  });
34986
35156
 
34987
35157
  // src/models/scene.js
34988
35158
  var Scene = class extends Entity {
35159
+ static {
35160
+ __name(this, "Scene");
35161
+ }
34989
35162
  /**
34990
35163
  * @typedef {Object} SceneData A room represents a physical space of controllable IoT devices
34991
35164
  * @property {string} id - Identifier of the object.
@@ -35112,13 +35285,16 @@ Object.defineProperty(Scene.prototype, "schema", {
35112
35285
  }
35113
35286
  });
35114
35287
  Object.defineProperty(Scene.prototype, "validator", {
35115
- get: function() {
35288
+ get: /* @__PURE__ */ __name(function() {
35116
35289
  return validateScene;
35117
- }
35290
+ }, "get")
35118
35291
  });
35119
35292
 
35120
35293
  // src/models/shortLink.js
35121
35294
  var ShortLink = class extends Entity {
35295
+ static {
35296
+ __name(this, "ShortLink");
35297
+ }
35122
35298
  /**
35123
35299
  * @typedef {Object} ShortLinkData
35124
35300
  * @property {string} [id] - Identifier of the object.
@@ -35160,13 +35336,16 @@ Object.defineProperty(ShortLink.prototype, "schema", {
35160
35336
  }
35161
35337
  });
35162
35338
  Object.defineProperty(ShortLink.prototype, "validator", {
35163
- get: function() {
35339
+ get: /* @__PURE__ */ __name(function() {
35164
35340
  return validateShortLink;
35165
- }
35341
+ }, "get")
35166
35342
  });
35167
35343
 
35168
35344
  // src/models/smsMessage.js
35169
35345
  var SmsMessage = class extends Entity {
35346
+ static {
35347
+ __name(this, "SmsMessage");
35348
+ }
35170
35349
  /**
35171
35350
  * @typedef {Object} SmsMessageData
35172
35351
  * @property {string} [id] - Identifier of the object.
@@ -35240,13 +35419,16 @@ Object.defineProperty(SmsMessage.prototype, "schema", {
35240
35419
  }
35241
35420
  });
35242
35421
  Object.defineProperty(SmsMessage.prototype, "validator", {
35243
- get: function() {
35422
+ get: /* @__PURE__ */ __name(function() {
35244
35423
  return validateSmsMessage;
35245
- }
35424
+ }, "get")
35246
35425
  });
35247
35426
 
35248
35427
  // src/models/space.js
35249
35428
  var Space = class extends Entity {
35429
+ static {
35430
+ __name(this, "Space");
35431
+ }
35250
35432
  /**
35251
35433
  * @typedef {Object} SpaceData
35252
35434
  * @property {string} [id] - Identifier of the object.
@@ -35422,13 +35604,16 @@ Object.defineProperty(Space.prototype, "schema", {
35422
35604
  }
35423
35605
  });
35424
35606
  Object.defineProperty(Space.prototype, "validator", {
35425
- get: function() {
35607
+ get: /* @__PURE__ */ __name(function() {
35426
35608
  return validateSpace;
35427
- }
35609
+ }, "get")
35428
35610
  });
35429
35611
 
35430
35612
  // src/models/switch.js
35431
35613
  var Switch = class extends Entity {
35614
+ static {
35615
+ __name(this, "Switch");
35616
+ }
35432
35617
  /**
35433
35618
  * @typedef {Object} SwitchData Any smart switch
35434
35619
  * @property {string} id - Identifier of the object.
@@ -35488,13 +35673,16 @@ Object.defineProperty(Switch.prototype, "schema", {
35488
35673
  }
35489
35674
  });
35490
35675
  Object.defineProperty(Switch.prototype, "validator", {
35491
- get: function() {
35676
+ get: /* @__PURE__ */ __name(function() {
35492
35677
  return validateSwitch;
35493
- }
35678
+ }, "get")
35494
35679
  });
35495
35680
 
35496
35681
  // src/models/systemUser.js
35497
35682
  var SystemUser = class extends Entity {
35683
+ static {
35684
+ __name(this, "SystemUser");
35685
+ }
35498
35686
  /**
35499
35687
  * @typedef {Object} SystemUserData A system user is a user that originated from an external 3rd party system.
35500
35688
  * @property {string} [id] - Identifier of the object.
@@ -35601,13 +35789,16 @@ Object.defineProperty(SystemUser.prototype, "schema", {
35601
35789
  }
35602
35790
  });
35603
35791
  Object.defineProperty(SystemUser.prototype, "validator", {
35604
- get: function() {
35792
+ get: /* @__PURE__ */ __name(function() {
35605
35793
  return validateSystemUser;
35606
- }
35794
+ }, "get")
35607
35795
  });
35608
35796
 
35609
35797
  // src/models/thermostat.js
35610
35798
  var Thermostat = class extends Entity {
35799
+ static {
35800
+ __name(this, "Thermostat");
35801
+ }
35611
35802
  /**
35612
35803
  * @typedef {Object} ThermostatData Any smart thermostat
35613
35804
  * @property {string} id - Identifier of the object.
@@ -35767,13 +35958,16 @@ Object.defineProperty(Thermostat.prototype, "schema", {
35767
35958
  }
35768
35959
  });
35769
35960
  Object.defineProperty(Thermostat.prototype, "validator", {
35770
- get: function() {
35961
+ get: /* @__PURE__ */ __name(function() {
35771
35962
  return validateThermostat;
35772
- }
35963
+ }, "get")
35773
35964
  });
35774
35965
 
35775
35966
  // src/models/ticket.js
35776
35967
  var Ticket = class extends Entity {
35968
+ static {
35969
+ __name(this, "Ticket");
35970
+ }
35777
35971
  /**
35778
35972
  * @typedef {Object} TicketData A ticket is a request from a user.
35779
35973
  * @property {string} id - Identifier of the object.
@@ -35977,13 +36171,16 @@ Object.defineProperty(Ticket.prototype, "schema", {
35977
36171
  }
35978
36172
  });
35979
36173
  Object.defineProperty(Ticket.prototype, "validator", {
35980
- get: function() {
36174
+ get: /* @__PURE__ */ __name(function() {
35981
36175
  return validateTicket;
35982
- }
36176
+ }, "get")
35983
36177
  });
35984
36178
 
35985
36179
  // src/models/timeSheet.js
35986
36180
  var TimeSheet = class extends Entity {
36181
+ static {
36182
+ __name(this, "TimeSheet");
36183
+ }
35987
36184
  /**
35988
36185
  * @typedef {Object} TimeSheetData
35989
36186
  * @property {string} [id] - Identifier of the object.
@@ -36048,13 +36245,16 @@ Object.defineProperty(TimeSheet.prototype, "schema", {
36048
36245
  }
36049
36246
  });
36050
36247
  Object.defineProperty(TimeSheet.prototype, "validator", {
36051
- get: function() {
36248
+ get: /* @__PURE__ */ __name(function() {
36052
36249
  return validateTimeSheet;
36053
- }
36250
+ }, "get")
36054
36251
  });
36055
36252
 
36056
36253
  // src/models/user.js
36057
36254
  var User = class extends Entity {
36255
+ static {
36256
+ __name(this, "User");
36257
+ }
36058
36258
  /**
36059
36259
  * @typedef {Object} UserData
36060
36260
  * @property {string} [id] - Identifier of the object.
@@ -36260,13 +36460,16 @@ Object.defineProperty(User.prototype, "schema", {
36260
36460
  }
36261
36461
  });
36262
36462
  Object.defineProperty(User.prototype, "validator", {
36263
- get: function() {
36463
+ get: /* @__PURE__ */ __name(function() {
36264
36464
  return validateUser;
36265
- }
36465
+ }, "get")
36266
36466
  });
36267
36467
 
36268
36468
  // src/models/vendor.js
36269
36469
  var Vendor = class extends Entity {
36470
+ static {
36471
+ __name(this, "Vendor");
36472
+ }
36270
36473
  /**
36271
36474
  * @typedef {Object} VendorData
36272
36475
  * @property {string} [id] - Identifier of the object.
@@ -36317,13 +36520,16 @@ Object.defineProperty(Vendor.prototype, "schema", {
36317
36520
  }
36318
36521
  });
36319
36522
  Object.defineProperty(Vendor.prototype, "validator", {
36320
- get: function() {
36523
+ get: /* @__PURE__ */ __name(function() {
36321
36524
  return validateVendor;
36322
- }
36525
+ }, "get")
36323
36526
  });
36324
36527
 
36325
36528
  // src/models/windowCovering.js
36326
36529
  var WindowCovering = class extends Entity {
36530
+ static {
36531
+ __name(this, "WindowCovering");
36532
+ }
36327
36533
  /**
36328
36534
  * @typedef {Object} WindowCoveringData Any smart window covering
36329
36535
  * @property {string} id - Identifier of the object.
@@ -36390,8 +36596,8 @@ Object.defineProperty(WindowCovering.prototype, "schema", {
36390
36596
  }
36391
36597
  });
36392
36598
  Object.defineProperty(WindowCovering.prototype, "validator", {
36393
- get: function() {
36599
+ get: /* @__PURE__ */ __name(function() {
36394
36600
  return validateWindowCovering;
36395
- }
36601
+ }, "get")
36396
36602
  });
36397
36603
  //# sourceMappingURL=models.cjs.map