@seamapi/types 1.241.0 → 1.242.1
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 +281 -137
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +370 -182
- package/dist/devicedb.cjs +9 -6
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +123 -70
- package/lib/seam/connect/models/acs/acs-system.d.ts +86 -42
- package/lib/seam/connect/models/acs/acs-system.js +23 -20
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +169 -140
- package/lib/seam/connect/models/acs/acs-user.js +32 -30
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
- package/lib/seam/connect/models/devices/device.d.ts +6 -6
- package/lib/seam/connect/models/devices/phone.d.ts +5 -5
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
- package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/index.js +1 -1
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/models/thermostats/{climate-setting-schedule.js → thermostat-schedule.js} +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +45 -18
- package/lib/seam/connect/openapi.js +219 -90
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +176 -78
- package/lib/seam/devicedb/models/device-model.d.ts +59 -24
- package/lib/seam/devicedb/models/device-model.js +9 -6
- package/lib/seam/devicedb/models/device-model.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +56 -38
- package/lib/seam/devicedb/route-types.d.ts +8 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +32 -24
- package/src/lib/seam/connect/models/acs/acs-user.ts +41 -35
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +249 -90
- package/src/lib/seam/connect/route-types.ts +187 -78
- package/src/lib/seam/devicedb/models/device-model.ts +24 -19
- package/src/lib/seam/devicedb/route-types.ts +8 -8
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +0 -1
- /package/lib/seam/connect/models/thermostats/{climate-setting-schedule.d.ts → thermostat-schedule.d.ts} +0 -0
- /package/src/lib/seam/connect/models/thermostats/{climate-setting-schedule.ts → thermostat-schedule.ts} +0 -0
|
@@ -55,10 +55,6 @@ const smartlock = z
|
|
|
55
55
|
can_remotely_unlock: true,
|
|
56
56
|
can_program_offline_access_codes: true,
|
|
57
57
|
can_program_online_access_codes: true,
|
|
58
|
-
can_hvac_heat: true,
|
|
59
|
-
can_hvac_cool: true,
|
|
60
|
-
can_hvac_heat_cool: true,
|
|
61
|
-
can_turn_off_hvac: true,
|
|
62
58
|
}),
|
|
63
59
|
)
|
|
64
60
|
|
|
@@ -72,21 +68,30 @@ const sensor = z.object({
|
|
|
72
68
|
}),
|
|
73
69
|
})
|
|
74
70
|
|
|
75
|
-
export const thermostat = z
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})
|
|
71
|
+
export const thermostat = z
|
|
72
|
+
.object({
|
|
73
|
+
main_category: z.literal(device_category.enum.thermostat),
|
|
74
|
+
physical_properties: z.object({
|
|
75
|
+
available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),
|
|
76
|
+
is_heat_pump_compatible: z.boolean(),
|
|
77
|
+
has_occupancy_detection: z.boolean(),
|
|
78
|
+
supports_demand_response: z.boolean(),
|
|
79
|
+
has_humidity_sensor: z.boolean(),
|
|
80
|
+
has_temperature_sensor: z.boolean(),
|
|
81
|
+
supports_emergency_heating_mode: z.boolean(),
|
|
82
|
+
}),
|
|
83
|
+
software_features: z.object({
|
|
84
|
+
can_program_climate_schedules: z.boolean(),
|
|
85
|
+
}),
|
|
86
|
+
})
|
|
87
|
+
.merge(
|
|
88
|
+
device_model_capability_flags.pick({
|
|
89
|
+
can_hvac_heat: true,
|
|
90
|
+
can_hvac_cool: true,
|
|
91
|
+
can_hvac_heat_cool: true,
|
|
92
|
+
can_turn_off_hvac: true,
|
|
93
|
+
}),
|
|
94
|
+
)
|
|
90
95
|
|
|
91
96
|
export type ThermostatProperties = z.infer<typeof thermostat>
|
|
92
97
|
|
|
@@ -112,10 +112,6 @@ export interface Routes {
|
|
|
112
112
|
can_remotely_unlock?: true | undefined
|
|
113
113
|
can_program_offline_access_codes?: true | undefined
|
|
114
114
|
can_program_online_access_codes?: true | undefined
|
|
115
|
-
can_hvac_heat?: true | undefined
|
|
116
|
-
can_hvac_cool?: true | undefined
|
|
117
|
-
can_hvac_heat_cool?: true | undefined
|
|
118
|
-
can_turn_off_hvac?: true | undefined
|
|
119
115
|
}
|
|
120
116
|
| {
|
|
121
117
|
main_category: 'sensor'
|
|
@@ -140,6 +136,10 @@ export interface Routes {
|
|
|
140
136
|
software_features: {
|
|
141
137
|
can_program_climate_schedules: boolean
|
|
142
138
|
}
|
|
139
|
+
can_hvac_heat?: true | undefined
|
|
140
|
+
can_hvac_cool?: true | undefined
|
|
141
|
+
can_hvac_heat_cool?: true | undefined
|
|
142
|
+
can_turn_off_hvac?: true | undefined
|
|
143
143
|
}
|
|
144
144
|
| {
|
|
145
145
|
main_category: 'relay'
|
|
@@ -304,10 +304,6 @@ export interface Routes {
|
|
|
304
304
|
can_remotely_unlock?: true | undefined
|
|
305
305
|
can_program_offline_access_codes?: true | undefined
|
|
306
306
|
can_program_online_access_codes?: true | undefined
|
|
307
|
-
can_hvac_heat?: true | undefined
|
|
308
|
-
can_hvac_cool?: true | undefined
|
|
309
|
-
can_hvac_heat_cool?: true | undefined
|
|
310
|
-
can_turn_off_hvac?: true | undefined
|
|
311
307
|
}
|
|
312
308
|
| {
|
|
313
309
|
main_category: 'sensor'
|
|
@@ -332,6 +328,10 @@ export interface Routes {
|
|
|
332
328
|
software_features: {
|
|
333
329
|
can_program_climate_schedules: boolean
|
|
334
330
|
}
|
|
331
|
+
can_hvac_heat?: true | undefined
|
|
332
|
+
can_hvac_cool?: true | undefined
|
|
333
|
+
can_hvac_heat_cool?: true | undefined
|
|
334
|
+
can_turn_off_hvac?: true | undefined
|
|
335
335
|
}
|
|
336
336
|
| {
|
|
337
337
|
main_category: 'relay'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"climate-setting-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACtE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,+ZAA+Z,CACha;CACJ,CAAC,CAAA"}
|
|
File without changes
|
|
File without changes
|