@seamapi/types 1.222.0 → 1.224.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 CHANGED
@@ -160,15 +160,13 @@ var climate_setting_schedule = zod.z.object({
160
160
  }).merge(climate_setting.partial());
161
161
 
162
162
  // src/lib/seam/connect/models/devices/capability-properties/thermostat.ts
163
- var base_thermostat_capability_properties = zod.z.object({
163
+ var thermostat_capability_properties = zod.z.object({
164
164
  temperature_fahrenheit: zod.z.number(),
165
165
  temperature_celsius: zod.z.number(),
166
166
  relative_humidity: zod.z.number().min(0).max(1),
167
167
  can_enable_automatic_heating: zod.z.boolean(),
168
168
  can_enable_automatic_cooling: zod.z.boolean(),
169
169
  available_hvac_mode_settings: zod.z.array(hvac_mode_setting),
170
- is_heating_available: zod.z.literal(false),
171
- is_cooling_available: zod.z.literal(false),
172
170
  is_heating: zod.z.boolean(),
173
171
  is_cooling: zod.z.boolean(),
174
172
  is_fan_running: zod.z.boolean(),
@@ -181,41 +179,20 @@ var base_thermostat_capability_properties = zod.z.object({
181
179
  * can be derived from `default_climate_setting`, or `active_climate_setting_schedule` if one is active
182
180
  */
183
181
  current_climate_setting: climate_setting,
184
- default_climate_setting: climate_setting.optional(),
182
+ default_climate_setting: climate_setting,
185
183
  is_climate_setting_schedule_active: zod.z.boolean(),
186
- active_climate_setting_schedule: climate_setting_schedule.optional()
187
- });
188
- var cooling_thermostat_capability_properties = base_thermostat_capability_properties.merge(
189
- zod.z.object({
190
- min_cooling_set_point_celsius: zod.z.number(),
191
- min_cooling_set_point_fahrenheit: zod.z.number(),
192
- max_cooling_set_point_celsius: zod.z.number(),
193
- max_cooling_set_point_fahrenheit: zod.z.number(),
194
- is_cooling_available: zod.z.literal(true)
195
- })
196
- );
197
- var heating_thermostat_capability_properties = base_thermostat_capability_properties.merge(
198
- zod.z.object({
199
- min_heating_set_point_celsius: zod.z.number(),
200
- min_heating_set_point_fahrenheit: zod.z.number(),
201
- max_heating_set_point_celsius: zod.z.number(),
202
- max_heating_set_point_fahrenheit: zod.z.number(),
203
- is_heating_available: zod.z.literal(true)
204
- })
205
- );
206
- var heating_cooling_thermostat_capability_properties = cooling_thermostat_capability_properties.merge(heating_thermostat_capability_properties).merge(
207
- zod.z.object({
208
- is_cooling_available: zod.z.literal(true),
209
- is_heating_available: zod.z.literal(true),
210
- min_heating_cooling_delta_celsius: zod.z.number(),
211
- min_heating_cooling_delta_fahrenheit: zod.z.number()
212
- })
213
- );
214
- var thermostat_capability_properties = zod.z.union([
215
- heating_cooling_thermostat_capability_properties.partial(),
216
- heating_thermostat_capability_properties.partial(),
217
- cooling_thermostat_capability_properties.partial()
218
- ]);
184
+ active_climate_setting_schedule: climate_setting_schedule,
185
+ min_cooling_set_point_celsius: zod.z.number(),
186
+ min_cooling_set_point_fahrenheit: zod.z.number(),
187
+ max_cooling_set_point_celsius: zod.z.number(),
188
+ max_cooling_set_point_fahrenheit: zod.z.number(),
189
+ min_heating_set_point_celsius: zod.z.number(),
190
+ min_heating_set_point_fahrenheit: zod.z.number(),
191
+ max_heating_set_point_celsius: zod.z.number(),
192
+ max_heating_set_point_fahrenheit: zod.z.number(),
193
+ min_heating_cooling_delta_celsius: zod.z.number(),
194
+ min_heating_cooling_delta_fahrenheit: zod.z.number()
195
+ }).partial();
219
196
 
220
197
  // src/lib/seam/connect/models/devices/capability-properties/index.ts
221
198
  var capability_properties = zod.z.intersection(
@@ -1205,13 +1182,39 @@ var visionline_instance_unreachable = common_acs_system_error.extend({
1205
1182
  }).describe(`Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
1206
1183
  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).
1207
1184
  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).`);
1208
- var acs_system_error = zod.z.union([seam_bridge_disconnected, visionline_instance_unreachable]).describe("Error associated with the `acs_system`.");
1185
+ var salto_site_user_limit_reached = common_acs_system_error.extend({
1186
+ error_code: zod.z.literal("salto_site_user_limit_reached").describe(
1187
+ "You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit."
1188
+ )
1189
+ });
1190
+ var acs_system_error = zod.z.union([
1191
+ seam_bridge_disconnected,
1192
+ visionline_instance_unreachable,
1193
+ salto_site_user_limit_reached
1194
+ ]).describe("Error associated with the `acs_system`.");
1209
1195
  zod.z.object({
1210
1196
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
1211
- visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable()
1197
+ visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable(),
1198
+ salto_site_user_limit_reached: salto_site_user_limit_reached.optional().nullable()
1199
+ });
1200
+ var common_acs_system_warning = zod.z.object({
1201
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
1202
+ message: zod.z.string().describe(
1203
+ "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
1204
+ )
1205
+ });
1206
+ var salto_site_user_limit_almost_reached = common_acs_system_warning.extend({
1207
+ warning_code: zod.z.literal("salto_site_user_limit_almost_reached").describe(
1208
+ "You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit."
1209
+ )
1210
+ });
1211
+ var acs_system_warning = (
1212
+ // z.union([
1213
+ salto_site_user_limit_almost_reached.describe("Warning associated with the `acs_system`.")
1214
+ );
1215
+ zod.z.object({
1216
+ salto_site_user_limit_almost_reached: salto_site_user_limit_almost_reached.optional().nullable()
1212
1217
  });
1213
- var acs_system_warning = zod.z.object({});
1214
- zod.z.object({});
1215
1218
  var acs_system = zod.z.object({
1216
1219
  acs_system_id: zod.z.string().uuid().describe("ID of the `acs_system`."),
1217
1220
  external_type: acs_system_external_type.describe("Brand-specific terminology for the `acs_system` type.").optional(),
@@ -1246,13 +1249,7 @@ var acs_system = zod.z.object({
1246
1249
  image_url: zod.z.string().describe("URL for the image that represents the `acs_system`."),
1247
1250
  image_alt_text: zod.z.string().describe("Alternative text for the `acs_system` image."),
1248
1251
  errors: zod.z.array(acs_system_error).describe("Errors associated with the `acs_system`."),
1249
- warnings: zod.z.array(acs_system_warning).describe(
1250
- `
1251
- ---
1252
- undocumented: Currently, no warnings defined for \`acs_system\`s.
1253
- ---
1254
- `
1255
- )
1252
+ warnings: zod.z.array(acs_system_warning).describe("Warnings associated with the `acs_system`.")
1256
1253
  }).merge(acs_system_capability_flags).describe(
1257
1254
  "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
1258
1255
  );
@@ -2713,6 +2710,26 @@ var openapi_default = {
2713
2710
  },
2714
2711
  required: ["created_at", "message", "error_code"],
2715
2712
  type: "object"
2713
+ },
2714
+ {
2715
+ properties: {
2716
+ created_at: {
2717
+ description: "Date and time at which Seam created the error.",
2718
+ format: "date-time",
2719
+ type: "string"
2720
+ },
2721
+ error_code: {
2722
+ description: "You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.",
2723
+ enum: ["salto_site_user_limit_reached"],
2724
+ type: "string"
2725
+ },
2726
+ message: {
2727
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2728
+ type: "string"
2729
+ }
2730
+ },
2731
+ required: ["created_at", "message", "error_code"],
2732
+ type: "object"
2716
2733
  }
2717
2734
  ]
2718
2735
  },
@@ -2775,9 +2792,29 @@ var openapi_default = {
2775
2792
  type: "object"
2776
2793
  },
2777
2794
  warnings: {
2778
- items: { properties: {}, type: "object" },
2779
- type: "array",
2780
- "x-undocumented": "Currently, no warnings defined for `acs_system`s."
2795
+ description: "Warnings associated with the `acs_system`.",
2796
+ items: {
2797
+ description: "Warning associated with the `acs_system`.",
2798
+ properties: {
2799
+ created_at: {
2800
+ description: "Date and time at which Seam created the warning.",
2801
+ format: "date-time",
2802
+ type: "string"
2803
+ },
2804
+ message: {
2805
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
2806
+ type: "string"
2807
+ },
2808
+ warning_code: {
2809
+ description: "You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.",
2810
+ enum: ["salto_site_user_limit_almost_reached"],
2811
+ type: "string"
2812
+ }
2813
+ },
2814
+ required: ["created_at", "message", "warning_code"],
2815
+ type: "object"
2816
+ },
2817
+ type: "array"
2781
2818
  },
2782
2819
  workspace_id: {
2783
2820
  description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
@@ -5025,596 +5062,198 @@ var openapi_default = {
5025
5062
  type: "object"
5026
5063
  },
5027
5064
  {
5028
- oneOf: [
5029
- {
5065
+ properties: {
5066
+ active_climate_setting_schedule: {
5030
5067
  properties: {
5031
- active_climate_setting_schedule: {
5032
- properties: {
5033
- automatic_cooling_enabled: { type: "boolean" },
5034
- automatic_heating_enabled: { type: "boolean" },
5035
- climate_setting_schedule_id: {
5036
- format: "uuid",
5037
- type: "string"
5038
- },
5039
- cooling_set_point_celsius: {
5040
- format: "float",
5041
- type: "number"
5042
- },
5043
- cooling_set_point_fahrenheit: {
5044
- format: "float",
5045
- type: "number"
5046
- },
5047
- created_at: {
5048
- format: "date-time",
5049
- type: "string"
5050
- },
5051
- device_id: { format: "uuid", type: "string" },
5052
- errors: {
5053
- description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'
5054
- },
5055
- heating_set_point_celsius: {
5056
- format: "float",
5057
- type: "number"
5058
- },
5059
- heating_set_point_fahrenheit: {
5060
- format: "float",
5061
- type: "number"
5062
- },
5063
- hvac_mode_setting: {
5064
- enum: ["off", "heat", "cool", "heat_cool"],
5065
- type: "string"
5066
- },
5067
- manual_override_allowed: { type: "boolean" },
5068
- name: { type: "string" },
5069
- schedule_ends_at: { type: "string" },
5070
- schedule_starts_at: { type: "string" },
5071
- schedule_type: {
5072
- enum: ["time_bound"],
5073
- type: "string"
5074
- }
5075
- },
5076
- required: [
5077
- "climate_setting_schedule_id",
5078
- "schedule_type",
5079
- "device_id",
5080
- "schedule_starts_at",
5081
- "schedule_ends_at",
5082
- "created_at"
5083
- ],
5084
- type: "object"
5085
- },
5086
- available_hvac_mode_settings: {
5087
- items: {
5088
- enum: ["off", "heat", "cool", "heat_cool"],
5089
- type: "string"
5090
- },
5091
- type: "array"
5092
- },
5093
- can_enable_automatic_cooling: { type: "boolean" },
5094
- can_enable_automatic_heating: { type: "boolean" },
5095
- current_climate_setting: {
5096
- properties: {
5097
- automatic_cooling_enabled: { type: "boolean" },
5098
- automatic_heating_enabled: { type: "boolean" },
5099
- cooling_set_point_celsius: {
5100
- format: "float",
5101
- type: "number"
5102
- },
5103
- cooling_set_point_fahrenheit: {
5104
- format: "float",
5105
- type: "number"
5106
- },
5107
- heating_set_point_celsius: {
5108
- format: "float",
5109
- type: "number"
5110
- },
5111
- heating_set_point_fahrenheit: {
5112
- format: "float",
5113
- type: "number"
5114
- },
5115
- hvac_mode_setting: {
5116
- enum: ["off", "heat", "cool", "heat_cool"],
5117
- type: "string"
5118
- },
5119
- manual_override_allowed: { type: "boolean" }
5120
- },
5121
- required: [
5122
- "automatic_heating_enabled",
5123
- "automatic_cooling_enabled",
5124
- "hvac_mode_setting",
5125
- "manual_override_allowed"
5126
- ],
5127
- type: "object"
5128
- },
5129
- default_climate_setting: {
5130
- properties: {
5131
- automatic_cooling_enabled: { type: "boolean" },
5132
- automatic_heating_enabled: { type: "boolean" },
5133
- cooling_set_point_celsius: {
5134
- format: "float",
5135
- type: "number"
5136
- },
5137
- cooling_set_point_fahrenheit: {
5138
- format: "float",
5139
- type: "number"
5140
- },
5141
- heating_set_point_celsius: {
5142
- format: "float",
5143
- type: "number"
5144
- },
5145
- heating_set_point_fahrenheit: {
5146
- format: "float",
5147
- type: "number"
5148
- },
5149
- hvac_mode_setting: {
5150
- enum: ["off", "heat", "cool", "heat_cool"],
5151
- type: "string"
5152
- },
5153
- manual_override_allowed: { type: "boolean" }
5154
- },
5155
- required: [
5156
- "automatic_heating_enabled",
5157
- "automatic_cooling_enabled",
5158
- "hvac_mode_setting",
5159
- "manual_override_allowed"
5160
- ],
5161
- type: "object"
5162
- },
5163
- fan_mode_setting: {
5164
- enum: ["auto", "on"],
5068
+ automatic_cooling_enabled: { type: "boolean" },
5069
+ automatic_heating_enabled: { type: "boolean" },
5070
+ climate_setting_schedule_id: {
5071
+ format: "uuid",
5165
5072
  type: "string"
5166
5073
  },
5167
- is_climate_setting_schedule_active: {
5168
- type: "boolean"
5169
- },
5170
- is_cooling: { type: "boolean" },
5171
- is_cooling_available: {
5172
- enum: [true],
5173
- type: "boolean"
5174
- },
5175
- is_fan_running: { type: "boolean" },
5176
- is_heating: { type: "boolean" },
5177
- is_heating_available: {
5178
- enum: [true],
5179
- type: "boolean"
5180
- },
5181
- is_temporary_manual_override_active: {
5182
- type: "boolean"
5183
- },
5184
- max_cooling_set_point_celsius: {
5074
+ cooling_set_point_celsius: {
5185
5075
  format: "float",
5186
5076
  type: "number"
5187
5077
  },
5188
- max_cooling_set_point_fahrenheit: {
5078
+ cooling_set_point_fahrenheit: {
5189
5079
  format: "float",
5190
5080
  type: "number"
5191
5081
  },
5192
- max_heating_set_point_celsius: {
5193
- format: "float",
5194
- type: "number"
5195
- },
5196
- max_heating_set_point_fahrenheit: {
5197
- format: "float",
5198
- type: "number"
5082
+ created_at: { format: "date-time", type: "string" },
5083
+ device_id: { format: "uuid", type: "string" },
5084
+ errors: {
5085
+ description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'
5199
5086
  },
5200
- min_cooling_set_point_celsius: {
5087
+ heating_set_point_celsius: {
5201
5088
  format: "float",
5202
5089
  type: "number"
5203
5090
  },
5204
- min_cooling_set_point_fahrenheit: {
5091
+ heating_set_point_fahrenheit: {
5205
5092
  format: "float",
5206
5093
  type: "number"
5207
5094
  },
5208
- min_heating_cooling_delta_celsius: {
5209
- format: "float",
5210
- type: "number"
5211
- },
5212
- min_heating_cooling_delta_fahrenheit: {
5213
- format: "float",
5214
- type: "number"
5215
- },
5216
- min_heating_set_point_celsius: {
5217
- format: "float",
5218
- type: "number"
5219
- },
5220
- min_heating_set_point_fahrenheit: {
5221
- format: "float",
5222
- type: "number"
5223
- },
5224
- relative_humidity: {
5225
- format: "float",
5226
- maximum: 1,
5227
- minimum: 0,
5228
- type: "number"
5229
- },
5230
- temperature_celsius: {
5231
- format: "float",
5232
- type: "number"
5095
+ hvac_mode_setting: {
5096
+ enum: ["off", "heat", "cool", "heat_cool"],
5097
+ type: "string"
5233
5098
  },
5234
- temperature_fahrenheit: {
5235
- format: "float",
5236
- type: "number"
5099
+ manual_override_allowed: { type: "boolean" },
5100
+ name: { type: "string" },
5101
+ schedule_ends_at: { type: "string" },
5102
+ schedule_starts_at: { type: "string" },
5103
+ schedule_type: {
5104
+ enum: ["time_bound"],
5105
+ type: "string"
5237
5106
  }
5238
5107
  },
5108
+ required: [
5109
+ "climate_setting_schedule_id",
5110
+ "schedule_type",
5111
+ "device_id",
5112
+ "schedule_starts_at",
5113
+ "schedule_ends_at",
5114
+ "created_at"
5115
+ ],
5239
5116
  type: "object"
5240
5117
  },
5241
- {
5118
+ available_hvac_mode_settings: {
5119
+ items: {
5120
+ enum: ["off", "heat", "cool", "heat_cool"],
5121
+ type: "string"
5122
+ },
5123
+ type: "array"
5124
+ },
5125
+ can_enable_automatic_cooling: { type: "boolean" },
5126
+ can_enable_automatic_heating: { type: "boolean" },
5127
+ current_climate_setting: {
5242
5128
  properties: {
5243
- active_climate_setting_schedule: {
5244
- properties: {
5245
- automatic_cooling_enabled: { type: "boolean" },
5246
- automatic_heating_enabled: { type: "boolean" },
5247
- climate_setting_schedule_id: {
5248
- format: "uuid",
5249
- type: "string"
5250
- },
5251
- cooling_set_point_celsius: {
5252
- format: "float",
5253
- type: "number"
5254
- },
5255
- cooling_set_point_fahrenheit: {
5256
- format: "float",
5257
- type: "number"
5258
- },
5259
- created_at: {
5260
- format: "date-time",
5261
- type: "string"
5262
- },
5263
- device_id: { format: "uuid", type: "string" },
5264
- errors: {
5265
- description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'
5266
- },
5267
- heating_set_point_celsius: {
5268
- format: "float",
5269
- type: "number"
5270
- },
5271
- heating_set_point_fahrenheit: {
5272
- format: "float",
5273
- type: "number"
5274
- },
5275
- hvac_mode_setting: {
5276
- enum: ["off", "heat", "cool", "heat_cool"],
5277
- type: "string"
5278
- },
5279
- manual_override_allowed: { type: "boolean" },
5280
- name: { type: "string" },
5281
- schedule_ends_at: { type: "string" },
5282
- schedule_starts_at: { type: "string" },
5283
- schedule_type: {
5284
- enum: ["time_bound"],
5285
- type: "string"
5286
- }
5287
- },
5288
- required: [
5289
- "climate_setting_schedule_id",
5290
- "schedule_type",
5291
- "device_id",
5292
- "schedule_starts_at",
5293
- "schedule_ends_at",
5294
- "created_at"
5295
- ],
5296
- type: "object"
5297
- },
5298
- available_hvac_mode_settings: {
5299
- items: {
5300
- enum: ["off", "heat", "cool", "heat_cool"],
5301
- type: "string"
5302
- },
5303
- type: "array"
5304
- },
5305
- can_enable_automatic_cooling: { type: "boolean" },
5306
- can_enable_automatic_heating: { type: "boolean" },
5307
- current_climate_setting: {
5308
- properties: {
5309
- automatic_cooling_enabled: { type: "boolean" },
5310
- automatic_heating_enabled: { type: "boolean" },
5311
- cooling_set_point_celsius: {
5312
- format: "float",
5313
- type: "number"
5314
- },
5315
- cooling_set_point_fahrenheit: {
5316
- format: "float",
5317
- type: "number"
5318
- },
5319
- heating_set_point_celsius: {
5320
- format: "float",
5321
- type: "number"
5322
- },
5323
- heating_set_point_fahrenheit: {
5324
- format: "float",
5325
- type: "number"
5326
- },
5327
- hvac_mode_setting: {
5328
- enum: ["off", "heat", "cool", "heat_cool"],
5329
- type: "string"
5330
- },
5331
- manual_override_allowed: { type: "boolean" }
5332
- },
5333
- required: [
5334
- "automatic_heating_enabled",
5335
- "automatic_cooling_enabled",
5336
- "hvac_mode_setting",
5337
- "manual_override_allowed"
5338
- ],
5339
- type: "object"
5340
- },
5341
- default_climate_setting: {
5342
- properties: {
5343
- automatic_cooling_enabled: { type: "boolean" },
5344
- automatic_heating_enabled: { type: "boolean" },
5345
- cooling_set_point_celsius: {
5346
- format: "float",
5347
- type: "number"
5348
- },
5349
- cooling_set_point_fahrenheit: {
5350
- format: "float",
5351
- type: "number"
5352
- },
5353
- heating_set_point_celsius: {
5354
- format: "float",
5355
- type: "number"
5356
- },
5357
- heating_set_point_fahrenheit: {
5358
- format: "float",
5359
- type: "number"
5360
- },
5361
- hvac_mode_setting: {
5362
- enum: ["off", "heat", "cool", "heat_cool"],
5363
- type: "string"
5364
- },
5365
- manual_override_allowed: { type: "boolean" }
5366
- },
5367
- required: [
5368
- "automatic_heating_enabled",
5369
- "automatic_cooling_enabled",
5370
- "hvac_mode_setting",
5371
- "manual_override_allowed"
5372
- ],
5373
- type: "object"
5374
- },
5375
- fan_mode_setting: {
5376
- enum: ["auto", "on"],
5377
- type: "string"
5378
- },
5379
- is_climate_setting_schedule_active: {
5380
- type: "boolean"
5381
- },
5382
- is_cooling: { type: "boolean" },
5383
- is_cooling_available: {
5384
- enum: [false],
5385
- type: "boolean"
5386
- },
5387
- is_fan_running: { type: "boolean" },
5388
- is_heating: { type: "boolean" },
5389
- is_heating_available: {
5390
- enum: [true],
5391
- type: "boolean"
5392
- },
5393
- is_temporary_manual_override_active: {
5394
- type: "boolean"
5395
- },
5396
- max_heating_set_point_celsius: {
5129
+ automatic_cooling_enabled: { type: "boolean" },
5130
+ automatic_heating_enabled: { type: "boolean" },
5131
+ cooling_set_point_celsius: {
5397
5132
  format: "float",
5398
5133
  type: "number"
5399
5134
  },
5400
- max_heating_set_point_fahrenheit: {
5135
+ cooling_set_point_fahrenheit: {
5401
5136
  format: "float",
5402
5137
  type: "number"
5403
5138
  },
5404
- min_heating_set_point_celsius: {
5139
+ heating_set_point_celsius: {
5405
5140
  format: "float",
5406
5141
  type: "number"
5407
5142
  },
5408
- min_heating_set_point_fahrenheit: {
5143
+ heating_set_point_fahrenheit: {
5409
5144
  format: "float",
5410
5145
  type: "number"
5411
5146
  },
5412
- relative_humidity: {
5413
- format: "float",
5414
- maximum: 1,
5415
- minimum: 0,
5416
- type: "number"
5417
- },
5418
- temperature_celsius: {
5419
- format: "float",
5420
- type: "number"
5147
+ hvac_mode_setting: {
5148
+ enum: ["off", "heat", "cool", "heat_cool"],
5149
+ type: "string"
5421
5150
  },
5422
- temperature_fahrenheit: {
5423
- format: "float",
5424
- type: "number"
5425
- }
5151
+ manual_override_allowed: { type: "boolean" }
5426
5152
  },
5153
+ required: [
5154
+ "automatic_heating_enabled",
5155
+ "automatic_cooling_enabled",
5156
+ "hvac_mode_setting",
5157
+ "manual_override_allowed"
5158
+ ],
5427
5159
  type: "object"
5428
5160
  },
5429
- {
5161
+ default_climate_setting: {
5430
5162
  properties: {
5431
- active_climate_setting_schedule: {
5432
- properties: {
5433
- automatic_cooling_enabled: { type: "boolean" },
5434
- automatic_heating_enabled: { type: "boolean" },
5435
- climate_setting_schedule_id: {
5436
- format: "uuid",
5437
- type: "string"
5438
- },
5439
- cooling_set_point_celsius: {
5440
- format: "float",
5441
- type: "number"
5442
- },
5443
- cooling_set_point_fahrenheit: {
5444
- format: "float",
5445
- type: "number"
5446
- },
5447
- created_at: {
5448
- format: "date-time",
5449
- type: "string"
5450
- },
5451
- device_id: { format: "uuid", type: "string" },
5452
- errors: {
5453
- description: 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'
5454
- },
5455
- heating_set_point_celsius: {
5456
- format: "float",
5457
- type: "number"
5458
- },
5459
- heating_set_point_fahrenheit: {
5460
- format: "float",
5461
- type: "number"
5462
- },
5463
- hvac_mode_setting: {
5464
- enum: ["off", "heat", "cool", "heat_cool"],
5465
- type: "string"
5466
- },
5467
- manual_override_allowed: { type: "boolean" },
5468
- name: { type: "string" },
5469
- schedule_ends_at: { type: "string" },
5470
- schedule_starts_at: { type: "string" },
5471
- schedule_type: {
5472
- enum: ["time_bound"],
5473
- type: "string"
5474
- }
5475
- },
5476
- required: [
5477
- "climate_setting_schedule_id",
5478
- "schedule_type",
5479
- "device_id",
5480
- "schedule_starts_at",
5481
- "schedule_ends_at",
5482
- "created_at"
5483
- ],
5484
- type: "object"
5485
- },
5486
- available_hvac_mode_settings: {
5487
- items: {
5488
- enum: ["off", "heat", "cool", "heat_cool"],
5489
- type: "string"
5490
- },
5491
- type: "array"
5492
- },
5493
- can_enable_automatic_cooling: { type: "boolean" },
5494
- can_enable_automatic_heating: { type: "boolean" },
5495
- current_climate_setting: {
5496
- properties: {
5497
- automatic_cooling_enabled: { type: "boolean" },
5498
- automatic_heating_enabled: { type: "boolean" },
5499
- cooling_set_point_celsius: {
5500
- format: "float",
5501
- type: "number"
5502
- },
5503
- cooling_set_point_fahrenheit: {
5504
- format: "float",
5505
- type: "number"
5506
- },
5507
- heating_set_point_celsius: {
5508
- format: "float",
5509
- type: "number"
5510
- },
5511
- heating_set_point_fahrenheit: {
5512
- format: "float",
5513
- type: "number"
5514
- },
5515
- hvac_mode_setting: {
5516
- enum: ["off", "heat", "cool", "heat_cool"],
5517
- type: "string"
5518
- },
5519
- manual_override_allowed: { type: "boolean" }
5520
- },
5521
- required: [
5522
- "automatic_heating_enabled",
5523
- "automatic_cooling_enabled",
5524
- "hvac_mode_setting",
5525
- "manual_override_allowed"
5526
- ],
5527
- type: "object"
5528
- },
5529
- default_climate_setting: {
5530
- properties: {
5531
- automatic_cooling_enabled: { type: "boolean" },
5532
- automatic_heating_enabled: { type: "boolean" },
5533
- cooling_set_point_celsius: {
5534
- format: "float",
5535
- type: "number"
5536
- },
5537
- cooling_set_point_fahrenheit: {
5538
- format: "float",
5539
- type: "number"
5540
- },
5541
- heating_set_point_celsius: {
5542
- format: "float",
5543
- type: "number"
5544
- },
5545
- heating_set_point_fahrenheit: {
5546
- format: "float",
5547
- type: "number"
5548
- },
5549
- hvac_mode_setting: {
5550
- enum: ["off", "heat", "cool", "heat_cool"],
5551
- type: "string"
5552
- },
5553
- manual_override_allowed: { type: "boolean" }
5554
- },
5555
- required: [
5556
- "automatic_heating_enabled",
5557
- "automatic_cooling_enabled",
5558
- "hvac_mode_setting",
5559
- "manual_override_allowed"
5560
- ],
5561
- type: "object"
5562
- },
5563
- fan_mode_setting: {
5564
- enum: ["auto", "on"],
5565
- type: "string"
5566
- },
5567
- is_climate_setting_schedule_active: {
5568
- type: "boolean"
5569
- },
5570
- is_cooling: { type: "boolean" },
5571
- is_cooling_available: {
5572
- enum: [true],
5573
- type: "boolean"
5574
- },
5575
- is_fan_running: { type: "boolean" },
5576
- is_heating: { type: "boolean" },
5577
- is_heating_available: {
5578
- enum: [false],
5579
- type: "boolean"
5580
- },
5581
- is_temporary_manual_override_active: {
5582
- type: "boolean"
5583
- },
5584
- max_cooling_set_point_celsius: {
5163
+ automatic_cooling_enabled: { type: "boolean" },
5164
+ automatic_heating_enabled: { type: "boolean" },
5165
+ cooling_set_point_celsius: {
5585
5166
  format: "float",
5586
5167
  type: "number"
5587
5168
  },
5588
- max_cooling_set_point_fahrenheit: {
5169
+ cooling_set_point_fahrenheit: {
5589
5170
  format: "float",
5590
5171
  type: "number"
5591
5172
  },
5592
- min_cooling_set_point_celsius: {
5173
+ heating_set_point_celsius: {
5593
5174
  format: "float",
5594
5175
  type: "number"
5595
5176
  },
5596
- min_cooling_set_point_fahrenheit: {
5177
+ heating_set_point_fahrenheit: {
5597
5178
  format: "float",
5598
5179
  type: "number"
5599
5180
  },
5600
- relative_humidity: {
5601
- format: "float",
5602
- maximum: 1,
5603
- minimum: 0,
5604
- type: "number"
5605
- },
5606
- temperature_celsius: {
5607
- format: "float",
5608
- type: "number"
5181
+ hvac_mode_setting: {
5182
+ enum: ["off", "heat", "cool", "heat_cool"],
5183
+ type: "string"
5609
5184
  },
5610
- temperature_fahrenheit: {
5611
- format: "float",
5612
- type: "number"
5613
- }
5185
+ manual_override_allowed: { type: "boolean" }
5614
5186
  },
5187
+ required: [
5188
+ "automatic_heating_enabled",
5189
+ "automatic_cooling_enabled",
5190
+ "hvac_mode_setting",
5191
+ "manual_override_allowed"
5192
+ ],
5615
5193
  type: "object"
5194
+ },
5195
+ fan_mode_setting: {
5196
+ enum: ["auto", "on"],
5197
+ type: "string"
5198
+ },
5199
+ is_climate_setting_schedule_active: { type: "boolean" },
5200
+ is_cooling: { type: "boolean" },
5201
+ is_fan_running: { type: "boolean" },
5202
+ is_heating: { type: "boolean" },
5203
+ is_temporary_manual_override_active: { type: "boolean" },
5204
+ max_cooling_set_point_celsius: {
5205
+ format: "float",
5206
+ type: "number"
5207
+ },
5208
+ max_cooling_set_point_fahrenheit: {
5209
+ format: "float",
5210
+ type: "number"
5211
+ },
5212
+ max_heating_set_point_celsius: {
5213
+ format: "float",
5214
+ type: "number"
5215
+ },
5216
+ max_heating_set_point_fahrenheit: {
5217
+ format: "float",
5218
+ type: "number"
5219
+ },
5220
+ min_cooling_set_point_celsius: {
5221
+ format: "float",
5222
+ type: "number"
5223
+ },
5224
+ min_cooling_set_point_fahrenheit: {
5225
+ format: "float",
5226
+ type: "number"
5227
+ },
5228
+ min_heating_cooling_delta_celsius: {
5229
+ format: "float",
5230
+ type: "number"
5231
+ },
5232
+ min_heating_cooling_delta_fahrenheit: {
5233
+ format: "float",
5234
+ type: "number"
5235
+ },
5236
+ min_heating_set_point_celsius: {
5237
+ format: "float",
5238
+ type: "number"
5239
+ },
5240
+ min_heating_set_point_fahrenheit: {
5241
+ format: "float",
5242
+ type: "number"
5243
+ },
5244
+ relative_humidity: {
5245
+ format: "float",
5246
+ maximum: 1,
5247
+ minimum: 0,
5248
+ type: "number"
5249
+ },
5250
+ temperature_celsius: { format: "float", type: "number" },
5251
+ temperature_fahrenheit: {
5252
+ format: "float",
5253
+ type: "number"
5616
5254
  }
5617
- ]
5255
+ },
5256
+ type: "object"
5618
5257
  }
5619
5258
  ]
5620
5259
  }