@seamapi/types 1.341.0 → 1.343.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 +186 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +342 -2
- package/lib/seam/connect/models/events/devices.d.ts +66 -0
- package/lib/seam/connect/models/events/devices.js +15 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +33 -1
- package/lib/seam/connect/openapi.d.ts +243 -0
- package/lib/seam/connect/openapi.js +170 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +67 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +22 -0
- package/src/lib/seam/connect/openapi.ts +175 -0
- package/src/lib/seam/connect/route-types.ts +73 -0
|
@@ -16172,6 +16172,24 @@ export interface Routes {
|
|
|
16172
16172
|
desired_temperature_celsius?: number | undefined;
|
|
16173
16173
|
/** Desired temperature, in °F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
|
|
16174
16174
|
desired_temperature_fahrenheit?: number | undefined;
|
|
16175
|
+
} | {
|
|
16176
|
+
/** ID of the event. */
|
|
16177
|
+
event_id: string;
|
|
16178
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
16179
|
+
workspace_id: string;
|
|
16180
|
+
/** Date and time at which the event was created. */
|
|
16181
|
+
created_at: string;
|
|
16182
|
+
/** Date and time at which the event occurred. */
|
|
16183
|
+
occurred_at: string;
|
|
16184
|
+
/** ID of the device. */
|
|
16185
|
+
device_id: string;
|
|
16186
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
16187
|
+
connected_account_id: string;
|
|
16188
|
+
event_type: 'thermostat.temperature_changed';
|
|
16189
|
+
/** Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
16190
|
+
temperature_celsius: number;
|
|
16191
|
+
/** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
16192
|
+
temperature_fahrenheit: number;
|
|
16175
16193
|
} | {
|
|
16176
16194
|
/** ID of the event. */
|
|
16177
16195
|
event_id: string;
|
|
@@ -16215,8 +16233,8 @@ export interface Routes {
|
|
|
16215
16233
|
acs_system_ids?: string[] | undefined;
|
|
16216
16234
|
access_code_id?: string | undefined;
|
|
16217
16235
|
access_code_ids?: string[] | undefined;
|
|
16218
|
-
event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
16219
|
-
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
16236
|
+
event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
16237
|
+
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
16220
16238
|
connected_account_id?: string | undefined;
|
|
16221
16239
|
connect_webview_id?: string | undefined;
|
|
16222
16240
|
limit?: number;
|
|
@@ -17365,6 +17383,24 @@ export interface Routes {
|
|
|
17365
17383
|
desired_temperature_celsius?: number | undefined;
|
|
17366
17384
|
/** Desired temperature, in °F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
|
|
17367
17385
|
desired_temperature_fahrenheit?: number | undefined;
|
|
17386
|
+
} | {
|
|
17387
|
+
/** ID of the event. */
|
|
17388
|
+
event_id: string;
|
|
17389
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
17390
|
+
workspace_id: string;
|
|
17391
|
+
/** Date and time at which the event was created. */
|
|
17392
|
+
created_at: string;
|
|
17393
|
+
/** Date and time at which the event occurred. */
|
|
17394
|
+
occurred_at: string;
|
|
17395
|
+
/** ID of the device. */
|
|
17396
|
+
device_id: string;
|
|
17397
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
17398
|
+
connected_account_id: string;
|
|
17399
|
+
event_type: 'thermostat.temperature_changed';
|
|
17400
|
+
/** Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
17401
|
+
temperature_celsius: number;
|
|
17402
|
+
/** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
17403
|
+
temperature_fahrenheit: number;
|
|
17368
17404
|
} | {
|
|
17369
17405
|
/** ID of the event. */
|
|
17370
17406
|
event_id: string;
|
|
@@ -34661,6 +34697,35 @@ export interface Routes {
|
|
|
34661
34697
|
formData: {};
|
|
34662
34698
|
jsonResponse: {};
|
|
34663
34699
|
};
|
|
34700
|
+
'/thermostats/simulate/hvac_mode_adjusted': {
|
|
34701
|
+
route: '/thermostats/simulate/hvac_mode_adjusted';
|
|
34702
|
+
method: 'POST';
|
|
34703
|
+
queryParams: {};
|
|
34704
|
+
jsonBody: {
|
|
34705
|
+
hvac_mode: 'off';
|
|
34706
|
+
device_id: string;
|
|
34707
|
+
} | {
|
|
34708
|
+
hvac_mode: 'cool';
|
|
34709
|
+
device_id: string;
|
|
34710
|
+
cooling_set_point_celsius?: number | undefined;
|
|
34711
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
34712
|
+
} | {
|
|
34713
|
+
hvac_mode: 'heat';
|
|
34714
|
+
device_id: string;
|
|
34715
|
+
heating_set_point_celsius?: number | undefined;
|
|
34716
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
34717
|
+
} | {
|
|
34718
|
+
hvac_mode: 'heat_cool';
|
|
34719
|
+
device_id: string;
|
|
34720
|
+
cooling_set_point_celsius?: number | undefined;
|
|
34721
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
34722
|
+
heating_set_point_celsius?: number | undefined;
|
|
34723
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
34724
|
+
};
|
|
34725
|
+
commonParams: {};
|
|
34726
|
+
formData: {};
|
|
34727
|
+
jsonResponse: {};
|
|
34728
|
+
};
|
|
34664
34729
|
'/thermostats/simulate/temperature_reached': {
|
|
34665
34730
|
route: '/thermostats/simulate/temperature_reached';
|
|
34666
34731
|
method: 'POST';
|
package/package.json
CHANGED
|
@@ -630,6 +630,27 @@ export type TemperatureReachedSetPointEvent = z.infer<
|
|
|
630
630
|
typeof temperature_reached_set_point_event
|
|
631
631
|
>
|
|
632
632
|
|
|
633
|
+
export const temperature_changed_event = device_event.extend({
|
|
634
|
+
event_type: z.literal('thermostat.temperature_changed'),
|
|
635
|
+
temperature_celsius: z
|
|
636
|
+
.number()
|
|
637
|
+
.describe(
|
|
638
|
+
'Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
639
|
+
),
|
|
640
|
+
temperature_fahrenheit: z
|
|
641
|
+
.number()
|
|
642
|
+
.describe(
|
|
643
|
+
'Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
644
|
+
),
|
|
645
|
+
}).describe(`
|
|
646
|
+
---
|
|
647
|
+
route_path: /thermostats
|
|
648
|
+
---
|
|
649
|
+
A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 °C.
|
|
650
|
+
`)
|
|
651
|
+
|
|
652
|
+
export type TemperatureChangedEvent = z.infer<typeof temperature_changed_event>
|
|
653
|
+
|
|
633
654
|
export const device_events = [
|
|
634
655
|
device_connected_event,
|
|
635
656
|
device_added_event,
|
|
@@ -662,4 +683,5 @@ export const device_events = [
|
|
|
662
683
|
temperature_threshold_exceeded_event,
|
|
663
684
|
temperature_threshold_no_longer_exceeded_event,
|
|
664
685
|
temperature_reached_set_point_event,
|
|
686
|
+
temperature_changed_event,
|
|
665
687
|
] as const
|
|
@@ -11679,6 +11679,73 @@ export default {
|
|
|
11679
11679
|
type: 'object',
|
|
11680
11680
|
'x-route-path': '/thermostats',
|
|
11681
11681
|
},
|
|
11682
|
+
{
|
|
11683
|
+
description:
|
|
11684
|
+
"A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 °C.",
|
|
11685
|
+
properties: {
|
|
11686
|
+
connected_account_id: {
|
|
11687
|
+
description:
|
|
11688
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
11689
|
+
format: 'uuid',
|
|
11690
|
+
type: 'string',
|
|
11691
|
+
},
|
|
11692
|
+
created_at: {
|
|
11693
|
+
description: 'Date and time at which the event was created.',
|
|
11694
|
+
format: 'date-time',
|
|
11695
|
+
type: 'string',
|
|
11696
|
+
},
|
|
11697
|
+
device_id: {
|
|
11698
|
+
description: 'ID of the device.',
|
|
11699
|
+
format: 'uuid',
|
|
11700
|
+
type: 'string',
|
|
11701
|
+
},
|
|
11702
|
+
event_id: {
|
|
11703
|
+
description: 'ID of the event.',
|
|
11704
|
+
format: 'uuid',
|
|
11705
|
+
type: 'string',
|
|
11706
|
+
},
|
|
11707
|
+
event_type: {
|
|
11708
|
+
enum: ['thermostat.temperature_changed'],
|
|
11709
|
+
type: 'string',
|
|
11710
|
+
},
|
|
11711
|
+
occurred_at: {
|
|
11712
|
+
description: 'Date and time at which the event occurred.',
|
|
11713
|
+
format: 'date-time',
|
|
11714
|
+
type: 'string',
|
|
11715
|
+
},
|
|
11716
|
+
temperature_celsius: {
|
|
11717
|
+
description:
|
|
11718
|
+
'Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
11719
|
+
format: 'float',
|
|
11720
|
+
type: 'number',
|
|
11721
|
+
},
|
|
11722
|
+
temperature_fahrenheit: {
|
|
11723
|
+
description:
|
|
11724
|
+
'Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
11725
|
+
format: 'float',
|
|
11726
|
+
type: 'number',
|
|
11727
|
+
},
|
|
11728
|
+
workspace_id: {
|
|
11729
|
+
description:
|
|
11730
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
|
|
11731
|
+
format: 'uuid',
|
|
11732
|
+
type: 'string',
|
|
11733
|
+
},
|
|
11734
|
+
},
|
|
11735
|
+
required: [
|
|
11736
|
+
'event_id',
|
|
11737
|
+
'workspace_id',
|
|
11738
|
+
'created_at',
|
|
11739
|
+
'occurred_at',
|
|
11740
|
+
'device_id',
|
|
11741
|
+
'connected_account_id',
|
|
11742
|
+
'event_type',
|
|
11743
|
+
'temperature_celsius',
|
|
11744
|
+
'temperature_fahrenheit',
|
|
11745
|
+
],
|
|
11746
|
+
type: 'object',
|
|
11747
|
+
'x-route-path': '/thermostats',
|
|
11748
|
+
},
|
|
11682
11749
|
{
|
|
11683
11750
|
description:
|
|
11684
11751
|
'An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.',
|
|
@@ -22309,6 +22376,7 @@ export default {
|
|
|
22309
22376
|
'thermostat.temperature_threshold_exceeded',
|
|
22310
22377
|
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
22311
22378
|
'thermostat.temperature_reached_set_point',
|
|
22379
|
+
'thermostat.temperature_changed',
|
|
22312
22380
|
'enrollment_automation.deleted',
|
|
22313
22381
|
'phone.deactivated',
|
|
22314
22382
|
],
|
|
@@ -22389,6 +22457,7 @@ export default {
|
|
|
22389
22457
|
'thermostat.temperature_threshold_exceeded',
|
|
22390
22458
|
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
22391
22459
|
'thermostat.temperature_reached_set_point',
|
|
22460
|
+
'thermostat.temperature_changed',
|
|
22392
22461
|
'enrollment_automation.deleted',
|
|
22393
22462
|
'phone.deactivated',
|
|
22394
22463
|
],
|
|
@@ -25645,6 +25714,112 @@ export default {
|
|
|
25645
25714
|
'x-title': 'Set a Temperature Threshold',
|
|
25646
25715
|
},
|
|
25647
25716
|
},
|
|
25717
|
+
'/thermostats/simulate/hvac_mode_adjusted': {
|
|
25718
|
+
post: {
|
|
25719
|
+
operationId: 'thermostatsSimulateHvacModeAdjustedPost',
|
|
25720
|
+
requestBody: {
|
|
25721
|
+
content: {
|
|
25722
|
+
'application/json': {
|
|
25723
|
+
schema: {
|
|
25724
|
+
discriminator: { propertyName: 'hvac_mode' },
|
|
25725
|
+
oneOf: [
|
|
25726
|
+
{
|
|
25727
|
+
properties: {
|
|
25728
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
25729
|
+
hvac_mode: { enum: ['off'], type: 'string' },
|
|
25730
|
+
},
|
|
25731
|
+
required: ['hvac_mode', 'device_id'],
|
|
25732
|
+
type: 'object',
|
|
25733
|
+
},
|
|
25734
|
+
{
|
|
25735
|
+
properties: {
|
|
25736
|
+
cooling_set_point_celsius: {
|
|
25737
|
+
format: 'float',
|
|
25738
|
+
type: 'number',
|
|
25739
|
+
},
|
|
25740
|
+
cooling_set_point_fahrenheit: {
|
|
25741
|
+
format: 'float',
|
|
25742
|
+
type: 'number',
|
|
25743
|
+
},
|
|
25744
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
25745
|
+
hvac_mode: { enum: ['cool'], type: 'string' },
|
|
25746
|
+
},
|
|
25747
|
+
required: ['hvac_mode', 'device_id'],
|
|
25748
|
+
type: 'object',
|
|
25749
|
+
},
|
|
25750
|
+
{
|
|
25751
|
+
properties: {
|
|
25752
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
25753
|
+
heating_set_point_celsius: {
|
|
25754
|
+
format: 'float',
|
|
25755
|
+
type: 'number',
|
|
25756
|
+
},
|
|
25757
|
+
heating_set_point_fahrenheit: {
|
|
25758
|
+
format: 'float',
|
|
25759
|
+
type: 'number',
|
|
25760
|
+
},
|
|
25761
|
+
hvac_mode: { enum: ['heat'], type: 'string' },
|
|
25762
|
+
},
|
|
25763
|
+
required: ['hvac_mode', 'device_id'],
|
|
25764
|
+
type: 'object',
|
|
25765
|
+
},
|
|
25766
|
+
{
|
|
25767
|
+
properties: {
|
|
25768
|
+
cooling_set_point_celsius: {
|
|
25769
|
+
format: 'float',
|
|
25770
|
+
type: 'number',
|
|
25771
|
+
},
|
|
25772
|
+
cooling_set_point_fahrenheit: {
|
|
25773
|
+
format: 'float',
|
|
25774
|
+
type: 'number',
|
|
25775
|
+
},
|
|
25776
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
25777
|
+
heating_set_point_celsius: {
|
|
25778
|
+
format: 'float',
|
|
25779
|
+
type: 'number',
|
|
25780
|
+
},
|
|
25781
|
+
heating_set_point_fahrenheit: {
|
|
25782
|
+
format: 'float',
|
|
25783
|
+
type: 'number',
|
|
25784
|
+
},
|
|
25785
|
+
hvac_mode: { enum: ['heat_cool'], type: 'string' },
|
|
25786
|
+
},
|
|
25787
|
+
required: ['hvac_mode', 'device_id'],
|
|
25788
|
+
type: 'object',
|
|
25789
|
+
},
|
|
25790
|
+
],
|
|
25791
|
+
},
|
|
25792
|
+
},
|
|
25793
|
+
},
|
|
25794
|
+
},
|
|
25795
|
+
responses: {
|
|
25796
|
+
200: {
|
|
25797
|
+
content: {
|
|
25798
|
+
'application/json': {
|
|
25799
|
+
schema: {
|
|
25800
|
+
properties: { ok: { type: 'boolean' } },
|
|
25801
|
+
required: ['ok'],
|
|
25802
|
+
type: 'object',
|
|
25803
|
+
},
|
|
25804
|
+
},
|
|
25805
|
+
},
|
|
25806
|
+
description: 'OK',
|
|
25807
|
+
},
|
|
25808
|
+
400: { description: 'Bad Request' },
|
|
25809
|
+
401: { description: 'Unauthorized' },
|
|
25810
|
+
},
|
|
25811
|
+
security: [
|
|
25812
|
+
{ api_key: [] },
|
|
25813
|
+
{ pat_with_workspace: [] },
|
|
25814
|
+
{ console_session_with_workspace: [] },
|
|
25815
|
+
],
|
|
25816
|
+
summary: '/thermostats/simulate/hvac_mode_adjusted',
|
|
25817
|
+
tags: ['/thermostats'],
|
|
25818
|
+
'x-fern-sdk-group-name': ['thermostats', 'simulate'],
|
|
25819
|
+
'x-fern-sdk-method-name': 'hvac_mode_adjusted',
|
|
25820
|
+
'x-response-key': null,
|
|
25821
|
+
},
|
|
25822
|
+
},
|
|
25648
25823
|
'/thermostats/simulate/temperature_reached': {
|
|
25649
25824
|
post: {
|
|
25650
25825
|
operationId: 'thermostatsSimulateTemperatureReachedPost',
|
|
@@ -19876,6 +19876,25 @@ export interface Routes {
|
|
|
19876
19876
|
/** Desired temperature, in °F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
|
|
19877
19877
|
desired_temperature_fahrenheit?: number | undefined
|
|
19878
19878
|
}
|
|
19879
|
+
| {
|
|
19880
|
+
/** ID of the event. */
|
|
19881
|
+
event_id: string
|
|
19882
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
19883
|
+
workspace_id: string
|
|
19884
|
+
/** Date and time at which the event was created. */
|
|
19885
|
+
created_at: string
|
|
19886
|
+
/** Date and time at which the event occurred. */
|
|
19887
|
+
occurred_at: string
|
|
19888
|
+
/** ID of the device. */
|
|
19889
|
+
device_id: string
|
|
19890
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
19891
|
+
connected_account_id: string
|
|
19892
|
+
event_type: 'thermostat.temperature_changed'
|
|
19893
|
+
/** Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
19894
|
+
temperature_celsius: number
|
|
19895
|
+
/** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
19896
|
+
temperature_fahrenheit: number
|
|
19897
|
+
}
|
|
19879
19898
|
| {
|
|
19880
19899
|
/** ID of the event. */
|
|
19881
19900
|
event_id: string
|
|
@@ -19996,6 +20015,7 @@ export interface Routes {
|
|
|
19996
20015
|
| 'thermostat.temperature_threshold_exceeded'
|
|
19997
20016
|
| 'thermostat.temperature_threshold_no_longer_exceeded'
|
|
19998
20017
|
| 'thermostat.temperature_reached_set_point'
|
|
20018
|
+
| 'thermostat.temperature_changed'
|
|
19999
20019
|
| 'enrollment_automation.deleted'
|
|
20000
20020
|
| 'phone.deactivated'
|
|
20001
20021
|
)
|
|
@@ -20074,6 +20094,7 @@ export interface Routes {
|
|
|
20074
20094
|
| 'thermostat.temperature_threshold_exceeded'
|
|
20075
20095
|
| 'thermostat.temperature_threshold_no_longer_exceeded'
|
|
20076
20096
|
| 'thermostat.temperature_reached_set_point'
|
|
20097
|
+
| 'thermostat.temperature_changed'
|
|
20077
20098
|
| 'enrollment_automation.deleted'
|
|
20078
20099
|
| 'phone.deactivated'
|
|
20079
20100
|
>
|
|
@@ -21309,6 +21330,25 @@ export interface Routes {
|
|
|
21309
21330
|
/** Desired temperature, in °F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
|
|
21310
21331
|
desired_temperature_fahrenheit?: number | undefined
|
|
21311
21332
|
}
|
|
21333
|
+
| {
|
|
21334
|
+
/** ID of the event. */
|
|
21335
|
+
event_id: string
|
|
21336
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
21337
|
+
workspace_id: string
|
|
21338
|
+
/** Date and time at which the event was created. */
|
|
21339
|
+
created_at: string
|
|
21340
|
+
/** Date and time at which the event occurred. */
|
|
21341
|
+
occurred_at: string
|
|
21342
|
+
/** ID of the device. */
|
|
21343
|
+
device_id: string
|
|
21344
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
21345
|
+
connected_account_id: string
|
|
21346
|
+
event_type: 'thermostat.temperature_changed'
|
|
21347
|
+
/** Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
21348
|
+
temperature_celsius: number
|
|
21349
|
+
/** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
|
|
21350
|
+
temperature_fahrenheit: number
|
|
21351
|
+
}
|
|
21312
21352
|
| {
|
|
21313
21353
|
/** ID of the event. */
|
|
21314
21354
|
event_id: string
|
|
@@ -43180,6 +43220,39 @@ export interface Routes {
|
|
|
43180
43220
|
formData: {}
|
|
43181
43221
|
jsonResponse: {}
|
|
43182
43222
|
}
|
|
43223
|
+
'/thermostats/simulate/hvac_mode_adjusted': {
|
|
43224
|
+
route: '/thermostats/simulate/hvac_mode_adjusted'
|
|
43225
|
+
method: 'POST'
|
|
43226
|
+
queryParams: {}
|
|
43227
|
+
jsonBody:
|
|
43228
|
+
| {
|
|
43229
|
+
hvac_mode: 'off'
|
|
43230
|
+
device_id: string
|
|
43231
|
+
}
|
|
43232
|
+
| {
|
|
43233
|
+
hvac_mode: 'cool'
|
|
43234
|
+
device_id: string
|
|
43235
|
+
cooling_set_point_celsius?: number | undefined
|
|
43236
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
43237
|
+
}
|
|
43238
|
+
| {
|
|
43239
|
+
hvac_mode: 'heat'
|
|
43240
|
+
device_id: string
|
|
43241
|
+
heating_set_point_celsius?: number | undefined
|
|
43242
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
43243
|
+
}
|
|
43244
|
+
| {
|
|
43245
|
+
hvac_mode: 'heat_cool'
|
|
43246
|
+
device_id: string
|
|
43247
|
+
cooling_set_point_celsius?: number | undefined
|
|
43248
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
43249
|
+
heating_set_point_celsius?: number | undefined
|
|
43250
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
43251
|
+
}
|
|
43252
|
+
commonParams: {}
|
|
43253
|
+
formData: {}
|
|
43254
|
+
jsonResponse: {}
|
|
43255
|
+
}
|
|
43183
43256
|
'/thermostats/simulate/temperature_reached': {
|
|
43184
43257
|
route: '/thermostats/simulate/temperature_reached'
|
|
43185
43258
|
method: 'POST'
|