@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
package/dist/devicedb.d.cts
CHANGED
|
@@ -47,7 +47,7 @@ declare const thermostat: z.ZodObject<{
|
|
|
47
47
|
has_humidity_sensor: boolean;
|
|
48
48
|
has_temperature_sensor: boolean;
|
|
49
49
|
has_occupancy_detection: boolean;
|
|
50
|
-
available_modes: ("heat" | "cool" | "
|
|
50
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
51
51
|
is_heat_pump_compatible: boolean;
|
|
52
52
|
supports_demand_response: boolean;
|
|
53
53
|
supports_emergency_heating_mode: boolean;
|
|
@@ -55,7 +55,7 @@ declare const thermostat: z.ZodObject<{
|
|
|
55
55
|
has_humidity_sensor: boolean;
|
|
56
56
|
has_temperature_sensor: boolean;
|
|
57
57
|
has_occupancy_detection: boolean;
|
|
58
|
-
available_modes: ("heat" | "cool" | "
|
|
58
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
59
59
|
is_heat_pump_compatible: boolean;
|
|
60
60
|
supports_demand_response: boolean;
|
|
61
61
|
supports_emergency_heating_mode: boolean;
|
|
@@ -82,7 +82,7 @@ declare const thermostat: z.ZodObject<{
|
|
|
82
82
|
has_humidity_sensor: boolean;
|
|
83
83
|
has_temperature_sensor: boolean;
|
|
84
84
|
has_occupancy_detection: boolean;
|
|
85
|
-
available_modes: ("heat" | "cool" | "
|
|
85
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
86
86
|
is_heat_pump_compatible: boolean;
|
|
87
87
|
supports_demand_response: boolean;
|
|
88
88
|
supports_emergency_heating_mode: boolean;
|
|
@@ -100,7 +100,7 @@ declare const thermostat: z.ZodObject<{
|
|
|
100
100
|
has_humidity_sensor: boolean;
|
|
101
101
|
has_temperature_sensor: boolean;
|
|
102
102
|
has_occupancy_detection: boolean;
|
|
103
|
-
available_modes: ("heat" | "cool" | "
|
|
103
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
104
104
|
is_heat_pump_compatible: boolean;
|
|
105
105
|
supports_demand_response: boolean;
|
|
106
106
|
supports_emergency_heating_mode: boolean;
|
|
@@ -236,7 +236,7 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
236
236
|
has_humidity_sensor: boolean;
|
|
237
237
|
has_temperature_sensor: boolean;
|
|
238
238
|
has_occupancy_detection: boolean;
|
|
239
|
-
available_modes: ("heat" | "cool" | "
|
|
239
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
240
240
|
is_heat_pump_compatible: boolean;
|
|
241
241
|
supports_demand_response: boolean;
|
|
242
242
|
supports_emergency_heating_mode: boolean;
|
|
@@ -244,7 +244,7 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
244
244
|
has_humidity_sensor: boolean;
|
|
245
245
|
has_temperature_sensor: boolean;
|
|
246
246
|
has_occupancy_detection: boolean;
|
|
247
|
-
available_modes: ("heat" | "cool" | "
|
|
247
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
248
248
|
is_heat_pump_compatible: boolean;
|
|
249
249
|
supports_demand_response: boolean;
|
|
250
250
|
supports_emergency_heating_mode: boolean;
|
|
@@ -271,7 +271,7 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
271
271
|
has_humidity_sensor: boolean;
|
|
272
272
|
has_temperature_sensor: boolean;
|
|
273
273
|
has_occupancy_detection: boolean;
|
|
274
|
-
available_modes: ("heat" | "cool" | "
|
|
274
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
275
275
|
is_heat_pump_compatible: boolean;
|
|
276
276
|
supports_demand_response: boolean;
|
|
277
277
|
supports_emergency_heating_mode: boolean;
|
|
@@ -289,7 +289,7 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
289
289
|
has_humidity_sensor: boolean;
|
|
290
290
|
has_temperature_sensor: boolean;
|
|
291
291
|
has_occupancy_detection: boolean;
|
|
292
|
-
available_modes: ("heat" | "cool" | "
|
|
292
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
293
293
|
is_heat_pump_compatible: boolean;
|
|
294
294
|
supports_demand_response: boolean;
|
|
295
295
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1134,7 +1134,7 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1134
1134
|
has_humidity_sensor: boolean;
|
|
1135
1135
|
has_temperature_sensor: boolean;
|
|
1136
1136
|
has_occupancy_detection: boolean;
|
|
1137
|
-
available_modes: ("heat" | "cool" | "
|
|
1137
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1138
1138
|
is_heat_pump_compatible: boolean;
|
|
1139
1139
|
supports_demand_response: boolean;
|
|
1140
1140
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1142,7 +1142,7 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1142
1142
|
has_humidity_sensor: boolean;
|
|
1143
1143
|
has_temperature_sensor: boolean;
|
|
1144
1144
|
has_occupancy_detection: boolean;
|
|
1145
|
-
available_modes: ("heat" | "cool" | "
|
|
1145
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1146
1146
|
is_heat_pump_compatible: boolean;
|
|
1147
1147
|
supports_demand_response: boolean;
|
|
1148
1148
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1169,7 +1169,7 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1169
1169
|
has_humidity_sensor: boolean;
|
|
1170
1170
|
has_temperature_sensor: boolean;
|
|
1171
1171
|
has_occupancy_detection: boolean;
|
|
1172
|
-
available_modes: ("heat" | "cool" | "
|
|
1172
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1173
1173
|
is_heat_pump_compatible: boolean;
|
|
1174
1174
|
supports_demand_response: boolean;
|
|
1175
1175
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1187,7 +1187,7 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1187
1187
|
has_humidity_sensor: boolean;
|
|
1188
1188
|
has_temperature_sensor: boolean;
|
|
1189
1189
|
has_occupancy_detection: boolean;
|
|
1190
|
-
available_modes: ("heat" | "cool" | "
|
|
1190
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1191
1191
|
is_heat_pump_compatible: boolean;
|
|
1192
1192
|
supports_demand_response: boolean;
|
|
1193
1193
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1886,7 +1886,7 @@ declare const routes: {
|
|
|
1886
1886
|
has_humidity_sensor: boolean;
|
|
1887
1887
|
has_temperature_sensor: boolean;
|
|
1888
1888
|
has_occupancy_detection: boolean;
|
|
1889
|
-
available_modes: ("heat" | "cool" | "
|
|
1889
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1890
1890
|
is_heat_pump_compatible: boolean;
|
|
1891
1891
|
supports_demand_response: boolean;
|
|
1892
1892
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1894,7 +1894,7 @@ declare const routes: {
|
|
|
1894
1894
|
has_humidity_sensor: boolean;
|
|
1895
1895
|
has_temperature_sensor: boolean;
|
|
1896
1896
|
has_occupancy_detection: boolean;
|
|
1897
|
-
available_modes: ("heat" | "cool" | "
|
|
1897
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1898
1898
|
is_heat_pump_compatible: boolean;
|
|
1899
1899
|
supports_demand_response: boolean;
|
|
1900
1900
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1921,7 +1921,7 @@ declare const routes: {
|
|
|
1921
1921
|
has_humidity_sensor: boolean;
|
|
1922
1922
|
has_temperature_sensor: boolean;
|
|
1923
1923
|
has_occupancy_detection: boolean;
|
|
1924
|
-
available_modes: ("heat" | "cool" | "
|
|
1924
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1925
1925
|
is_heat_pump_compatible: boolean;
|
|
1926
1926
|
supports_demand_response: boolean;
|
|
1927
1927
|
supports_emergency_heating_mode: boolean;
|
|
@@ -1939,7 +1939,7 @@ declare const routes: {
|
|
|
1939
1939
|
has_humidity_sensor: boolean;
|
|
1940
1940
|
has_temperature_sensor: boolean;
|
|
1941
1941
|
has_occupancy_detection: boolean;
|
|
1942
|
-
available_modes: ("heat" | "cool" | "
|
|
1942
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
1943
1943
|
is_heat_pump_compatible: boolean;
|
|
1944
1944
|
supports_demand_response: boolean;
|
|
1945
1945
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2118,7 +2118,7 @@ declare const routes: {
|
|
|
2118
2118
|
has_humidity_sensor: boolean;
|
|
2119
2119
|
has_temperature_sensor: boolean;
|
|
2120
2120
|
has_occupancy_detection: boolean;
|
|
2121
|
-
available_modes: ("heat" | "cool" | "
|
|
2121
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2122
2122
|
is_heat_pump_compatible: boolean;
|
|
2123
2123
|
supports_demand_response: boolean;
|
|
2124
2124
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2241,7 +2241,7 @@ declare const routes: {
|
|
|
2241
2241
|
has_humidity_sensor: boolean;
|
|
2242
2242
|
has_temperature_sensor: boolean;
|
|
2243
2243
|
has_occupancy_detection: boolean;
|
|
2244
|
-
available_modes: ("heat" | "cool" | "
|
|
2244
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2245
2245
|
is_heat_pump_compatible: boolean;
|
|
2246
2246
|
supports_demand_response: boolean;
|
|
2247
2247
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2747,7 +2747,7 @@ declare const routes: {
|
|
|
2747
2747
|
has_humidity_sensor: boolean;
|
|
2748
2748
|
has_temperature_sensor: boolean;
|
|
2749
2749
|
has_occupancy_detection: boolean;
|
|
2750
|
-
available_modes: ("heat" | "cool" | "
|
|
2750
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2751
2751
|
is_heat_pump_compatible: boolean;
|
|
2752
2752
|
supports_demand_response: boolean;
|
|
2753
2753
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2755,7 +2755,7 @@ declare const routes: {
|
|
|
2755
2755
|
has_humidity_sensor: boolean;
|
|
2756
2756
|
has_temperature_sensor: boolean;
|
|
2757
2757
|
has_occupancy_detection: boolean;
|
|
2758
|
-
available_modes: ("heat" | "cool" | "
|
|
2758
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2759
2759
|
is_heat_pump_compatible: boolean;
|
|
2760
2760
|
supports_demand_response: boolean;
|
|
2761
2761
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2782,7 +2782,7 @@ declare const routes: {
|
|
|
2782
2782
|
has_humidity_sensor: boolean;
|
|
2783
2783
|
has_temperature_sensor: boolean;
|
|
2784
2784
|
has_occupancy_detection: boolean;
|
|
2785
|
-
available_modes: ("heat" | "cool" | "
|
|
2785
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2786
2786
|
is_heat_pump_compatible: boolean;
|
|
2787
2787
|
supports_demand_response: boolean;
|
|
2788
2788
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2800,7 +2800,7 @@ declare const routes: {
|
|
|
2800
2800
|
has_humidity_sensor: boolean;
|
|
2801
2801
|
has_temperature_sensor: boolean;
|
|
2802
2802
|
has_occupancy_detection: boolean;
|
|
2803
|
-
available_modes: ("heat" | "cool" | "
|
|
2803
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2804
2804
|
is_heat_pump_compatible: boolean;
|
|
2805
2805
|
supports_demand_response: boolean;
|
|
2806
2806
|
supports_emergency_heating_mode: boolean;
|
|
@@ -2979,7 +2979,7 @@ declare const routes: {
|
|
|
2979
2979
|
has_humidity_sensor: boolean;
|
|
2980
2980
|
has_temperature_sensor: boolean;
|
|
2981
2981
|
has_occupancy_detection: boolean;
|
|
2982
|
-
available_modes: ("heat" | "cool" | "
|
|
2982
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
2983
2983
|
is_heat_pump_compatible: boolean;
|
|
2984
2984
|
supports_demand_response: boolean;
|
|
2985
2985
|
supports_emergency_heating_mode: boolean;
|
|
@@ -3102,7 +3102,7 @@ declare const routes: {
|
|
|
3102
3102
|
has_humidity_sensor: boolean;
|
|
3103
3103
|
has_temperature_sensor: boolean;
|
|
3104
3104
|
has_occupancy_detection: boolean;
|
|
3105
|
-
available_modes: ("heat" | "cool" | "
|
|
3105
|
+
available_modes: ("heat" | "cool" | "eco" | "fan")[];
|
|
3106
3106
|
is_heat_pump_compatible: boolean;
|
|
3107
3107
|
supports_demand_response: boolean;
|
|
3108
3108
|
supports_emergency_heating_mode: boolean;
|
package/dist/index.cjs
CHANGED
|
@@ -146,7 +146,13 @@ var lock_capability_properties = zod.z.object({
|
|
|
146
146
|
Indicates whether the door is open.
|
|
147
147
|
`)
|
|
148
148
|
});
|
|
149
|
-
var hvac_mode_setting = zod.z.enum([
|
|
149
|
+
var hvac_mode_setting = zod.z.enum([
|
|
150
|
+
"off",
|
|
151
|
+
"heat",
|
|
152
|
+
"cool",
|
|
153
|
+
"heat_cool",
|
|
154
|
+
"eco"
|
|
155
|
+
]);
|
|
150
156
|
var fan_mode_setting = zod.z.enum(["auto", "on", "circulate"]);
|
|
151
157
|
zod.z.array(fan_mode_setting);
|
|
152
158
|
var climate_preset_mode = zod.z.enum([
|
|
@@ -15853,7 +15859,7 @@ var openapi_default = {
|
|
|
15853
15859
|
},
|
|
15854
15860
|
hvac_mode_setting: {
|
|
15855
15861
|
description: "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`.",
|
|
15856
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15862
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15857
15863
|
type: "string"
|
|
15858
15864
|
},
|
|
15859
15865
|
manual_override_allowed: {
|
|
@@ -15894,7 +15900,7 @@ var openapi_default = {
|
|
|
15894
15900
|
available_hvac_mode_settings: {
|
|
15895
15901
|
description: "HVAC mode settings that the thermostat supports.",
|
|
15896
15902
|
items: {
|
|
15897
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15903
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15898
15904
|
type: "string"
|
|
15899
15905
|
},
|
|
15900
15906
|
type: "array",
|
|
@@ -15982,7 +15988,7 @@ var openapi_default = {
|
|
|
15982
15988
|
},
|
|
15983
15989
|
hvac_mode_setting: {
|
|
15984
15990
|
description: "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`.",
|
|
15985
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15991
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15986
15992
|
type: "string"
|
|
15987
15993
|
},
|
|
15988
15994
|
manual_override_allowed: {
|
|
@@ -16083,7 +16089,7 @@ var openapi_default = {
|
|
|
16083
16089
|
},
|
|
16084
16090
|
hvac_mode_setting: {
|
|
16085
16091
|
description: "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`.",
|
|
16086
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
16092
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
16087
16093
|
type: "string"
|
|
16088
16094
|
},
|
|
16089
16095
|
manual_override_allowed: {
|
|
@@ -21927,7 +21933,7 @@ var openapi_default = {
|
|
|
21927
21933
|
},
|
|
21928
21934
|
hvac_mode_setting: {
|
|
21929
21935
|
description: "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`.",
|
|
21930
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
21936
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
21931
21937
|
type: "string"
|
|
21932
21938
|
},
|
|
21933
21939
|
method: {
|
|
@@ -49843,7 +49849,7 @@ var openapi_default = {
|
|
|
49843
49849
|
},
|
|
49844
49850
|
hvac_mode_setting: {
|
|
49845
49851
|
description: "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`.",
|
|
49846
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
49852
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
49847
49853
|
type: "string"
|
|
49848
49854
|
},
|
|
49849
49855
|
manual_override_allowed: {
|
|
@@ -52445,7 +52451,7 @@ var openapi_default = {
|
|
|
52445
52451
|
},
|
|
52446
52452
|
hvac_mode_setting: {
|
|
52447
52453
|
description: "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`.",
|
|
52448
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
52454
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
52449
52455
|
type: "string"
|
|
52450
52456
|
},
|
|
52451
52457
|
manual_override_allowed: {
|
|
@@ -52572,7 +52578,7 @@ var openapi_default = {
|
|
|
52572
52578
|
},
|
|
52573
52579
|
hvac_mode_setting: {
|
|
52574
52580
|
description: "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`.",
|
|
52575
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
52581
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
52576
52582
|
type: "string"
|
|
52577
52583
|
},
|
|
52578
52584
|
manual_override_allowed: {
|