@seamapi/types 1.239.0 → 1.241.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.
Files changed (62) hide show
  1. package/dist/connect.cjs +1412 -774
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3622 -1409
  4. package/dist/devicedb.d.cts +30 -30
  5. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  6. package/lib/seam/connect/internal/schemas.js +1 -1
  7. package/lib/seam/connect/internal/schemas.js.map +1 -1
  8. package/lib/seam/connect/model-types.d.ts +1 -1
  9. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +4 -4
  10. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +1 -1
  11. package/lib/seam/connect/models/acs/acs-user.d.ts +289 -7
  12. package/lib/seam/connect/models/acs/acs-user.js +61 -8
  13. package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +78 -0
  15. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  16. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  17. package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +80 -0
  18. package/lib/seam/connect/models/action-attempts/activate-climate-preset.js +25 -0
  19. package/lib/seam/connect/models/action-attempts/activate-climate-preset.js.map +1 -0
  20. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +185 -83
  21. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +185 -83
  22. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +15 -6
  23. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  24. package/lib/seam/connect/models/devices/device.d.ts +263 -119
  25. package/lib/seam/connect/models/devices/phone.d.ts +187 -85
  26. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +185 -83
  27. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +83 -0
  28. package/lib/seam/connect/models/thermostats/climate-preset.js +18 -0
  29. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -0
  30. package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +18 -34
  31. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js +8 -10
  32. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +1 -1
  33. package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
  34. package/lib/seam/connect/models/thermostats/index.js +1 -1
  35. package/lib/seam/connect/models/thermostats/index.js.map +1 -1
  36. package/lib/seam/connect/openapi.d.ts +1000 -569
  37. package/lib/seam/connect/openapi.js +1218 -657
  38. package/lib/seam/connect/openapi.js.map +1 -1
  39. package/lib/seam/connect/route-types.d.ts +1759 -453
  40. package/lib/seam/connect/schemas.d.ts +1 -1
  41. package/lib/seam/connect/schemas.js +1 -1
  42. package/lib/seam/connect/schemas.js.map +1 -1
  43. package/lib/seam/devicedb/models/device-model.d.ts +8 -8
  44. package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
  45. package/lib/seam/devicedb/route-specs.d.ts +20 -20
  46. package/package.json +2 -2
  47. package/src/lib/seam/connect/internal/schemas.ts +2 -2
  48. package/src/lib/seam/connect/model-types.ts +1 -1
  49. package/src/lib/seam/connect/models/acs/acs-user.ts +88 -13
  50. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  51. package/src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts +36 -0
  52. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +16 -6
  53. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +24 -0
  54. package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +16 -19
  55. package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
  56. package/src/lib/seam/connect/openapi.ts +1252 -652
  57. package/src/lib/seam/connect/route-types.ts +2058 -498
  58. package/src/lib/seam/connect/schemas.ts +1 -1
  59. package/lib/seam/connect/models/thermostats/climate-setting.d.ts +0 -24
  60. package/lib/seam/connect/models/thermostats/climate-setting.js +0 -11
  61. package/lib/seam/connect/models/thermostats/climate-setting.js.map +0 -1
  62. package/src/lib/seam/connect/models/thermostats/climate-setting.ts +0 -14
