@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
|
@@ -1496,6 +1496,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1496
1496
|
relative_humidity: z.ZodOptional<z.ZodNumber>;
|
|
1497
1497
|
available_hvac_mode_settings: z.ZodOptional<z.ZodArray<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>, "many">>;
|
|
1498
1498
|
available_fan_mode_settings: z.ZodOptional<z.ZodArray<z.ZodEnum<["auto", "on", "circulate"]>, "many">>;
|
|
1499
|
+
available_climate_preset_modes: z.ZodOptional<z.ZodArray<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>, "many">>;
|
|
1499
1500
|
is_heating: z.ZodOptional<z.ZodBoolean>;
|
|
1500
1501
|
is_cooling: z.ZodOptional<z.ZodBoolean>;
|
|
1501
1502
|
is_fan_running: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1508,6 +1509,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1508
1509
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
1509
1510
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
1510
1511
|
display_name: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
1511
1513
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
1512
1514
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
1513
1515
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1522,6 +1524,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1522
1524
|
can_delete?: boolean | undefined;
|
|
1523
1525
|
can_program?: boolean | undefined;
|
|
1524
1526
|
display_name?: string | undefined;
|
|
1527
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1525
1528
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1526
1529
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1527
1530
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1536,6 +1539,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1536
1539
|
can_delete?: boolean | undefined;
|
|
1537
1540
|
can_program?: boolean | undefined;
|
|
1538
1541
|
display_name?: string | undefined;
|
|
1542
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1539
1543
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1540
1544
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1541
1545
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1551,6 +1555,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1551
1555
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
1552
1556
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
1553
1557
|
display_name: z.ZodOptional<z.ZodString>;
|
|
1558
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
1554
1559
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
1555
1560
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
1556
1561
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1565,6 +1570,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1565
1570
|
can_delete?: boolean | undefined;
|
|
1566
1571
|
can_program?: boolean | undefined;
|
|
1567
1572
|
display_name?: string | undefined;
|
|
1573
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1568
1574
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1569
1575
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1570
1576
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1579,6 +1585,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1579
1585
|
can_delete?: boolean | undefined;
|
|
1580
1586
|
can_program?: boolean | undefined;
|
|
1581
1587
|
display_name?: string | undefined;
|
|
1588
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1582
1589
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1583
1590
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1584
1591
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1594,6 +1601,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1594
1601
|
can_program: z.ZodBoolean;
|
|
1595
1602
|
name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1596
1603
|
display_name: z.ZodString;
|
|
1604
|
+
climate_preset_mode: z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>;
|
|
1597
1605
|
fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>;
|
|
1598
1606
|
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
1599
1607
|
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1609,6 +1617,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1609
1617
|
display_name: string;
|
|
1610
1618
|
manual_override_allowed: boolean;
|
|
1611
1619
|
name?: string | null | undefined;
|
|
1620
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1612
1621
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1613
1622
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1614
1623
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1623,6 +1632,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1623
1632
|
display_name: string;
|
|
1624
1633
|
manual_override_allowed: boolean;
|
|
1625
1634
|
name?: string | null | undefined;
|
|
1635
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1626
1636
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1627
1637
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1628
1638
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1782,6 +1792,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1782
1792
|
relative_humidity?: number | undefined;
|
|
1783
1793
|
available_hvac_mode_settings?: ("off" | "heat" | "cool" | "heat_cool")[] | undefined;
|
|
1784
1794
|
available_fan_mode_settings?: ("auto" | "on" | "circulate")[] | undefined;
|
|
1795
|
+
available_climate_preset_modes?: ("home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied")[] | undefined;
|
|
1785
1796
|
is_heating?: boolean | undefined;
|
|
1786
1797
|
is_cooling?: boolean | undefined;
|
|
1787
1798
|
is_fan_running?: boolean | undefined;
|
|
@@ -1793,6 +1804,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1793
1804
|
can_delete?: boolean | undefined;
|
|
1794
1805
|
can_program?: boolean | undefined;
|
|
1795
1806
|
display_name?: string | undefined;
|
|
1807
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1796
1808
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1797
1809
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1798
1810
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1808,6 +1820,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1808
1820
|
can_delete?: boolean | undefined;
|
|
1809
1821
|
can_program?: boolean | undefined;
|
|
1810
1822
|
display_name?: string | undefined;
|
|
1823
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1811
1824
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1812
1825
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1813
1826
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1824,6 +1837,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1824
1837
|
display_name: string;
|
|
1825
1838
|
manual_override_allowed: boolean;
|
|
1826
1839
|
name?: string | null | undefined;
|
|
1840
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1827
1841
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1828
1842
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1829
1843
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1893,6 +1907,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1893
1907
|
relative_humidity?: number | undefined;
|
|
1894
1908
|
available_hvac_mode_settings?: ("off" | "heat" | "cool" | "heat_cool")[] | undefined;
|
|
1895
1909
|
available_fan_mode_settings?: ("auto" | "on" | "circulate")[] | undefined;
|
|
1910
|
+
available_climate_preset_modes?: ("home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied")[] | undefined;
|
|
1896
1911
|
is_heating?: boolean | undefined;
|
|
1897
1912
|
is_cooling?: boolean | undefined;
|
|
1898
1913
|
is_fan_running?: boolean | undefined;
|
|
@@ -1904,6 +1919,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1904
1919
|
can_delete?: boolean | undefined;
|
|
1905
1920
|
can_program?: boolean | undefined;
|
|
1906
1921
|
display_name?: string | undefined;
|
|
1922
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1907
1923
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1908
1924
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1909
1925
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1919,6 +1935,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1919
1935
|
can_delete?: boolean | undefined;
|
|
1920
1936
|
can_program?: boolean | undefined;
|
|
1921
1937
|
display_name?: string | undefined;
|
|
1938
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1922
1939
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1923
1940
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1924
1941
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1935,6 +1952,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1935
1952
|
display_name: string;
|
|
1936
1953
|
manual_override_allowed: boolean;
|
|
1937
1954
|
name?: string | null | undefined;
|
|
1955
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
1938
1956
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
1939
1957
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1940
1958
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -839,6 +839,7 @@ export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUti
|
|
|
839
839
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
840
840
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
841
841
|
display_name: z.ZodOptional<z.ZodString>;
|
|
842
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
842
843
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
843
844
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
844
845
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1858,6 +1859,7 @@ export declare const device_events: readonly [z.ZodObject<z.objectUtil.extendSha
|
|
|
1858
1859
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
1859
1860
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
1860
1861
|
display_name: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
1861
1863
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
1862
1864
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
1863
1865
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2289,6 +2289,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
2289
2289
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
2290
2290
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
2291
2291
|
display_name: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
2292
2293
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
2293
2294
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
2294
2295
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -6,6 +6,7 @@ export declare const climate_preset: z.ZodObject<{
|
|
|
6
6
|
can_program: z.ZodBoolean;
|
|
7
7
|
name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
8
8
|
display_name: z.ZodString;
|
|
9
|
+
climate_preset_mode: z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>;
|
|
9
10
|
fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>;
|
|
10
11
|
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
11
12
|
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
@@ -21,6 +22,7 @@ export declare const climate_preset: z.ZodObject<{
|
|
|
21
22
|
display_name: string;
|
|
22
23
|
manual_override_allowed: boolean;
|
|
23
24
|
name?: string | null | undefined;
|
|
25
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
24
26
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
25
27
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
26
28
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -35,6 +37,7 @@ export declare const climate_preset: z.ZodObject<{
|
|
|
35
37
|
display_name: string;
|
|
36
38
|
manual_override_allowed: boolean;
|
|
37
39
|
name?: string | null | undefined;
|
|
40
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
38
41
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
39
42
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
40
43
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -50,6 +53,7 @@ export declare const climate_setting: z.ZodObject<{
|
|
|
50
53
|
can_program: z.ZodOptional<z.ZodBoolean>;
|
|
51
54
|
name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
52
55
|
display_name: z.ZodOptional<z.ZodString>;
|
|
56
|
+
climate_preset_mode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>>>;
|
|
53
57
|
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
|
|
54
58
|
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
55
59
|
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -64,6 +68,7 @@ export declare const climate_setting: z.ZodObject<{
|
|
|
64
68
|
can_delete?: boolean | undefined;
|
|
65
69
|
can_program?: boolean | undefined;
|
|
66
70
|
display_name?: string | undefined;
|
|
71
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
67
72
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
68
73
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
69
74
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -78,6 +83,7 @@ export declare const climate_setting: z.ZodObject<{
|
|
|
78
83
|
can_delete?: boolean | undefined;
|
|
79
84
|
can_program?: boolean | undefined;
|
|
80
85
|
display_name?: string | undefined;
|
|
86
|
+
climate_preset_mode?: "home" | "away" | "wake" | "sleep" | "occupied" | "unoccupied" | undefined;
|
|
81
87
|
fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
|
|
82
88
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
83
89
|
cooling_set_point_celsius?: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { fan_mode_setting, hvac_mode_setting } from './modes.js';
|
|
2
|
+
import { climate_preset_mode, fan_mode_setting, hvac_mode_setting, } from './modes.js';
|
|
3
3
|
export const climate_preset = z.object({
|
|
4
4
|
climate_preset_key: z
|
|
5
5
|
.string()
|
|
@@ -22,6 +22,9 @@ export const climate_preset = z.object({
|
|
|
22
22
|
display_name: z
|
|
23
23
|
.string()
|
|
24
24
|
.describe('Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).'),
|
|
25
|
+
climate_preset_mode: climate_preset_mode.optional().describe(`
|
|
26
|
+
The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
|
|
27
|
+
`),
|
|
25
28
|
fan_mode_setting: fan_mode_setting
|
|
26
29
|
.optional()
|
|
27
30
|
.describe('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`.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,
|
|
1
|
+
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AAEnB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,+IAA+I,CAChJ;IACH,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,CACP,4JAA4J,CAC7J;IACH,UAAU,EAAE,CAAC;SACV,OAAO,EAAE;SACT,QAAQ,CACP,6JAA6J,CAC9J;IACH,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,CACP,8LAA8L,CAC/L;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,EAAE;SACV,QAAQ,CACP,uJAAuJ,CACxJ;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CACP,yIAAyI,CAC1I;IACH,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;GAE5D,CAAC;IACF,gBAAgB,EAAE,gBAAgB;SAC/B,QAAQ,EAAE;SACV,QAAQ,CACP,mLAAmL,CACpL;IACH,iBAAiB,EAAE,iBAAiB;SACjC,QAAQ,EAAE;SACV,QAAQ,CACP,oLAAoL,CACrL;IACH,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yLAAyL,CAC1L;IACH,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yLAAyL,CAC1L;IACH,4BAA4B,EAAE,CAAC;SAC5B,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yLAAyL,CAC1L;IACH,4BAA4B,EAAE,CAAC;SAC5B,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yLAAyL,CAC1L;IACH,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAC3C;;;;oRAIgR,CACjR;CACF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,EAAE,CAAA"}
|
|
@@ -5,3 +5,5 @@ export declare const fan_mode_setting: z.ZodEnum<["auto", "on", "circulate"]>;
|
|
|
5
5
|
export type FanModeSetting = z.infer<typeof fan_mode_setting>;
|
|
6
6
|
export declare const available_fan_mode_settings: z.ZodArray<z.ZodEnum<["auto", "on", "circulate"]>, "many">;
|
|
7
7
|
export type AvailableFanModeSettings = z.infer<typeof available_fan_mode_settings>;
|
|
8
|
+
export declare const climate_preset_mode: z.ZodEnum<["home", "away", "wake", "sleep", "occupied", "unoccupied"]>;
|
|
9
|
+
export type ClimatePresetMode = z.infer<typeof climate_preset_mode>;
|
|
@@ -2,4 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool']);
|
|
3
3
|
export const fan_mode_setting = z.enum(['auto', 'on', 'circulate']);
|
|
4
4
|
export const available_fan_mode_settings = z.array(fan_mode_setting);
|
|
5
|
+
export const climate_preset_mode = z.enum([
|
|
6
|
+
'home',
|
|
7
|
+
'away',
|
|
8
|
+
'wake',
|
|
9
|
+
'sleep',
|
|
10
|
+
'occupied',
|
|
11
|
+
'unoccupied',
|
|
12
|
+
]);
|
|
5
13
|
//# sourceMappingURL=modes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AAI7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAA;AAInE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AAI7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAA;AAInE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;AAMpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;CACb,CAAC,CAAA"}
|
|
@@ -5767,6 +5767,7 @@ declare const _default: {
|
|
|
5767
5767
|
};
|
|
5768
5768
|
active_thermostat_schedule?: never;
|
|
5769
5769
|
active_thermostat_schedule_id?: never;
|
|
5770
|
+
available_climate_preset_modes?: never;
|
|
5770
5771
|
available_climate_presets?: never;
|
|
5771
5772
|
available_fan_mode_settings?: never;
|
|
5772
5773
|
available_hvac_mode_settings?: never;
|
|
@@ -5885,6 +5886,16 @@ declare const _default: {
|
|
|
5885
5886
|
type: string;
|
|
5886
5887
|
'x-property-group-key': string;
|
|
5887
5888
|
};
|
|
5889
|
+
available_climate_preset_modes: {
|
|
5890
|
+
description: string;
|
|
5891
|
+
items: {
|
|
5892
|
+
enum: string[];
|
|
5893
|
+
type: string;
|
|
5894
|
+
};
|
|
5895
|
+
type: string;
|
|
5896
|
+
'x-draft': string;
|
|
5897
|
+
'x-property-group-key': string;
|
|
5898
|
+
};
|
|
5888
5899
|
available_climate_presets: {
|
|
5889
5900
|
description: string;
|
|
5890
5901
|
items: {
|
|
@@ -5905,6 +5916,11 @@ declare const _default: {
|
|
|
5905
5916
|
description: string;
|
|
5906
5917
|
type: string;
|
|
5907
5918
|
};
|
|
5919
|
+
climate_preset_mode: {
|
|
5920
|
+
description: string;
|
|
5921
|
+
enum: string[];
|
|
5922
|
+
type: string;
|
|
5923
|
+
};
|
|
5908
5924
|
cooling_set_point_celsius: {
|
|
5909
5925
|
description: string;
|
|
5910
5926
|
format: string;
|
|
@@ -5995,6 +6011,11 @@ declare const _default: {
|
|
|
5995
6011
|
description: string;
|
|
5996
6012
|
type: string;
|
|
5997
6013
|
};
|
|
6014
|
+
climate_preset_mode: {
|
|
6015
|
+
description: string;
|
|
6016
|
+
enum: string[];
|
|
6017
|
+
type: string;
|
|
6018
|
+
};
|
|
5998
6019
|
cooling_set_point_celsius: {
|
|
5999
6020
|
description: string;
|
|
6000
6021
|
format: string;
|
|
@@ -6064,6 +6085,11 @@ declare const _default: {
|
|
|
6064
6085
|
description: string;
|
|
6065
6086
|
type: string;
|
|
6066
6087
|
};
|
|
6088
|
+
climate_preset_mode: {
|
|
6089
|
+
description: string;
|
|
6090
|
+
enum: string[];
|
|
6091
|
+
type: string;
|
|
6092
|
+
};
|
|
6067
6093
|
cooling_set_point_celsius: {
|
|
6068
6094
|
description: string;
|
|
6069
6095
|
format: string;
|
|
@@ -37846,6 +37872,11 @@ declare const _default: {
|
|
|
37846
37872
|
description: string;
|
|
37847
37873
|
type: string;
|
|
37848
37874
|
};
|
|
37875
|
+
climate_preset_mode: {
|
|
37876
|
+
description: string;
|
|
37877
|
+
enum: string[];
|
|
37878
|
+
type: string;
|
|
37879
|
+
};
|
|
37849
37880
|
cooling_set_point_celsius: {
|
|
37850
37881
|
description: string;
|
|
37851
37882
|
format: string;
|
|
@@ -41031,6 +41062,11 @@ declare const _default: {
|
|
|
41031
41062
|
description: string;
|
|
41032
41063
|
type: string;
|
|
41033
41064
|
};
|
|
41065
|
+
climate_preset_mode: {
|
|
41066
|
+
description: string;
|
|
41067
|
+
enum: string[];
|
|
41068
|
+
type: string;
|
|
41069
|
+
};
|
|
41034
41070
|
cooling_set_point_celsius: {
|
|
41035
41071
|
description: string;
|
|
41036
41072
|
format: string;
|
|
@@ -41149,6 +41185,11 @@ declare const _default: {
|
|
|
41149
41185
|
description: string;
|
|
41150
41186
|
type: string;
|
|
41151
41187
|
};
|
|
41188
|
+
climate_preset_mode: {
|
|
41189
|
+
description: string;
|
|
41190
|
+
enum: string[];
|
|
41191
|
+
type: string;
|
|
41192
|
+
};
|
|
41152
41193
|
cooling_set_point_celsius: {
|
|
41153
41194
|
description: string;
|
|
41154
41195
|
format: string;
|
|
@@ -10182,6 +10182,23 @@ export default {
|
|
|
10182
10182
|
type: 'string',
|
|
10183
10183
|
'x-property-group-key': 'thermostats',
|
|
10184
10184
|
},
|
|
10185
|
+
available_climate_preset_modes: {
|
|
10186
|
+
description: 'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".',
|
|
10187
|
+
items: {
|
|
10188
|
+
enum: [
|
|
10189
|
+
'home',
|
|
10190
|
+
'away',
|
|
10191
|
+
'wake',
|
|
10192
|
+
'sleep',
|
|
10193
|
+
'occupied',
|
|
10194
|
+
'unoccupied',
|
|
10195
|
+
],
|
|
10196
|
+
type: 'string',
|
|
10197
|
+
},
|
|
10198
|
+
type: 'array',
|
|
10199
|
+
'x-draft': 'Needs review.',
|
|
10200
|
+
'x-property-group-key': 'thermostats',
|
|
10201
|
+
},
|
|
10185
10202
|
available_climate_presets: {
|
|
10186
10203
|
description: 'Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.',
|
|
10187
10204
|
items: {
|
|
@@ -10202,6 +10219,18 @@ export default {
|
|
|
10202
10219
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
10203
10220
|
type: 'string',
|
|
10204
10221
|
},
|
|
10222
|
+
climate_preset_mode: {
|
|
10223
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
10224
|
+
enum: [
|
|
10225
|
+
'home',
|
|
10226
|
+
'away',
|
|
10227
|
+
'wake',
|
|
10228
|
+
'sleep',
|
|
10229
|
+
'occupied',
|
|
10230
|
+
'unoccupied',
|
|
10231
|
+
],
|
|
10232
|
+
type: 'string',
|
|
10233
|
+
},
|
|
10205
10234
|
cooling_set_point_celsius: {
|
|
10206
10235
|
description: '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).',
|
|
10207
10236
|
format: 'float',
|
|
@@ -10299,6 +10328,18 @@ export default {
|
|
|
10299
10328
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
10300
10329
|
type: 'string',
|
|
10301
10330
|
},
|
|
10331
|
+
climate_preset_mode: {
|
|
10332
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
10333
|
+
enum: [
|
|
10334
|
+
'home',
|
|
10335
|
+
'away',
|
|
10336
|
+
'wake',
|
|
10337
|
+
'sleep',
|
|
10338
|
+
'occupied',
|
|
10339
|
+
'unoccupied',
|
|
10340
|
+
],
|
|
10341
|
+
type: 'string',
|
|
10342
|
+
},
|
|
10302
10343
|
cooling_set_point_celsius: {
|
|
10303
10344
|
description: '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).',
|
|
10304
10345
|
format: 'float',
|
|
@@ -10368,6 +10409,18 @@ export default {
|
|
|
10368
10409
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
10369
10410
|
type: 'string',
|
|
10370
10411
|
},
|
|
10412
|
+
climate_preset_mode: {
|
|
10413
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
10414
|
+
enum: [
|
|
10415
|
+
'home',
|
|
10416
|
+
'away',
|
|
10417
|
+
'wake',
|
|
10418
|
+
'sleep',
|
|
10419
|
+
'occupied',
|
|
10420
|
+
'unoccupied',
|
|
10421
|
+
],
|
|
10422
|
+
type: 'string',
|
|
10423
|
+
},
|
|
10371
10424
|
cooling_set_point_celsius: {
|
|
10372
10425
|
description: '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).',
|
|
10373
10426
|
format: 'float',
|
|
@@ -42759,6 +42812,18 @@ export default {
|
|
|
42759
42812
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
42760
42813
|
type: 'string',
|
|
42761
42814
|
},
|
|
42815
|
+
climate_preset_mode: {
|
|
42816
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
42817
|
+
enum: [
|
|
42818
|
+
'home',
|
|
42819
|
+
'away',
|
|
42820
|
+
'wake',
|
|
42821
|
+
'sleep',
|
|
42822
|
+
'occupied',
|
|
42823
|
+
'unoccupied',
|
|
42824
|
+
],
|
|
42825
|
+
type: 'string',
|
|
42826
|
+
},
|
|
42762
42827
|
cooling_set_point_celsius: {
|
|
42763
42828
|
description: '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).',
|
|
42764
42829
|
format: 'float',
|
|
@@ -45315,6 +45380,18 @@ export default {
|
|
|
45315
45380
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
45316
45381
|
type: 'string',
|
|
45317
45382
|
},
|
|
45383
|
+
climate_preset_mode: {
|
|
45384
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
45385
|
+
enum: [
|
|
45386
|
+
'home',
|
|
45387
|
+
'away',
|
|
45388
|
+
'wake',
|
|
45389
|
+
'sleep',
|
|
45390
|
+
'occupied',
|
|
45391
|
+
'unoccupied',
|
|
45392
|
+
],
|
|
45393
|
+
type: 'string',
|
|
45394
|
+
},
|
|
45318
45395
|
cooling_set_point_celsius: {
|
|
45319
45396
|
description: '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).',
|
|
45320
45397
|
format: 'float',
|
|
@@ -45410,6 +45487,18 @@ export default {
|
|
|
45410
45487
|
description: 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
|
|
45411
45488
|
type: 'string',
|
|
45412
45489
|
},
|
|
45490
|
+
climate_preset_mode: {
|
|
45491
|
+
description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
|
|
45492
|
+
enum: [
|
|
45493
|
+
'home',
|
|
45494
|
+
'away',
|
|
45495
|
+
'wake',
|
|
45496
|
+
'sleep',
|
|
45497
|
+
'occupied',
|
|
45498
|
+
'unoccupied',
|
|
45499
|
+
],
|
|
45500
|
+
type: 'string',
|
|
45501
|
+
},
|
|
45413
45502
|
cooling_set_point_celsius: {
|
|
45414
45503
|
description: '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).',
|
|
45415
45504
|
format: 'float',
|