@seamapi/types 1.242.0 → 1.242.1
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.
- package/dist/connect.cjs +77 -42
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +120 -62
- package/dist/devicedb.cjs +9 -6
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +123 -70
- package/lib/seam/connect/models/acs/acs-system.d.ts +86 -42
- package/lib/seam/connect/models/acs/acs-system.js +23 -20
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +8 -8
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
- package/lib/seam/connect/models/devices/device.d.ts +6 -6
- package/lib/seam/connect/models/devices/phone.d.ts +5 -5
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
- package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/index.js +1 -1
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/models/thermostats/{climate-setting-schedule.js → thermostat-schedule.js} +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +9 -0
- package/lib/seam/connect/openapi.js +46 -21
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +64 -36
- package/lib/seam/devicedb/models/device-model.d.ts +59 -24
- package/lib/seam/devicedb/models/device-model.js +9 -6
- package/lib/seam/devicedb/models/device-model.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +56 -38
- package/lib/seam/devicedb/route-types.d.ts +8 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +32 -24
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +49 -21
- package/src/lib/seam/connect/route-types.ts +68 -36
- package/src/lib/seam/devicedb/models/device-model.ts +24 -19
- package/src/lib/seam/devicedb/route-types.ts +8 -8
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +0 -1
- /package/lib/seam/connect/models/thermostats/{climate-setting-schedule.d.ts → thermostat-schedule.d.ts} +0 -0
- /package/src/lib/seam/connect/models/thermostats/{climate-setting-schedule.ts → thermostat-schedule.ts} +0 -0
|
@@ -369,7 +369,7 @@ export declare const routes: {
|
|
|
369
369
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
370
370
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
371
371
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
372
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
372
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
373
373
|
main_category: "smartlock";
|
|
374
374
|
physical_properties: {
|
|
375
375
|
has_physical_key: boolean;
|
|
@@ -386,10 +386,6 @@ export declare const routes: {
|
|
|
386
386
|
can_remotely_lock?: true | undefined;
|
|
387
387
|
can_program_offline_access_codes?: true | undefined;
|
|
388
388
|
can_program_online_access_codes?: true | undefined;
|
|
389
|
-
can_hvac_heat?: true | undefined;
|
|
390
|
-
can_hvac_cool?: true | undefined;
|
|
391
|
-
can_hvac_heat_cool?: true | undefined;
|
|
392
|
-
can_turn_off_hvac?: true | undefined;
|
|
393
389
|
}, {
|
|
394
390
|
main_category: "smartlock";
|
|
395
391
|
physical_properties: {
|
|
@@ -407,10 +403,6 @@ export declare const routes: {
|
|
|
407
403
|
can_remotely_lock?: true | undefined;
|
|
408
404
|
can_program_offline_access_codes?: true | undefined;
|
|
409
405
|
can_program_online_access_codes?: true | undefined;
|
|
410
|
-
can_hvac_heat?: true | undefined;
|
|
411
|
-
can_hvac_cool?: true | undefined;
|
|
412
|
-
can_hvac_heat_cool?: true | undefined;
|
|
413
|
-
can_turn_off_hvac?: true | undefined;
|
|
414
406
|
}>, z.ZodObject<{
|
|
415
407
|
main_category: z.ZodLiteral<"sensor">;
|
|
416
408
|
physical_properties: z.ZodObject<{
|
|
@@ -445,7 +437,7 @@ export declare const routes: {
|
|
|
445
437
|
has_temperature_sensor: boolean;
|
|
446
438
|
has_occupancy_detection: boolean;
|
|
447
439
|
};
|
|
448
|
-
}>, z.ZodObject<{
|
|
440
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
449
441
|
main_category: z.ZodLiteral<"thermostat">;
|
|
450
442
|
physical_properties: z.ZodObject<{
|
|
451
443
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -479,7 +471,16 @@ export declare const routes: {
|
|
|
479
471
|
}, {
|
|
480
472
|
can_program_climate_schedules: boolean;
|
|
481
473
|
}>;
|
|
482
|
-
},
|
|
474
|
+
}, Pick<{
|
|
475
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
476
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
477
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
478
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
479
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
480
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
481
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
482
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
483
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
483
484
|
main_category: "thermostat";
|
|
484
485
|
physical_properties: {
|
|
485
486
|
has_humidity_sensor: boolean;
|
|
@@ -493,6 +494,10 @@ export declare const routes: {
|
|
|
493
494
|
software_features: {
|
|
494
495
|
can_program_climate_schedules: boolean;
|
|
495
496
|
};
|
|
497
|
+
can_hvac_heat?: true | undefined;
|
|
498
|
+
can_hvac_cool?: true | undefined;
|
|
499
|
+
can_hvac_heat_cool?: true | undefined;
|
|
500
|
+
can_turn_off_hvac?: true | undefined;
|
|
496
501
|
}, {
|
|
497
502
|
main_category: "thermostat";
|
|
498
503
|
physical_properties: {
|
|
@@ -507,6 +512,10 @@ export declare const routes: {
|
|
|
507
512
|
software_features: {
|
|
508
513
|
can_program_climate_schedules: boolean;
|
|
509
514
|
};
|
|
515
|
+
can_hvac_heat?: true | undefined;
|
|
516
|
+
can_hvac_cool?: true | undefined;
|
|
517
|
+
can_hvac_heat_cool?: true | undefined;
|
|
518
|
+
can_turn_off_hvac?: true | undefined;
|
|
510
519
|
}>, z.ZodObject<{
|
|
511
520
|
main_category: z.ZodLiteral<"relay">;
|
|
512
521
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -660,10 +669,6 @@ export declare const routes: {
|
|
|
660
669
|
can_remotely_lock?: true | undefined;
|
|
661
670
|
can_program_offline_access_codes?: true | undefined;
|
|
662
671
|
can_program_online_access_codes?: true | undefined;
|
|
663
|
-
can_hvac_heat?: true | undefined;
|
|
664
|
-
can_hvac_cool?: true | undefined;
|
|
665
|
-
can_hvac_heat_cool?: true | undefined;
|
|
666
|
-
can_turn_off_hvac?: true | undefined;
|
|
667
672
|
} | {
|
|
668
673
|
main_category: "sensor";
|
|
669
674
|
physical_properties: {
|
|
@@ -686,6 +691,10 @@ export declare const routes: {
|
|
|
686
691
|
software_features: {
|
|
687
692
|
can_program_climate_schedules: boolean;
|
|
688
693
|
};
|
|
694
|
+
can_hvac_heat?: true | undefined;
|
|
695
|
+
can_hvac_cool?: true | undefined;
|
|
696
|
+
can_hvac_heat_cool?: true | undefined;
|
|
697
|
+
can_turn_off_hvac?: true | undefined;
|
|
689
698
|
} | {
|
|
690
699
|
main_category: "relay";
|
|
691
700
|
} | {
|
|
@@ -783,10 +792,6 @@ export declare const routes: {
|
|
|
783
792
|
can_remotely_lock?: true | undefined;
|
|
784
793
|
can_program_offline_access_codes?: true | undefined;
|
|
785
794
|
can_program_online_access_codes?: true | undefined;
|
|
786
|
-
can_hvac_heat?: true | undefined;
|
|
787
|
-
can_hvac_cool?: true | undefined;
|
|
788
|
-
can_hvac_heat_cool?: true | undefined;
|
|
789
|
-
can_turn_off_hvac?: true | undefined;
|
|
790
795
|
} | {
|
|
791
796
|
main_category: "sensor";
|
|
792
797
|
physical_properties: {
|
|
@@ -809,6 +814,10 @@ export declare const routes: {
|
|
|
809
814
|
software_features: {
|
|
810
815
|
can_program_climate_schedules: boolean;
|
|
811
816
|
};
|
|
817
|
+
can_hvac_heat?: true | undefined;
|
|
818
|
+
can_hvac_cool?: true | undefined;
|
|
819
|
+
can_hvac_heat_cool?: true | undefined;
|
|
820
|
+
can_turn_off_hvac?: true | undefined;
|
|
812
821
|
} | {
|
|
813
822
|
main_category: "relay";
|
|
814
823
|
} | {
|
|
@@ -1221,7 +1230,7 @@ export declare const routes: {
|
|
|
1221
1230
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1222
1231
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1223
1232
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1224
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
1233
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
1225
1234
|
main_category: "smartlock";
|
|
1226
1235
|
physical_properties: {
|
|
1227
1236
|
has_physical_key: boolean;
|
|
@@ -1238,10 +1247,6 @@ export declare const routes: {
|
|
|
1238
1247
|
can_remotely_lock?: true | undefined;
|
|
1239
1248
|
can_program_offline_access_codes?: true | undefined;
|
|
1240
1249
|
can_program_online_access_codes?: true | undefined;
|
|
1241
|
-
can_hvac_heat?: true | undefined;
|
|
1242
|
-
can_hvac_cool?: true | undefined;
|
|
1243
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1244
|
-
can_turn_off_hvac?: true | undefined;
|
|
1245
1250
|
}, {
|
|
1246
1251
|
main_category: "smartlock";
|
|
1247
1252
|
physical_properties: {
|
|
@@ -1259,10 +1264,6 @@ export declare const routes: {
|
|
|
1259
1264
|
can_remotely_lock?: true | undefined;
|
|
1260
1265
|
can_program_offline_access_codes?: true | undefined;
|
|
1261
1266
|
can_program_online_access_codes?: true | undefined;
|
|
1262
|
-
can_hvac_heat?: true | undefined;
|
|
1263
|
-
can_hvac_cool?: true | undefined;
|
|
1264
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1265
|
-
can_turn_off_hvac?: true | undefined;
|
|
1266
1267
|
}>, z.ZodObject<{
|
|
1267
1268
|
main_category: z.ZodLiteral<"sensor">;
|
|
1268
1269
|
physical_properties: z.ZodObject<{
|
|
@@ -1297,7 +1298,7 @@ export declare const routes: {
|
|
|
1297
1298
|
has_temperature_sensor: boolean;
|
|
1298
1299
|
has_occupancy_detection: boolean;
|
|
1299
1300
|
};
|
|
1300
|
-
}>, z.ZodObject<{
|
|
1301
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1301
1302
|
main_category: z.ZodLiteral<"thermostat">;
|
|
1302
1303
|
physical_properties: z.ZodObject<{
|
|
1303
1304
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -1331,7 +1332,16 @@ export declare const routes: {
|
|
|
1331
1332
|
}, {
|
|
1332
1333
|
can_program_climate_schedules: boolean;
|
|
1333
1334
|
}>;
|
|
1334
|
-
},
|
|
1335
|
+
}, Pick<{
|
|
1336
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1337
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1338
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1339
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1340
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1341
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1342
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1343
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1344
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
1335
1345
|
main_category: "thermostat";
|
|
1336
1346
|
physical_properties: {
|
|
1337
1347
|
has_humidity_sensor: boolean;
|
|
@@ -1345,6 +1355,10 @@ export declare const routes: {
|
|
|
1345
1355
|
software_features: {
|
|
1346
1356
|
can_program_climate_schedules: boolean;
|
|
1347
1357
|
};
|
|
1358
|
+
can_hvac_heat?: true | undefined;
|
|
1359
|
+
can_hvac_cool?: true | undefined;
|
|
1360
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1361
|
+
can_turn_off_hvac?: true | undefined;
|
|
1348
1362
|
}, {
|
|
1349
1363
|
main_category: "thermostat";
|
|
1350
1364
|
physical_properties: {
|
|
@@ -1359,6 +1373,10 @@ export declare const routes: {
|
|
|
1359
1373
|
software_features: {
|
|
1360
1374
|
can_program_climate_schedules: boolean;
|
|
1361
1375
|
};
|
|
1376
|
+
can_hvac_heat?: true | undefined;
|
|
1377
|
+
can_hvac_cool?: true | undefined;
|
|
1378
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1379
|
+
can_turn_off_hvac?: true | undefined;
|
|
1362
1380
|
}>, z.ZodObject<{
|
|
1363
1381
|
main_category: z.ZodLiteral<"relay">;
|
|
1364
1382
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1512,10 +1530,6 @@ export declare const routes: {
|
|
|
1512
1530
|
can_remotely_lock?: true | undefined;
|
|
1513
1531
|
can_program_offline_access_codes?: true | undefined;
|
|
1514
1532
|
can_program_online_access_codes?: true | undefined;
|
|
1515
|
-
can_hvac_heat?: true | undefined;
|
|
1516
|
-
can_hvac_cool?: true | undefined;
|
|
1517
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1518
|
-
can_turn_off_hvac?: true | undefined;
|
|
1519
1533
|
} | {
|
|
1520
1534
|
main_category: "sensor";
|
|
1521
1535
|
physical_properties: {
|
|
@@ -1538,6 +1552,10 @@ export declare const routes: {
|
|
|
1538
1552
|
software_features: {
|
|
1539
1553
|
can_program_climate_schedules: boolean;
|
|
1540
1554
|
};
|
|
1555
|
+
can_hvac_heat?: true | undefined;
|
|
1556
|
+
can_hvac_cool?: true | undefined;
|
|
1557
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1558
|
+
can_turn_off_hvac?: true | undefined;
|
|
1541
1559
|
} | {
|
|
1542
1560
|
main_category: "relay";
|
|
1543
1561
|
} | {
|
|
@@ -1635,10 +1653,6 @@ export declare const routes: {
|
|
|
1635
1653
|
can_remotely_lock?: true | undefined;
|
|
1636
1654
|
can_program_offline_access_codes?: true | undefined;
|
|
1637
1655
|
can_program_online_access_codes?: true | undefined;
|
|
1638
|
-
can_hvac_heat?: true | undefined;
|
|
1639
|
-
can_hvac_cool?: true | undefined;
|
|
1640
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1641
|
-
can_turn_off_hvac?: true | undefined;
|
|
1642
1656
|
} | {
|
|
1643
1657
|
main_category: "sensor";
|
|
1644
1658
|
physical_properties: {
|
|
@@ -1661,6 +1675,10 @@ export declare const routes: {
|
|
|
1661
1675
|
software_features: {
|
|
1662
1676
|
can_program_climate_schedules: boolean;
|
|
1663
1677
|
};
|
|
1678
|
+
can_hvac_heat?: true | undefined;
|
|
1679
|
+
can_hvac_cool?: true | undefined;
|
|
1680
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1681
|
+
can_turn_off_hvac?: true | undefined;
|
|
1664
1682
|
} | {
|
|
1665
1683
|
main_category: "relay";
|
|
1666
1684
|
} | {
|
|
@@ -86,10 +86,6 @@ export interface Routes {
|
|
|
86
86
|
can_remotely_unlock?: true | undefined;
|
|
87
87
|
can_program_offline_access_codes?: true | undefined;
|
|
88
88
|
can_program_online_access_codes?: true | undefined;
|
|
89
|
-
can_hvac_heat?: true | undefined;
|
|
90
|
-
can_hvac_cool?: true | undefined;
|
|
91
|
-
can_hvac_heat_cool?: true | undefined;
|
|
92
|
-
can_turn_off_hvac?: true | undefined;
|
|
93
89
|
} | {
|
|
94
90
|
main_category: 'sensor';
|
|
95
91
|
physical_properties: {
|
|
@@ -112,6 +108,10 @@ export interface Routes {
|
|
|
112
108
|
software_features: {
|
|
113
109
|
can_program_climate_schedules: boolean;
|
|
114
110
|
};
|
|
111
|
+
can_hvac_heat?: true | undefined;
|
|
112
|
+
can_hvac_cool?: true | undefined;
|
|
113
|
+
can_hvac_heat_cool?: true | undefined;
|
|
114
|
+
can_turn_off_hvac?: true | undefined;
|
|
115
115
|
} | {
|
|
116
116
|
main_category: 'relay';
|
|
117
117
|
} | {
|
|
@@ -227,10 +227,6 @@ export interface Routes {
|
|
|
227
227
|
can_remotely_unlock?: true | undefined;
|
|
228
228
|
can_program_offline_access_codes?: true | undefined;
|
|
229
229
|
can_program_online_access_codes?: true | undefined;
|
|
230
|
-
can_hvac_heat?: true | undefined;
|
|
231
|
-
can_hvac_cool?: true | undefined;
|
|
232
|
-
can_hvac_heat_cool?: true | undefined;
|
|
233
|
-
can_turn_off_hvac?: true | undefined;
|
|
234
230
|
} | {
|
|
235
231
|
main_category: 'sensor';
|
|
236
232
|
physical_properties: {
|
|
@@ -253,6 +249,10 @@ export interface Routes {
|
|
|
253
249
|
software_features: {
|
|
254
250
|
can_program_climate_schedules: boolean;
|
|
255
251
|
};
|
|
252
|
+
can_hvac_heat?: true | undefined;
|
|
253
|
+
can_hvac_cool?: true | undefined;
|
|
254
|
+
can_hvac_heat_cool?: true | undefined;
|
|
255
|
+
can_turn_off_hvac?: true | undefined;
|
|
256
256
|
} | {
|
|
257
257
|
main_category: 'relay';
|
|
258
258
|
} | {
|
package/package.json
CHANGED
|
@@ -73,41 +73,49 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
|
73
73
|
For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
74
74
|
See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`)
|
|
75
75
|
|
|
76
|
-
const
|
|
76
|
+
const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
|
|
77
77
|
error_code: z
|
|
78
|
-
.literal('
|
|
78
|
+
.literal('salto_ks_subscription_limit_exceeded')
|
|
79
79
|
.describe(
|
|
80
80
|
'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
|
|
81
81
|
),
|
|
82
82
|
})
|
|
83
83
|
|
|
84
|
-
const
|
|
84
|
+
const acs_system_disconnected = common_acs_system_error.extend({
|
|
85
85
|
error_code: z
|
|
86
|
-
.literal('
|
|
86
|
+
.literal('acs_system_disconnected')
|
|
87
87
|
.describe(
|
|
88
|
-
|
|
88
|
+
'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
|
|
89
|
+
),
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
const account_disconnected = common_acs_system_error.extend({
|
|
93
|
+
error_code: z
|
|
94
|
+
.literal('account_disconnected')
|
|
95
|
+
.describe(
|
|
96
|
+
'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
|
|
89
97
|
),
|
|
90
98
|
})
|
|
91
99
|
const acs_system_error = z
|
|
92
100
|
.union([
|
|
93
101
|
seam_bridge_disconnected,
|
|
94
102
|
visionline_instance_unreachable,
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
salto_ks_subscription_limit_exceeded,
|
|
104
|
+
acs_system_disconnected,
|
|
105
|
+
account_disconnected,
|
|
97
106
|
])
|
|
98
107
|
.describe('Error associated with the `acs_system`.')
|
|
99
108
|
|
|
100
|
-
const acs_system_error_map = z.object({
|
|
109
|
+
export const acs_system_error_map = z.object({
|
|
101
110
|
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
102
111
|
visionline_instance_unreachable: visionline_instance_unreachable
|
|
103
112
|
.optional()
|
|
104
113
|
.nullable(),
|
|
105
|
-
|
|
106
|
-
.optional()
|
|
107
|
-
.nullable(),
|
|
108
|
-
salto_seam_integration_blocked: salto_seam_integration_blocked
|
|
114
|
+
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
109
115
|
.optional()
|
|
110
116
|
.nullable(),
|
|
117
|
+
acs_system_disconnected: acs_system_disconnected.optional().nullable(),
|
|
118
|
+
account_disconnected: account_disconnected.optional().nullable(),
|
|
111
119
|
})
|
|
112
120
|
|
|
113
121
|
export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
|
|
@@ -124,24 +132,24 @@ const common_acs_system_warning = z.object({
|
|
|
124
132
|
),
|
|
125
133
|
})
|
|
126
134
|
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
const salto_ks_subscription_limit_almost_reached =
|
|
136
|
+
common_acs_system_warning.extend({
|
|
137
|
+
warning_code: z
|
|
138
|
+
.literal('salto_ks_subscription_limit_almost_reached')
|
|
139
|
+
.describe(
|
|
140
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
141
|
+
),
|
|
142
|
+
})
|
|
134
143
|
|
|
135
144
|
const acs_system_warning =
|
|
136
145
|
// z.union([
|
|
137
|
-
|
|
146
|
+
salto_ks_subscription_limit_almost_reached
|
|
138
147
|
// ])
|
|
139
148
|
.describe('Warning associated with the `acs_system`.')
|
|
140
149
|
|
|
141
|
-
const acs_system_warning_map = z.object({
|
|
142
|
-
|
|
143
|
-
.optional()
|
|
144
|
-
.nullable(),
|
|
150
|
+
export const acs_system_warning_map = z.object({
|
|
151
|
+
salto_ks_subscription_limit_almost_reached:
|
|
152
|
+
salto_ks_subscription_limit_almost_reached.optional().nullable(),
|
|
145
153
|
})
|
|
146
154
|
|
|
147
155
|
export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
|
|
@@ -6,7 +6,7 @@ export const climate_preset = z.object({
|
|
|
6
6
|
climate_preset_key: z.string(),
|
|
7
7
|
can_edit: z.boolean(),
|
|
8
8
|
can_delete: z.boolean(),
|
|
9
|
-
name: z.string().nullable(),
|
|
9
|
+
name: z.string().nullable().default(null),
|
|
10
10
|
display_name: z.string(),
|
|
11
11
|
fan_mode_setting: fan_mode_setting.optional(),
|
|
12
12
|
hvac_mode_setting: hvac_mode_setting.optional(),
|
|
@@ -552,7 +552,30 @@ export default {
|
|
|
552
552
|
error_code: {
|
|
553
553
|
description:
|
|
554
554
|
'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
|
|
555
|
-
enum: ['
|
|
555
|
+
enum: ['salto_ks_subscription_limit_exceeded'],
|
|
556
|
+
type: 'string',
|
|
557
|
+
},
|
|
558
|
+
message: {
|
|
559
|
+
description:
|
|
560
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
561
|
+
type: 'string',
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
required: ['created_at', 'message', 'error_code'],
|
|
565
|
+
type: 'object',
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
properties: {
|
|
569
|
+
created_at: {
|
|
570
|
+
description:
|
|
571
|
+
'Date and time at which Seam created the error.',
|
|
572
|
+
format: 'date-time',
|
|
573
|
+
type: 'string',
|
|
574
|
+
},
|
|
575
|
+
error_code: {
|
|
576
|
+
description:
|
|
577
|
+
'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
|
|
578
|
+
enum: ['acs_system_disconnected'],
|
|
556
579
|
type: 'string',
|
|
557
580
|
},
|
|
558
581
|
message: {
|
|
@@ -574,8 +597,8 @@ export default {
|
|
|
574
597
|
},
|
|
575
598
|
error_code: {
|
|
576
599
|
description:
|
|
577
|
-
|
|
578
|
-
enum: ['
|
|
600
|
+
'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
|
|
601
|
+
enum: ['account_disconnected'],
|
|
579
602
|
type: 'string',
|
|
580
603
|
},
|
|
581
604
|
message: {
|
|
@@ -667,8 +690,8 @@ export default {
|
|
|
667
690
|
},
|
|
668
691
|
warning_code: {
|
|
669
692
|
description:
|
|
670
|
-
'
|
|
671
|
-
enum: ['
|
|
693
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
694
|
+
enum: ['salto_ks_subscription_limit_almost_reached'],
|
|
672
695
|
type: 'string',
|
|
673
696
|
},
|
|
674
697
|
},
|
|
@@ -3242,13 +3265,16 @@ export default {
|
|
|
3242
3265
|
type: 'string',
|
|
3243
3266
|
},
|
|
3244
3267
|
manual_override_allowed: { type: 'boolean' },
|
|
3245
|
-
name: {
|
|
3268
|
+
name: {
|
|
3269
|
+
default: null,
|
|
3270
|
+
nullable: true,
|
|
3271
|
+
type: 'string',
|
|
3272
|
+
},
|
|
3246
3273
|
},
|
|
3247
3274
|
required: [
|
|
3248
3275
|
'climate_preset_key',
|
|
3249
3276
|
'can_edit',
|
|
3250
3277
|
'can_delete',
|
|
3251
|
-
'name',
|
|
3252
3278
|
'display_name',
|
|
3253
3279
|
'manual_override_allowed',
|
|
3254
3280
|
],
|
|
@@ -3294,7 +3320,11 @@ export default {
|
|
|
3294
3320
|
type: 'string',
|
|
3295
3321
|
},
|
|
3296
3322
|
manual_override_allowed: { type: 'boolean' },
|
|
3297
|
-
name: {
|
|
3323
|
+
name: {
|
|
3324
|
+
default: null,
|
|
3325
|
+
nullable: true,
|
|
3326
|
+
type: 'string',
|
|
3327
|
+
},
|
|
3298
3328
|
},
|
|
3299
3329
|
type: 'object',
|
|
3300
3330
|
},
|
|
@@ -3330,7 +3360,11 @@ export default {
|
|
|
3330
3360
|
type: 'string',
|
|
3331
3361
|
},
|
|
3332
3362
|
manual_override_allowed: { type: 'boolean' },
|
|
3333
|
-
name: {
|
|
3363
|
+
name: {
|
|
3364
|
+
default: null,
|
|
3365
|
+
nullable: true,
|
|
3366
|
+
type: 'string',
|
|
3367
|
+
},
|
|
3334
3368
|
},
|
|
3335
3369
|
type: 'object',
|
|
3336
3370
|
'x-deprecated':
|
|
@@ -12644,12 +12678,11 @@ export default {
|
|
|
12644
12678
|
type: 'string',
|
|
12645
12679
|
},
|
|
12646
12680
|
manual_override_allowed: { type: 'boolean' },
|
|
12647
|
-
name: { nullable: true, type: 'string' },
|
|
12681
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
12648
12682
|
},
|
|
12649
12683
|
required: [
|
|
12650
12684
|
'device_id',
|
|
12651
12685
|
'climate_preset_key',
|
|
12652
|
-
'name',
|
|
12653
12686
|
'manual_override_allowed',
|
|
12654
12687
|
],
|
|
12655
12688
|
type: 'object',
|
|
@@ -12694,13 +12727,12 @@ export default {
|
|
|
12694
12727
|
type: 'string',
|
|
12695
12728
|
},
|
|
12696
12729
|
manual_override_allowed: { type: 'boolean' },
|
|
12697
|
-
name: { nullable: true, type: 'string' },
|
|
12730
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
12698
12731
|
},
|
|
12699
12732
|
required: [
|
|
12700
12733
|
'climate_preset_key',
|
|
12701
12734
|
'can_edit',
|
|
12702
12735
|
'can_delete',
|
|
12703
|
-
'name',
|
|
12704
12736
|
'display_name',
|
|
12705
12737
|
'manual_override_allowed',
|
|
12706
12738
|
],
|
|
@@ -13702,12 +13734,11 @@ export default {
|
|
|
13702
13734
|
type: 'string',
|
|
13703
13735
|
},
|
|
13704
13736
|
manual_override_allowed: { type: 'boolean' },
|
|
13705
|
-
name: { nullable: true, type: 'string' },
|
|
13737
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
13706
13738
|
},
|
|
13707
13739
|
required: [
|
|
13708
13740
|
'device_id',
|
|
13709
13741
|
'climate_preset_key',
|
|
13710
|
-
'name',
|
|
13711
13742
|
'manual_override_allowed',
|
|
13712
13743
|
],
|
|
13713
13744
|
type: 'object',
|
|
@@ -13752,13 +13783,12 @@ export default {
|
|
|
13752
13783
|
type: 'string',
|
|
13753
13784
|
},
|
|
13754
13785
|
manual_override_allowed: { type: 'boolean' },
|
|
13755
|
-
name: { nullable: true, type: 'string' },
|
|
13786
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
13756
13787
|
},
|
|
13757
13788
|
required: [
|
|
13758
13789
|
'climate_preset_key',
|
|
13759
13790
|
'can_edit',
|
|
13760
13791
|
'can_delete',
|
|
13761
|
-
'name',
|
|
13762
13792
|
'display_name',
|
|
13763
13793
|
'manual_override_allowed',
|
|
13764
13794
|
],
|
|
@@ -13816,12 +13846,11 @@ export default {
|
|
|
13816
13846
|
type: 'string',
|
|
13817
13847
|
},
|
|
13818
13848
|
manual_override_allowed: { type: 'boolean' },
|
|
13819
|
-
name: { nullable: true, type: 'string' },
|
|
13849
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
13820
13850
|
},
|
|
13821
13851
|
required: [
|
|
13822
13852
|
'device_id',
|
|
13823
13853
|
'climate_preset_key',
|
|
13824
|
-
'name',
|
|
13825
13854
|
'manual_override_allowed',
|
|
13826
13855
|
],
|
|
13827
13856
|
type: 'object',
|
|
@@ -13866,13 +13895,12 @@ export default {
|
|
|
13866
13895
|
type: 'string',
|
|
13867
13896
|
},
|
|
13868
13897
|
manual_override_allowed: { type: 'boolean' },
|
|
13869
|
-
name: { nullable: true, type: 'string' },
|
|
13898
|
+
name: { default: null, nullable: true, type: 'string' },
|
|
13870
13899
|
},
|
|
13871
13900
|
required: [
|
|
13872
13901
|
'climate_preset_key',
|
|
13873
13902
|
'can_edit',
|
|
13874
13903
|
'can_delete',
|
|
13875
|
-
'name',
|
|
13876
13904
|
'display_name',
|
|
13877
13905
|
'manual_override_allowed',
|
|
13878
13906
|
],
|