@seamapi/types 1.696.0 → 1.697.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.
@@ -33067,6 +33067,44 @@ export type Routes = {
33067
33067
  device_ids: string[];
33068
33068
  /** IDs of all ACS entrances currently attached to the space. */
33069
33069
  acs_entrance_ids: string[];
33070
+ } | {
33071
+ /** ID of the event. */
33072
+ event_id: string;
33073
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
33074
+ workspace_id: string;
33075
+ /** Date and time at which the event was created. */
33076
+ created_at: string;
33077
+ /** Date and time at which the event occurred. */
33078
+ occurred_at: string;
33079
+ /** ID of the affected space. */
33080
+ space_id: string;
33081
+ /** Type of the event. */
33082
+ event_type: 'space.created';
33083
+ /** Unique key for the space within the workspace. */
33084
+ space_key?: string | undefined;
33085
+ /** IDs of all devices attached to the space when it was created. */
33086
+ device_ids: string[];
33087
+ /** IDs of all ACS entrances attached to the space when it was created. */
33088
+ acs_entrance_ids: string[];
33089
+ } | {
33090
+ /** ID of the event. */
33091
+ event_id: string;
33092
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
33093
+ workspace_id: string;
33094
+ /** Date and time at which the event was created. */
33095
+ created_at: string;
33096
+ /** Date and time at which the event occurred. */
33097
+ occurred_at: string;
33098
+ /** ID of the affected space. */
33099
+ space_id: string;
33100
+ /** Type of the event. */
33101
+ event_type: 'space.deleted';
33102
+ /** Unique key for the space within the workspace. */
33103
+ space_key?: string | undefined;
33104
+ /** IDs of all devices attached to the space when it was deleted. */
33105
+ device_ids: string[];
33106
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
33107
+ acs_entrance_ids: string[];
33070
33108
  }) | undefined;
33071
33109
  message?: string | undefined;
33072
33110
  };
@@ -33099,9 +33137,9 @@ export type Routes = {
33099
33137
  /** IDs of the access codes for which you want to list events. */
33100
33138
  access_code_ids?: string[] | undefined;
33101
33139
  /** Type of the events that you want to list. */
33102
- 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed') | undefined;
33140
+ 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
33103
33141
  /** Types of the events that you want to list. */
33104
- event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed')[] | undefined;
33142
+ event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
33105
33143
  /** ID of the connected account for which you want to list events. */
33106
33144
  connected_account_id?: string | undefined;
33107
33145
  /** ID of the Connect Webview for which you want to list events. */
@@ -35065,6 +35103,44 @@ export type Routes = {
35065
35103
  device_ids: string[];
35066
35104
  /** IDs of all ACS entrances currently attached to the space. */
35067
35105
  acs_entrance_ids: string[];
35106
+ } | {
35107
+ /** ID of the event. */
35108
+ event_id: string;
35109
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
35110
+ workspace_id: string;
35111
+ /** Date and time at which the event was created. */
35112
+ created_at: string;
35113
+ /** Date and time at which the event occurred. */
35114
+ occurred_at: string;
35115
+ /** ID of the affected space. */
35116
+ space_id: string;
35117
+ /** Type of the event. */
35118
+ event_type: 'space.created';
35119
+ /** Unique key for the space within the workspace. */
35120
+ space_key?: string | undefined;
35121
+ /** IDs of all devices attached to the space when it was created. */
35122
+ device_ids: string[];
35123
+ /** IDs of all ACS entrances attached to the space when it was created. */
35124
+ acs_entrance_ids: string[];
35125
+ } | {
35126
+ /** ID of the event. */
35127
+ event_id: string;
35128
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
35129
+ workspace_id: string;
35130
+ /** Date and time at which the event was created. */
35131
+ created_at: string;
35132
+ /** Date and time at which the event occurred. */
35133
+ occurred_at: string;
35134
+ /** ID of the affected space. */
35135
+ space_id: string;
35136
+ /** Type of the event. */
35137
+ event_type: 'space.deleted';
35138
+ /** Unique key for the space within the workspace. */
35139
+ space_key?: string | undefined;
35140
+ /** IDs of all devices attached to the space when it was deleted. */
35141
+ device_ids: string[];
35142
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
35143
+ acs_entrance_ids: string[];
35068
35144
  })[];
35069
35145
  };
35070
35146
  maxDuration: undefined;
