@seamapi/types 1.446.0 → 1.447.0
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 +15 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +144 -144
- package/dist/devicedb.d.cts +24 -24
- package/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batches/batch.d.ts +34 -34
- package/lib/seam/connect/models/batches/spaces.d.ts +34 -34
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -18
- package/lib/seam/connect/models/devices/device.d.ts +26 -26
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -18
- package/lib/seam/connect/models/events/devices.d.ts +6 -6
- package/lib/seam/connect/models/events/seam-event.d.ts +3 -3
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -6
- package/lib/seam/connect/models/thermostats/modes.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/modes.js +7 -1
- package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
- package/lib/seam/connect/openapi.js +8 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +60 -60
- package/lib/seam/devicedb/models/device-model.d.ts +12 -12
- package/lib/seam/devicedb/route-specs.d.ts +12 -12
- package/package.json +1 -1
- package/src/lib/seam/connect/models/thermostats/modes.ts +7 -1
- package/src/lib/seam/connect/openapi.ts +8 -8
- package/src/lib/seam/connect/route-types.ts +145 -60
|
@@ -17,7 +17,7 @@ export declare const thermostat: z.ZodObject<{
|
|
|
17
17
|
has_humidity_sensor: boolean;
|
|
18
18
|
has_temperature_sensor: boolean;
|
|
19
19
|
has_occupancy_detection: boolean;
|
|
20
|
-
available_modes: ("heat" | "cool" | "
|
|
20
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
21
21
|
is_heat_pump_compatible: boolean;
|
|
22
22
|
supports_demand_response: boolean;
|
|
23
23
|
supports_emergency_heating_mode: boolean;
|
|
@@ -25,7 +25,7 @@ export declare const thermostat: z.ZodObject<{
|
|
|
25
25
|
has_humidity_sensor: boolean;
|
|
26
26
|
has_temperature_sensor: boolean;
|
|
27
27
|
has_occupancy_detection: boolean;
|
|
28
|
-
available_modes: ("heat" | "cool" | "
|
|
28
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
29
29
|
is_heat_pump_compatible: boolean;
|
|
30
30
|
supports_demand_response: boolean;
|
|
31
31
|
supports_emergency_heating_mode: boolean;
|
|
@@ -52,7 +52,7 @@ export declare const thermostat: z.ZodObject<{
|
|
|
52
52
|
has_humidity_sensor: boolean;
|
|
53
53
|
has_temperature_sensor: boolean;
|
|
54
54
|
has_occupancy_detection: boolean;
|
|
55
|
-
available_modes: ("heat" | "cool" | "
|
|
55
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
56
56
|
is_heat_pump_compatible: boolean;
|
|
57
57
|
supports_demand_response: boolean;
|
|
58
58
|
supports_emergency_heating_mode: boolean;
|
|
@@ -70,7 +70,7 @@ export declare const thermostat: z.ZodObject<{
|
|
|
70
70
|
has_humidity_sensor: boolean;
|
|
71
71
|
has_temperature_sensor: boolean;
|
|
72
72
|
has_occupancy_detection: boolean;
|
|
73
|
-
available_modes: ("heat" | "cool" | "
|
|
73
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
74
74
|
is_heat_pump_compatible: boolean;
|
|
75
75
|
supports_demand_response: boolean;
|
|
76
76
|
supports_emergency_heating_mode: boolean;
|
|
@@ -206,7 +206,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
206
206
|
has_humidity_sensor: boolean;
|
|
207
207
|
has_temperature_sensor: boolean;
|
|
208
208
|
has_occupancy_detection: boolean;
|
|
209
|
-
available_modes: ("heat" | "cool" | "
|
|
209
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
210
210
|
is_heat_pump_compatible: boolean;
|
|
211
211
|
supports_demand_response: boolean;
|
|
212
212
|
supports_emergency_heating_mode: boolean;
|
|
@@ -214,7 +214,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
214
214
|
has_humidity_sensor: boolean;
|
|
215
215
|
has_temperature_sensor: boolean;
|
|
216
216
|
has_occupancy_detection: boolean;
|
|
217
|
-
available_modes: ("heat" | "cool" | "
|
|
217
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
218
218
|
is_heat_pump_compatible: boolean;
|
|
219
219
|
supports_demand_response: boolean;
|
|
220
220
|
supports_emergency_heating_mode: boolean;
|
|
@@ -241,7 +241,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
241
241
|
has_humidity_sensor: boolean;
|
|
242
242
|
has_temperature_sensor: boolean;
|
|
243
243
|
has_occupancy_detection: boolean;
|
|
244
|
-
available_modes: ("heat" | "cool" | "
|
|
244
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
245
245
|
is_heat_pump_compatible: boolean;
|
|
246
246
|
supports_demand_response: boolean;
|
|
247
247
|
supports_emergency_heating_mode: boolean;
|
|
@@ -259,7 +259,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
259
259
|
has_humidity_sensor: boolean;
|
|
260
260
|
has_temperature_sensor: boolean;
|
|
261
261
|
has_occupancy_detection: boolean;
|
|
262
|
-
available_modes: ("heat" | "cool" | "
|
|
262
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
263
263
|
is_heat_pump_compatible: boolean;
|
|
264
264
|
supports_demand_response: boolean;
|
|
265
265
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1104,7 +1104,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1104
1104
|
has_humidity_sensor: boolean;
|
|
1105
1105
|
has_temperature_sensor: boolean;
|
|
1106
1106
|
has_occupancy_detection: boolean;
|
|
1107
|
-
available_modes: ("heat" | "cool" | "
|
|
1107
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1108
1108
|
is_heat_pump_compatible: boolean;
|
|
1109
1109
|
supports_demand_response: boolean;
|
|
1110
1110
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1112,7 +1112,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1112
1112
|
has_humidity_sensor: boolean;
|
|
1113
1113
|
has_temperature_sensor: boolean;
|
|
1114
1114
|
has_occupancy_detection: boolean;
|
|
1115
|
-
available_modes: ("heat" | "cool" | "
|
|
1115
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1116
1116
|
is_heat_pump_compatible: boolean;
|
|
1117
1117
|
supports_demand_response: boolean;
|
|
1118
1118
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1139,7 +1139,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1139
1139
|
has_humidity_sensor: boolean;
|
|
1140
1140
|
has_temperature_sensor: boolean;
|
|
1141
1141
|
has_occupancy_detection: boolean;
|
|
1142
|
-
available_modes: ("heat" | "cool" | "
|
|
1142
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1143
1143
|
is_heat_pump_compatible: boolean;
|
|
1144
1144
|
supports_demand_response: boolean;
|
|
1145
1145
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1157,7 +1157,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1157
1157
|
has_humidity_sensor: boolean;
|
|
1158
1158
|
has_temperature_sensor: boolean;
|
|
1159
1159
|
has_occupancy_detection: boolean;
|
|
1160
|
-
available_modes: ("heat" | "cool" | "
|
|
1160
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1161
1161
|
is_heat_pump_compatible: boolean;
|
|
1162
1162
|
supports_demand_response: boolean;
|
|
1163
1163
|
supports_emergency_heating_mode: boolean;
|
|
@@ -451,7 +451,7 @@ export declare const routes: {
|
|
|
451
451
|
has_humidity_sensor: boolean;
|
|
452
452
|
has_temperature_sensor: boolean;
|
|
453
453
|
has_occupancy_detection: boolean;
|
|
454
|
-
available_modes: ("heat" | "cool" | "
|
|
454
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
455
455
|
is_heat_pump_compatible: boolean;
|
|
456
456
|
supports_demand_response: boolean;
|
|
457
457
|
supports_emergency_heating_mode: boolean;
|
|
@@ -459,7 +459,7 @@ export declare const routes: {
|
|
|
459
459
|
has_humidity_sensor: boolean;
|
|
460
460
|
has_temperature_sensor: boolean;
|
|
461
461
|
has_occupancy_detection: boolean;
|
|
462
|
-
available_modes: ("heat" | "cool" | "
|
|
462
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
463
463
|
is_heat_pump_compatible: boolean;
|
|
464
464
|
supports_demand_response: boolean;
|
|
465
465
|
supports_emergency_heating_mode: boolean;
|
|
@@ -486,7 +486,7 @@ export declare const routes: {
|
|
|
486
486
|
has_humidity_sensor: boolean;
|
|
487
487
|
has_temperature_sensor: boolean;
|
|
488
488
|
has_occupancy_detection: boolean;
|
|
489
|
-
available_modes: ("heat" | "cool" | "
|
|
489
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
490
490
|
is_heat_pump_compatible: boolean;
|
|
491
491
|
supports_demand_response: boolean;
|
|
492
492
|
supports_emergency_heating_mode: boolean;
|
|
@@ -504,7 +504,7 @@ export declare const routes: {
|
|
|
504
504
|
has_humidity_sensor: boolean;
|
|
505
505
|
has_temperature_sensor: boolean;
|
|
506
506
|
has_occupancy_detection: boolean;
|
|
507
|
-
available_modes: ("heat" | "cool" | "
|
|
507
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
508
508
|
is_heat_pump_compatible: boolean;
|
|
509
509
|
supports_demand_response: boolean;
|
|
510
510
|
supports_emergency_heating_mode: boolean;
|
|
@@ -683,7 +683,7 @@ export declare const routes: {
|
|
|
683
683
|
has_humidity_sensor: boolean;
|
|
684
684
|
has_temperature_sensor: boolean;
|
|
685
685
|
has_occupancy_detection: boolean;
|
|
686
|
-
available_modes: ("heat" | "cool" | "
|
|
686
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
687
687
|
is_heat_pump_compatible: boolean;
|
|
688
688
|
supports_demand_response: boolean;
|
|
689
689
|
supports_emergency_heating_mode: boolean;
|
|
@@ -806,7 +806,7 @@ export declare const routes: {
|
|
|
806
806
|
has_humidity_sensor: boolean;
|
|
807
807
|
has_temperature_sensor: boolean;
|
|
808
808
|
has_occupancy_detection: boolean;
|
|
809
|
-
available_modes: ("heat" | "cool" | "
|
|
809
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
810
810
|
is_heat_pump_compatible: boolean;
|
|
811
811
|
supports_demand_response: boolean;
|
|
812
812
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1312,7 +1312,7 @@ export declare const routes: {
|
|
|
1312
1312
|
has_humidity_sensor: boolean;
|
|
1313
1313
|
has_temperature_sensor: boolean;
|
|
1314
1314
|
has_occupancy_detection: boolean;
|
|
1315
|
-
available_modes: ("heat" | "cool" | "
|
|
1315
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1316
1316
|
is_heat_pump_compatible: boolean;
|
|
1317
1317
|
supports_demand_response: boolean;
|
|
1318
1318
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1320,7 +1320,7 @@ export declare const routes: {
|
|
|
1320
1320
|
has_humidity_sensor: boolean;
|
|
1321
1321
|
has_temperature_sensor: boolean;
|
|
1322
1322
|
has_occupancy_detection: boolean;
|
|
1323
|
-
available_modes: ("heat" | "cool" | "
|
|
1323
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1324
1324
|
is_heat_pump_compatible: boolean;
|
|
1325
1325
|
supports_demand_response: boolean;
|
|
1326
1326
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1347,7 +1347,7 @@ export declare const routes: {
|
|
|
1347
1347
|
has_humidity_sensor: boolean;
|
|
1348
1348
|
has_temperature_sensor: boolean;
|
|
1349
1349
|
has_occupancy_detection: boolean;
|
|
1350
|
-
available_modes: ("heat" | "cool" | "
|
|
1350
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1351
1351
|
is_heat_pump_compatible: boolean;
|
|
1352
1352
|
supports_demand_response: boolean;
|
|
1353
1353
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1365,7 +1365,7 @@ export declare const routes: {
|
|
|
1365
1365
|
has_humidity_sensor: boolean;
|
|
1366
1366
|
has_temperature_sensor: boolean;
|
|
1367
1367
|
has_occupancy_detection: boolean;
|
|
1368
|
-
available_modes: ("heat" | "cool" | "
|
|
1368
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1369
1369
|
is_heat_pump_compatible: boolean;
|
|
1370
1370
|
supports_demand_response: boolean;
|
|
1371
1371
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1544,7 +1544,7 @@ export declare const routes: {
|
|
|
1544
1544
|
has_humidity_sensor: boolean;
|
|
1545
1545
|
has_temperature_sensor: boolean;
|
|
1546
1546
|
has_occupancy_detection: boolean;
|
|
1547
|
-
available_modes: ("heat" | "cool" | "
|
|
1547
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1548
1548
|
is_heat_pump_compatible: boolean;
|
|
1549
1549
|
supports_demand_response: boolean;
|
|
1550
1550
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1667,7 +1667,7 @@ export declare const routes: {
|
|
|
1667
1667
|
has_humidity_sensor: boolean;
|
|
1668
1668
|
has_temperature_sensor: boolean;
|
|
1669
1669
|
has_occupancy_detection: boolean;
|
|
1670
|
-
available_modes: ("heat" | "cool" | "
|
|
1670
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1671
1671
|
is_heat_pump_compatible: boolean;
|
|
1672
1672
|
supports_demand_response: boolean;
|
|
1673
1673
|
supports_emergency_heating_mode: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const hvac_mode_setting = z.enum([
|
|
3
|
+
export const hvac_mode_setting = z.enum([
|
|
4
|
+
'off',
|
|
5
|
+
'heat',
|
|
6
|
+
'cool',
|
|
7
|
+
'heat_cool',
|
|
8
|
+
'eco',
|
|
9
|
+
])
|
|
4
10
|
|
|
5
11
|
export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
|
|
6
12
|
|
|
@@ -11637,7 +11637,7 @@ export default {
|
|
|
11637
11637
|
hvac_mode_setting: {
|
|
11638
11638
|
description:
|
|
11639
11639
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
11640
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
11640
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
11641
11641
|
type: 'string',
|
|
11642
11642
|
},
|
|
11643
11643
|
manual_override_allowed: {
|
|
@@ -11683,7 +11683,7 @@ export default {
|
|
|
11683
11683
|
description:
|
|
11684
11684
|
'HVAC mode settings that the thermostat supports.',
|
|
11685
11685
|
items: {
|
|
11686
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
11686
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
11687
11687
|
type: 'string',
|
|
11688
11688
|
},
|
|
11689
11689
|
type: 'array',
|
|
@@ -11787,7 +11787,7 @@ export default {
|
|
|
11787
11787
|
hvac_mode_setting: {
|
|
11788
11788
|
description:
|
|
11789
11789
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
11790
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
11790
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
11791
11791
|
type: 'string',
|
|
11792
11792
|
},
|
|
11793
11793
|
manual_override_allowed: {
|
|
@@ -11907,7 +11907,7 @@ export default {
|
|
|
11907
11907
|
hvac_mode_setting: {
|
|
11908
11908
|
description:
|
|
11909
11909
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
11910
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
11910
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
11911
11911
|
type: 'string',
|
|
11912
11912
|
},
|
|
11913
11913
|
manual_override_allowed: {
|
|
@@ -18234,7 +18234,7 @@ export default {
|
|
|
18234
18234
|
hvac_mode_setting: {
|
|
18235
18235
|
description:
|
|
18236
18236
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
18237
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
18237
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
18238
18238
|
type: 'string',
|
|
18239
18239
|
},
|
|
18240
18240
|
method: {
|
|
@@ -48183,7 +48183,7 @@ export default {
|
|
|
48183
48183
|
hvac_mode_setting: {
|
|
48184
48184
|
description:
|
|
48185
48185
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
48186
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
48186
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
48187
48187
|
type: 'string',
|
|
48188
48188
|
},
|
|
48189
48189
|
manual_override_allowed: {
|
|
@@ -50961,7 +50961,7 @@ export default {
|
|
|
50961
50961
|
hvac_mode_setting: {
|
|
50962
50962
|
description:
|
|
50963
50963
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
50964
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
50964
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
50965
50965
|
type: 'string',
|
|
50966
50966
|
},
|
|
50967
50967
|
manual_override_allowed: {
|
|
@@ -51105,7 +51105,7 @@ export default {
|
|
|
51105
51105
|
hvac_mode_setting: {
|
|
51106
51106
|
description:
|
|
51107
51107
|
'Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.',
|
|
51108
|
-
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
51108
|
+
enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'],
|
|
51109
51109
|
type: 'string',
|
|
51110
51110
|
},
|
|
51111
51111
|
manual_override_allowed: {
|