@seamapi/types 1.620.0 → 1.622.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.
@@ -19588,6 +19588,25 @@ export type Routes = {
19588
19588
  [x: string]: string | boolean;
19589
19589
  } | undefined;
19590
19590
  event_type: 'phone.deactivated';
19591
+ } | {
19592
+ /** ID of the event. */
19593
+ event_id: string;
19594
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
19595
+ workspace_id: string;
19596
+ /** Date and time at which the event was created. */
19597
+ created_at: string;
19598
+ /** Date and time at which the event occurred. */
19599
+ occurred_at: string;
19600
+ /** ID of the affected space. */
19601
+ space_id: string;
19602
+ /** Type of the event. */
19603
+ event_type: 'space.device_membership_changed';
19604
+ /** Unique key for the space within the workspace. */
19605
+ space_key?: string | undefined;
19606
+ /** IDs of all devices currently attached to the space. */
19607
+ device_ids: string[];
19608
+ /** IDs of all ACS entrances currently attached to the space. */
19609
+ acs_entrance_ids: string[];
19591
19610
  })[] | undefined;
19592
19611
  instant_keys?: {
19593
19612
  /** ID of the Instant Key. */
@@ -32208,6 +32227,8 @@ export type Routes = {
32208
32227
  booking_keys?: string[] | undefined;
32209
32228
  /** List of access grant keys to delete. */
32210
32229
  access_grant_keys?: string[] | undefined;
32230
+ /** List of staff member keys to delete. */
32231
+ staff_member_keys?: string[] | undefined;
32211
32232
  };
32212
32233
  formData: {};
32213
32234
  jsonResponse: {};
@@ -37922,6 +37943,25 @@ export type Routes = {
37922
37943
  [x: string]: string | boolean;
37923
37944
  } | undefined;
37924
37945
  event_type: 'phone.deactivated';
37946
+ } | {
37947
+ /** ID of the event. */
37948
+ event_id: string;
37949
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
37950
+ workspace_id: string;
37951
+ /** Date and time at which the event was created. */
37952
+ created_at: string;
37953
+ /** Date and time at which the event occurred. */
37954
+ occurred_at: string;
37955
+ /** ID of the affected space. */
37956
+ space_id: string;
37957
+ /** Type of the event. */
37958
+ event_type: 'space.device_membership_changed';
37959
+ /** Unique key for the space within the workspace. */
37960
+ space_key?: string | undefined;
37961
+ /** IDs of all devices currently attached to the space. */
37962
+ device_ids: string[];
37963
+ /** IDs of all ACS entrances currently attached to the space. */
37964
+ acs_entrance_ids: string[];
37925
37965
  }) | undefined;
37926
37966
  message?: string | undefined;
37927
37967
  };
@@ -37953,9 +37993,9 @@ export type Routes = {
37953
37993
  /** IDs of the access codes for which you want to list events. */
37954
37994
  access_code_ids?: string[] | undefined;
37955
37995
  /** Type of the events that you want to list. */
37956
- 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') | undefined;
37996
+ 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;
37957
37997
  /** Types of the events that you want to list. */
37958
- 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')[] | undefined;
37998
+ 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;
37959
37999
  /** ID of the connected account for which you want to list events. */
37960
38000
  connected_account_id?: string | undefined;
37961
38001
  /** ID of the Connect Webview for which you want to list events. */
@@ -39862,6 +39902,25 @@ export type Routes = {
39862
39902
  [x: string]: string | boolean;
39863
39903
  } | undefined;
39864
39904
  event_type: 'phone.deactivated';
39905
+ } | {
39906
+ /** ID of the event. */
39907
+ event_id: string;
39908
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
39909
+ workspace_id: string;
39910
+ /** Date and time at which the event was created. */
39911
+ created_at: string;
39912
+ /** Date and time at which the event occurred. */
39913
+ occurred_at: string;
39914
+ /** ID of the affected space. */
39915
+ space_id: string;
39916
+ /** Type of the event. */
39917
+ event_type: 'space.device_membership_changed';
39918
+ /** Unique key for the space within the workspace. */
39919
+ space_key?: string | undefined;
39920
+ /** IDs of all devices currently attached to the space. */
39921
+ device_ids: string[];
39922
+ /** IDs of all ACS entrances currently attached to the space. */
39923
+ acs_entrance_ids: string[];
39865
39924
  })[];
