@seamapi/types 1.253.0 → 1.254.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
@@ -144,7 +144,7 @@ var climate_preset = zod.z.object({
144
144
  climate_preset_key: zod.z.string(),
145
145
  can_edit: zod.z.boolean(),
146
146
  can_delete: zod.z.boolean(),
147
- name: zod.z.string().nullable().default(null),
147
+ name: zod.z.string().nullable().default(null).optional(),
148
148
  display_name: zod.z.string(),
149
149
  fan_mode_setting: fan_mode_setting.optional(),
150
150
  hvac_mode_setting: hvac_mode_setting.optional(),
@@ -155,6 +155,14 @@ var climate_preset = zod.z.object({
155
155
  manual_override_allowed: zod.z.boolean()
156
156
  });
157
157
  var climate_setting = climate_preset.partial();
158
+ climate_setting.pick({
159
+ fan_mode_setting: true,
160
+ hvac_mode_setting: true,
161
+ cooling_set_point_celsius: true,
162
+ heating_set_point_celsius: true,
163
+ cooling_set_point_fahrenheit: true,
164
+ heating_set_point_fahrenheit: true
165
+ });
158
166
  var thermostat_schedule = zod.z.object({
159
167
  thermostat_schedule_id: zod.z.string().uuid(),
160
168
  device_id: zod.z.string().uuid(),
@@ -2326,13 +2334,15 @@ var lock_access_denied_event = device_event.extend({
2326
2334
  }).describe(
2327
2335
  "The lock denied access to a user after one or more consecutive invalid attempts to unlock the device."
2328
2336
  );
2329
- device_event.extend({
2337
+ var thermostat_climate_preset_activated_event = device_event.extend({
2330
2338
  event_type: zod.z.literal("thermostat.climate_preset_activated"),
2331
2339
  thermostat_schedule_id: zod.z.string().uuid().nullable(),
2332
2340
  climate_preset_key: zod.z.string(),
2333
2341
  is_fallback_climate_preset: zod.z.boolean()
2334
2342
  }).describe("A thermostat climate preset was activated.");
2335
- device_event.merge(
2343
+ var thermostat_manually_adjusted_event = device_event.extend({
2344
+ event_type: zod.z.literal("thermostat.manually_adjusted")
2345
+ }).merge(
2336
2346
  climate_setting.pick({
2337
2347
  fan_mode_setting: true,
2338
2348
  hvac_mode_setting: true,
@@ -2367,9 +2377,9 @@ var device_events = [
2367
2377
  noise_sensor_noise_threshold_triggered_event,
2368
2378
  lock_locked_event,
2369
2379
  lock_unlocked_event,
2370
- lock_access_denied_event
2371
- // thermostat_climate_preset_activated_event,
2372
- // thermostat_manually_adjusted_event,
2380
+ lock_access_denied_event,
2381
+ thermostat_climate_preset_activated_event,
2382
+ thermostat_manually_adjusted_event
2373
2383
  ];
2374
2384
  var enrollment_automation_event = common_event.extend({
2375
2385
  enrollment_automation_id: zod.z.string().uuid().describe(`
@@ -6168,13 +6178,22 @@ var openapi_default = {
6168
6178
  acs_user_id: { format: "uuid", type: "string" },
6169
6179
  action_attempt_id: { format: "uuid", type: "string" },
6170
6180
  client_session_id: { format: "uuid", type: "string" },
6181
+ climate_preset_key: { type: "string" },
6182
+ cooling_set_point_celsius: { format: "float", type: "number" },
6183
+ cooling_set_point_fahrenheit: { format: "float", type: "number" },
6171
6184
  created_at: { format: "date-time", type: "string" },
6172
6185
  device_id: { format: "uuid", type: "string" },
6173
6186
  enrollment_automation_id: { format: "uuid", type: "string" },
6174
6187
  event_description: { type: "string" },
6175
6188
  event_id: { format: "uuid", type: "string" },
6176
6189
  event_type: { type: "string" },
6190
+ fan_mode_setting: { type: "string" },
6191
+ heating_set_point_celsius: { format: "float", type: "number" },
6192
+ heating_set_point_fahrenheit: { format: "float", type: "number" },
6193
+ hvac_mode_setting: { type: "string" },
6194
+ is_fallback_climate_preset: { type: "boolean" },
6177
6195
  occurred_at: { format: "date-time", type: "string" },
6196
+ thermostat_schedule_id: { format: "uuid", type: "string" },
6178
6197
  workspace_id: { format: "uuid", type: "string" }
6179
6198
  },
6180
6199
  required: [
@@ -13874,7 +13893,9 @@ var openapi_default = {
13874
13893
  "action_attempt.lock_door.succeeded",
13875
13894
  "action_attempt.lock_door.failed",
13876
13895
  "action_attempt.unlock_door.succeeded",
13877
- "action_attempt.unlock_door.failed"
13896
+ "action_attempt.unlock_door.failed",
13897
+ "thermostat.climate_preset_activated",
13898
+ "thermostat.manually_adjusted"
13878
13899
  ],
13879
13900
  type: "string"
13880
13901
  },
@@ -13942,7 +13963,9 @@ var openapi_default = {
13942
13963
  "action_attempt.lock_door.succeeded",
13943
13964
  "action_attempt.lock_door.failed",
13944
13965
  "action_attempt.unlock_door.succeeded",
13945
- "action_attempt.unlock_door.failed"
13966
+ "action_attempt.unlock_door.failed",
13967
+ "thermostat.climate_preset_activated",
13968
+ "thermostat.manually_adjusted"
13946
13969
  ],
13947
13970
  type: "string"
13948
13971
  },