@@ -53008,9 +53084,9 @@ export type Routes = {
53008
53084
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
53009
53085
  between?: (string | Date)[] | undefined;
53010
53086
  /** Type of the events that you want to list. */
53011
- 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed') | undefined;
53087
+ 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
53012
53088
  /** Types of the events that you want to list. */
53013
- event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed')[] | undefined;
53089
+ event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | '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' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
53014
53090
  /** Numerical limit on the number of events to return. */
53015
53091
  limit?: number;
53016
53092
  };
@@ -54962,6 +55038,44 @@ export type Routes = {
54962
55038
  device_ids: string[];
54963
55039
  /** IDs of all ACS entrances currently attached to the space. */
54964
55040
  acs_entrance_ids: string[];
55041
+ } | {
55042
+ /** ID of the event. */
55043
+ event_id: string;
55044
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
55045
+ workspace_id: string;
55046
+ /** Date and time at which the event was created. */
55047
+ created_at: string;
55048
+ /** Date and time at which the event occurred. */
55049
+ occurred_at: string;
55050
+ /** ID of the affected space. */
55051
+ space_id: string;
55052
+ /** Type of the event. */
55053
+ event_type: 'space.created';
55054
+ /** Unique key for the space within the workspace. */
55055
+ space_key?: string | undefined;
55056
+ /** IDs of all devices attached to the space when it was created. */
55057
+ device_ids: string[];
55058
+ /** IDs of all ACS entrances attached to the space when it was created. */
55059
+ acs_entrance_ids: string[];
55060
+ } | {
55061
+ /** ID of the event. */
55062
+ event_id: string;
55063
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
55064
+ workspace_id: string;
55065
+ /** Date and time at which the event was created. */
55066
+ created_at: string;
55067
+ /** Date and time at which the event occurred. */
55068
+ occurred_at: string;
55069
+ /** ID of the affected space. */
55070
+ space_id: string;
55071
+ /** Type of the event. */
55072
+ event_type: 'space.deleted';
55073
+ /** Unique key for the space within the workspace. */
55074
+ space_key?: string | undefined;
55075
+ /** IDs of all devices attached to the space when it was deleted. */
55076
+ device_ids: string[];
55077
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
55078
+ acs_entrance_ids: string[];
54965
55079
  })[];
54966
55080
  };
54967
55081
  maxDuration: undefined;
@@ -83707,6 +83821,44 @@ export type Routes = {
83707
83821
  device_ids: string[];
83708
83822
  /** IDs of all ACS entrances currently attached to the space. */
83709
83823
  acs_entrance_ids: string[];
83824
+ } | {
83825
+ /** ID of the event. */
83826
+ event_id: string;
83827
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
83828
+ workspace_id: string;
83829
+ /** Date and time at which the event was created. */
83830
+ created_at: string;
83831
+ /** Date and time at which the event occurred. */
83832
+ occurred_at: string;
83833
+ /** ID of the affected space. */
83834
+ space_id: string;
83835
+ /** Type of the event. */
83836
+ event_type: 'space.created';
83837
+ /** Unique key for the space within the workspace. */
83838
+ space_key?: string | undefined;
83839
+ /** IDs of all devices attached to the space when it was created. */
83840
+ device_ids: string[];
83841
+ /** IDs of all ACS entrances attached to the space when it was created. */
83842
+ acs_entrance_ids: string[];
83843
+ } | {
83844
+ /** ID of the event. */
83845
+ event_id: string;
83846
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
83847
+ workspace_id: string;
83848
+ /** Date and time at which the event was created. */
83849
+ created_at: string;
83850
+ /** Date and time at which the event occurred. */
83851
+ occurred_at: string;
83852
+ /** ID of the affected space. */
83853
+ space_id: string;
83854
+ /** Type of the event. */
83855
+ event_type: 'space.deleted';
83856
+ /** Unique key for the space within the workspace. */
83857
+ space_key?: string | undefined;
83858
+ /** IDs of all devices attached to the space when it was deleted. */
83859
+ device_ids: string[];
83860
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
83861
+ acs_entrance_ids: string[];
83710
83862
  })[] | undefined;
