@kohost/api-client 3.0.0-beta.21 → 3.0.0-beta.24

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.
@@ -10,10 +10,13 @@ var require_common = __commonJS({
10
10
  "src/schemas/definitions/common.json"(exports2, module2) {
11
11
  module2.exports = {
12
12
  $schema: "http://json-schema.org/draft-07/schema",
13
- $id: "https://api.kohost.app/schemas/v3/definitions/common.json",
13
+ $id: "https://api.kohost.io/schemas/v3/definitions/common.json",
14
14
  definitions: {
15
15
  id: {
16
- type: "string"
16
+ type: "string",
17
+ not: {
18
+ enum: ["global", "system"]
19
+ }
17
20
  },
18
21
  systemData: {
19
22
  type: "object",
@@ -79,6 +82,28 @@ var require_common = __commonJS({
79
82
  maxLength: 2
80
83
  }
81
84
  }
85
+ },
86
+ driver: {
87
+ type: "string",
88
+ enum: [
89
+ "aws-kinesis",
90
+ "butler",
91
+ "crestron",
92
+ "ecobee",
93
+ "igor",
94
+ "kohost-k7",
95
+ "kohost-pms",
96
+ "lirc",
97
+ "mews",
98
+ "pelican-wireless",
99
+ "rebrandly",
100
+ "salto",
101
+ "salto-irn",
102
+ "se",
103
+ "sendgrid",
104
+ "stay-n-touch",
105
+ "twilio"
106
+ ]
82
107
  }
83
108
  }
84
109
  };
@@ -90,13 +115,13 @@ var require_device = __commonJS({
90
115
  "src/schemas/definitions/device.json"(exports2, module2) {
91
116
  module2.exports = {
92
117
  $schema: "http://json-schema.org/draft-07/schema",
93
- $id: "https://api.kohost.app/schemas/v3/definitions/device.json",
118
+ $id: "https://api.kohost.io/schemas/v3/definitions/device.json",
94
119
  definitions: {
95
120
  id: {
96
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
121
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
97
122
  },
98
123
  systemData: {
99
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
124
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
100
125
  },
101
126
  type: {
102
127
  type: "string",
@@ -201,39 +226,42 @@ var require_switch = __commonJS({
201
226
  "src/schemas/switch.json"(exports2, module2) {
202
227
  module2.exports = {
203
228
  $schema: "http://json-schema.org/draft-07/schema",
204
- $id: "https://api.kohost.app/schemas/v3/switch.json",
229
+ $id: "https://api.kohost.io/schemas/v3/switch.json",
205
230
  title: "Switch",
206
231
  description: "Any smart switch",
207
232
  type: "object",
208
233
  properties: {
209
234
  id: {
210
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
235
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
211
236
  },
212
237
  name: {
213
238
  type: "string"
214
239
  },
215
240
  type: {
216
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
241
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
217
242
  },
218
243
  subType: {
219
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/subType"
244
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
220
245
  },
221
246
  supportedNotifications: {
222
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
247
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
223
248
  },
224
249
  notification: {
225
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
250
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
251
+ },
252
+ driver: {
253
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
226
254
  },
227
255
  state: {
228
256
  type: "string",
229
257
  enum: ["on", "off"]
230
258
  },
231
259
  systemData: {
232
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
260
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
233
261
  }
234
262
  },
235
263
  additionalProperties: false,
236
- required: ["id", "type", "systemData", "state"]
264
+ required: ["id", "type", "systemData", "state", "driver"]
237
265
  };
238
266
  }
239
267
  });
@@ -535,25 +563,31 @@ var require_alarm = __commonJS({
535
563
  "src/schemas/alarm.json"(exports2, module2) {
536
564
  module2.exports = {
537
565
  $schema: "http://json-schema.org/draft-07/schema",
538
- $id: "https://api.kohost.app/schemas/v3/alarm.json",
566
+ $id: "https://api.kohost.io/schemas/v3/alarm.json",
539
567
  title: "Alarm",
540
568
  description: "Any smart alarm system",
541
569
  type: "object",
542
570
  properties: {
543
571
  id: {
544
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
572
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
573
+ },
574
+ name: {
575
+ type: "string"
545
576
  },
546
577
  type: {
547
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
578
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
548
579
  },
549
580
  systemData: {
550
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
581
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
551
582
  },
552
583
  supportedNotifications: {
553
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
584
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
554
585
  },
555
586
  notification: {
556
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
587
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
588
+ },
589
+ driver: {
590
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
557
591
  },
558
592
  areas: {
559
593
  type: "array",
@@ -623,7 +657,8 @@ var require_alarm = __commonJS({
623
657
  "areas",
624
658
  "zones",
625
659
  "supportedTroubles",
626
- "troubles"
660
+ "troubles",
661
+ "driver"
627
662
  ]
628
663
  };
629
664
  }
@@ -663,28 +698,31 @@ var require_dimmer = __commonJS({
663
698
  "src/schemas/dimmer.json"(exports2, module2) {
664
699
  module2.exports = {
665
700
  $schema: "http://json-schema.org/draft-07/schema",
666
- $id: "https://api.kohost.app/schemas/v3/dimmer.json",
701
+ $id: "https://api.kohost.io/schemas/v3/dimmer.json",
667
702
  title: "Dimmer",
668
703
  description: "Any smart dimmer",
669
704
  type: "object",
670
705
  properties: {
671
706
  id: {
672
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
707
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
673
708
  },
674
709
  name: {
675
710
  type: "string"
676
711
  },
677
712
  type: {
678
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
713
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
679
714
  },
680
715
  subType: {
681
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/subType"
716
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
682
717
  },
683
718
  supportedNotifications: {
684
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
719
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
685
720
  },
686
721
  notification: {
687
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
722
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
723
+ },
724
+ driver: {
725
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
688
726
  },
689
727
  level: {
690
728
  type: "number",
@@ -692,11 +730,11 @@ var require_dimmer = __commonJS({
692
730
  maximum: 100
693
731
  },
694
732
  systemData: {
695
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
733
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
696
734
  }
697
735
  },
698
736
  additionalProperties: false,
699
- required: ["id", "type", "systemData", "level"]
737
+ required: ["id", "type", "systemData", "level", "driver"]
700
738
  };
701
739
  }
702
740
  });
@@ -754,39 +792,42 @@ var require_lock = __commonJS({
754
792
  "src/schemas/lock.json"(exports2, module2) {
755
793
  module2.exports = {
756
794
  $schema: "http://json-schema.org/draft-07/schema",
757
- $id: "https://api.kohost.app/schemas/v3/lock.json",
795
+ $id: "https://api.kohost.io/schemas/v3/lock.json",
758
796
  title: "Lock",
759
797
  description: "Any smart lock",
760
798
  type: "object",
761
799
  properties: {
762
800
  id: {
763
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
801
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
764
802
  },
765
803
  name: {
766
804
  type: "string"
767
805
  },
768
806
  type: {
769
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
807
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
770
808
  },
771
809
  supportedNotifications: {
772
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
810
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
773
811
  },
774
812
  notification: {
775
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
813
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
814
+ },
815
+ driver: {
816
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
776
817
  },
777
818
  state: {
778
819
  type: ["string", "null"],
779
820
  enum: ["locked", "unlocked", null]
780
821
  },
781
822
  batteryLevel: {
782
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/batteryLevel"
823
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/batteryLevel"
783
824
  },
784
825
  systemData: {
785
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
826
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
786
827
  }
787
828
  },
788
829
  additionalProperties: false,
789
- required: ["id", "type", "systemData", "state"]
830
+ required: ["id", "type", "systemData", "state", "driver"]
790
831
  };
791
832
  }
792
833
  });
@@ -828,32 +869,35 @@ var require_thermostat = __commonJS({
828
869
  "src/schemas/thermostat.json"(exports2, module2) {
829
870
  module2.exports = {
830
871
  $schema: "http://json-schema.org/draft-07/schema",
831
- $id: "https://api.kohost.app/schemas/v3/thermostat.json",
872
+ $id: "https://api.kohost.io/schemas/v3/thermostat.json",
832
873
  title: "Thermostat",
833
874
  description: "Any smart thermostat",
834
875
  type: "object",
835
876
  properties: {
836
877
  id: {
837
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
878
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
838
879
  },
839
880
  name: {
840
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/name"
881
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/name"
841
882
  },
842
883
  type: {
843
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type",
884
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type",
844
885
  default: "thermostat"
845
886
  },
846
887
  subType: {
847
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/subType"
888
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
889
+ },
890
+ driver: {
891
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
848
892
  },
849
893
  offline: {
850
894
  type: "boolean"
851
895
  },
852
896
  supportedNotifications: {
853
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
897
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
854
898
  },
855
899
  notification: {
856
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
900
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
857
901
  },
858
902
  currentTemperature: {
859
903
  type: "number"
@@ -922,10 +966,10 @@ var require_thermostat = __commonJS({
922
966
  type: "number"
923
967
  },
924
968
  batteryLevel: {
925
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/batteryLevel"
969
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/batteryLevel"
926
970
  },
927
971
  systemData: {
928
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData",
972
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData",
929
973
  default: {}
930
974
  }
931
975
  },
@@ -968,7 +1012,8 @@ var require_thermostat = __commonJS({
968
1012
  "setpoints",
969
1013
  "temperatureScale",
970
1014
  "supportedHvacModes",
971
- "supportedFanModes"
1015
+ "supportedFanModes",
1016
+ "driver"
972
1017
  ]
973
1018
  };
974
1019
  }
@@ -1052,28 +1097,31 @@ var require_windowCovering = __commonJS({
1052
1097
  "src/schemas/windowCovering.json"(exports2, module2) {
1053
1098
  module2.exports = {
1054
1099
  $schema: "http://json-schema.org/draft-07/schema",
1055
- $id: "https://api.kohost.app/schemas/v3/windowCovering.json",
1100
+ $id: "https://api.kohost.io/schemas/v3/windowCovering.json",
1056
1101
  title: "Window Covering",
1057
1102
  description: "Any smart window covering",
1058
1103
  type: "object",
1059
1104
  properties: {
1060
1105
  id: {
1061
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
1106
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
1062
1107
  },
1063
1108
  name: {
1064
1109
  type: "string"
1065
1110
  },
1066
1111
  type: {
1067
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
1112
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
1068
1113
  },
1069
1114
  subType: {
1070
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/subType"
1115
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
1071
1116
  },
1072
1117
  supportedNotifications: {
1073
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1118
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1074
1119
  },
1075
1120
  notification: {
1076
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
1121
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
1122
+ },
1123
+ driver: {
1124
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1077
1125
  },
1078
1126
  position: {
1079
1127
  type: "number",
@@ -1081,11 +1129,11 @@ var require_windowCovering = __commonJS({
1081
1129
  maximum: 100
1082
1130
  },
1083
1131
  systemData: {
1084
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
1132
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
1085
1133
  }
1086
1134
  },
1087
1135
  additionalProperties: false,
1088
- required: ["id", "type", "systemData", "position"]
1136
+ required: ["id", "type", "systemData", "position", "driver"]
1089
1137
  };
1090
1138
  }
1091
1139
  });
@@ -1143,13 +1191,13 @@ var require_identification = __commonJS({
1143
1191
  "src/schemas/identification.json"(exports2, module2) {
1144
1192
  module2.exports = {
1145
1193
  $schema: "http://json-schema.org/draft-07/schema",
1146
- $id: "https://api.kohost.app/schemas/v3/identification.json",
1194
+ $id: "https://api.kohost.io/schemas/v3/identification.json",
1147
1195
  title: "Identification",
1148
1196
  type: "object",
1149
1197
  required: ["type", "number"],
1150
1198
  properties: {
1151
1199
  id: {
1152
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
1200
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
1153
1201
  },
1154
1202
  type: {
1155
1203
  type: "string",
@@ -1184,7 +1232,7 @@ var require_identification = __commonJS({
1184
1232
  maxLength: 2
1185
1233
  },
1186
1234
  systemData: {
1187
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
1235
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
1188
1236
  }
1189
1237
  }
1190
1238
  };
@@ -1228,13 +1276,13 @@ var require_user = __commonJS({
1228
1276
  "src/schemas/user.json"(exports2, module2) {
1229
1277
  module2.exports = {
1230
1278
  $schema: "http://json-schema.org/draft-07/schema",
1231
- $id: "https://api.kohost.app/schemas/v3/user.json",
1279
+ $id: "https://api.kohost.io/schemas/v3/user.json",
1232
1280
  title: "User",
1233
1281
  type: "object",
1234
1282
  required: ["firstName", "lastName"],
1235
1283
  properties: {
1236
1284
  id: {
1237
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
1285
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
1238
1286
  },
1239
1287
  type: {
1240
1288
  type: "string",
@@ -1261,7 +1309,7 @@ var require_user = __commonJS({
1261
1309
  type: "boolean"
1262
1310
  },
1263
1311
  address: {
1264
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/address"
1312
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/address"
1265
1313
  },
1266
1314
  secretKey: {
1267
1315
  type: "string"
@@ -1321,19 +1369,19 @@ var require_user = __commonJS({
1321
1369
  files: {
1322
1370
  type: "array",
1323
1371
  items: {
1324
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/file"
1372
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/file"
1325
1373
  }
1326
1374
  },
1327
1375
  identifications: {
1328
1376
  type: "array",
1329
1377
  items: {
1330
- $ref: "https://api.kohost.app/schemas/v3/identification.json#"
1378
+ $ref: "https://api.kohost.io/schemas/v3/identification.json#"
1331
1379
  }
1332
1380
  },
1333
1381
  payments: {
1334
1382
  type: "array",
1335
1383
  items: {
1336
- $ref: "https://api.kohost.app/schemas/v3/payment.json#"
1384
+ $ref: "https://api.kohost.io/schemas/v3/payment.json#"
1337
1385
  }
1338
1386
  },
1339
1387
  location: {
@@ -1356,15 +1404,15 @@ var require_user = __commonJS({
1356
1404
  }
1357
1405
  },
1358
1406
  createdAt: {
1359
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
1407
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
1360
1408
  },
1361
1409
  updatedAt: {
1362
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/updatedAt"
1410
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/updatedAt"
1363
1411
  },
1364
1412
  systemData: {
1365
1413
  type: "array",
1366
1414
  items: {
1367
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
1415
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
1368
1416
  }
1369
1417
  }
1370
1418
  }
@@ -1377,13 +1425,13 @@ var require_payment = __commonJS({
1377
1425
  "src/schemas/payment.json"(exports2, module2) {
1378
1426
  module2.exports = {
1379
1427
  $schema: "http://json-schema.org/draft-07/schema",
1380
- $id: "https://api.kohost.app/schemas/v3/payment.json",
1428
+ $id: "https://api.kohost.io/schemas/v3/payment.json",
1381
1429
  title: "Payment",
1382
1430
  type: "object",
1383
1431
  required: ["type", "maskedNumber", "expires"],
1384
1432
  properties: {
1385
1433
  id: {
1386
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
1434
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
1387
1435
  },
1388
1436
  type: {
1389
1437
  type: "string",
@@ -1414,7 +1462,7 @@ var require_payment = __commonJS({
1414
1462
  string: "string"
1415
1463
  },
1416
1464
  systemData: {
1417
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
1465
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
1418
1466
  }
1419
1467
  }
1420
1468
  };
@@ -1485,19 +1533,22 @@ var require_systemUser = __commonJS({
1485
1533
  "src/schemas/systemUser.json"(exports2, module2) {
1486
1534
  module2.exports = {
1487
1535
  $schema: "http://json-schema.org/draft-07/schema",
1488
- $id: "https://api.kohost.app/schemas/v3/systemUser.json",
1536
+ $id: "https://api.kohost.io/schemas/v3/systemUser.json",
1489
1537
  title: "System User",
1490
1538
  description: "A system user is a user that originated from an external 3rd party system.",
1491
1539
  type: "object",
1492
1540
  required: ["firstName", "lastName"],
1493
1541
  properties: {
1494
1542
  id: {
1495
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
1543
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
1496
1544
  },
1497
1545
  type: {
1498
1546
  type: "string",
1499
1547
  default: "systemUser"
1500
1548
  },
1549
+ driver: {
1550
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1551
+ },
1501
1552
  firstName: {
1502
1553
  type: "string"
1503
1554
  },
@@ -1513,7 +1564,7 @@ var require_systemUser = __commonJS({
1513
1564
  format: "email"
1514
1565
  },
1515
1566
  address: {
1516
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/address"
1567
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/address"
1517
1568
  },
1518
1569
  photo: {
1519
1570
  type: "string"
@@ -1549,29 +1600,29 @@ var require_systemUser = __commonJS({
1549
1600
  files: {
1550
1601
  type: "array",
1551
1602
  items: {
1552
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/file"
1603
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/file"
1553
1604
  }
1554
1605
  },
1555
1606
  identifications: {
1556
1607
  type: "array",
1557
1608
  items: {
1558
- $ref: "https://api.kohost.app/schemas/v3/identification.json#"
1609
+ $ref: "https://api.kohost.io/schemas/v3/identification.json#"
1559
1610
  }
1560
1611
  },
1561
1612
  payments: {
1562
1613
  type: "array",
1563
1614
  items: {
1564
- $ref: "https://api.kohost.app/schemas/v3/payment.json#"
1615
+ $ref: "https://api.kohost.io/schemas/v3/payment.json#"
1565
1616
  }
1566
1617
  },
1567
1618
  createdAt: {
1568
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
1619
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
1569
1620
  },
1570
1621
  updatedAt: {
1571
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/updatedAt"
1622
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/updatedAt"
1572
1623
  },
1573
1624
  systemData: {
1574
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
1625
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
1575
1626
  }
1576
1627
  }
1577
1628
  };
@@ -1625,25 +1676,28 @@ var require_courtesy = __commonJS({
1625
1676
  "src/schemas/courtesy.json"(exports2, module2) {
1626
1677
  module2.exports = {
1627
1678
  $schema: "http://json-schema.org/draft-07/schema",
1628
- $id: "https://api.kohost.app/schemas/v3/courtesy.json",
1679
+ $id: "https://api.kohost.io/schemas/v3/courtesy.json",
1629
1680
  title: "Courtesy",
1630
1681
  description: "Any smart courtesy system",
1631
1682
  type: "object",
1632
1683
  properties: {
1633
1684
  id: {
1634
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
1685
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
1635
1686
  },
1636
1687
  name: {
1637
1688
  type: "string"
1638
1689
  },
1639
1690
  type: {
1640
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
1691
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
1641
1692
  },
1642
1693
  supportedNotifications: {
1643
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1694
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1644
1695
  },
1645
1696
  notification: {
1646
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
1697
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
1698
+ },
1699
+ driver: {
1700
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1647
1701
  },
1648
1702
  supportedStates: {
1649
1703
  type: "array",
@@ -1657,11 +1711,11 @@ var require_courtesy = __commonJS({
1657
1711
  $ref: "#/properties/supportedStates/items"
1658
1712
  },
1659
1713
  systemData: {
1660
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
1714
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
1661
1715
  }
1662
1716
  },
1663
1717
  additionalProperties: false,
1664
- required: ["supportedStates", "state"]
1718
+ required: ["id", "type", "driver", "supportedStates", "state"]
1665
1719
  };
1666
1720
  }
1667
1721
  });
@@ -1703,22 +1757,28 @@ var require_camera = __commonJS({
1703
1757
  "src/schemas/camera.json"(exports2, module2) {
1704
1758
  module2.exports = {
1705
1759
  $schema: "http://json-schema.org/draft-07/schema",
1706
- $id: "https://api.kohost.app/schemas/v3/camera.json",
1760
+ $id: "https://api.kohost.io/schemas/v3/camera.json",
1707
1761
  title: "Camera",
1708
1762
  description: "Any smart camera",
1709
1763
  type: "object",
1710
1764
  properties: {
1711
1765
  id: {
1712
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
1766
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
1767
+ },
1768
+ name: {
1769
+ type: "string"
1713
1770
  },
1714
1771
  type: {
1715
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
1772
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
1716
1773
  },
1717
1774
  supportedNotifications: {
1718
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1775
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1719
1776
  },
1720
1777
  notification: {
1721
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
1778
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
1779
+ },
1780
+ driver: {
1781
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1722
1782
  },
1723
1783
  streams: {
1724
1784
  type: "object",
@@ -1736,11 +1796,11 @@ var require_camera = __commonJS({
1736
1796
  }
1737
1797
  },
1738
1798
  systemData: {
1739
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
1799
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
1740
1800
  }
1741
1801
  },
1742
1802
  additionalProperties: false,
1743
- required: ["id", "type", "systemData", "streams"]
1803
+ required: ["id", "type", "systemData", "streams", "driver"]
1744
1804
  };
1745
1805
  }
1746
1806
  });
@@ -1779,29 +1839,32 @@ var require_motionSensor = __commonJS({
1779
1839
  "src/schemas/motionSensor.json"(exports2, module2) {
1780
1840
  module2.exports = {
1781
1841
  $schema: "http://json-schema.org/draft-07/schema",
1782
- $id: "https://api.kohost.app/schemas/v3/motionSensor.json",
1842
+ $id: "https://api.kohost.io/schemas/v3/motionSensor.json",
1783
1843
  title: "Motion Sensor",
1784
1844
  description: "Any smart motion sensor",
1785
1845
  type: "object",
1786
1846
  properties: {
1787
1847
  id: {
1788
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
1848
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
1789
1849
  },
1790
1850
  type: {
1791
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
1851
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
1852
+ },
1853
+ driver: {
1854
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1792
1855
  },
1793
1856
  systemData: {
1794
- supportedNotifications: {
1795
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1796
- },
1797
- notification: {
1798
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
1799
- },
1800
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
1857
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
1858
+ },
1859
+ supportedNotifications: {
1860
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1861
+ },
1862
+ notification: {
1863
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
1801
1864
  }
1802
1865
  },
1803
1866
  additionalProperties: false,
1804
- required: ["id", "type", "systemData"]
1867
+ required: ["id", "type", "systemData", "driver"]
1805
1868
  };
1806
1869
  }
1807
1870
  });
@@ -1840,16 +1903,19 @@ var require_mediaSource = __commonJS({
1840
1903
  "src/schemas/mediaSource.json"(exports2, module2) {
1841
1904
  module2.exports = {
1842
1905
  $schema: "http://json-schema.org/draft-07/schema",
1843
- $id: "https://api.kohost.app/schemas/v3/mediaSource.json",
1906
+ $id: "https://api.kohost.io/schemas/v3/mediaSource.json",
1844
1907
  title: "Media Source",
1845
1908
  description: "Any media source",
1846
1909
  type: "object",
1847
1910
  properties: {
1848
1911
  id: {
1849
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
1912
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
1850
1913
  },
1851
1914
  type: {
1852
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
1915
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
1916
+ },
1917
+ driver: {
1918
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
1853
1919
  },
1854
1920
  subType: {
1855
1921
  type: "string",
@@ -1977,17 +2043,17 @@ var require_mediaSource = __commonJS({
1977
2043
  ]
1978
2044
  },
1979
2045
  supportedNotifications: {
1980
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
2046
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
1981
2047
  },
1982
2048
  notification: {
1983
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
2049
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
1984
2050
  },
1985
2051
  systemData: {
1986
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
2052
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
1987
2053
  }
1988
2054
  },
1989
2055
  additionalProperties: false,
1990
- required: ["id", "type", "systemData", "audio", "video"]
2056
+ required: ["id", "type", "systemData", "audio", "video", "driver"]
1991
2057
  };
1992
2058
  }
1993
2059
  });
@@ -2026,13 +2092,13 @@ var require_room = __commonJS({
2026
2092
  "src/schemas/room.json"(exports2, module2) {
2027
2093
  module2.exports = {
2028
2094
  $schema: "http://json-schema.org/draft-07/schema",
2029
- $id: "https://api.kohost.app/schemas/v3/room.json",
2095
+ $id: "https://api.kohost.io/schemas/v3/room.json",
2030
2096
  title: "Room",
2031
2097
  description: "A room represents a physical space of controllable IoT devices",
2032
2098
  type: "object",
2033
2099
  properties: {
2034
2100
  id: {
2035
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2101
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2036
2102
  },
2037
2103
  name: {
2038
2104
  type: "string"
@@ -2044,70 +2110,70 @@ var require_room = __commonJS({
2044
2110
  type: "array",
2045
2111
  default: [],
2046
2112
  items: {
2047
- $ref: "https://api.kohost.app/schemas/v3/dimmer.json"
2113
+ $ref: "https://api.kohost.io/schemas/v3/dimmer.json"
2048
2114
  }
2049
2115
  },
2050
2116
  switches: {
2051
2117
  type: "array",
2052
2118
  default: [],
2053
2119
  items: {
2054
- $ref: "https://api.kohost.app/schemas/v3/switch.json"
2120
+ $ref: "https://api.kohost.io/schemas/v3/switch.json"
2055
2121
  }
2056
2122
  },
2057
2123
  thermostats: {
2058
2124
  type: "array",
2059
2125
  default: [],
2060
2126
  items: {
2061
- $ref: "https://api.kohost.app/schemas/v3/thermostat.json"
2127
+ $ref: "https://api.kohost.io/schemas/v3/thermostat.json"
2062
2128
  }
2063
2129
  },
2064
2130
  locks: {
2065
2131
  type: "array",
2066
2132
  default: [],
2067
2133
  items: {
2068
- $ref: "https://api.kohost.app/schemas/v3/lock.json"
2134
+ $ref: "https://api.kohost.io/schemas/v3/lock.json"
2069
2135
  }
2070
2136
  },
2071
2137
  windowCoverings: {
2072
2138
  type: "array",
2073
2139
  default: [],
2074
2140
  items: {
2075
- $ref: "https://api.kohost.app/schemas/v3/windowCovering.json"
2141
+ $ref: "https://api.kohost.io/schemas/v3/windowCovering.json"
2076
2142
  }
2077
2143
  },
2078
2144
  courtesy: {
2079
2145
  type: "array",
2080
2146
  default: [],
2081
2147
  items: {
2082
- $ref: "https://api.kohost.app/schemas/v3/courtesy.json"
2148
+ $ref: "https://api.kohost.io/schemas/v3/courtesy.json"
2083
2149
  }
2084
2150
  },
2085
2151
  cameras: {
2086
2152
  type: "array",
2087
2153
  default: [],
2088
2154
  items: {
2089
- $ref: "https://api.kohost.app/schemas/v3/camera.json"
2155
+ $ref: "https://api.kohost.io/schemas/v3/camera.json"
2090
2156
  }
2091
2157
  },
2092
- sources: {
2158
+ mediaSources: {
2093
2159
  type: "array",
2094
2160
  default: [],
2095
2161
  items: {
2096
- $ref: "https://api.kohost.app/schemas/v3/mediaSource.json"
2162
+ $ref: "https://api.kohost.io/schemas/v3/mediaSource.json"
2097
2163
  }
2098
2164
  },
2099
2165
  motionSensors: {
2100
2166
  type: "array",
2101
2167
  default: [],
2102
2168
  items: {
2103
- $ref: "https://api.kohost.app/schemas/v3/motionSensor.json"
2169
+ $ref: "https://api.kohost.io/schemas/v3/motionSensor.json"
2104
2170
  }
2105
2171
  },
2106
2172
  alarms: {
2107
2173
  type: "array",
2108
2174
  default: [],
2109
2175
  items: {
2110
- $ref: "https://api.kohost.app/schemas/v3/alarm.json"
2176
+ $ref: "https://api.kohost.io/schemas/v3/alarm.json"
2111
2177
  }
2112
2178
  },
2113
2179
  media: {
@@ -2135,22 +2201,22 @@ var require_room = __commonJS({
2135
2201
  description: "A list of scene IDs for later population, or entire scene objects",
2136
2202
  oneOf: [
2137
2203
  {
2138
- $ref: "https://api.kohost.app/schemas/v3/scene.json"
2204
+ $ref: "https://api.kohost.io/schemas/v3/scene.json"
2139
2205
  },
2140
2206
  {
2141
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2207
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2142
2208
  }
2143
2209
  ]
2144
2210
  }
2145
2211
  },
2146
2212
  occupiedAt: {
2147
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
2213
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
2148
2214
  },
2149
2215
  createdAt: {
2150
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
2216
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
2151
2217
  },
2152
2218
  updatedAt: {
2153
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/updatedAt"
2219
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/updatedAt"
2154
2220
  }
2155
2221
  },
2156
2222
  additionalProperties: false
@@ -2163,13 +2229,13 @@ var require_scene = __commonJS({
2163
2229
  "src/schemas/scene.json"(exports2, module2) {
2164
2230
  module2.exports = {
2165
2231
  $schema: "http://json-schema.org/draft-07/schema",
2166
- $id: "https://api.kohost.app/schemas/v3/scene.json",
2232
+ $id: "https://api.kohost.io/schemas/v3/scene.json",
2167
2233
  title: "Scene",
2168
2234
  description: "A room represents a physical space of controllable IoT devices",
2169
2235
  type: "object",
2170
2236
  properties: {
2171
2237
  id: {
2172
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2238
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2173
2239
  },
2174
2240
  name: {
2175
2241
  type: "string"
@@ -2183,10 +2249,10 @@ var require_scene = __commonJS({
2183
2249
  type: "object",
2184
2250
  properties: {
2185
2251
  id: {
2186
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2252
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2187
2253
  },
2188
2254
  state: {
2189
- $ref: "https://api.kohost.app/schemas/v3/switch.json#/properties/state"
2255
+ $ref: "https://api.kohost.io/schemas/v3/switch.json#/properties/state"
2190
2256
  }
2191
2257
  },
2192
2258
  default: []
@@ -2198,10 +2264,10 @@ var require_scene = __commonJS({
2198
2264
  type: "object",
2199
2265
  properties: {
2200
2266
  id: {
2201
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2267
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2202
2268
  },
2203
2269
  level: {
2204
- $ref: "https://api.kohost.app/schemas/v3/dimmer.json#/properties/level"
2270
+ $ref: "https://api.kohost.io/schemas/v3/dimmer.json#/properties/level"
2205
2271
  }
2206
2272
  }
2207
2273
  },
@@ -2213,10 +2279,10 @@ var require_scene = __commonJS({
2213
2279
  type: "object",
2214
2280
  properties: {
2215
2281
  id: {
2216
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2282
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2217
2283
  },
2218
2284
  position: {
2219
- $ref: "https://api.kohost.app/schemas/v3/windowCovering.json#/properties/position"
2285
+ $ref: "https://api.kohost.io/schemas/v3/windowCovering.json#/properties/position"
2220
2286
  }
2221
2287
  }
2222
2288
  },
@@ -2228,16 +2294,16 @@ var require_scene = __commonJS({
2228
2294
  type: "object",
2229
2295
  properties: {
2230
2296
  id: {
2231
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2297
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2232
2298
  },
2233
2299
  hvacMode: {
2234
- $ref: "https://api.kohost.app/schemas/v3/thermostat.json#/properties/hvacMode"
2300
+ $ref: "https://api.kohost.io/schemas/v3/thermostat.json#/properties/hvacMode"
2235
2301
  },
2236
2302
  setpoints: {
2237
- $ref: "https://api.kohost.app/schemas/v3/thermostat.json#/properties/setpoints"
2303
+ $ref: "https://api.kohost.io/schemas/v3/thermostat.json#/properties/setpoints"
2238
2304
  },
2239
2305
  fanMode: {
2240
- $ref: "https://api.kohost.app/schemas/v3/thermostat.json#/properties/fanMode"
2306
+ $ref: "https://api.kohost.io/schemas/v3/thermostat.json#/properties/fanMode"
2241
2307
  }
2242
2308
  }
2243
2309
  },
@@ -2249,7 +2315,7 @@ var require_scene = __commonJS({
2249
2315
  type: "object",
2250
2316
  properties: {
2251
2317
  id: {
2252
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2318
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2253
2319
  },
2254
2320
  volume: {
2255
2321
  type: "number",
@@ -2345,7 +2411,7 @@ var require_room2 = __commonJS({
2345
2411
  "windowCovering",
2346
2412
  "courtesy",
2347
2413
  "camera",
2348
- "source",
2414
+ "mediaSource",
2349
2415
  "motionSensor",
2350
2416
  "alarm"
2351
2417
  ];
@@ -2369,7 +2435,7 @@ var require_room2 = __commonJS({
2369
2435
  "windowCoverings",
2370
2436
  "courtesy",
2371
2437
  "cameras",
2372
- "sources",
2438
+ "mediaSources",
2373
2439
  "motionSensors",
2374
2440
  "alarms"
2375
2441
  ];
@@ -2424,7 +2490,7 @@ var require_room2 = __commonJS({
2424
2490
  }
2425
2491
  get hasMedia() {
2426
2492
  var _a;
2427
- return ((_a = this.sources) == null ? void 0 : _a.length) > 0;
2493
+ return ((_a = this.mediaSources) == null ? void 0 : _a.length) > 0;
2428
2494
  }
2429
2495
  get hasLight() {
2430
2496
  var _a;
@@ -2533,13 +2599,16 @@ var require_reservation = __commonJS({
2533
2599
  "src/schemas/reservation.json"(exports2, module2) {
2534
2600
  module2.exports = {
2535
2601
  $schema: "http://json-schema.org/draft-07/schema",
2536
- $id: "https://api.kohost.app/schemas/v3/reservation.json",
2602
+ $id: "https://api.kohost.io/schemas/v3/reservation.json",
2537
2603
  title: "Reservation",
2538
2604
  type: "object",
2539
2605
  required: ["type", "status", "checkInDateTime", "checkOutDateTime"],
2540
2606
  properties: {
2541
2607
  id: {
2542
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2608
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2609
+ },
2610
+ driver: {
2611
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
2543
2612
  },
2544
2613
  primaryGuest: {
2545
2614
  type: "string"
@@ -2638,10 +2707,10 @@ var require_reservation = __commonJS({
2638
2707
  type: "string"
2639
2708
  },
2640
2709
  systemData: {
2641
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
2710
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
2642
2711
  },
2643
2712
  metadata: {
2644
- ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/metadata"
2713
+ ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/metadata"
2645
2714
  }
2646
2715
  }
2647
2716
  };
@@ -2730,76 +2799,17 @@ var require_reservation2 = __commonJS({
2730
2799
  }
2731
2800
  });
2732
2801
 
2733
- // src/schemas/application.json
2734
- var require_application = __commonJS({
2735
- "src/schemas/application.json"(exports2, module2) {
2736
- module2.exports = {
2737
- $schema: "http://json-schema.org/draft-07/schema",
2738
- $id: "https://api.kohost.app/schemas/v3/application.json",
2739
- title: "Application",
2740
- type: "object",
2741
- required: ["id", "active", "name", "publicKey", "hashedPrivateKey"],
2742
- properties: {
2743
- id: {
2744
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2745
- },
2746
- active: {
2747
- type: "boolean"
2748
- },
2749
- name: {
2750
- type: "string"
2751
- },
2752
- publicKey: {
2753
- type: "string"
2754
- },
2755
- hashedPrivateKey: {
2756
- type: "string"
2757
- }
2758
- }
2759
- };
2760
- }
2761
- });
2762
-
2763
- // src/Models/application.js
2764
- var require_application2 = __commonJS({
2765
- "src/Models/application.js"(exports2, module2) {
2766
- var schemas = require_schema();
2767
- var schema = require_application();
2768
- var Kohost = require_kohost();
2769
- schemas.add(schema);
2770
- var validator = schemas.compile(schema);
2771
- var Application2 = class extends Kohost {
2772
- constructor(data) {
2773
- super(data);
2774
- }
2775
- };
2776
- __name(Application2, "Application");
2777
- Object.defineProperty(Application2.prototype, "schema", {
2778
- value: schema
2779
- });
2780
- Object.defineProperty(Application2.prototype, "validator", {
2781
- get: function() {
2782
- return validator;
2783
- }
2784
- });
2785
- Object.defineProperty(Application2, "validProperties", {
2786
- value: Object.keys(schema.properties)
2787
- });
2788
- module2.exports = Application2;
2789
- }
2790
- });
2791
-
2792
2802
  // src/schemas/space.json
2793
2803
  var require_space = __commonJS({
2794
2804
  "src/schemas/space.json"(exports2, module2) {
2795
2805
  module2.exports = {
2796
2806
  $schema: "http://json-schema.org/draft-07/schema",
2797
- $id: "https://api.kohost.app/schemas/v3/space.json",
2807
+ $id: "https://api.kohost.io/schemas/v3/space.json",
2798
2808
  title: "Space",
2799
2809
  type: "object",
2800
2810
  properties: {
2801
2811
  id: {
2802
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
2812
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
2803
2813
  },
2804
2814
  name: {
2805
2815
  type: "string",
@@ -2816,6 +2826,9 @@ var require_space = __commonJS({
2816
2826
  "other"
2817
2827
  ]
2818
2828
  },
2829
+ driver: {
2830
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
2831
+ },
2819
2832
  subType: {
2820
2833
  type: "string"
2821
2834
  },
@@ -2872,7 +2885,7 @@ var require_space = __commonJS({
2872
2885
  enum: ["inService", "outOfOrder", "outOfService"]
2873
2886
  },
2874
2887
  systemData: {
2875
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
2888
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
2876
2889
  }
2877
2890
  },
2878
2891
  if: {
@@ -2999,12 +3012,12 @@ var require_spaceType = __commonJS({
2999
3012
  "src/schemas/spaceType.json"(exports2, module2) {
3000
3013
  module2.exports = {
3001
3014
  $schema: "http://json-schema.org/draft-07/schema",
3002
- $id: "https://api.kohost.app/schemas/v3/spaceType.json",
3015
+ $id: "https://api.kohost.io/schemas/v3/spaceType.json",
3003
3016
  title: "Space Type",
3004
3017
  type: "object",
3005
3018
  properties: {
3006
3019
  id: {
3007
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3020
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3008
3021
  },
3009
3022
  type: {
3010
3023
  type: "string"
@@ -3013,6 +3026,9 @@ var require_spaceType = __commonJS({
3013
3026
  type: "string",
3014
3027
  minLength: 1
3015
3028
  },
3029
+ driver: {
3030
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
3031
+ },
3016
3032
  description: {
3017
3033
  type: "string"
3018
3034
  },
@@ -3021,7 +3037,7 @@ var require_spaceType = __commonJS({
3021
3037
  pattern: "^https?://"
3022
3038
  },
3023
3039
  systemData: {
3024
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
3040
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
3025
3041
  }
3026
3042
  }
3027
3043
  };
@@ -3062,13 +3078,13 @@ var require_ticket = __commonJS({
3062
3078
  "src/schemas/ticket.json"(exports2, module2) {
3063
3079
  module2.exports = {
3064
3080
  $schema: "http://json-schema.org/draft-07/schema",
3065
- $id: "https://api.kohost.app/schemas/v3/ticket.json",
3081
+ $id: "https://api.kohost.io/schemas/v3/ticket.json",
3066
3082
  title: "Ticket",
3067
3083
  description: "A ticket is a request for help from a user.",
3068
3084
  type: "object",
3069
3085
  properties: {
3070
3086
  id: {
3071
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3087
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3072
3088
  },
3073
3089
  conversation: {
3074
3090
  type: "array",
@@ -3084,7 +3100,7 @@ var require_ticket = __commonJS({
3084
3100
  type: "string"
3085
3101
  },
3086
3102
  timestamp: {
3087
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3103
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3088
3104
  },
3089
3105
  body: {
3090
3106
  type: "string"
@@ -3119,16 +3135,16 @@ var require_ticket = __commonJS({
3119
3135
  }
3120
3136
  },
3121
3137
  createdAt: {
3122
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3138
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3123
3139
  },
3124
3140
  updatedAt: {
3125
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3141
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3126
3142
  },
3127
3143
  solvedAt: {
3128
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3144
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3129
3145
  },
3130
3146
  closedAt: {
3131
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3147
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3132
3148
  }
3133
3149
  },
3134
3150
  required: [
@@ -3230,32 +3246,35 @@ var require_gateway = __commonJS({
3230
3246
  "src/schemas/gateway.json"(exports2, module2) {
3231
3247
  module2.exports = {
3232
3248
  $schema: "http://json-schema.org/draft-07/schema",
3233
- $id: "https://api.kohost.app/schemas/v3/iotGateway.json",
3249
+ $id: "https://api.kohost.io/schemas/v3/iotGateway.json",
3234
3250
  title: "IoT Gateway",
3235
3251
  description: "Any smart gateway that is an entrypoint for controlling devices",
3236
3252
  type: "object",
3237
3253
  properties: {
3238
3254
  id: {
3239
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/id"
3255
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/id"
3240
3256
  },
3241
3257
  type: {
3242
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/type"
3258
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type"
3243
3259
  },
3244
3260
  supportedNotifications: {
3245
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
3261
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/supportedNotifications"
3246
3262
  },
3247
3263
  notification: {
3248
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/notification"
3264
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/notification"
3249
3265
  },
3250
3266
  status: {
3251
3267
  type: "string"
3252
3268
  },
3253
3269
  systemData: {
3254
- $ref: "https://api.kohost.app/schemas/v3/definitions/device.json#/definitions/systemData"
3270
+ $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/systemData"
3271
+ },
3272
+ driver: {
3273
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
3255
3274
  }
3256
3275
  },
3257
3276
  additionalProperties: false,
3258
- required: ["id", "type", "systemData", "status"]
3277
+ required: ["id", "type", "systemData", "status", "driver"]
3259
3278
  };
3260
3279
  }
3261
3280
  });
@@ -3294,13 +3313,13 @@ var require_product = __commonJS({
3294
3313
  "src/schemas/product.json"(exports2, module2) {
3295
3314
  module2.exports = {
3296
3315
  $schema: "http://json-schema.org/draft-07/schema",
3297
- $id: "https://api.kohost.app/schemas/v3/product.json",
3316
+ $id: "https://api.kohost.io/schemas/v3/product.json",
3298
3317
  title: "Product",
3299
3318
  type: "object",
3300
- required: ["name", "price", "currency"],
3319
+ required: ["name", "price", "currency", "driver"],
3301
3320
  properties: {
3302
3321
  id: {
3303
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3322
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3304
3323
  },
3305
3324
  type: {
3306
3325
  type: "string"
@@ -3308,6 +3327,9 @@ var require_product = __commonJS({
3308
3327
  name: {
3309
3328
  type: "string"
3310
3329
  },
3330
+ driver: {
3331
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
3332
+ },
3311
3333
  description: {
3312
3334
  string: "string"
3313
3335
  },
@@ -3321,14 +3343,14 @@ var require_product = __commonJS({
3321
3343
  maxLength: 3
3322
3344
  },
3323
3345
  image: {
3324
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/file"
3346
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/file"
3325
3347
  },
3326
3348
  imageUrl: {
3327
3349
  format: "uri",
3328
3350
  pattern: "^https?://"
3329
3351
  },
3330
3352
  systemData: {
3331
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
3353
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
3332
3354
  }
3333
3355
  }
3334
3356
  };
@@ -3369,14 +3391,14 @@ var require_discoveredDevice = __commonJS({
3369
3391
  "src/schemas/discoveredDevice.json"(exports2, module2) {
3370
3392
  module2.exports = {
3371
3393
  $schema: "http://json-schema.org/draft-07/schema",
3372
- $id: "https://api.kohost.app/schemas/v3/discoveredDevice.json",
3394
+ $id: "https://api.kohost.io/schemas/v3/discoveredDevice.json",
3373
3395
  title: "Discovered Device",
3374
3396
  description: "A device that has been discovered by Kohost, but not yet added to the Kohost system.",
3375
3397
  type: "object",
3376
3398
  required: ["name", "deviceId", "deviceData"],
3377
3399
  properties: {
3378
3400
  id: {
3379
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3401
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3380
3402
  },
3381
3403
  name: {
3382
3404
  type: "string"
@@ -3394,7 +3416,7 @@ var require_discoveredDevice = __commonJS({
3394
3416
  "lock",
3395
3417
  "camera",
3396
3418
  "courtesy",
3397
- "source",
3419
+ "mediaSource",
3398
3420
  "alarm",
3399
3421
  "windowCovering"
3400
3422
  ]
@@ -3402,9 +3424,6 @@ var require_discoveredDevice = __commonJS({
3402
3424
  driver: {
3403
3425
  type: "string"
3404
3426
  },
3405
- integrationId: {
3406
- type: "string"
3407
- },
3408
3427
  deviceData: {
3409
3428
  type: "object"
3410
3429
  }
@@ -3447,13 +3466,13 @@ var require_credential = __commonJS({
3447
3466
  "src/schemas/credential.json"(exports2, module2) {
3448
3467
  module2.exports = {
3449
3468
  $schema: "http://json-schema.org/draft-07/schema",
3450
- $id: "https://api.kohost.app/schemas/v3/credential.json",
3469
+ $id: "https://api.kohost.io/schemas/v3/credential.json",
3451
3470
  title: "Credential",
3452
3471
  type: "object",
3453
3472
  required: ["type", "credential", "expires"],
3454
3473
  properties: {
3455
3474
  id: {
3456
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3475
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3457
3476
  },
3458
3477
  type: {
3459
3478
  type: "string",
@@ -3472,7 +3491,7 @@ var require_credential = __commonJS({
3472
3491
  string: "string"
3473
3492
  },
3474
3493
  systemData: {
3475
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
3494
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
3476
3495
  }
3477
3496
  }
3478
3497
  };
@@ -3513,13 +3532,13 @@ var require_shortLink = __commonJS({
3513
3532
  "src/schemas/shortLink.json"(exports2, module2) {
3514
3533
  module2.exports = {
3515
3534
  $schema: "http://json-schema.org/draft-07/schema",
3516
- $id: "https://api.kohost.app/schemas/v3/shortLink.json",
3535
+ $id: "https://api.kohost.io/schemas/v3/shortLink.json",
3517
3536
  title: "Short Link",
3518
3537
  type: "object",
3519
3538
  required: ["destination", "url"],
3520
3539
  properties: {
3521
3540
  id: {
3522
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3541
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3523
3542
  },
3524
3543
  type: {
3525
3544
  type: "string",
@@ -3537,7 +3556,7 @@ var require_shortLink = __commonJS({
3537
3556
  format: "uri"
3538
3557
  },
3539
3558
  systemData: {
3540
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/systemData"
3559
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/systemData"
3541
3560
  }
3542
3561
  }
3543
3562
  };
@@ -3578,14 +3597,14 @@ var require_property = __commonJS({
3578
3597
  "src/schemas/property.json"(exports2, module2) {
3579
3598
  module2.exports = {
3580
3599
  $schema: "http://json-schema.org/draft-07/schema",
3581
- $id: "https://api.kohost.app/schemas/v3/admin/property.json",
3600
+ $id: "https://api.kohost.io/schemas/v3/admin/property.json",
3582
3601
  title: "Property",
3583
3602
  type: "object",
3584
3603
  description: "A property is a physical asset or building",
3585
3604
  required: ["id", "name", "type", "hostname", "organization"],
3586
3605
  properties: {
3587
3606
  id: {
3588
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3607
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3589
3608
  },
3590
3609
  name: {
3591
3610
  type: "string"
@@ -3605,7 +3624,7 @@ var require_property = __commonJS({
3605
3624
  },
3606
3625
  organization: {
3607
3626
  type: "string",
3608
- description: "Reference to the organization that owns this property"
3627
+ description: "Reference (id) to the organization that owns this property"
3609
3628
  },
3610
3629
  address: {
3611
3630
  type: "object",
@@ -3745,7 +3764,42 @@ var require_property = __commonJS({
3745
3764
  CheckIn: {},
3746
3765
  CheckOut: {},
3747
3766
  Concierge: {},
3748
- DigitalKey: {},
3767
+ DigitalKey: {
3768
+ type: "object",
3769
+ properties: {
3770
+ system: {
3771
+ type: "string",
3772
+ enum: ["salto"]
3773
+ },
3774
+ branding: {
3775
+ type: "object",
3776
+ properties: {
3777
+ logo: {
3778
+ type: "string",
3779
+ format: "uri"
3780
+ },
3781
+ gradient: {
3782
+ type: "array",
3783
+ items: {
3784
+ type: "string",
3785
+ pattern: "^(?!#ffffff)(#[0-9a-fA-F]{6})$"
3786
+ },
3787
+ minItems: 2,
3788
+ maxItems: 2
3789
+ },
3790
+ highlightedGradient: {
3791
+ type: "array",
3792
+ items: {
3793
+ type: "string",
3794
+ pattern: "^(?!#ffffff)(#[0-9a-fA-F]{6})$"
3795
+ },
3796
+ minItems: 2,
3797
+ maxItems: 3
3798
+ }
3799
+ }
3800
+ }
3801
+ }
3802
+ },
3749
3803
  Elevator: {}
3750
3804
  },
3751
3805
  additionalProperties: false,
@@ -3797,14 +3851,14 @@ var require_organization = __commonJS({
3797
3851
  "src/schemas/organization.json"(exports2, module2) {
3798
3852
  module2.exports = {
3799
3853
  $schema: "http://json-schema.org/draft-07/schema",
3800
- $id: "https://api.kohost.app/schemas/v3/admin/organization.json",
3854
+ $id: "https://api.kohost.io/schemas/v3/admin/organization.json",
3801
3855
  title: "Organization",
3802
3856
  type: "object",
3803
3857
  description: "An organization is a group or entity that subscribes to Kohost software.",
3804
3858
  required: ["accountNumber", "name"],
3805
3859
  properties: {
3806
3860
  id: {
3807
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/id"
3861
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/id"
3808
3862
  },
3809
3863
  accountNumber: {
3810
3864
  type: "number",
@@ -3824,10 +3878,10 @@ var require_organization = __commonJS({
3824
3878
  additionalProperties: true
3825
3879
  },
3826
3880
  createdAt: {
3827
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/createdAt"
3881
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/createdAt"
3828
3882
  },
3829
3883
  updatedAt: {
3830
- $ref: "https://api.kohost.app/schemas/v3/definitions/common.json#/definitions/updatedAt"
3884
+ $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/updatedAt"
3831
3885
  }
3832
3886
  }
3833
3887
  };
@@ -3879,7 +3933,6 @@ var MotionSensor = require_motionSensor2();
3879
3933
  var MediaSource = require_mediaSource2();
3880
3934
  var Room = require_room2();
3881
3935
  var Reservation = require_reservation2();
3882
- var Application = require_application2();
3883
3936
  var Space = require_space2();
3884
3937
  var SpaceType = require_spaceType2();
3885
3938
  var Ticket = require_ticket2();
@@ -3910,7 +3963,6 @@ module.exports = {
3910
3963
  User,
3911
3964
  SystemUser,
3912
3965
  Room,
3913
- Application,
3914
3966
  Space,
3915
3967
  SpaceType,
3916
3968
  Ticket,