@seamapi/types 1.696.0 → 1.698.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;
@@ -52911,6 +52987,18 @@ export type Routes = {
52911
52987
  api_key: string;
52912
52988
  /** Optional base API URL (defaults to https://api.smoobu.com/api) */
52913
52989
  base_api_url?: string | undefined;
52990
+ } | {
52991
+ /** Zonal API key for X-API-Key header (required) */
52992
+ api_key: string;
52993
+ /** Zonal ID used as 'token' in login request body (required) */
52994
+ id: string;
52995
+ /** Zonal Secret for login request body (required) */
52996
+ secret: string;
52997
+ /** Optional hotel ID for single-property mode */
52998
+ hotel_id?: string | undefined;
52999
+ /** Use staging API instead of production */
53000
+ is_staging?: boolean;
53001
+ auth_token?: string | undefined;
52914
53002
  };
52915
53003
  };
52916
53004
  commonParams: {};
@@ -53008,9 +53096,9 @@ export type Routes = {
53008
53096
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
53009
53097
  between?: (string | Date)[] | undefined;
53010
53098
  /** 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;
53099
+ 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
53100
  /** 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;
53101
+ 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
53102
  /** Numerical limit on the number of events to return. */
53015
53103
  limit?: number;
53016
53104
  };
@@ -54962,6 +55050,44 @@ export type Routes = {
54962
55050
  device_ids: string[];
54963
55051
  /** IDs of all ACS entrances currently attached to the space. */
54964
55052
  acs_entrance_ids: string[];
55053
+ } | {
55054
+ /** ID of the event. */
55055
+ event_id: string;
55056
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
55057
+ workspace_id: string;
55058
+ /** Date and time at which the event was created. */
55059
+ created_at: string;
55060
+ /** Date and time at which the event occurred. */
55061
+ occurred_at: string;
55062
+ /** ID of the affected space. */
55063
+ space_id: string;
55064
+ /** Type of the event. */
55065
+ event_type: 'space.created';
55066
+ /** Unique key for the space within the workspace. */
55067
+ space_key?: string | undefined;
55068
+ /** IDs of all devices attached to the space when it was created. */
55069
+ device_ids: string[];
55070
+ /** IDs of all ACS entrances attached to the space when it was created. */
55071
+ acs_entrance_ids: string[];
55072
+ } | {
55073
+ /** ID of the event. */
55074
+ event_id: string;
55075
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
55076
+ workspace_id: string;
55077
+ /** Date and time at which the event was created. */
55078
+ created_at: string;
55079
+ /** Date and time at which the event occurred. */
55080
+ occurred_at: string;
55081
+ /** ID of the affected space. */
55082
+ space_id: string;
55083
+ /** Type of the event. */
55084
+ event_type: 'space.deleted';
55085
+ /** Unique key for the space within the workspace. */
55086
+ space_key?: string | undefined;
55087
+ /** IDs of all devices attached to the space when it was deleted. */
55088
+ device_ids: string[];
55089
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
55090
+ acs_entrance_ids: string[];
54965
55091
  })[];
54966
55092
  };
54967
55093
  maxDuration: undefined;
