@seamapi/types 0.17.0 → 0.19.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/lib/seam/connect/route-types.d.ts +877 -12
- package/lib/seam/connect/unstable/model-types.d.ts +1 -1
- package/lib/seam/connect/unstable/models/capability-properties/access-code.d.ts +70 -0
- package/lib/seam/connect/unstable/models/capability-properties/access-code.js +28 -0
- package/lib/seam/connect/unstable/models/capability-properties/access-code.js.map +1 -0
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +286 -0
- package/lib/seam/connect/unstable/models/capability-properties/index.js +10 -0
- package/lib/seam/connect/unstable/models/capability-properties/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/capability-properties/lock.d.ts +24 -0
- package/lib/seam/connect/unstable/models/capability-properties/lock.js +11 -0
- package/lib/seam/connect/unstable/models/capability-properties/lock.js.map +1 -0
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +302 -0
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.js +46 -0
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.js.map +1 -0
- package/lib/seam/connect/unstable/models/device-metadata.d.ts +722 -0
- package/lib/seam/connect/unstable/models/device-metadata.js +143 -0
- package/lib/seam/connect/unstable/models/device-metadata.js.map +1 -0
- package/lib/seam/connect/unstable/models/index.d.ts +1 -0
- package/lib/seam/connect/unstable/models/index.js +1 -0
- package/lib/seam/connect/unstable/models/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/managed-device.d.ts +1549 -7
- package/lib/seam/connect/unstable/models/managed-device.js +31 -9
- package/lib/seam/connect/unstable/models/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/schemas.d.ts +1 -1
- package/lib/seam/connect/unstable/schemas.js +1 -1
- package/lib/seam/connect/unstable/schemas.js.map +1 -1
- package/package.json +4 -1
- package/src/lib/seam/connect/route-types.ts +1201 -12
- package/src/lib/seam/connect/unstable/model-types.ts +4 -0
- package/src/lib/seam/connect/unstable/models/capability-properties/access-code.ts +33 -0
- package/src/lib/seam/connect/unstable/models/capability-properties/index.ts +26 -0
- package/src/lib/seam/connect/unstable/models/capability-properties/lock.ts +11 -0
- package/src/lib/seam/connect/unstable/models/capability-properties/thermostat.ts +53 -0
- package/src/lib/seam/connect/unstable/models/device-metadata.ts +162 -0
- package/src/lib/seam/connect/unstable/models/index.ts +1 -0
- package/src/lib/seam/connect/unstable/models/managed-device.ts +44 -9
- package/src/lib/seam/connect/unstable/schemas.ts +5 -1
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const climate_setting: z.ZodObject<{
|
|
3
|
+
automatic_heating_enabled: z.ZodBoolean;
|
|
4
|
+
automatic_cooling_enabled: z.ZodBoolean;
|
|
5
|
+
hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heatcool"]>;
|
|
6
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
manual_override_allowed: z.ZodBoolean;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
automatic_heating_enabled: boolean;
|
|
13
|
+
automatic_cooling_enabled: boolean;
|
|
14
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
15
|
+
manual_override_allowed: boolean;
|
|
16
|
+
cooling_set_point_celsius?: number | undefined;
|
|
17
|
+
heating_set_point_celsius?: number | undefined;
|
|
18
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
19
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
automatic_heating_enabled: boolean;
|
|
22
|
+
automatic_cooling_enabled: boolean;
|
|
23
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
24
|
+
manual_override_allowed: boolean;
|
|
25
|
+
cooling_set_point_celsius?: number | undefined;
|
|
26
|
+
heating_set_point_celsius?: number | undefined;
|
|
27
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
28
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type ClimateSetting = z.infer<typeof climate_setting>;
|
|
31
|
+
export declare const climate_setting_schedule: z.ZodObject<{
|
|
32
|
+
name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
climate_setting_schedule_id: z.ZodString;
|
|
35
|
+
schedule_type: z.ZodLiteral<"time_bound">;
|
|
36
|
+
device_id: z.ZodString;
|
|
37
|
+
schedule_starts_at: z.ZodString;
|
|
38
|
+
schedule_ends_at: z.ZodString;
|
|
39
|
+
automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heatcool"]>>;
|
|
42
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
43
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
46
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
created_at: string;
|
|
49
|
+
climate_setting_schedule_id: string;
|
|
50
|
+
schedule_type: "time_bound";
|
|
51
|
+
device_id: string;
|
|
52
|
+
schedule_starts_at: string;
|
|
53
|
+
schedule_ends_at: string;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
56
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
57
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
58
|
+
cooling_set_point_celsius?: number | undefined;
|
|
59
|
+
heating_set_point_celsius?: number | undefined;
|
|
60
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
61
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
62
|
+
manual_override_allowed?: boolean | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
created_at: string;
|
|
65
|
+
climate_setting_schedule_id: string;
|
|
66
|
+
schedule_type: "time_bound";
|
|
67
|
+
device_id: string;
|
|
68
|
+
schedule_starts_at: string;
|
|
69
|
+
schedule_ends_at: string;
|
|
70
|
+
name?: string | undefined;
|
|
71
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
72
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
73
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
74
|
+
cooling_set_point_celsius?: number | undefined;
|
|
75
|
+
heating_set_point_celsius?: number | undefined;
|
|
76
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
77
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
78
|
+
manual_override_allowed?: boolean | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heatcool"]>;
|
|
81
|
+
export declare const thermostat_capability_properties: z.ZodObject<{
|
|
82
|
+
temperature_fahrenheit: z.ZodNumber;
|
|
83
|
+
temperature_celsius: z.ZodNumber;
|
|
84
|
+
relative_humidity: z.ZodNumber;
|
|
85
|
+
can_enable_automatic_heating: z.ZodBoolean;
|
|
86
|
+
can_enable_automatic_cooling: z.ZodBoolean;
|
|
87
|
+
available_hvac_mode_settings: z.ZodArray<z.ZodEnum<["off", "heat", "cool", "heatcool"]>, "many">;
|
|
88
|
+
is_heating: z.ZodBoolean;
|
|
89
|
+
is_cooling: z.ZodBoolean;
|
|
90
|
+
is_fan_running: z.ZodBoolean;
|
|
91
|
+
/**
|
|
92
|
+
* this is true if the current thermostat settings differ that what is on seam, and `current_climate_setting.manual_override_allowed: true`
|
|
93
|
+
*/
|
|
94
|
+
is_temporary_manual_override_active: z.ZodBoolean;
|
|
95
|
+
/**
|
|
96
|
+
* can be derived from `default_climate_setting`, or `active_climate_setting_schedule` if one is active
|
|
97
|
+
*/
|
|
98
|
+
current_climate_setting: z.ZodObject<{
|
|
99
|
+
automatic_heating_enabled: z.ZodBoolean;
|
|
100
|
+
automatic_cooling_enabled: z.ZodBoolean;
|
|
101
|
+
hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heatcool"]>;
|
|
102
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
manual_override_allowed: z.ZodBoolean;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
automatic_heating_enabled: boolean;
|
|
109
|
+
automatic_cooling_enabled: boolean;
|
|
110
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
111
|
+
manual_override_allowed: boolean;
|
|
112
|
+
cooling_set_point_celsius?: number | undefined;
|
|
113
|
+
heating_set_point_celsius?: number | undefined;
|
|
114
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
115
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
automatic_heating_enabled: boolean;
|
|
118
|
+
automatic_cooling_enabled: boolean;
|
|
119
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
120
|
+
manual_override_allowed: boolean;
|
|
121
|
+
cooling_set_point_celsius?: number | undefined;
|
|
122
|
+
heating_set_point_celsius?: number | undefined;
|
|
123
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
124
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
default_climate_setting: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
automatic_heating_enabled: z.ZodBoolean;
|
|
128
|
+
automatic_cooling_enabled: z.ZodBoolean;
|
|
129
|
+
hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heatcool"]>;
|
|
130
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
manual_override_allowed: z.ZodBoolean;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
automatic_heating_enabled: boolean;
|
|
137
|
+
automatic_cooling_enabled: boolean;
|
|
138
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
139
|
+
manual_override_allowed: boolean;
|
|
140
|
+
cooling_set_point_celsius?: number | undefined;
|
|
141
|
+
heating_set_point_celsius?: number | undefined;
|
|
142
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
143
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
automatic_heating_enabled: boolean;
|
|
146
|
+
automatic_cooling_enabled: boolean;
|
|
147
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
148
|
+
manual_override_allowed: boolean;
|
|
149
|
+
cooling_set_point_celsius?: number | undefined;
|
|
150
|
+
heating_set_point_celsius?: number | undefined;
|
|
151
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
152
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
153
|
+
}>>;
|
|
154
|
+
is_climate_setting_schedule_active: z.ZodBoolean;
|
|
155
|
+
active_climate_setting_schedule: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
157
|
+
created_at: z.ZodString;
|
|
158
|
+
climate_setting_schedule_id: z.ZodString;
|
|
159
|
+
schedule_type: z.ZodLiteral<"time_bound">;
|
|
160
|
+
device_id: z.ZodString;
|
|
161
|
+
schedule_starts_at: z.ZodString;
|
|
162
|
+
schedule_ends_at: z.ZodString;
|
|
163
|
+
automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heatcool"]>>;
|
|
166
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
167
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
168
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
169
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
170
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
created_at: string;
|
|
173
|
+
climate_setting_schedule_id: string;
|
|
174
|
+
schedule_type: "time_bound";
|
|
175
|
+
device_id: string;
|
|
176
|
+
schedule_starts_at: string;
|
|
177
|
+
schedule_ends_at: string;
|
|
178
|
+
name?: string | undefined;
|
|
179
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
180
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
181
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
182
|
+
cooling_set_point_celsius?: number | undefined;
|
|
183
|
+
heating_set_point_celsius?: number | undefined;
|
|
184
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
185
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
186
|
+
manual_override_allowed?: boolean | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
created_at: string;
|
|
189
|
+
climate_setting_schedule_id: string;
|
|
190
|
+
schedule_type: "time_bound";
|
|
191
|
+
device_id: string;
|
|
192
|
+
schedule_starts_at: string;
|
|
193
|
+
schedule_ends_at: string;
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
196
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
197
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
198
|
+
cooling_set_point_celsius?: number | undefined;
|
|
199
|
+
heating_set_point_celsius?: number | undefined;
|
|
200
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
201
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
202
|
+
manual_override_allowed?: boolean | undefined;
|
|
203
|
+
}>>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
temperature_fahrenheit: number;
|
|
206
|
+
temperature_celsius: number;
|
|
207
|
+
relative_humidity: number;
|
|
208
|
+
can_enable_automatic_heating: boolean;
|
|
209
|
+
can_enable_automatic_cooling: boolean;
|
|
210
|
+
available_hvac_mode_settings: ("off" | "heat" | "cool" | "heatcool")[];
|
|
211
|
+
is_heating: boolean;
|
|
212
|
+
is_cooling: boolean;
|
|
213
|
+
is_fan_running: boolean;
|
|
214
|
+
is_temporary_manual_override_active: boolean;
|
|
215
|
+
current_climate_setting: {
|
|
216
|
+
automatic_heating_enabled: boolean;
|
|
217
|
+
automatic_cooling_enabled: boolean;
|
|
218
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
219
|
+
manual_override_allowed: boolean;
|
|
220
|
+
cooling_set_point_celsius?: number | undefined;
|
|
221
|
+
heating_set_point_celsius?: number | undefined;
|
|
222
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
223
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
224
|
+
};
|
|
225
|
+
is_climate_setting_schedule_active: boolean;
|
|
226
|
+
default_climate_setting?: {
|
|
227
|
+
automatic_heating_enabled: boolean;
|
|
228
|
+
automatic_cooling_enabled: boolean;
|
|
229
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
230
|
+
manual_override_allowed: boolean;
|
|
231
|
+
cooling_set_point_celsius?: number | undefined;
|
|
232
|
+
heating_set_point_celsius?: number | undefined;
|
|
233
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
234
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
active_climate_setting_schedule?: {
|
|
237
|
+
created_at: string;
|
|
238
|
+
climate_setting_schedule_id: string;
|
|
239
|
+
schedule_type: "time_bound";
|
|
240
|
+
device_id: string;
|
|
241
|
+
schedule_starts_at: string;
|
|
242
|
+
schedule_ends_at: string;
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
245
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
246
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
247
|
+
cooling_set_point_celsius?: number | undefined;
|
|
248
|
+
heating_set_point_celsius?: number | undefined;
|
|
249
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
250
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
251
|
+
manual_override_allowed?: boolean | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
temperature_fahrenheit: number;
|
|
255
|
+
temperature_celsius: number;
|
|
256
|
+
relative_humidity: number;
|
|
257
|
+
can_enable_automatic_heating: boolean;
|
|
258
|
+
can_enable_automatic_cooling: boolean;
|
|
259
|
+
available_hvac_mode_settings: ("off" | "heat" | "cool" | "heatcool")[];
|
|
260
|
+
is_heating: boolean;
|
|
261
|
+
is_cooling: boolean;
|
|
262
|
+
is_fan_running: boolean;
|
|
263
|
+
is_temporary_manual_override_active: boolean;
|
|
264
|
+
current_climate_setting: {
|
|
265
|
+
automatic_heating_enabled: boolean;
|
|
266
|
+
automatic_cooling_enabled: boolean;
|
|
267
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
268
|
+
manual_override_allowed: boolean;
|
|
269
|
+
cooling_set_point_celsius?: number | undefined;
|
|
270
|
+
heating_set_point_celsius?: number | undefined;
|
|
271
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
272
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
273
|
+
};
|
|
274
|
+
is_climate_setting_schedule_active: boolean;
|
|
275
|
+
default_climate_setting?: {
|
|
276
|
+
automatic_heating_enabled: boolean;
|
|
277
|
+
automatic_cooling_enabled: boolean;
|
|
278
|
+
hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
|
|
279
|
+
manual_override_allowed: boolean;
|
|
280
|
+
cooling_set_point_celsius?: number | undefined;
|
|
281
|
+
heating_set_point_celsius?: number | undefined;
|
|
282
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
283
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
active_climate_setting_schedule?: {
|
|
286
|
+
created_at: string;
|
|
287
|
+
climate_setting_schedule_id: string;
|
|
288
|
+
schedule_type: "time_bound";
|
|
289
|
+
device_id: string;
|
|
290
|
+
schedule_starts_at: string;
|
|
291
|
+
schedule_ends_at: string;
|
|
292
|
+
name?: string | undefined;
|
|
293
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
294
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
295
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
|
|
296
|
+
cooling_set_point_celsius?: number | undefined;
|
|
297
|
+
heating_set_point_celsius?: number | undefined;
|
|
298
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
299
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
300
|
+
manual_override_allowed?: boolean | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
}>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const climate_setting = z.object({
|
|
3
|
+
automatic_heating_enabled: z.boolean(),
|
|
4
|
+
automatic_cooling_enabled: z.boolean(),
|
|
5
|
+
hvac_mode_setting: z.enum(['off', 'heat', 'cool', 'heatcool']),
|
|
6
|
+
cooling_set_point_celsius: z.number().optional(),
|
|
7
|
+
heating_set_point_celsius: z.number().optional(),
|
|
8
|
+
cooling_set_point_fahrenheit: z.number().optional(),
|
|
9
|
+
heating_set_point_fahrenheit: z.number().optional(),
|
|
10
|
+
manual_override_allowed: z.boolean(),
|
|
11
|
+
});
|
|
12
|
+
export const climate_setting_schedule = z
|
|
13
|
+
.object({
|
|
14
|
+
climate_setting_schedule_id: z.string().uuid(),
|
|
15
|
+
schedule_type: z.literal('time_bound'),
|
|
16
|
+
device_id: z.string(),
|
|
17
|
+
name: z.string().optional(),
|
|
18
|
+
schedule_starts_at: z.string(),
|
|
19
|
+
schedule_ends_at: z.string(),
|
|
20
|
+
created_at: z.string().datetime(),
|
|
21
|
+
})
|
|
22
|
+
.merge(climate_setting.partial());
|
|
23
|
+
export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heatcool']);
|
|
24
|
+
export const thermostat_capability_properties = z.object({
|
|
25
|
+
temperature_fahrenheit: z.number(),
|
|
26
|
+
temperature_celsius: z.number(),
|
|
27
|
+
relative_humidity: z.number().min(0).max(1),
|
|
28
|
+
can_enable_automatic_heating: z.boolean(),
|
|
29
|
+
can_enable_automatic_cooling: z.boolean(),
|
|
30
|
+
available_hvac_mode_settings: z.array(hvac_mode_setting),
|
|
31
|
+
is_heating: z.boolean(),
|
|
32
|
+
is_cooling: z.boolean(),
|
|
33
|
+
is_fan_running: z.boolean(),
|
|
34
|
+
/**
|
|
35
|
+
* this is true if the current thermostat settings differ that what is on seam, and `current_climate_setting.manual_override_allowed: true`
|
|
36
|
+
*/
|
|
37
|
+
is_temporary_manual_override_active: z.boolean(),
|
|
38
|
+
/**
|
|
39
|
+
* can be derived from `default_climate_setting`, or `active_climate_setting_schedule` if one is active
|
|
40
|
+
*/
|
|
41
|
+
current_climate_setting: climate_setting,
|
|
42
|
+
default_climate_setting: climate_setting.optional(),
|
|
43
|
+
is_climate_setting_schedule_active: z.boolean(),
|
|
44
|
+
active_climate_setting_schedule: climate_setting_schedule.optional(),
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=thermostat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE;IACtC,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE;IACtC,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IAC9D,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAA;AAEnC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;AAE5E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACxD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAE3B;;OAEG;IACH,mCAAmC,EAAE,CAAC,CAAC,OAAO,EAAE;IAEhD;;OAEG;IACH,uBAAuB,EAAE,eAAe;IACxC,uBAAuB,EAAE,eAAe,CAAC,QAAQ,EAAE;IACnD,kCAAkC,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/C,+BAA+B,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAA"}
|