@@ -10,97 +10,157 @@ export declare const thermostat_capability_properties: z.ZodObject<{
10
10
  fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
11
11
  is_temporary_manual_override_active: z.ZodOptional<z.ZodBoolean>;
12
12
  current_climate_setting: z.ZodOptional<z.ZodObject<{
13
- hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
14
- cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
15
- heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
16
- cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
17
- heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
18
- manual_override_allowed: z.ZodBoolean;
13
+ climate_preset_key: z.ZodOptional<z.ZodString>;
14
+ can_edit: z.ZodOptional<z.ZodBoolean>;
15
+ can_delete: z.ZodOptional<z.ZodBoolean>;
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ display_name: z.ZodOptional<z.ZodString>;
18
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
19
+ hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
20
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
21
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
22
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
23
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
24
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
19
25
  }, "strip", z.ZodTypeAny, {
20
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
21
- manual_override_allowed: boolean;
26
+ name?: string | null | undefined;
27
+ climate_preset_key?: string | undefined;
28
+ can_edit?: boolean | undefined;
29
+ can_delete?: boolean | undefined;
30
+ display_name?: string | undefined;
31
+ fan_mode_setting?: "auto" | "on" | undefined;
32
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
22
33
  cooling_set_point_celsius?: number | undefined;
23
34
  heating_set_point_celsius?: number | undefined;
24
35
  cooling_set_point_fahrenheit?: number | undefined;
25
36
  heating_set_point_fahrenheit?: number | undefined;
37
+ manual_override_allowed?: boolean | undefined;
26
38
  }, {
27
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
28
- manual_override_allowed: boolean;
39
+ name?: string | null | undefined;
40
+ climate_preset_key?: string | undefined;
41
+ can_edit?: boolean | undefined;
42
+ can_delete?: boolean | undefined;
43
+ display_name?: string | undefined;
44
+ fan_mode_setting?: "auto" | "on" | undefined;
45
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
29
46
  cooling_set_point_celsius?: number | undefined;
30
47
  heating_set_point_celsius?: number | undefined;
31
48
  cooling_set_point_fahrenheit?: number | undefined;
32
49
  heating_set_point_fahrenheit?: number | undefined;
50
+ manual_override_allowed?: boolean | undefined;
33
51
  }>>;
34
52
  default_climate_setting: z.ZodOptional<z.ZodObject<{
35
- hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
53
+ climate_preset_key: z.ZodOptional<z.ZodString>;
54
+ can_edit: z.ZodOptional<z.ZodBoolean>;
55
+ can_delete: z.ZodOptional<z.ZodBoolean>;
56
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ display_name: z.ZodOptional<z.ZodString>;
58
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
59
+ hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
60
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
61
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
62
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
63
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
64
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ name?: string | null | undefined;
67
+ climate_preset_key?: string | undefined;
68
+ can_edit?: boolean | undefined;
69
+ can_delete?: boolean | undefined;
70
+ display_name?: string | undefined;
71
+ fan_mode_setting?: "auto" | "on" | undefined;
72
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
73
+ cooling_set_point_celsius?: number | undefined;
74
+ heating_set_point_celsius?: number | undefined;
75
+ cooling_set_point_fahrenheit?: number | undefined;
76
+ heating_set_point_fahrenheit?: number | undefined;
77
+ manual_override_allowed?: boolean | undefined;
78
+ }, {
79
+ name?: string | null | undefined;
80
+ climate_preset_key?: string | undefined;
81
+ can_edit?: boolean | undefined;
82
+ can_delete?: boolean | undefined;
83
+ display_name?: string | undefined;
84
+ fan_mode_setting?: "auto" | "on" | undefined;
85
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
86
+ cooling_set_point_celsius?: number | undefined;
87
+ heating_set_point_celsius?: number | undefined;
88
+ cooling_set_point_fahrenheit?: number | undefined;
89
+ heating_set_point_fahrenheit?: number | undefined;
90
+ manual_override_allowed?: boolean | undefined;
91
+ }>>;
92
+ available_climate_presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ climate_preset_key: z.ZodString;
94
+ can_edit: z.ZodBoolean;
95
+ can_delete: z.ZodBoolean;
96
+ name: z.ZodNullable<z.ZodString>;
97
+ display_name: z.ZodString;
98
+ fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
99
+ hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
36
100
  cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
37
101
  heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
38
102
  cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
39
103
  heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
40
104
  manual_override_allowed: z.ZodBoolean;
41
105
  }, "strip", z.ZodTypeAny, {
42
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
106
+ name: string | null;
107
+ climate_preset_key: string;
108
+ can_edit: boolean;
109
+ can_delete: boolean;
110
+ display_name: string;
43
111
  manual_override_allowed: boolean;
112
+ fan_mode_setting?: "auto" | "on" | undefined;
113
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
44
114
  cooling_set_point_celsius?: number | undefined;
45
115
  heating_set_point_celsius?: number | undefined;
46
116
  cooling_set_point_fahrenheit?: number | undefined;
47
117
  heating_set_point_fahrenheit?: number | undefined;
48
118
  }, {
49
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
119
+ name: string | null;
120
+ climate_preset_key: string;
121
+ can_edit: boolean;
122
+ can_delete: boolean;
123
+ display_name: string;
50
124
  manual_override_allowed: boolean;
125
+ fan_mode_setting?: "auto" | "on" | undefined;
126
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
51
127
  cooling_set_point_celsius?: number | undefined;
52
128
  heating_set_point_celsius?: number | undefined;
53
129
  cooling_set_point_fahrenheit?: number | undefined;
54
130
  heating_set_point_fahrenheit?: number | undefined;
55
- }>>;
56
- is_climate_setting_schedule_active: z.ZodOptional<z.ZodBoolean>;
57
- active_climate_setting_schedule: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
58
- climate_setting_schedule_id: z.ZodString;
59
- schedule_type: z.ZodLiteral<"time_bound">;
131
+ }>, "many">>;
132
+ fallback_climate_preset_key: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
133
+ active_thermostat_schedule: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
134
+ thermostat_schedule_id: z.ZodString;
60
135
  device_id: z.ZodString;