39866
39925
  };
39867
39926
  };
@@ -57114,6 +57173,14 @@ export type Routes = {
57114
57173
  rule: 'user_identity_name_updated';
57115
57174
  config?: {} | undefined;
57116
57175
  } | undefined;
57176
+ staff_member_name_updated?: {
57177
+ rule: 'staff_member_name_updated';
57178
+ config?: {} | undefined;
57179
+ } | undefined;
57180
+ staff_member_created?: {
57181
+ rule: 'staff_member_created';
57182
+ config: {};
57183
+ } | undefined;
57117
57184
  } | undefined;
57118
57185
  climate_rules?: {
57119
57186
  rules: {
@@ -57169,6 +57236,14 @@ export type Routes = {
57169
57236
  rule: 'user_identity_name_updated';
57170
57237
  config?: {} | undefined;
57171
57238
  } | undefined;
57239
+ staff_member_name_updated?: {
57240
+ rule: 'staff_member_name_updated';
57241
+ config?: {} | undefined;
57242
+ } | undefined;
57243
+ staff_member_created?: {
57244
+ rule: 'staff_member_created';
57245
+ config: {};
57246
+ } | undefined;
57172
57247
  } | undefined;
57173
57248
  /** Climate automation rules configuration. */
57174
57249
  climate_rules?: {
@@ -57263,9 +57338,9 @@ export type Routes = {
57263
57338
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
57264
57339
  between?: (string | Date)[] | undefined;
57265
57340
  /** Type of the events that you want to list. */
57266
- 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') | undefined;
57341
+ 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;
57267
57342
  /** Types of the events that you want to list. */
57268
- 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')[] | undefined;
57343
+ 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;
57269
57344
  /** Numerical limit on the number of events to return. */
57270
57345
  limit?: number;
57271
57346
  };
@@ -59166,6 +59241,25 @@ export type Routes = {
59166
59241
  [x: string]: string | boolean;
59167
59242
  } | undefined;
59168
59243
  event_type: 'phone.deactivated';
59244
+ } | {
59245
+ /** ID of the event. */
59246
+ event_id: string;
59247
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
59248
+ workspace_id: string;
59249
+ /** Date and time at which the event was created. */
59250
+ created_at: string;
59251
+ /** Date and time at which the event occurred. */
59252
+ occurred_at: string;
59253
+ /** ID of the affected space. */
59254
+ space_id: string;
59255
+ /** Type of the event. */
59256
+ event_type: 'space.device_membership_changed';
59257
+ /** Unique key for the space within the workspace. */
59258
+ space_key?: string | undefined;
59259
+ /** IDs of all devices currently attached to the space. */
59260
+ device_ids: string[];
59261
+ /** IDs of all ACS entrances currently attached to the space. */
59262
+ acs_entrance_ids: string[];
59169
59263
  })[];
59170
59264
  };
59171
59265
  };
@@ -87465,6 +87559,25 @@ export type Routes = {
87465
87559
  [x: string]: string | boolean;
87466
87560
  } | undefined;
87467
87561
  event_type: 'phone.deactivated';
87562
+ } | {
87563
+ /** ID of the event. */
87564
+ event_id: string;
87565
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
87566
+ workspace_id: string;
87567
+ /** Date and time at which the event was created. */
87568
+ created_at: string;
87569
+ /** Date and time at which the event occurred. */
87570
+ occurred_at: string;
87571
+ /** ID of the affected space. */
87572
+ space_id: string;
87573
+ /** Type of the event. */
87574
+ event_type: 'space.device_membership_changed';
87575
+ /** Unique key for the space within the workspace. */
87576
+ space_key?: string | undefined;
87577
+ /** IDs of all devices currently attached to the space. */
87578
+ device_ids: string[];
87579
+ /** IDs of all ACS entrances currently attached to the space. */
87580
+ acs_entrance_ids: string[];
87468
87581
  })[] | undefined;
