@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.
- package/dist/connect.cjs +107 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +276 -0
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -1
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +26 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -0
- package/lib/seam/connect/models/events/devices.d.ts +2 -0
- package/lib/seam/connect/models/events/seam-event.d.ts +1 -0
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +4 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/modes.d.ts +2 -0
- package/lib/seam/connect/models/thermostats/modes.js +8 -0
- package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +41 -0
- package/lib/seam/connect/openapi.js +89 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +190 -0
- package/package.json +2 -2
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +8 -1
- package/src/lib/seam/connect/models/thermostats/modes.ts +11 -0
- package/src/lib/seam/connect/openapi.ts +96 -0
- package/src/lib/seam/connect/route-types.ts +675 -0
|
@@ -2,6 +2,7 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
climate_preset,
|
|
5
|
+
climate_preset_mode,
|
|
5
6
|
climate_setting,
|
|
6
7
|
fan_mode_setting,
|
|
7
8
|
hvac_mode_setting,
|
|
@@ -42,6 +43,13 @@ export const thermostat_capability_properties = z
|
|
|
42
43
|
---
|
|
43
44
|
Fan mode settings that the thermostat supports.
|
|
44
45
|
`),
|
|
46
|
+
available_climate_preset_modes: z.array(climate_preset_mode).describe(`
|
|
47
|
+
---
|
|
48
|
+
property_group_key: thermostats
|
|
49
|
+
draft: Needs review.
|
|
50
|
+
---
|
|
51
|
+
Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".
|
|
52
|
+
`),
|
|
45
53
|
is_heating: z.boolean().describe(`
|
|
46
54
|
---
|
|
47
55
|
property_group_key: thermostats
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
climate_preset_mode,
|
|
5
|
+
fan_mode_setting,
|
|
6
|
+
hvac_mode_setting,
|
|
7
|
+
} from './modes.js'
|
|
4
8
|
|
|
5
9
|
export const climate_preset = z.object({
|
|
6
10
|
climate_preset_key: z
|
|
@@ -36,6 +40,9 @@ export const climate_preset = z.object({
|
|
|
36
40
|
.describe(
|
|
37
41
|
'Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
38
42
|
),
|
|
43
|
+
climate_preset_mode: climate_preset_mode.optional().describe(`
|
|
44
|
+
The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
|
|
45
|
+
`),
|
|
39
46
|
fan_mode_setting: fan_mode_setting
|
|
40
47
|
.optional()
|
|
41
48
|
.describe(
|
|
@@ -13,3 +13,14 @@ export const available_fan_mode_settings = z.array(fan_mode_setting)
|
|
|
13
13
|
export type AvailableFanModeSettings = z.infer<
|
|
14
14
|
typeof available_fan_mode_settings
|
|
15
15
|
>
|
|
16
|
+
|
|
17
|
+
export const climate_preset_mode = z.enum([
|
|
18
|
+
'home',
|
|
19
|
+
'away',
|
|
20
|
+
'wake',
|
|
21
|
+
'sleep',
|
|
22
|
+
'occupied',
|
|
23
|
+
'unoccupied',
|
|
24
|
+
])
|
|
25
|
+
|
|
26
|
+
export type ClimatePresetMode = z.infer<typeof climate_preset_mode>
|
|
@@ -11466,6 +11466,24 @@ export default {
|
|
|
11466
11466
|
type: 'string',
|
|
11467
11467
|
'x-property-group-key': 'thermostats',
|
|
11468
11468
|
},
|
|
11469
|
+
available_climate_preset_modes: {
|
|
11470
|
+
description:
|
|
11471
|
+
'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".',
|
|
11472
|
+
items: {
|
|
11473
|
+
enum: [
|
|
11474
|
+
'home',
|
|
11475
|
+
'away',
|
|
11476
|
+
'wake',
|
|
11477
|
+
'sleep',
|
|
11478
|
+
'occupied',
|
|
11479
|
+
'unoccupied',
|
|
11480
|
+
],
|
|
11481
|
+
type: 'string',
|
|
11482
|
+
},
|
|
11483
|
+
type: 'array',
|
|
11484
|
+
'x-draft': 'Needs review.',
|
|
11485
|
+
'x-property-group-key': 'thermostats',
|
|
11486
|
+
},
|
|
11469
11487
|
available_climate_presets: {
|
|
11470
11488
|
description:
|
|
11471
11489
|
'Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.',
|
|
@@ -11491,6 +11509,19 @@ export default {
|
|
|
11491
11509
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
11492
11510
|
type: 'string',
|
|
11493
11511
|
},
|
|
11512
|
+
climate_preset_mode: {
|
|
11513
|
+
description:
|
|
11514
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
11515
|
+
enum: [
|
|
11516
|
+
'home',
|
|
11517
|
+
'away',
|
|
11518
|
+
'wake',
|
|
11519
|
+
'sleep',
|
|
11520
|
+
'occupied',
|
|
11521
|
+
'unoccupied',
|
|
11522
|
+
],
|
|
11523
|
+
type: 'string',
|
|
11524
|
+
},
|
|
11494
11525
|
cooling_set_point_celsius: {
|
|
11495
11526
|
description:
|
|
11496
11527
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|
|
@@ -11604,6 +11635,19 @@ export default {
|
|
|
11604
11635
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
11605
11636
|
type: 'string',
|
|
11606
11637
|
},
|
|
11638
|
+
climate_preset_mode: {
|
|
11639
|
+
description:
|
|
11640
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
11641
|
+
enum: [
|
|
11642
|
+
'home',
|
|
11643
|
+
'away',
|
|
11644
|
+
'wake',
|
|
11645
|
+
'sleep',
|
|
11646
|
+
'occupied',
|
|
11647
|
+
'unoccupied',
|
|
11648
|
+
],
|
|
11649
|
+
type: 'string',
|
|
11650
|
+
},
|
|
11607
11651
|
cooling_set_point_celsius: {
|
|
11608
11652
|
description:
|
|
11609
11653
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|
|
@@ -11687,6 +11731,19 @@ export default {
|
|
|
11687
11731
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
11688
11732
|
type: 'string',
|
|
11689
11733
|
},
|
|
11734
|
+
climate_preset_mode: {
|
|
11735
|
+
description:
|
|
11736
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
11737
|
+
enum: [
|
|
11738
|
+
'home',
|
|
11739
|
+
'away',
|
|
11740
|
+
'wake',
|
|
11741
|
+
'sleep',
|
|
11742
|
+
'occupied',
|
|
11743
|
+
'unoccupied',
|
|
11744
|
+
],
|
|
11745
|
+
type: 'string',
|
|
11746
|
+
},
|
|
11690
11747
|
cooling_set_point_celsius: {
|
|
11691
11748
|
description:
|
|
11692
11749
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|
|
@@ -46433,6 +46490,19 @@ export default {
|
|
|
46433
46490
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
46434
46491
|
type: 'string',
|
|
46435
46492
|
},
|
|
46493
|
+
climate_preset_mode: {
|
|
46494
|
+
description:
|
|
46495
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
46496
|
+
enum: [
|
|
46497
|
+
'home',
|
|
46498
|
+
'away',
|
|
46499
|
+
'wake',
|
|
46500
|
+
'sleep',
|
|
46501
|
+
'occupied',
|
|
46502
|
+
'unoccupied',
|
|
46503
|
+
],
|
|
46504
|
+
type: 'string',
|
|
46505
|
+
},
|
|
46436
46506
|
cooling_set_point_celsius: {
|
|
46437
46507
|
description:
|
|
46438
46508
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|
|
@@ -49158,6 +49228,19 @@ export default {
|
|
|
49158
49228
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
49159
49229
|
type: 'string',
|
|
49160
49230
|
},
|
|
49231
|
+
climate_preset_mode: {
|
|
49232
|
+
description:
|
|
49233
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
49234
|
+
enum: [
|
|
49235
|
+
'home',
|
|
49236
|
+
'away',
|
|
49237
|
+
'wake',
|
|
49238
|
+
'sleep',
|
|
49239
|
+
'occupied',
|
|
49240
|
+
'unoccupied',
|
|
49241
|
+
],
|
|
49242
|
+
type: 'string',
|
|
49243
|
+
},
|
|
49161
49244
|
cooling_set_point_celsius: {
|
|
49162
49245
|
description:
|
|
49163
49246
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|
|
@@ -49265,6 +49348,19 @@ export default {
|
|
|
49265
49348
|
'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
49266
49349
|
type: 'string',
|
|
49267
49350
|
},
|
|
49351
|
+
climate_preset_mode: {
|
|
49352
|
+
description:
|
|
49353
|
+
'\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
49354
|
+
enum: [
|
|
49355
|
+
'home',
|
|
49356
|
+
'away',
|
|
49357
|
+
'wake',
|
|
49358
|
+
'sleep',
|
|
49359
|
+
'occupied',
|
|
49360
|
+
'unoccupied',
|
|
49361
|
+
],
|
|
49362
|
+
type: 'string',
|
|
49363
|
+
},
|
|
49268
49364
|
cooling_set_point_celsius: {
|
|
49269
49365
|
description:
|
|
49270
49366
|
'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
|