83711
83863
  instant_keys?: {
83712
83864
  /** ID of the Instant Key. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.696.0",
3
+ "version": "1.697.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -27,8 +27,54 @@ export const space_device_membership_changed_event = space_event.extend({
27
27
  A device was added or removed from a space.
28
28
  `)
29
29
 
30
+ export const space_created_event = space_event.extend({
31
+ event_type: z.literal('space.created').describe('Type of the event.'),
32
+ space_key: z
33
+ .string()
34
+ .optional()
35
+ .describe('Unique key for the space within the workspace.'),
36
+ device_ids: z
37
+ .array(z.string().uuid())
38
+ .describe('IDs of all devices attached to the space when it was created.'),
39
+ acs_entrance_ids: z
40
+ .array(z.string().uuid())
41
+ .describe(
42
+ 'IDs of all ACS entrances attached to the space when it was created.',
43
+ ),
44
+ }).describe(`
45
+ ---
46
+ route_path: /spaces
47
+ ---
48
+ A space was created.
49
+ `)
50
+
51
+ export const space_deleted_event = space_event.extend({
52
+ event_type: z.literal('space.deleted').describe('Type of the event.'),
53
+ space_key: z
54
+ .string()
55
+ .optional()
56
+ .describe('Unique key for the space within the workspace.'),
57
+ device_ids: z
58
+ .array(z.string().uuid())
59
+ .describe('IDs of all devices attached to the space when it was deleted.'),
60
+ acs_entrance_ids: z
61
+ .array(z.string().uuid())
62
+ .describe(
63
+ 'IDs of all ACS entrances currently attached to the space when it was deleted.',
64
+ ),
65
+ }).describe(`
66
+ ---
67
+ route_path: /spaces
68
+ ---
69
+ A space was deleted.
70
+ `)
71
+
30
72
  export type SpaceDeviceMembershipChangedEvent = z.infer<
31
73
  typeof space_device_membership_changed_event
32
74
  >
33
75
 
34
- export const space_events = [space_device_membership_changed_event] as const
76
+ export const space_events = [
77
+ space_device_membership_changed_event,
78
+ space_created_event,
79
+ space_deleted_event,
80
+ ] as const
@@ -19947,6 +19947,134 @@ export default {
19947
19947
  type: 'object',
19948
19948
  'x-route-path': '/spaces',
19949
19949
  },
19950
+ {
19951
+ description: 'A space was created.',
19952
+ properties: {
19953
+ acs_entrance_ids: {
19954
+ description:
19955
+ 'IDs of all ACS entrances attached to the space when it was created.',
19956
+ items: { format: 'uuid', type: 'string' },
19957
+ type: 'array',
19958
+ },
19959
+ created_at: {
19960
+ description: 'Date and time at which the event was created.',
19961
+ format: 'date-time',
19962
+ type: 'string',
19963
+ },
19964
+ device_ids: {
19965
+ description:
19966
+ 'IDs of all devices attached to the space when it was created.',
19967
+ items: { format: 'uuid', type: 'string' },
19968
+ type: 'array',
19969
+ },
19970
+ event_id: {
19971
+ description: 'ID of the event.',
19972
+ format: 'uuid',
19973
+ type: 'string',
19974
+ },
19975
+ event_type: {
19976
+ description: 'Type of the event.',
19977
+ enum: ['space.created'],
19978
+ type: 'string',
19979
+ },
19980
+ occurred_at: {
19981
+ description: 'Date and time at which the event occurred.',
19982
+ format: 'date-time',
19983
+ type: 'string',
19984
+ },
19985
+ space_id: {
19986
+ description: 'ID of the affected space.',
19987
+ format: 'uuid',
19988
+ type: 'string',
19989
+ },
19990
+ space_key: {
19991
+ description: 'Unique key for the space within the workspace.',
19992
+ type: 'string',
19993
+ },
19994
+ workspace_id: {
19995
+ description:
19996
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
19997
+ format: 'uuid',
19998
+ type: 'string',
19999
+ },
20000
+ },
20001
+ required: [
20002
+ 'event_id',
20003
+ 'workspace_id',
20004
+ 'created_at',
20005
+ 'occurred_at',
20006
+ 'space_id',
20007
+ 'event_type',
20008
+ 'device_ids',
20009
+ 'acs_entrance_ids',
20010
+ ],
20011
+ type: 'object',
20012
+ 'x-route-path': '/spaces',
20013
+ },
20014
+ {
20015
+ description: 'A space was deleted.',
20016
+ properties: {
20017
+ acs_entrance_ids: {
20018
+ description:
20019
+ 'IDs of all ACS entrances currently attached to the space when it was deleted.',
20020
+ items: { format: 'uuid', type: 'string' },
20021
+ type: 'array',
20022
+ },
20023
+ created_at: {
20024
+ description: 'Date and time at which the event was created.',
20025
+ format: 'date-time',
20026
+ type: 'string',
20027
+ },
20028
+ device_ids: {
20029
+ description:
20030
+ 'IDs of all devices attached to the space when it was deleted.',
20031
+ items: { format: 'uuid', type: 'string' },
20032
+ type: 'array',
20033
+ },
20034
+ event_id: {
20035
+ description: 'ID of the event.',
20036
+ format: 'uuid',
20037
+ type: 'string',
20038
+ },
20039
+ event_type: {
20040
+ description: 'Type of the event.',
20041
+ enum: ['space.deleted'],
20042
+ type: 'string',
20043
+ },
20044
+ occurred_at: {
20045
+ description: 'Date and time at which the event occurred.',
20046
+ format: 'date-time',
20047
+ type: 'string',
20048
+ },
20049
+ space_id: {
20050
+ description: 'ID of the affected space.',
20051
+ format: 'uuid',
20052
+ type: 'string',
20053
+ },
20054
+ space_key: {
20055
+ description: 'Unique key for the space within the workspace.',
20056
+ type: 'string',
20057
+ },
20058
+ workspace_id: {
20059
+ description:
20060
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
20061
+ format: 'uuid',
20062
+ type: 'string',
20063
+ },
20064
+ },
20065
+ required: [
20066
+ 'event_id',
20067
+ 'workspace_id',
20068
+ 'created_at',
20069
+ 'occurred_at',
20070
+ 'space_id',
20071
+ 'event_type',
20072
+ 'device_ids',
20073
+ 'acs_entrance_ids',
20074
+ ],
20075
+ type: 'object',
20076
+ 'x-route-path': '/spaces',
20077
+ },
19950
20078
  ],
19951
20079
  'x-route-path': '/events',
19952
20080
  },
@@ -47816,6 +47944,8 @@ export default {
47816
47944
  'enrollment_automation.deleted',
47817
47945
  'phone.deactivated',
47818
47946
  'space.device_membership_changed',
47947
+ 'space.created',
47948
+ 'space.deleted',
47819
47949
  ],
47820
47950
  type: 'string',
47821
47951
  },
@@ -47920,6 +48050,8 @@ export default {
47920
48050
  'enrollment_automation.deleted',
47921
48051
  'phone.deactivated',
47922
48052
  'space.device_membership_changed',
48053
+ 'space.created',
48054
+ 'space.deleted',
47923
48055
  ],
47924
48056
  type: 'string',
47925
48057
  },
@@ -48221,6 +48353,8 @@ export default {
48221
48353
  'enrollment_automation.deleted',
48222
48354
  'phone.deactivated',
48223
48355
  'space.device_membership_changed',
48356
+ 'space.created',
48357
+ 'space.deleted',
48224
48358
  ],
48225
48359
  type: 'string',
48226
48360
  },
@@ -48321,6 +48455,8 @@ export default {
48321
48455
  'enrollment_automation.deleted',
48322
48456
  'phone.deactivated',
48323
48457
  'space.device_membership_changed',
48458
+ 'space.created',
48459
+ 'space.deleted',
48324
48460
  ],
48325
48461
  type: 'string',
48326
48462
  },
@@ -55330,6 +55466,8 @@ export default {
55330
55466
  'enrollment_automation.deleted',
55331
55467
  'phone.deactivated',
55332
55468
  'space.device_membership_changed',
55469
+ 'space.created',
55470
+ 'space.deleted',
55333
55471
  ],
55334
55472
  type: 'string',
55335
55473
  },
@@ -55435,6 +55573,8 @@ export default {
55435
55573
  'enrollment_automation.deleted',
55436
55574
  'phone.deactivated',
55437
55575
  'space.device_membership_changed',
55576
+ 'space.created',
55577
+ 'space.deleted',
55438
55578
  ],
55439
55579
  type: 'string',
55440
55580
  },
@@ -55603,6 +55743,8 @@ export default {
55603
55743
  'enrollment_automation.deleted',
55604
55744
  'phone.deactivated',
55605
55745
  'space.device_membership_changed',
55746
+ 'space.created',
55747
+ 'space.deleted',
55606
55748
  ],
55607
55749
  type: 'string',
55608
55750
  },
@@ -55703,6 +55845,8 @@ export default {
55703
55845
  'enrollment_automation.deleted',
55704
55846
  'phone.deactivated',
55705
55847
  'space.device_membership_changed',
55848
+ 'space.created',
55849
+ 'space.deleted',
55706
55850
  ],
55707
55851
  type: 'string',
55708
55852
  },