87469
87582
  instant_keys?: {
87470
87583
  /** ID of the Instant Key. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.620.0",
3
+ "version": "1.622.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -80,6 +80,10 @@ export const customer_delete_data = z.object({
80
80
  .array(z.string())
81
81
  .optional()
82
82
  .describe('List of access grant keys to delete.'),
83
+ staff_member_keys: z
84
+ .array(z.string())
85
+ .optional()
86
+ .describe('List of staff member keys to delete.'),
83
87
  })
84
88
 
85
89
  export type CustomerDeleteData = z.infer<typeof customer_delete_data>
@@ -11,6 +11,7 @@ import { connected_account_events } from './connected-accounts.js'
11
11
  import { device_events } from './devices.js'
12
12
  import { enrollment_automation_events } from './enrollment-automations.js'
13
13
  import { phone_events } from './phones.js'
14
+ import { space_events } from './spaces.js'
14
15
 
15
16
  export const seam_event = z.discriminatedUnion('event_type', [
16
17
  ...access_code_events,
@@ -24,6 +25,7 @@ export const seam_event = z.discriminatedUnion('event_type', [
24
25
  ...device_events,
25
26
  ...enrollment_automation_events,
26
27
  ...phone_events,
28
+ ...space_events,
27
29
  ]).describe(`
28
30
  ---
29
31
  route_path: /events
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod'
2
+
3
+ import { common_event } from './common.js'
4
+
5
+ const space_event = common_event.extend({
6
+ space_id: z.string().uuid().describe('ID of the affected space.'),
7
+ })
8
+
9
+ export const space_device_membership_changed_event = space_event.extend({
10
+ event_type: z
11
+ .literal('space.device_membership_changed')
12
+ .describe('Type of the event.'),
13
+ space_key: z
14
+ .string()
15
+ .optional()
16
+ .describe('Unique key for the space within the workspace.'),
17
+ device_ids: z
18
+ .array(z.string().uuid())
19
+ .describe('IDs of all devices currently attached to the space.'),
20
+ acs_entrance_ids: z
21
+ .array(z.string().uuid())
22
+ .describe('IDs of all ACS entrances currently attached to the space.'),
23
+ }).describe(`
24
+ ---
25
+ route_path: /spaces
26
+ ---
27
+ A device was added or removed from a space.
28
+ `)
29
+
30
+ export type SpaceDeviceMembershipChangedEvent = z.infer<
31
+ typeof space_device_membership_changed_event
32
+ >
33
+
34
+ export const space_events = [space_device_membership_changed_event] as const
@@ -19466,6 +19466,70 @@ export default {
19466
19466
  type: 'object',
19467
19467
  'x-route-path': '/phones',
19468
19468
  },
19469
+ {
19470
+ description: 'A device was added or removed from a space.',
19471
+ properties: {
19472
+ acs_entrance_ids: {
19473
+ description:
19474
+ 'IDs of all ACS entrances currently attached to the space.',
19475
+ items: { format: 'uuid', type: 'string' },
19476
+ type: 'array',
19477
+ },
19478
+ created_at: {
19479
+ description: 'Date and time at which the event was created.',
19480
+ format: 'date-time',
19481
+ type: 'string',
19482
+ },
19483
+ device_ids: {
19484
+ description:
19485
+ 'IDs of all devices currently attached to the space.',
19486
+ items: { format: 'uuid', type: 'string' },
19487
+ type: 'array',
19488
+ },
19489
+ event_id: {
19490
+ description: 'ID of the event.',
19491
+ format: 'uuid',
19492
+ type: 'string',
19493
+ },
19494
+ event_type: {
19495
+ description: 'Type of the event.',
19496
+ enum: ['space.device_membership_changed'],
19497
+ type: 'string',
19498
+ },
19499
+ occurred_at: {
19500
+ description: 'Date and time at which the event occurred.',
19501
+ format: 'date-time',
19502
+ type: 'string',
19503
+ },
19504
+ space_id: {
19505
+ description: 'ID of the affected space.',
19506
+ format: 'uuid',
19507
+ type: 'string',
19508
+ },
19509
+ space_key: {
19510
+ description: 'Unique key for the space within the workspace.',
19511
+ type: 'string',
19512
+ },
19513
+ workspace_id: {
19514
+ description:
19515
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
19516
+ format: 'uuid',
19517
+ type: 'string',
19518
+ },
19519
+ },
19520
+ required: [
19521
+ 'event_id',
19522
+ 'workspace_id',
19523
+ 'created_at',
19524
+ 'occurred_at',
19525
+ 'space_id',
19526
+ 'event_type',
19527
+ 'device_ids',
19528
+ 'acs_entrance_ids',
19529
+ ],
19530
+ type: 'object',
19531
+ 'x-route-path': '/spaces',
19532
+ },
19469
19533
  ],
19470
19534
  'x-route-path': '/events',
19471
19535
  },
@@ -42353,6 +42417,15 @@ export default {
42353
42417
  type: 'array',
42354
42418
  },
42355
42419
  },
42420
+ {
42421
+ in: 'query',
42422
+ name: 'staff_member_keys',
42423
+ schema: {
42424
+ description: 'List of staff member keys to delete.',
42425
+ items: { type: 'string' },
42426
+ type: 'array',
42427
+ },
42428
+ },
42356
42429
  ],
42357
42430
  responses: {
42358
42431
  200: {
@@ -42462,6 +42535,11 @@ export default {
42462
42535
  items: { type: 'string' },
42463
42536
  type: 'array',
42464
42537
  },
42538
+ staff_member_keys: {
42539
+ description: 'List of staff member keys to delete.',
42540
+ items: { type: 'string' },
42541
+ type: 'array',
42542
+ },
42465
42543
  tenant_keys: {
42466
42544
  description: 'List of tenant keys to delete.',
42467
42545
  items: { type: 'string' },
@@ -46409,6 +46487,7 @@ export default {
46409
46487
  'device.name_changed',
46410
46488
  'enrollment_automation.deleted',
46411
46489
  'phone.deactivated',
46490
+ 'space.device_membership_changed',
46412
46491
  ],
46413
46492
  type: 'string',
46414
46493
  },
@@ -46512,6 +46591,7 @@ export default {
46512
46591
  'device.name_changed',
46513
46592
  'enrollment_automation.deleted',
46514
46593
  'phone.deactivated',
46594
+ 'space.device_membership_changed',
46515
46595
  ],
46516
46596
  type: 'string',
46517
46597
  },
@@ -46770,6 +46850,7 @@ export default {
46770
46850
  'device.name_changed',
46771
46851
  'enrollment_automation.deleted',
46772
46852
  'phone.deactivated',
46853
+ 'space.device_membership_changed',
46773
46854
  ],
46774
46855
  type: 'string',
46775
46856
  },
@@ -46869,6 +46950,7 @@ export default {
46869
46950
  'device.name_changed',
46870
46951
  'enrollment_automation.deleted',
46871
46952
  'phone.deactivated',
46953
+ 'space.device_membership_changed',
46872
46954
  ],
46873
46955
  type: 'string',
46874
46956
  },
@@ -51601,6 +51683,32 @@ export default {
51601
51683
  required: ['rule'],
51602
51684
  type: 'object',
51603
51685
  },
51686
+ staff_member_created: {
51687
+ properties: {
51688
+ config: {
51689
+ $ref: '#/components/schemas/access_code',
51690
+ },
51691
+ rule: {
51692
+ enum: ['staff_member_created'],
51693
+ type: 'string',
51694
+ },
51695
+ },
51696
+ required: ['rule', 'config'],
51697
+ type: 'object',
51698
+ },
51699
+ staff_member_name_updated: {
51700
+ properties: {
51701
+ config: {
51702
+ $ref: '#/components/schemas/access_code',
51703
+ },
51704
+ rule: {
51705
+ enum: ['staff_member_name_updated'],
51706
+ type: 'string',
51707
+ },
51708
+ },
51709
+ required: ['rule'],
51710
+ type: 'object',
51711
+ },
51604
51712
  user_identity_name_updated: {
51605
51713
  properties: {
51606
51714
  config: {
@@ -51791,6 +51899,32 @@ export default {
51791
51899
  required: ['rule'],
51792
51900
  type: 'object',
51793
51901
  },
51902
+ staff_member_created: {
51903
+ properties: {
51904
+ config: {
51905
+ $ref: '#/components/schemas/access_code',
51906
+ },
51907
+ rule: {
51908
+ enum: ['staff_member_created'],
51909
+ type: 'string',
51910
+ },
51911
+ },
51912
+ required: ['rule', 'config'],
51913
+ type: 'object',
51914
+ },
51915
+ staff_member_name_updated: {
51916
+ properties: {
51917
+ config: {
51918
+ $ref: '#/components/schemas/access_code',
51919
+ },
51920
+ rule: {
51921
+ enum: ['staff_member_name_updated'],
51922
+ type: 'string',
51923
+ },
51924
+ },
51925
+ required: ['rule'],
51926
+ type: 'object',
51927
+ },
51794
51928
  user_identity_name_updated: {
51795
51929
  properties: {
51796
51930
  config: {
@@ -51977,6 +52111,28 @@ export default {
51977
52111
  required: ['rule'],
51978
52112
  type: 'object',
51979
52113
  },
52114
+ staff_member_created: {
52115
+ properties: {
52116
+ config: { properties: {}, type: 'object' },
52117
+ rule: {
52118
+ enum: ['staff_member_created'],
52119
+ type: 'string',
52120
+ },
52121
+ },
52122
+ required: ['rule', 'config'],
52123
+ type: 'object',
52124
+ },
52125
+ staff_member_name_updated: {
52126
+ properties: {
52127
+ config: { properties: {}, type: 'object' },
52128
+ rule: {
52129
+ enum: ['staff_member_name_updated'],
52130
+ type: 'string',
52131
+ },
52132
+ },
52133
+ required: ['rule'],
52134
+ type: 'object',
52135
+ },
51980
52136
  user_identity_name_updated: {
51981
52137
  properties: {
51982
52138
  config: { properties: {}, type: 'object' },
@@ -52169,6 +52325,28 @@ export default {
52169
52325
  required: ['rule'],
52170
52326
  type: 'object',
52171
52327
  },
52328
+ staff_member_created: {
52329
+ properties: {
52330
+ config: { properties: {}, type: 'object' },
52331
+ rule: {
52332
+ enum: ['staff_member_created'],
52333
+ type: 'string',
52334
+ },
52335
+ },
52336
+ required: ['rule', 'config'],
52337
+ type: 'object',
52338
+ },
52339
+ staff_member_name_updated: {
52340
+ properties: {
52341
+ config: { properties: {}, type: 'object' },
52342
+ rule: {
52343
+ enum: ['staff_member_name_updated'],
52344
+ type: 'string',
52345
+ },
52346
+ },
52347
+ required: ['rule'],
52348
+ type: 'object',
52349
+ },
52172
52350
  user_identity_name_updated: {
52173
52351
  properties: {
52174
52352
  config: { properties: {}, type: 'object' },
@@ -52593,6 +52771,7 @@ export default {
52593
52771
  'device.name_changed',
52594
52772
  'enrollment_automation.deleted',
52595
52773
  'phone.deactivated',
52774
+ 'space.device_membership_changed',
52596
52775
  ],
52597
52776
  type: 'string',
52598
52777
  },
@@ -52697,6 +52876,7 @@ export default {
52697
52876
  'device.name_changed',
52698
52877
  'enrollment_automation.deleted',
52699
52878
  'phone.deactivated',
52879
+ 'space.device_membership_changed',
52700
52880
  ],
52701
52881
  type: 'string',
52702
52882
  },
@@ -52864,6 +53044,7 @@ export default {
52864
53044
  'device.name_changed',
52865
53045
  'enrollment_automation.deleted',
52866
53046
  'phone.deactivated',
53047
+ 'space.device_membership_changed',
52867
53048
  ],
52868
53049
  type: 'string',
52869
53050
  },
@@ -52963,6 +53144,7 @@ export default {
52963
53144
  'device.name_changed',
52964
53145
  'enrollment_automation.deleted',
52965
53146
  'phone.deactivated',
53147
+ 'space.device_membership_changed',
52966
53148
  ],
52967
53149
  type: 'string',
52968
53150
  },