@@ -83707,6 +83833,44 @@ export type Routes = {
83707
83833
  device_ids: string[];
83708
83834
  /** IDs of all ACS entrances currently attached to the space. */
83709
83835
  acs_entrance_ids: string[];
83836
+ } | {
83837
+ /** ID of the event. */
83838
+ event_id: string;
83839
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
83840
+ workspace_id: string;
83841
+ /** Date and time at which the event was created. */
83842
+ created_at: string;
83843
+ /** Date and time at which the event occurred. */
83844
+ occurred_at: string;
83845
+ /** ID of the affected space. */
83846
+ space_id: string;
83847
+ /** Type of the event. */
83848
+ event_type: 'space.created';
83849
+ /** Unique key for the space within the workspace. */
83850
+ space_key?: string | undefined;
83851
+ /** IDs of all devices attached to the space when it was created. */
83852
+ device_ids: string[];
83853
+ /** IDs of all ACS entrances attached to the space when it was created. */
83854
+ acs_entrance_ids: string[];
83855
+ } | {
83856
+ /** ID of the event. */
83857
+ event_id: string;
83858
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
83859
+ workspace_id: string;
83860
+ /** Date and time at which the event was created. */
83861
+ created_at: string;
83862
+ /** Date and time at which the event occurred. */
83863
+ occurred_at: string;
83864
+ /** ID of the affected space. */
83865
+ space_id: string;
83866
+ /** Type of the event. */
83867
+ event_type: 'space.deleted';
83868
+ /** Unique key for the space within the workspace. */
83869
+ space_key?: string | undefined;
83870
+ /** IDs of all devices attached to the space when it was deleted. */
83871
+ device_ids: string[];
83872
+ /** IDs of all ACS entrances currently attached to the space when it was deleted. */
83873
+ acs_entrance_ids: string[];
83710
83874
  })[] | undefined;
83711
83875
  instant_keys?: {
83712
83876
  /** 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.698.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
  },
@@ -54915,6 +55051,42 @@ export default {
54915
55051
  required: ['api_key'],
54916
55052
  type: 'object',
54917
55053
  },
55054
+ {
55055
+ properties: {
55056
+ api_key: {
55057
+ description:
55058
+ 'Zonal API key for X-API-Key header (required)',
55059
+ minLength: 1,
55060
+ type: 'string',
55061
+ },
55062
+ auth_token: { type: 'string' },
55063
+ hotel_id: {
55064
+ description:
55065
+ 'Optional hotel ID for single-property mode',
55066
+ type: 'string',
55067
+ },
55068
+ id: {
55069
+ description:
55070
+ "Zonal ID used as 'token' in login request body (required)",
55071
+ minLength: 1,
55072
+ type: 'string',
55073
+ },
55074
+ is_staging: {
55075
+ default: false,
55076
+ description:
55077
+ 'Use staging API instead of production',
55078
+ type: 'boolean',
55079
+ },
55080
+ secret: {
55081
+ description:
55082
+ 'Zonal Secret for login request body (required)',
55083
+ minLength: 1,
55084
+ type: 'string',
55085
+ },
55086
+ },
55087
+ required: ['api_key', 'id', 'secret'],
55088
+ type: 'object',
55089
+ },
54918
55090
  ],
54919
55091
  },
54920
55092
  connector_id: {
@@ -55330,6 +55502,8 @@ export default {
55330
55502
  'enrollment_automation.deleted',
55331
55503
  'phone.deactivated',
55332
55504
  'space.device_membership_changed',
55505
+ 'space.created',
55506
+ 'space.deleted',
55333
55507
  ],
55334
55508
  type: 'string',
55335
55509
  },
@@ -55435,6 +55609,8 @@ export default {
55435
55609
  'enrollment_automation.deleted',
55436
55610
  'phone.deactivated',
55437
55611
  'space.device_membership_changed',
55612
+ 'space.created',
55613
+ 'space.deleted',
55438
55614
  ],
55439
55615
  type: 'string',
55440
55616
  },
@@ -55603,6 +55779,8 @@ export default {
55603
55779
  'enrollment_automation.deleted',
55604
55780
  'phone.deactivated',
55605
55781
  'space.device_membership_changed',
55782
+ 'space.created',
55783
+ 'space.deleted',
55606
55784
  ],
55607
55785
  type: 'string',
55608
55786
  },
@@ -55703,6 +55881,8 @@ export default {
55703
55881
  'enrollment_automation.deleted',
55704
55882
  'phone.deactivated',
55705
55883
  'space.device_membership_changed',
55884
+ 'space.created',
55885
+ 'space.deleted',
55706
55886
  ],
55707
55887
  type: 'string',
55708
55888
  },