61
136
  name: z.ZodOptional<z.ZodString>;
62
- schedule_starts_at: z.ZodString;
63
- schedule_ends_at: z.ZodString;
137
+ climate_preset_key: z.ZodString;
138
+ max_override_period_minutes: z.ZodDefault<z.ZodNumber>;
139
+ starts_at: z.ZodString;
140
+ ends_at: z.ZodString;
64
141
  created_at: z.ZodString;
65
142
  errors: z.ZodAny;
66
- }, {
67
- hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
68
- cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
69
- heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
70
- cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
71
- heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
72
- manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
73
- }>, "strip", z.ZodTypeAny, {
143
+ }, "strip", z.ZodTypeAny, {
74
144
  created_at: string;
75
- climate_setting_schedule_id: string;
76
- schedule_type: "time_bound";
145
+ climate_preset_key: string;
146
+ thermostat_schedule_id: string;
77
147
  device_id: string;
78
- schedule_starts_at: string;
79
- schedule_ends_at: string;
148
+ max_override_period_minutes: number;
149
+ starts_at: string;
150
+ ends_at: string;
80
151
  name?: string | undefined;
81
152
  errors?: any;
82
- hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
83
- cooling_set_point_celsius?: number | undefined;
84
- heating_set_point_celsius?: number | undefined;
85
- cooling_set_point_fahrenheit?: number | undefined;
86
- heating_set_point_fahrenheit?: number | undefined;
87
- manual_override_allowed?: boolean | undefined;
88
153
  }, {
89
154
  created_at: string;
90
- climate_setting_schedule_id: string;
91
- schedule_type: "time_bound";
155
+ climate_preset_key: string;
156
+ thermostat_schedule_id: string;
92
157
  device_id: string;
93
- schedule_starts_at: string;
94
- schedule_ends_at: string;
158
+ starts_at: string;
159
+ ends_at: string;
95
160
  name?: string | undefined;
96
161
  errors?: any;
97
- hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
98
- cooling_set_point_celsius?: number | undefined;
99
- heating_set_point_celsius?: number | undefined;
100
- cooling_set_point_fahrenheit?: number | undefined;
101
- heating_set_point_fahrenheit?: number | undefined;
102
- manual_override_allowed?: boolean | undefined;
103
- }>>;
162
+ max_override_period_minutes?: number | undefined;
163
+ }>>>>;
104
164
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
105
165
  min_cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
