@seamapi/types 1.340.1 → 1.342.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.
@@ -367,8 +367,7 @@ export interface Routes {
367
367
  status: 'success';
368
368
  error: null;
369
369
  action_type: 'ENCODE_CREDENTIAL';
370
- /** Means by which a user gains access at an entrance.
371
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
370
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
372
371
  result: {
373
372
  /** ID of the credential. */
374
373
  acs_credential_id: string;
@@ -1777,8 +1776,7 @@ export interface Routes {
1777
1776
  status: 'success';
1778
1777
  error: null;
1779
1778
  action_type: 'ENCODE_CREDENTIAL';
1780
- /** Means by which a user gains access at an entrance.
1781
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
1779
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
1782
1780
  result: {
1783
1781
  /** ID of the credential. */
1784
1782
  acs_credential_id: string;
@@ -3993,8 +3991,7 @@ export interface Routes {
3993
3991
  status: 'success';
3994
3992
  error: null;
3995
3993
  action_type: 'ENCODE_CREDENTIAL';
3996
- /** Means by which a user gains access at an entrance.
3997
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
3994
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
3998
3995
  result: {
3999
3996
  /** ID of the credential. */
4000
3997
  acs_credential_id: string;
@@ -5390,8 +5387,7 @@ export interface Routes {
5390
5387
  status: 'success';
5391
5388
  error: null;
5392
5389
  action_type: 'ENCODE_CREDENTIAL';
5393
- /** Means by which a user gains access at an entrance.
5394
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
5390
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
5395
5391
  result: {
5396
5392
  /** ID of the credential. */
5397
5393
  acs_credential_id: string;
@@ -6370,8 +6366,7 @@ export interface Routes {
6370
6366
  commonParams: {};
6371
6367
  formData: {};
6372
6368
  jsonResponse: {
6373
- /** Means by which a user gains access at an entrance.
6374
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6369
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6375
6370
  acs_credential: {
6376
6371
  /** ID of the credential. */
6377
6372
  acs_credential_id: string;
@@ -6533,8 +6528,7 @@ export interface Routes {
6533
6528
  };
6534
6529
  formData: {};
6535
6530
  jsonResponse: {
6536
- /** Means by which a user gains access at an entrance.
6537
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6531
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6538
6532
  acs_credential: {
6539
6533
  /** ID of the credential. */
6540
6534
  acs_credential_id: string;
@@ -6665,8 +6659,7 @@ export interface Routes {
6665
6659
  };
6666
6660
  formData: {};
6667
6661
  jsonResponse: {
6668
- /** Means by which a user gains access at an entrance.
6669
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6662
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6670
6663
  acs_credential: {
6671
6664
  /** ID of the credential. */
6672
6665
  acs_credential_id: string;
@@ -6801,8 +6794,7 @@ export interface Routes {
6801
6794
  };
6802
6795
  formData: {};
6803
6796
  jsonResponse: {
6804
- /** Means by which a user gains access at an entrance.
6805
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6797
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
6806
6798
  acs_credential: {
6807
6799
  /** ID of the credential. */
6808
6800
  acs_credential_id: string;
@@ -7133,8 +7125,7 @@ export interface Routes {
7133
7125
  commonParams: {};
7134
7126
  formData: {};
7135
7127
  jsonResponse: {
7136
- /** Means by which a user gains access at an entrance.
7137
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7128
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7138
7129
  acs_credential: {
7139
7130
  /** ID of the credential. */
7140
7131
  acs_credential_id: string;
@@ -7257,8 +7248,7 @@ export interface Routes {
7257
7248
  };
7258
7249
  formData: {};
7259
7250
  jsonResponse: {
7260
- /** Means by which a user gains access at an entrance.
7261
- The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7251
+ /** Means by which a user gains access at an entrance. The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7262
7252
  acs_credential: {
7263
7253
  /** ID of the credential. */
7264
7254
  acs_credential_id: string;
@@ -7518,8 +7508,7 @@ export interface Routes {
7518
7508
  commonParams: {};
7519
7509
  formData: {};
7520
7510
  jsonResponse: {
7521
- /** Means by which a user gains access at an entrance.
7522
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7511
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7523
7512
  acs_credential: {
7524
7513
  /** ID of the credential. */
7525
7514
  acs_credential_id: string;
@@ -7986,8 +7975,7 @@ export interface Routes {
7986
7975
  status: 'success';
7987
7976
  error: null;
7988
7977
  action_type: 'ENCODE_CREDENTIAL';
7989
- /** Means by which a user gains access at an entrance.
7990
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7978
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
7991
7979
  result: {
7992
7980
  /** ID of the credential. */
7993
7981
  acs_credential_id: string;
@@ -8901,8 +8889,7 @@ export interface Routes {
8901
8889
  status: 'success';
8902
8890
  error: null;
8903
8891
  action_type: 'ENCODE_CREDENTIAL';
8904
- /** Means by which a user gains access at an entrance.
8905
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
8892
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
8906
8893
  result: {
8907
8894
  /** ID of the credential. */
8908
8895
  acs_credential_id: string;
@@ -11231,8 +11218,7 @@ export interface Routes {
11231
11218
  status: 'success';
11232
11219
  error: null;
11233
11220
  action_type: 'ENCODE_CREDENTIAL';
11234
- /** Means by which a user gains access at an entrance.
11235
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
11221
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
11236
11222
  result: {
11237
11223
  /** ID of the credential. */
11238
11224
  acs_credential_id: string;
@@ -12098,8 +12084,7 @@ export interface Routes {
12098
12084
  status: 'success';
12099
12085
  error: null;
12100
12086
  action_type: 'ENCODE_CREDENTIAL';
12101
- /** Means by which a user gains access at an entrance.
12102
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
12087
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
12103
12088
  result: {
12104
12089
  /** ID of the credential. */
12105
12090
  acs_credential_id: string;
@@ -16187,6 +16172,24 @@ export interface Routes {
16187
16172
  desired_temperature_celsius?: number | undefined;
16188
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). */
16189
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_event';
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;
16190
16193
  } | {
16191
16194
  /** ID of the event. */
16192
16195
  event_id: string;
@@ -16230,8 +16233,8 @@ export interface Routes {
16230
16233
  acs_system_ids?: string[] | undefined;
16231
16234
  access_code_id?: string | undefined;
16232
16235
  access_code_ids?: string[] | undefined;
16233
- 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;
16234
- 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_event' | '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_event' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
16235
16238
  connected_account_id?: string | undefined;
16236
16239
  connect_webview_id?: string | undefined;
16237
16240
  limit?: number;
@@ -17380,6 +17383,24 @@ export interface Routes {
17380
17383
  desired_temperature_celsius?: number | undefined;
17381
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). */
17382
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_event';
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;
17383
17404
  } | {
17384
17405
  /** ID of the event. */
17385
17406
  event_id: string;
@@ -20416,8 +20437,7 @@ export interface Routes {
20416
20437
  status: 'success';
20417
20438
  error: null;
20418
20439
  action_type: 'ENCODE_CREDENTIAL';
20419
- /** Means by which a user gains access at an entrance.
20420
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
20440
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
20421
20441
  result: {
20422
20442
  /** ID of the credential. */
20423
20443
  acs_credential_id: string;
@@ -21285,8 +21305,7 @@ export interface Routes {
21285
21305
  status: 'success';
21286
21306
  error: null;
21287
21307
  action_type: 'ENCODE_CREDENTIAL';
21288
- /** Means by which a user gains access at an entrance.
21289
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
21308
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
21290
21309
  result: {
21291
21310
  /** ID of the credential. */
21292
21311
  acs_credential_id: string;
@@ -23533,8 +23552,7 @@ export interface Routes {
23533
23552
  status: 'success';
23534
23553
  error: null;
23535
23554
  action_type: 'ENCODE_CREDENTIAL';
23536
- /** Means by which a user gains access at an entrance.
23537
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
23555
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
23538
23556
  result: {
23539
23557
  /** ID of the credential. */
23540
23558
  acs_credential_id: string;
@@ -24413,8 +24431,7 @@ export interface Routes {
24413
24431
  status: 'success';
24414
24432
  error: null;
24415
24433
  action_type: 'ENCODE_CREDENTIAL';
24416
- /** Means by which a user gains access at an entrance.
24417
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
24434
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
24418
24435
  result: {
24419
24436
  /** ID of the credential. */
24420
24437
  acs_credential_id: string;
@@ -25332,8 +25349,7 @@ export interface Routes {
25332
25349
  status: 'success';
25333
25350
  error: null;
25334
25351
  action_type: 'ENCODE_CREDENTIAL';
25335
- /** Means by which a user gains access at an entrance.
25336
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
25352
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
25337
25353
  result: {
25338
25354
  /** ID of the credential. */
25339
25355
  acs_credential_id: string;
@@ -26648,8 +26664,7 @@ export interface Routes {
26648
26664
  status: 'success';
26649
26665
  error: null;
26650
26666
  action_type: 'ENCODE_CREDENTIAL';
26651
- /** Means by which a user gains access at an entrance.
26652
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
26667
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
26653
26668
  result: {
26654
26669
  /** ID of the credential. */
26655
26670
  acs_credential_id: string;
@@ -27523,8 +27538,7 @@ export interface Routes {
27523
27538
  status: 'success';
27524
27539
  error: null;
27525
27540
  action_type: 'ENCODE_CREDENTIAL';
27526
- /** Means by which a user gains access at an entrance.
27527
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
27541
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
27528
27542
  result: {
27529
27543
  /** ID of the credential. */
27530
27544
  acs_credential_id: string;
@@ -29110,8 +29124,7 @@ export interface Routes {
29110
29124
  status: 'success';
29111
29125
  error: null;
29112
29126
  action_type: 'ENCODE_CREDENTIAL';
29113
- /** Means by which a user gains access at an entrance.
29114
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
29127
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
29115
29128
  result: {
29116
29129
  /** ID of the credential. */
29117
29130
  acs_credential_id: string;
@@ -29989,8 +30002,7 @@ export interface Routes {
29989
30002
  status: 'success';
29990
30003
  error: null;
29991
30004
  action_type: 'ENCODE_CREDENTIAL';
29992
- /** Means by which a user gains access at an entrance.
29993
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
30005
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
29994
30006
  result: {
29995
30007
  /** ID of the credential. */
29996
30008
  acs_credential_id: string;
@@ -32199,8 +32211,7 @@ export interface Routes {
32199
32211
  status: 'success';
32200
32212
  error: null;
32201
32213
  action_type: 'ENCODE_CREDENTIAL';
32202
- /** Means by which a user gains access at an entrance.
32203
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
32214
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
32204
32215
  result: {
32205
32216
  /** ID of the credential. */
32206
32217
  acs_credential_id: string;
@@ -33254,8 +33265,7 @@ export interface Routes {
33254
33265
  status: 'success';
33255
33266
  error: null;
33256
33267
  action_type: 'ENCODE_CREDENTIAL';
33257
- /** Means by which a user gains access at an entrance.
33258
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
33268
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
33259
33269
  result: {
33260
33270
  /** ID of the credential. */
33261
33271
  acs_credential_id: string;
@@ -34152,8 +34162,7 @@ export interface Routes {
34152
34162
  status: 'success';
34153
34163
  error: null;
34154
34164
  action_type: 'ENCODE_CREDENTIAL';
34155
- /** Means by which a user gains access at an entrance.
34156
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
34165
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
34157
34166
  result: {
34158
34167
  /** ID of the credential. */
34159
34168
  acs_credential_id: string;
@@ -34688,6 +34697,48 @@ export interface Routes {
34688
34697
  formData: {};
34689
34698
  jsonResponse: {};
34690
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
+ };
34729
+ '/thermostats/simulate/temperature_reached': {
34730
+ route: '/thermostats/simulate/temperature_reached';
34731
+ method: 'POST';
34732
+ queryParams: {};
34733
+ jsonBody: {
34734
+ device_id: string;
34735
+ temperature_celsius?: number | undefined;
34736
+ temperature_fahrenheit?: number | undefined;
34737
+ };
34738
+ commonParams: {};
34739
+ formData: {};
34740
+ jsonResponse: {};
34741
+ };
34691
34742
  '/thermostats/update_climate_preset': {
34692
34743
  route: '/thermostats/update_climate_preset';
34693
34744
  method: 'POST' | 'PATCH';
@@ -37042,8 +37093,7 @@ export interface Routes {
37042
37093
  status: 'success';
37043
37094
  error: null;
37044
37095
  action_type: 'ENCODE_CREDENTIAL';
37045
- /** Means by which a user gains access at an entrance.
37046
- The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
37096
+ /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
37047
37097
  result: {
37048
37098
  /** ID of the credential. */
37049
37099
  acs_credential_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.340.1",
3
+ "version": "1.342.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -241,7 +241,7 @@ export const acs_credential = common_acs_credential.merge(
241
241
  ---
242
242
  route_path: /acs/credentials
243
243
  ---
244
- ${getAcsCredentialDescription()}
244
+ Means by which a user gains access at an entrance. The \`acs_credential\` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.
245
245
  `)
246
246
 
247
247
  export const unmanaged_acs_credential = common_acs_credential.merge(
@@ -252,19 +252,9 @@ export const unmanaged_acs_credential = common_acs_credential.merge(
252
252
  ---
253
253
  route_path: /acs/credentials/unmanaged
254
254
  ---
255
- ${getAcsCredentialDescription(false)}
255
+ Means by which a user gains access at an entrance. The \`unmanaged_acs_credential\` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.
256
256
  `)
257
257
 
258
- function getAcsCredentialDescription(is_managed = true): string {
259
- const resource_name = is_managed
260
- ? 'acs_credential'
261
- : 'unmanaged_acs_credential'
262
- const management_clause = is_managed ? '' : ', which is not managed by Seam,'
263
-
264
- return `Means by which a user gains access at an entrance.
265
- The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim()
266
- }
267
-
268
258
  export const acs_credential_on_encoder = z.object({
269
259
  created_at: z
270
260
  .string()
@@ -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_event'),
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