@seamapi/types 1.429.1 → 1.430.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 (27) hide show
  1. package/dist/connect.cjs +107 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +276 -0
  4. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -0
  5. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -0
  6. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -1
  7. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  8. package/lib/seam/connect/models/devices/device.d.ts +26 -0
  9. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -0
  10. package/lib/seam/connect/models/events/devices.d.ts +2 -0
  11. package/lib/seam/connect/models/events/seam-event.d.ts +1 -0
  12. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -0
  13. package/lib/seam/connect/models/thermostats/climate-preset.js +4 -1
  14. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  15. package/lib/seam/connect/models/thermostats/modes.d.ts +2 -0
  16. package/lib/seam/connect/models/thermostats/modes.js +8 -0
  17. package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +41 -0
  19. package/lib/seam/connect/openapi.js +89 -0
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +190 -0
  22. package/package.json +2 -2
  23. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
  24. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +8 -1
  25. package/src/lib/seam/connect/models/thermostats/modes.ts +11 -0
  26. package/src/lib/seam/connect/openapi.ts +96 -0
  27. package/src/lib/seam/connect/route-types.ts +675 -0
package/dist/connect.cjs CHANGED
@@ -148,6 +148,14 @@ var lock_capability_properties = zod.z.object({
148
148
  var hvac_mode_setting = zod.z.enum(["off", "heat", "cool", "heat_cool"]);
149
149
  var fan_mode_setting = zod.z.enum(["auto", "on", "circulate"]);
150
150
  zod.z.array(fan_mode_setting);
151
+ var climate_preset_mode = zod.z.enum([
152
+ "home",
153
+ "away",
154
+ "wake",
155
+ "sleep",
156
+ "occupied",
157
+ "unoccupied"
158
+ ]);
151
159
 
152
160
  // src/lib/seam/connect/models/thermostats/climate-preset.ts
153
161
  var climate_preset = zod.z.object({
@@ -169,6 +177,9 @@ var climate_preset = zod.z.object({
169
177
  display_name: zod.z.string().describe(
170
178
  "Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets)."
171
179
  ),
180
+ climate_preset_mode: climate_preset_mode.optional().describe(`
181
+ The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
182
+ `),
172
183
  fan_mode_setting: fan_mode_setting.optional().describe(
173
184
  "Desired [fan mode setting](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`."
174
185
  ),
@@ -319,6 +330,13 @@ var thermostat_capability_properties = zod.z.object({
319
330
  ---
320
331
  Fan mode settings that the thermostat supports.
321
332
  `),
333
+ available_climate_preset_modes: zod.z.array(climate_preset_mode).describe(`
334
+ ---
335
+ property_group_key: thermostats
336
+ draft: Needs review.
337
+ ---
338
+ Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".
339
+ `),
322
340
  is_heating: zod.z.boolean().describe(`
323
341
  ---
324
342
  property_group_key: thermostats
@@ -15584,6 +15602,23 @@ var openapi_default = {
15584
15602
  type: "string",
15585
15603
  "x-property-group-key": "thermostats"
15586
15604
  },
15605
+ available_climate_preset_modes: {
15606
+ description: 'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".',
15607
+ items: {
15608
+ enum: [
15609
+ "home",
15610
+ "away",
15611
+ "wake",
15612
+ "sleep",
15613
+ "occupied",
15614
+ "unoccupied"
15615
+ ],
15616
+ type: "string"
15617
+ },
15618
+ type: "array",
15619
+ "x-draft": "Needs review.",
15620
+ "x-property-group-key": "thermostats"
15621
+ },
15587
15622
  available_climate_presets: {
15588
15623
  description: "Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.",
15589
15624
  items: {
@@ -15604,6 +15639,18 @@ var openapi_default = {
15604
15639
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15605
15640
  type: "string"
15606
15641
  },
15642
+ climate_preset_mode: {
15643
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15644
+ enum: [
15645
+ "home",
15646
+ "away",
15647
+ "wake",
15648
+ "sleep",
15649
+ "occupied",
15650
+ "unoccupied"
15651
+ ],
15652
+ type: "string"
15653
+ },
15607
15654
  cooling_set_point_celsius: {
15608
15655
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15609
15656
  format: "float",
@@ -15701,6 +15748,18 @@ var openapi_default = {
15701
15748
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15702
15749
  type: "string"
15703
15750
  },
15751
+ climate_preset_mode: {
15752
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15753
+ enum: [
15754
+ "home",
15755
+ "away",
15756
+ "wake",
15757
+ "sleep",
15758
+ "occupied",
15759
+ "unoccupied"
15760
+ ],
15761
+ type: "string"
15762
+ },
15704
15763
  cooling_set_point_celsius: {
15705
15764
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15706
15765
  format: "float",
@@ -15770,6 +15829,18 @@ var openapi_default = {
15770
15829
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15771
15830
  type: "string"
15772
15831
  },
15832
+ climate_preset_mode: {
15833
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15834
+ enum: [
15835
+ "home",
15836
+ "away",
15837
+ "wake",
15838
+ "sleep",
15839
+ "occupied",
15840
+ "unoccupied"
15841
+ ],
15842
+ type: "string"
15843
+ },
15773
15844
  cooling_set_point_celsius: {
15774
15845
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15775
15846
  format: "float",
@@ -48161,6 +48232,18 @@ var openapi_default = {
48161
48232
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
48162
48233
  type: "string"
48163
48234
  },
48235
+ climate_preset_mode: {
48236
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
48237
+ enum: [
48238
+ "home",
48239
+ "away",
48240
+ "wake",
48241
+ "sleep",
48242
+ "occupied",
48243
+ "unoccupied"
48244
+ ],
48245
+ type: "string"
48246
+ },
48164
48247
  cooling_set_point_celsius: {
48165
48248
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
48166
48249
  format: "float",
@@ -50717,6 +50800,18 @@ var openapi_default = {
50717
50800
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
50718
50801
  type: "string"
50719
50802
  },
50803
+ climate_preset_mode: {
50804
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
50805
+ enum: [
50806
+ "home",
50807
+ "away",
50808
+ "wake",
50809
+ "sleep",
50810
+ "occupied",
50811
+ "unoccupied"
50812
+ ],
50813
+ type: "string"
50814
+ },
50720
50815
  cooling_set_point_celsius: {
50721
50816
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
50722
50817
  format: "float",
@@ -50812,6 +50907,18 @@ var openapi_default = {
50812
50907
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
50813
50908
  type: "string"
50814
50909
  },
50910
+ climate_preset_mode: {
50911
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
50912
+ enum: [
50913
+ "home",
50914
+ "away",
50915
+ "wake",
50916
+ "sleep",
50917
+ "occupied",
50918
+ "unoccupied"
50919
+ ],
50920
+ type: "string"
50921
+ },
50815
50922
  cooling_set_point_celsius: {
50816
50923
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
50817
50924
  format: "float",