106
166
  max_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -112,6 +172,7 @@ export declare const thermostat_capability_properties: z.ZodObject<{
112
172
  min_heating_cooling_delta_celsius: z.ZodOptional<z.ZodNumber>;
113
173
  min_heating_cooling_delta_fahrenheit: z.ZodOptional<z.ZodNumber>;
114
174
  }, "strip", z.ZodTypeAny, {
175
+ fan_mode_setting?: "auto" | "on" | undefined;
115
176
  temperature_fahrenheit?: number | undefined;
116
177
  temperature_celsius?: number | undefined;
117
178
  relative_humidity?: number | undefined;
@@ -119,41 +180,61 @@ export declare const thermostat_capability_properties: z.ZodObject<{
119
180
  is_heating?: boolean | undefined;
120
181
  is_cooling?: boolean | undefined;
121
182
  is_fan_running?: boolean | undefined;
122
- fan_mode_setting?: "auto" | "on" | undefined;
123
183
  is_temporary_manual_override_active?: boolean | undefined;
124
184
  current_climate_setting?: {
125
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
126
- manual_override_allowed: boolean;
185
+ name?: string | null | undefined;
186
+ climate_preset_key?: string | undefined;
187
+ can_edit?: boolean | undefined;
188
+ can_delete?: boolean | undefined;
189
+ display_name?: string | undefined;
190
+ fan_mode_setting?: "auto" | "on" | undefined;
191
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
127
192
  cooling_set_point_celsius?: number | undefined;
128
193
  heating_set_point_celsius?: number | undefined;
129
194
  cooling_set_point_fahrenheit?: number | undefined;
130
195
  heating_set_point_fahrenheit?: number | undefined;
196
+ manual_override_allowed?: boolean | undefined;
131
197
  } | undefined;
132
198
  default_climate_setting?: {
133
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
134
- manual_override_allowed: boolean;
199
+ name?: string | null | undefined;
200
+ climate_preset_key?: string | undefined;
201
+ can_edit?: boolean | undefined;
202
+ can_delete?: boolean | undefined;
203
+ display_name?: string | undefined;
204
+ fan_mode_setting?: "auto" | "on" | undefined;
205
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
135
206
  cooling_set_point_celsius?: number | undefined;
136
207
  heating_set_point_celsius?: number | undefined;
137
208
  cooling_set_point_fahrenheit?: number | undefined;
138
209
  heating_set_point_fahrenheit?: number | undefined;
210
+ manual_override_allowed?: boolean | undefined;
139
211
  } | undefined;
140
- is_climate_setting_schedule_active?: boolean | undefined;
141
- active_climate_setting_schedule?: {
142
- created_at: string;
143
- climate_setting_schedule_id: string;
144
- schedule_type: "time_bound";
145
- device_id: string;
146
- schedule_starts_at: string;
147
- schedule_ends_at: string;
148
- name?: string | undefined;
149
- errors?: any;
212
+ available_climate_presets?: {
213
+ name: string | null;
214
+ climate_preset_key: string;
215
+ can_edit: boolean;
216
+ can_delete: boolean;
217
+ display_name: string;
218
+ manual_override_allowed: boolean;
219
+ fan_mode_setting?: "auto" | "on" | undefined;
150
220
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
151
221
  cooling_set_point_celsius?: number | undefined;
152
222
  heating_set_point_celsius?: number | undefined;
153
223
  cooling_set_point_fahrenheit?: number | undefined;
154
224
  heating_set_point_fahrenheit?: number | undefined;
155
- manual_override_allowed?: boolean | undefined;
156
- } | undefined;
225
+ }[] | undefined;
226
+ fallback_climate_preset_key?: string | null | undefined;
227
+ active_thermostat_schedule?: {
228
+ created_at: string;
229
+ climate_preset_key: string;
230
+ thermostat_schedule_id: string;
231
+ device_id: string;
232
+ max_override_period_minutes: number;
233
+ starts_at: string;
234
+ ends_at: string;
235
+ name?: string | undefined;
236
+ errors?: any;
237
+ } | null | undefined;
157
238
  min_cooling_set_point_celsius?: number | undefined;
158
239
  min_cooling_set_point_fahrenheit?: number | undefined;
159
240
  max_cooling_set_point_celsius?: number | undefined;
@@ -165,6 +246,7 @@ export declare const thermostat_capability_properties: z.ZodObject<{
165
246
  min_heating_cooling_delta_celsius?: number | undefined;
166
247
  min_heating_cooling_delta_fahrenheit?: number | undefined;
167
248
  }, {
249
+ fan_mode_setting?: "auto" | "on" | undefined;
168
250
  temperature_fahrenheit?: number | undefined;
169
251
  temperature_celsius?: number | undefined;
170
252
  relative_humidity?: number | undefined;
@@ -172,41 +254,61 @@ export declare const thermostat_capability_properties: z.ZodObject<{
172
254
  is_heating?: boolean | undefined;
173
255
  is_cooling?: boolean | undefined;
174
256
  is_fan_running?: boolean | undefined;
175
- fan_mode_setting?: "auto" | "on" | undefined;
176
257
  is_temporary_manual_override_active?: boolean | undefined;
177
258
  current_climate_setting?: {
178
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
179
- manual_override_allowed: boolean;
259
+ name?: string | null | undefined;
260
+ climate_preset_key?: string | undefined;
261
+ can_edit?: boolean | undefined;
262
+ can_delete?: boolean | undefined;
263
+ display_name?: string | undefined;
264
+ fan_mode_setting?: "auto" | "on" | undefined;
265
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
180
266
  cooling_set_point_celsius?: number | undefined;
181
267
  heating_set_point_celsius?: number | undefined;
182
268
  cooling_set_point_fahrenheit?: number | undefined;
183
269
  heating_set_point_fahrenheit?: number | undefined;
270
+ manual_override_allowed?: boolean | undefined;
184
271
  } | undefined;
185
272
  default_climate_setting?: {
186
- hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
187
- manual_override_allowed: boolean;
273
+ name?: string | null | undefined;
274
+ climate_preset_key?: string | undefined;
275
+ can_edit?: boolean | undefined;
276
+ can_delete?: boolean | undefined;
277
+ display_name?: string | undefined;
278
+ fan_mode_setting?: "auto" | "on" | undefined;
279
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
188
280
  cooling_set_point_celsius?: number | undefined;
189
281
  heating_set_point_celsius?: number | undefined;
190
282
  cooling_set_point_fahrenheit?: number | undefined;
191
283
  heating_set_point_fahrenheit?: number | undefined;
284
+ manual_override_allowed?: boolean | undefined;
192
285
  } | undefined;
193
- is_climate_setting_schedule_active?: boolean | undefined;
194
- active_climate_setting_schedule?: {
195
- created_at: string;
196
- climate_setting_schedule_id: string;
197
- schedule_type: "time_bound";
198
- device_id: string;
199
- schedule_starts_at: string;
200
- schedule_ends_at: string;
201
- name?: string | undefined;
202
- errors?: any;
286
+ available_climate_presets?: {
287
+ name: string | null;
288
+ climate_preset_key: string;
289
+ can_edit: boolean;
290
+ can_delete: boolean;
291
+ display_name: string;
292
+ manual_override_allowed: boolean;
293
+ fan_mode_setting?: "auto" | "on" | undefined;
203
294
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
204
295
  cooling_set_point_celsius?: number | undefined;
205
296
  heating_set_point_celsius?: number | undefined;
206
297
  cooling_set_point_fahrenheit?: number | undefined;
207
298
  heating_set_point_fahrenheit?: number | undefined;
208
- manual_override_allowed?: boolean | undefined;
209
- } | undefined;
299
+ }[] | undefined;
300
+ fallback_climate_preset_key?: string | null | undefined;
301
+ active_thermostat_schedule?: {
302
+ created_at: string;
303
+ climate_preset_key: string;
304
+ thermostat_schedule_id: string;
305
+ device_id: string;
306
+ starts_at: string;
307
+ ends_at: string;
308
+ name?: string | undefined;
309
+ errors?: any;
310
+ max_override_period_minutes?: number | undefined;
311
+ } | null | undefined;
210
312
  min_cooling_set_point_celsius?: number | undefined;
211
313
  min_cooling_set_point_fahrenheit?: number | undefined;
212
314
  max_cooling_set_point_celsius?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { climate_setting, climate_setting_schedule, fan_mode_setting, hvac_mode_setting, } from '../../thermostats/index.js';
2
+ import { climate_preset, climate_setting, fan_mode_setting, hvac_mode_setting, thermostat_schedule, } from '../../thermostats/index.js';
3
3
  export const thermostat_capability_properties = z
4
4
  .object({
5
5
  temperature_fahrenheit: z.number(),
@@ -9,18 +9,27 @@ export const thermostat_capability_properties = z
9
9
  is_heating: z.boolean(),
10
10
  is_cooling: z.boolean(),
11
11
  is_fan_running: z.boolean(),
12
- fan_mode_setting,
12
+ fan_mode_setting: fan_mode_setting.describe(`
13
+ ---
14
+ deprecated: use current_climate_setting.fan_mode_setting instead.
15
+ ---
16
+ `),
13
17
  /**
14
18
  * this is true if the current thermostat settings differ that what is on seam, and `current_climate_setting.manual_override_allowed: true`
15
19
  */
16
20
  is_temporary_manual_override_active: z.boolean(),
17
21
  /**
18
- * can be derived from `default_climate_setting`, or `active_climate_setting_schedule` if one is active
22
+ * can be derived from `fallback_climate_preset_key`, or `active_thermostat_schedule` if one is active
19
23
  */
20
24
  current_climate_setting: climate_setting,
21
- default_climate_setting: climate_setting,
22
- is_climate_setting_schedule_active: z.boolean(),
23
- active_climate_setting_schedule: climate_setting_schedule,
25
+ default_climate_setting: climate_setting.describe(`
26
+ ---
27
+ deprecated: use fallback_climate_preset_key to specify a fallback climate preset instead.
28
+ ---
29
+ `),
30
+ available_climate_presets: z.array(climate_preset),
31
+ fallback_climate_preset_key: z.string().min(1).nullable().default(null),
32
+ active_thermostat_schedule: thermostat_schedule.nullable().default(null),
24
33
  min_cooling_set_point_celsius: z.number(),
25
34
  min_cooling_set_point_fahrenheit: z.number(),
26
35
  max_cooling_set_point_celsius: z.number(),
@@ -1 +1 @@
1
- {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,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,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;IAC3B,gBAAgB;IAEhB;;OAEG;IACH,mCAAmC,EAAE,CAAC,CAAC,OAAO,EAAE;IAEhD;;OAEG;IACH,uBAAuB,EAAE,eAAe;IACxC,uBAAuB,EAAE,eAAe;IACxC,kCAAkC,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/C,+BAA+B,EAAE,wBAAwB;IACzD,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,iCAAiC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7C,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC;KACD,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,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,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;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,CAAC;;;;KAI3C,CAAC;IAEF;;OAEG;IACH,mCAAmC,EAAE,CAAC,CAAC,OAAO,EAAE;IAEhD;;OAEG;IACH,uBAAuB,EAAE,eAAe;IACxC,uBAAuB,EAAE,eAAe,CAAC,QAAQ,CAAC;;;;KAIjD,CAAC;IACF,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IAClD,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACvE,0BAA0B,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACxE,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,iCAAiC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7C,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC;KACD,OAAO,EAAE,CAAA"}