@seamapi/types 1.274.0 → 1.276.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 +204 -5
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +460 -2
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +28 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +28 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +40 -0
- package/lib/seam/connect/models/devices/phone.d.ts +28 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -0
- package/lib/seam/connect/models/events/devices.d.ts +180 -0
- package/lib/seam/connect/models/events/devices.js +24 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +88 -0
- package/lib/seam/connect/openapi.d.ts +202 -0
- package/lib/seam/connect/openapi.js +169 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +102 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
- package/src/lib/seam/connect/models/events/devices.ts +38 -0
- package/src/lib/seam/connect/openapi.ts +169 -0
- package/src/lib/seam/connect/route-types.ts +174 -0
|
@@ -5174,6 +5174,12 @@ export interface Routes {
|
|
|
5174
5174
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
5175
5175
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
5176
5176
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
5177
|
+
temperature_threshold?: ({
|
|
5178
|
+
lower_limit_celsius: number | null;
|
|
5179
|
+
lower_limit_fahrenheit: number | null;
|
|
5180
|
+
upper_limit_celsius: number | null;
|
|
5181
|
+
upper_limit_fahrenheit: number | null;
|
|
5182
|
+
} | undefined) | undefined;
|
|
5177
5183
|
});
|
|
5178
5184
|
/** Location information for the device. */
|
|
5179
5185
|
location: {
|
|
@@ -9162,6 +9168,12 @@ export interface Routes {
|
|
|
9162
9168
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
9163
9169
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
9164
9170
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
9171
|
+
temperature_threshold?: ({
|
|
9172
|
+
lower_limit_celsius: number | null;
|
|
9173
|
+
lower_limit_fahrenheit: number | null;
|
|
9174
|
+
upper_limit_celsius: number | null;
|
|
9175
|
+
upper_limit_fahrenheit: number | null;
|
|
9176
|
+
} | undefined) | undefined;
|
|
9165
9177
|
});
|
|
9166
9178
|
/** Location information for the device. */
|
|
9167
9179
|
location: {
|
|
@@ -9640,6 +9652,12 @@ export interface Routes {
|
|
|
9640
9652
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
9641
9653
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
9642
9654
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
9655
|
+
temperature_threshold?: ({
|
|
9656
|
+
lower_limit_celsius: number | null;
|
|
9657
|
+
lower_limit_fahrenheit: number | null;
|
|
9658
|
+
upper_limit_celsius: number | null;
|
|
9659
|
+
upper_limit_fahrenheit: number | null;
|
|
9660
|
+
} | undefined) | undefined;
|
|
9643
9661
|
});
|
|
9644
9662
|
/** Location information for the device. */
|
|
9645
9663
|
location: {
|
|
@@ -10057,14 +10075,15 @@ export interface Routes {
|
|
|
10057
10075
|
queryParams: {};
|
|
10058
10076
|
jsonBody: {};
|
|
10059
10077
|
commonParams: {
|
|
10078
|
+
unstable_offset?: number | undefined;
|
|
10060
10079
|
since?: string | undefined;
|
|
10061
10080
|
between?: Array<string | Date> | undefined;
|
|
10062
10081
|
device_id?: string | undefined;
|
|
10063
10082
|
device_ids?: string[] | undefined;
|
|
10064
10083
|
access_code_id?: string | undefined;
|
|
10065
10084
|
access_code_ids?: string[] | undefined;
|
|
10066
|
-
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted') | undefined;
|
|
10067
|
-
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted'> | undefined;
|
|
10085
|
+
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
|
|
10086
|
+
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
|
|
10068
10087
|
connected_account_id?: string | undefined;
|
|
10069
10088
|
connect_webview_id?: string | undefined;
|
|
10070
10089
|
limit?: number;
|
|
@@ -10518,6 +10537,12 @@ export interface Routes {
|
|
|
10518
10537
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
10519
10538
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
10520
10539
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
10540
|
+
temperature_threshold?: ({
|
|
10541
|
+
lower_limit_celsius: number | null;
|
|
10542
|
+
lower_limit_fahrenheit: number | null;
|
|
10543
|
+
upper_limit_celsius: number | null;
|
|
10544
|
+
upper_limit_fahrenheit: number | null;
|
|
10545
|
+
} | undefined) | undefined;
|
|
10521
10546
|
});
|
|
10522
10547
|
/** Location information for the device. */
|
|
10523
10548
|
location: {
|
|
@@ -10971,6 +10996,12 @@ export interface Routes {
|
|
|
10971
10996
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
10972
10997
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
10973
10998
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
10999
|
+
temperature_threshold?: ({
|
|
11000
|
+
lower_limit_celsius: number | null;
|
|
11001
|
+
lower_limit_fahrenheit: number | null;
|
|
11002
|
+
upper_limit_celsius: number | null;
|
|
11003
|
+
upper_limit_fahrenheit: number | null;
|
|
11004
|
+
} | undefined) | undefined;
|
|
10974
11005
|
});
|
|
10975
11006
|
/** Location information for the device. */
|
|
10976
11007
|
location: {
|
|
@@ -11449,6 +11480,12 @@ export interface Routes {
|
|
|
11449
11480
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
11450
11481
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
11451
11482
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
11483
|
+
temperature_threshold?: ({
|
|
11484
|
+
lower_limit_celsius: number | null;
|
|
11485
|
+
lower_limit_fahrenheit: number | null;
|
|
11486
|
+
upper_limit_celsius: number | null;
|
|
11487
|
+
upper_limit_fahrenheit: number | null;
|
|
11488
|
+
} | undefined) | undefined;
|
|
11452
11489
|
});
|
|
11453
11490
|
/** Location information for the device. */
|
|
11454
11491
|
location: {
|
|
@@ -11902,6 +11939,12 @@ export interface Routes {
|
|
|
11902
11939
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
11903
11940
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
11904
11941
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
11942
|
+
temperature_threshold?: ({
|
|
11943
|
+
lower_limit_celsius: number | null;
|
|
11944
|
+
lower_limit_fahrenheit: number | null;
|
|
11945
|
+
upper_limit_celsius: number | null;
|
|
11946
|
+
upper_limit_fahrenheit: number | null;
|
|
11947
|
+
} | undefined) | undefined;
|
|
11905
11948
|
});
|
|
11906
11949
|
/** Location information for the device. */
|
|
11907
11950
|
location: {
|
|
@@ -13700,6 +13743,12 @@ export interface Routes {
|
|
|
13700
13743
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
13701
13744
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
13702
13745
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
13746
|
+
temperature_threshold?: ({
|
|
13747
|
+
lower_limit_celsius: number | null;
|
|
13748
|
+
lower_limit_fahrenheit: number | null;
|
|
13749
|
+
upper_limit_celsius: number | null;
|
|
13750
|
+
upper_limit_fahrenheit: number | null;
|
|
13751
|
+
} | undefined) | undefined;
|
|
13703
13752
|
});
|
|
13704
13753
|
/** Location information for the device. */
|
|
13705
13754
|
location: {
|
|
@@ -14153,6 +14202,12 @@ export interface Routes {
|
|
|
14153
14202
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
14154
14203
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
14155
14204
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
14205
|
+
temperature_threshold?: ({
|
|
14206
|
+
lower_limit_celsius: number | null;
|
|
14207
|
+
lower_limit_fahrenheit: number | null;
|
|
14208
|
+
upper_limit_celsius: number | null;
|
|
14209
|
+
upper_limit_fahrenheit: number | null;
|
|
14210
|
+
} | undefined) | undefined;
|
|
14156
14211
|
});
|
|
14157
14212
|
/** Location information for the device. */
|
|
14158
14213
|
location: {
|
|
@@ -18114,6 +18169,12 @@ export interface Routes {
|
|
|
18114
18169
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
18115
18170
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
18116
18171
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
18172
|
+
temperature_threshold?: ({
|
|
18173
|
+
lower_limit_celsius: number | null;
|
|
18174
|
+
lower_limit_fahrenheit: number | null;
|
|
18175
|
+
upper_limit_celsius: number | null;
|
|
18176
|
+
upper_limit_fahrenheit: number | null;
|
|
18177
|
+
} | undefined) | undefined;
|
|
18117
18178
|
});
|
|
18118
18179
|
/** Location information for the device. */
|
|
18119
18180
|
location: {
|
|
@@ -19884,6 +19945,12 @@ export interface Routes {
|
|
|
19884
19945
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
19885
19946
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
19886
19947
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
19948
|
+
temperature_threshold?: ({
|
|
19949
|
+
lower_limit_celsius: number | null;
|
|
19950
|
+
lower_limit_fahrenheit: number | null;
|
|
19951
|
+
upper_limit_celsius: number | null;
|
|
19952
|
+
upper_limit_fahrenheit: number | null;
|
|
19953
|
+
} | undefined) | undefined;
|
|
19887
19954
|
});
|
|
19888
19955
|
/** Location information for the device. */
|
|
19889
19956
|
location: {
|
|
@@ -20337,6 +20404,12 @@ export interface Routes {
|
|
|
20337
20404
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
20338
20405
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
20339
20406
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
20407
|
+
temperature_threshold?: ({
|
|
20408
|
+
lower_limit_celsius: number | null;
|
|
20409
|
+
lower_limit_fahrenheit: number | null;
|
|
20410
|
+
upper_limit_celsius: number | null;
|
|
20411
|
+
upper_limit_fahrenheit: number | null;
|
|
20412
|
+
} | undefined) | undefined;
|
|
20340
20413
|
});
|
|
20341
20414
|
/** Location information for the device. */
|
|
20342
20415
|
location: {
|
|
@@ -21790,6 +21863,21 @@ export interface Routes {
|
|
|
21790
21863
|
};
|
|
21791
21864
|
};
|
|
21792
21865
|
};
|
|
21866
|
+
'/thermostats/set_temperature_threshold': {
|
|
21867
|
+
route: '/thermostats/set_temperature_threshold';
|
|
21868
|
+
method: 'POST' | 'PATCH';
|
|
21869
|
+
queryParams: {};
|
|
21870
|
+
jsonBody: {
|
|
21871
|
+
device_id: string;
|
|
21872
|
+
lower_limit_celsius?: (number | undefined) | null;
|
|
21873
|
+
lower_limit_fahrenheit?: (number | undefined) | null;
|
|
21874
|
+
upper_limit_celsius?: (number | undefined) | null;
|
|
21875
|
+
upper_limit_fahrenheit?: (number | undefined) | null;
|
|
21876
|
+
};
|
|
21877
|
+
commonParams: {};
|
|
21878
|
+
formData: {};
|
|
21879
|
+
jsonResponse: {};
|
|
21880
|
+
};
|
|
21793
21881
|
'/thermostats/update_climate_preset': {
|
|
21794
21882
|
route: '/thermostats/update_climate_preset';
|
|
21795
21883
|
method: 'POST' | 'PATCH';
|
|
@@ -22408,6 +22496,12 @@ export interface Routes {
|
|
|
22408
22496
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
22409
22497
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
22410
22498
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
22499
|
+
temperature_threshold?: ({
|
|
22500
|
+
lower_limit_celsius: number | null;
|
|
22501
|
+
lower_limit_fahrenheit: number | null;
|
|
22502
|
+
upper_limit_celsius: number | null;
|
|
22503
|
+
upper_limit_fahrenheit: number | null;
|
|
22504
|
+
} | undefined) | undefined;
|
|
22411
22505
|
});
|
|
22412
22506
|
/** Location information for the device. */
|
|
22413
22507
|
location: {
|
|
@@ -22863,6 +22957,12 @@ export interface Routes {
|
|
|
22863
22957
|
max_heating_set_point_fahrenheit?: number | undefined;
|
|
22864
22958
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
22865
22959
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
22960
|
+
temperature_threshold?: ({
|
|
22961
|
+
lower_limit_celsius: number | null;
|
|
22962
|
+
lower_limit_fahrenheit: number | null;
|
|
22963
|
+
upper_limit_celsius: number | null;
|
|
22964
|
+
upper_limit_fahrenheit: number | null;
|
|
22965
|
+
} | undefined) | undefined;
|
|
22866
22966
|
});
|
|
22867
22967
|
/** Location information for the device. */
|
|
22868
22968
|
location: {
|
package/package.json
CHANGED
|
@@ -51,5 +51,13 @@ export const thermostat_capability_properties = z
|
|
|
51
51
|
max_heating_set_point_fahrenheit: z.number(),
|
|
52
52
|
min_heating_cooling_delta_celsius: z.number(),
|
|
53
53
|
min_heating_cooling_delta_fahrenheit: z.number(),
|
|
54
|
+
temperature_threshold: z
|
|
55
|
+
.object({
|
|
56
|
+
lower_limit_celsius: z.number().nullable(),
|
|
57
|
+
lower_limit_fahrenheit: z.number().nullable(),
|
|
58
|
+
upper_limit_celsius: z.number().nullable(),
|
|
59
|
+
upper_limit_fahrenheit: z.number().nullable(),
|
|
60
|
+
})
|
|
61
|
+
.optional(),
|
|
54
62
|
})
|
|
55
63
|
.partial()
|
|
@@ -386,6 +386,42 @@ export type ThermostatManuallyAdjustedEvent = z.infer<
|
|
|
386
386
|
typeof thermostat_manually_adjusted_event
|
|
387
387
|
>
|
|
388
388
|
|
|
389
|
+
export const temperature_threshold_exceeded_event = device_event
|
|
390
|
+
.extend({
|
|
391
|
+
event_type: z.literal('thermostat.temperature_threshold_exceeded'),
|
|
392
|
+
temperature_celsius: z.number(),
|
|
393
|
+
temperature_fahrenheit: z.number(),
|
|
394
|
+
upper_limit_celsius: z.number().nullable(),
|
|
395
|
+
upper_limit_fahrenheit: z.number().nullable(),
|
|
396
|
+
lower_limit_celsius: z.number().nullable(),
|
|
397
|
+
lower_limit_fahrenheit: z.number().nullable(),
|
|
398
|
+
})
|
|
399
|
+
.describe("A thermostat's temperature reading exceeded the set threshold.")
|
|
400
|
+
|
|
401
|
+
export type TemperatureThresholdExceededEvent = z.infer<
|
|
402
|
+
typeof temperature_threshold_exceeded_event
|
|
403
|
+
>
|
|
404
|
+
|
|
405
|
+
export const temperature_threshold_no_longer_exceeded_event = device_event
|
|
406
|
+
.extend({
|
|
407
|
+
event_type: z.literal(
|
|
408
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
409
|
+
),
|
|
410
|
+
temperature_celsius: z.number(),
|
|
411
|
+
temperature_fahrenheit: z.number(),
|
|
412
|
+
upper_limit_celsius: z.number().nullable(),
|
|
413
|
+
upper_limit_fahrenheit: z.number().nullable(),
|
|
414
|
+
lower_limit_celsius: z.number().nullable(),
|
|
415
|
+
lower_limit_fahrenheit: z.number().nullable(),
|
|
416
|
+
})
|
|
417
|
+
.describe(
|
|
418
|
+
"A thermostat's temperature reading is no longer exceeding the set threshold.",
|
|
419
|
+
)
|
|
420
|
+
|
|
421
|
+
export type TemperatureThresholdNoLongerExceededEvent = z.infer<
|
|
422
|
+
typeof temperature_threshold_no_longer_exceeded_event
|
|
423
|
+
>
|
|
424
|
+
|
|
389
425
|
export const device_events = [
|
|
390
426
|
device_connected_event,
|
|
391
427
|
device_added_event,
|
|
@@ -415,4 +451,6 @@ export const device_events = [
|
|
|
415
451
|
lock_access_denied_event,
|
|
416
452
|
thermostat_climate_preset_activated_event,
|
|
417
453
|
thermostat_manually_adjusted_event,
|
|
454
|
+
temperature_threshold_exceeded_event,
|
|
455
|
+
temperature_threshold_no_longer_exceeded_event,
|
|
418
456
|
] as const
|
|
@@ -4403,6 +4403,37 @@ export default {
|
|
|
4403
4403
|
format: 'float',
|
|
4404
4404
|
type: 'number',
|
|
4405
4405
|
},
|
|
4406
|
+
temperature_threshold: {
|
|
4407
|
+
properties: {
|
|
4408
|
+
lower_limit_celsius: {
|
|
4409
|
+
format: 'float',
|
|
4410
|
+
nullable: true,
|
|
4411
|
+
type: 'number',
|
|
4412
|
+
},
|
|
4413
|
+
lower_limit_fahrenheit: {
|
|
4414
|
+
format: 'float',
|
|
4415
|
+
nullable: true,
|
|
4416
|
+
type: 'number',
|
|
4417
|
+
},
|
|
4418
|
+
upper_limit_celsius: {
|
|
4419
|
+
format: 'float',
|
|
4420
|
+
nullable: true,
|
|
4421
|
+
type: 'number',
|
|
4422
|
+
},
|
|
4423
|
+
upper_limit_fahrenheit: {
|
|
4424
|
+
format: 'float',
|
|
4425
|
+
nullable: true,
|
|
4426
|
+
type: 'number',
|
|
4427
|
+
},
|
|
4428
|
+
},
|
|
4429
|
+
required: [
|
|
4430
|
+
'lower_limit_celsius',
|
|
4431
|
+
'lower_limit_fahrenheit',
|
|
4432
|
+
'upper_limit_celsius',
|
|
4433
|
+
'upper_limit_fahrenheit',
|
|
4434
|
+
],
|
|
4435
|
+
type: 'object',
|
|
4436
|
+
},
|
|
4406
4437
|
},
|
|
4407
4438
|
type: 'object',
|
|
4408
4439
|
},
|
|
@@ -12898,6 +12929,8 @@ export default {
|
|
|
12898
12929
|
'action_attempt.unlock_door.failed',
|
|
12899
12930
|
'thermostat.climate_preset_activated',
|
|
12900
12931
|
'thermostat.manually_adjusted',
|
|
12932
|
+
'thermostat.temperature_threshold_exceeded',
|
|
12933
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
12901
12934
|
],
|
|
12902
12935
|
type: 'string',
|
|
12903
12936
|
},
|
|
@@ -12970,6 +13003,8 @@ export default {
|
|
|
12970
13003
|
'action_attempt.unlock_door.failed',
|
|
12971
13004
|
'thermostat.climate_preset_activated',
|
|
12972
13005
|
'thermostat.manually_adjusted',
|
|
13006
|
+
'thermostat.temperature_threshold_exceeded',
|
|
13007
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
12973
13008
|
],
|
|
12974
13009
|
type: 'string',
|
|
12975
13010
|
},
|
|
@@ -12977,6 +13012,7 @@ export default {
|
|
|
12977
13012
|
},
|
|
12978
13013
|
limit: { default: 500, format: 'float', type: 'number' },
|
|
12979
13014
|
since: { type: 'string' },
|
|
13015
|
+
unstable_offset: { format: 'float', type: 'number' },
|
|
12980
13016
|
},
|
|
12981
13017
|
type: 'object',
|
|
12982
13018
|
},
|
|
@@ -15526,6 +15562,139 @@ export default {
|
|
|
15526
15562
|
'x-response-key': 'action_attempt',
|
|
15527
15563
|
},
|
|
15528
15564
|
},
|
|
15565
|
+
'/thermostats/set_temperature_threshold': {
|
|
15566
|
+
patch: {
|
|
15567
|
+
operationId: 'thermostatsSetTemperatureThresholdPatch',
|
|
15568
|
+
requestBody: {
|
|
15569
|
+
content: {
|
|
15570
|
+
'application/json': {
|
|
15571
|
+
schema: {
|
|
15572
|
+
properties: {
|
|
15573
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
15574
|
+
lower_limit_celsius: {
|
|
15575
|
+
default: null,
|
|
15576
|
+
format: 'float',
|
|
15577
|
+
nullable: true,
|
|
15578
|
+
type: 'number',
|
|
15579
|
+
},
|
|
15580
|
+
lower_limit_fahrenheit: {
|
|
15581
|
+
default: null,
|
|
15582
|
+
format: 'float',
|
|
15583
|
+
nullable: true,
|
|
15584
|
+
type: 'number',
|
|
15585
|
+
},
|
|
15586
|
+
upper_limit_celsius: {
|
|
15587
|
+
default: null,
|
|
15588
|
+
format: 'float',
|
|
15589
|
+
nullable: true,
|
|
15590
|
+
type: 'number',
|
|
15591
|
+
},
|
|
15592
|
+
upper_limit_fahrenheit: {
|
|
15593
|
+
default: null,
|
|
15594
|
+
format: 'float',
|
|
15595
|
+
nullable: true,
|
|
15596
|
+
type: 'number',
|
|
15597
|
+
},
|
|
15598
|
+
},
|
|
15599
|
+
required: ['device_id'],
|
|
15600
|
+
type: 'object',
|
|
15601
|
+
},
|
|
15602
|
+
},
|
|
15603
|
+
},
|
|
15604
|
+
},
|
|
15605
|
+
responses: {
|
|
15606
|
+
200: {
|
|
15607
|
+
content: {
|
|
15608
|
+
'application/json': {
|
|
15609
|
+
schema: {
|
|
15610
|
+
properties: { ok: { type: 'boolean' } },
|
|
15611
|
+
required: ['ok'],
|
|
15612
|
+
type: 'object',
|
|
15613
|
+
},
|
|
15614
|
+
},
|
|
15615
|
+
},
|
|
15616
|
+
description: 'OK',
|
|
15617
|
+
},
|
|
15618
|
+
400: { description: 'Bad Request' },
|
|
15619
|
+
401: { description: 'Unauthorized' },
|
|
15620
|
+
},
|
|
15621
|
+
security: [
|
|
15622
|
+
{ api_key: [] },
|
|
15623
|
+
{ pat_with_workspace: [] },
|
|
15624
|
+
{ console_session: [] },
|
|
15625
|
+
],
|
|
15626
|
+
summary: '/thermostats/set_temperature_threshold',
|
|
15627
|
+
tags: ['/thermostats'],
|
|
15628
|
+
'x-fern-ignore': true,
|
|
15629
|
+
'x-response-key': null,
|
|
15630
|
+
},
|
|
15631
|
+
post: {
|
|
15632
|
+
operationId: 'thermostatsSetTemperatureThresholdPost',
|
|
15633
|
+
requestBody: {
|
|
15634
|
+
content: {
|
|
15635
|
+
'application/json': {
|
|
15636
|
+
schema: {
|
|
15637
|
+
properties: {
|
|
15638
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
15639
|
+
lower_limit_celsius: {
|
|
15640
|
+
default: null,
|
|
15641
|
+
format: 'float',
|
|
15642
|
+
nullable: true,
|
|
15643
|
+
type: 'number',
|
|
15644
|
+
},
|
|
15645
|
+
lower_limit_fahrenheit: {
|
|
15646
|
+
default: null,
|
|
15647
|
+
format: 'float',
|
|
15648
|
+
nullable: true,
|
|
15649
|
+
type: 'number',
|
|
15650
|
+
},
|
|
15651
|
+
upper_limit_celsius: {
|
|
15652
|
+
default: null,
|
|
15653
|
+
format: 'float',
|
|
15654
|
+
nullable: true,
|
|
15655
|
+
type: 'number',
|
|
15656
|
+
},
|
|
15657
|
+
upper_limit_fahrenheit: {
|
|
15658
|
+
default: null,
|
|
15659
|
+
format: 'float',
|
|
15660
|
+
nullable: true,
|
|
15661
|
+
type: 'number',
|
|
15662
|
+
},
|
|
15663
|
+
},
|
|
15664
|
+
required: ['device_id'],
|
|
15665
|
+
type: 'object',
|
|
15666
|
+
},
|
|
15667
|
+
},
|
|
15668
|
+
},
|
|
15669
|
+
},
|
|
15670
|
+
responses: {
|
|
15671
|
+
200: {
|
|
15672
|
+
content: {
|
|
15673
|
+
'application/json': {
|
|
15674
|
+
schema: {
|
|
15675
|
+
properties: { ok: { type: 'boolean' } },
|
|
15676
|
+
required: ['ok'],
|
|
15677
|
+
type: 'object',
|
|
15678
|
+
},
|
|
15679
|
+
},
|
|
15680
|
+
},
|
|
15681
|
+
description: 'OK',
|
|
15682
|
+
},
|
|
15683
|
+
400: { description: 'Bad Request' },
|
|
15684
|
+
401: { description: 'Unauthorized' },
|
|
15685
|
+
},
|
|
15686
|
+
security: [
|
|
15687
|
+
{ api_key: [] },
|
|
15688
|
+
{ pat_with_workspace: [] },
|
|
15689
|
+
{ console_session: [] },
|
|
15690
|
+
],
|
|
15691
|
+
summary: '/thermostats/set_temperature_threshold',
|
|
15692
|
+
tags: ['/thermostats'],
|
|
15693
|
+
'x-fern-sdk-group-name': ['thermostats'],
|
|
15694
|
+
'x-fern-sdk-method-name': 'set_temperature_threshold',
|
|
15695
|
+
'x-response-key': null,
|
|
15696
|
+
},
|
|
15697
|
+
},
|
|
15529
15698
|
'/thermostats/update_climate_preset': {
|
|
15530
15699
|
patch: {
|
|
15531
15700
|
operationId: 'thermostatsUpdateClimatePresetPatch',
|