@seamapi/types 1.562.0 → 1.564.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.
@@ -11637,6 +11637,13 @@ export type Routes = {
11637
11637
  subscribed_site_user_count: number;
11638
11638
  }[];
11639
11639
  };
11640
+ } | {
11641
+ /** Date and time at which Seam created the warning. */
11642
+ created_at: string;
11643
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11644
+ message: string;
11645
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11646
+ warning_code: 'account_reauthorization_requested';
11640
11647
  })[];
11641
11648
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
11642
11649
  custom_metadata: {
@@ -18259,6 +18266,22 @@ export type Routes = {
18259
18266
  [x: string]: string | boolean;
18260
18267
  } | undefined;
18261
18268
  event_type: 'connected_account.completed_first_sync_after_reconnection';
18269
+ } | {
18270
+ /** ID of the event. */
18271
+ event_id: string;
18272
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
18273
+ workspace_id: string;
18274
+ /** Date and time at which the event was created. */
18275
+ created_at: string;
18276
+ /** Date and time at which the event occurred. */
18277
+ occurred_at: string;
18278
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
18279
+ connected_account_id: string;
18280
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
18281
+ connected_account_custom_metadata?: {
18282
+ [x: string]: string | boolean;
18283
+ } | undefined;
18284
+ event_type: 'connected_account.reauthorization_requested';
18262
18285
  } | {
18263
18286
  /** ID of the event. */
18264
18287
  event_id: string;
@@ -30825,6 +30848,13 @@ export type Routes = {
30825
30848
  subscribed_site_user_count: number;
30826
30849
  }[];
30827
30850
  };
30851
+ } | {
30852
+ /** Date and time at which Seam created the warning. */
30853
+ created_at: string;
30854
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30855
+ message: string;
30856
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
30857
+ warning_code: 'account_reauthorization_requested';
30828
30858
  })[];
30829
30859
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
30830
30860
  custom_metadata: {
@@ -30969,6 +30999,13 @@ export type Routes = {
30969
30999
  subscribed_site_user_count: number;
30970
31000
  }[];
30971
31001
  };
31002
+ } | {
31003
+ /** Date and time at which Seam created the warning. */
31004
+ created_at: string;
31005
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31006
+ message: string;
31007
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31008
+ warning_code: 'account_reauthorization_requested';
30972
31009
  })[];
30973
31010
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
30974
31011
  custom_metadata: {
@@ -31131,6 +31168,13 @@ export type Routes = {
31131
31168
  subscribed_site_user_count: number;
31132
31169
  }[];
31133
31170
  };
31171
+ } | {
31172
+ /** Date and time at which Seam created the warning. */
31173
+ created_at: string;
31174
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31175
+ message: string;
31176
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31177
+ warning_code: 'account_reauthorization_requested';
31134
31178
  })[];
31135
31179
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
31136
31180
  custom_metadata: {
@@ -36165,6 +36209,22 @@ export type Routes = {
36165
36209
  [x: string]: string | boolean;
36166
36210
  } | undefined;
36167
36211
  event_type: 'connected_account.completed_first_sync_after_reconnection';
36212
+ } | {
36213
+ /** ID of the event. */
36214
+ event_id: string;
36215
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
36216
+ workspace_id: string;
36217
+ /** Date and time at which the event was created. */
36218
+ created_at: string;
36219
+ /** Date and time at which the event occurred. */
36220
+ occurred_at: string;
36221
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
36222
+ connected_account_id: string;
36223
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
36224
+ connected_account_custom_metadata?: {
36225
+ [x: string]: string | boolean;
36226
+ } | undefined;
36227
+ event_type: 'connected_account.reauthorization_requested';
36168
36228
  } | {
36169
36229
  /** ID of the event. */
36170
36230
  event_id: string;
@@ -37144,9 +37204,9 @@ export type Routes = {
37144
37204
  /** IDs of the access codes for which you want to list events. */
37145
37205
  access_code_ids?: string[] | undefined;
37146
37206
  /** Type of the events that you want to list. */
37147
- 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' | '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;
37207
+ 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;
37148
37208
  /** Types of the events that you want to list. */
37149
- 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' | '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;
37209
+ 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;
37150
37210
  /** ID of the connected account for which you want to list events. */
37151
37211
  connected_account_id?: string | undefined;
37152
37212
  /** ID of the Connect Webview for which you want to list events. */
@@ -38089,6 +38149,22 @@ export type Routes = {
38089
38149
  [x: string]: string | boolean;
38090
38150
  } | undefined;
38091
38151
  event_type: 'connected_account.completed_first_sync_after_reconnection';
38152
+ } | {
38153
+ /** ID of the event. */
38154
+ event_id: string;
38155
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
38156
+ workspace_id: string;
38157
+ /** Date and time at which the event was created. */
38158
+ created_at: string;
38159
+ /** Date and time at which the event occurred. */
38160
+ occurred_at: string;
38161
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
38162
+ connected_account_id: string;
38163
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
38164
+ connected_account_custom_metadata?: {
38165
+ [x: string]: string | boolean;
38166
+ } | undefined;
38167
+ event_type: 'connected_account.reauthorization_requested';
38092
38168
  } | {
38093
38169
  /** ID of the event. */
38094
38170
  event_id: string;
@@ -56171,9 +56247,9 @@ export type Routes = {
56171
56247
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
56172
56248
  between?: (string | Date)[] | undefined;
56173
56249
  /** Type of the events that you want to list. */
56174
- 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' | '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;
56250
+ 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;
56175
56251
  /** Types of the events that you want to list. */
56176
- 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' | '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;
56252
+ 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;
56177
56253
  /** Numerical limit on the number of events to return. */
56178
56254
  limit?: number;
56179
56255
  };
@@ -57110,6 +57186,22 @@ export type Routes = {
57110
57186
  [x: string]: string | boolean;
57111
57187
  } | undefined;
57112
57188
  event_type: 'connected_account.completed_first_sync_after_reconnection';
57189
+ } | {
57190
+ /** ID of the event. */
57191
+ event_id: string;
57192
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
57193
+ workspace_id: string;
57194
+ /** Date and time at which the event was created. */
57195
+ created_at: string;
57196
+ /** Date and time at which the event occurred. */
57197
+ occurred_at: string;
57198
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
57199
+ connected_account_id: string;
57200
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
57201
+ connected_account_custom_metadata?: {
57202
+ [x: string]: string | boolean;
57203
+ } | undefined;
57204
+ event_type: 'connected_account.reauthorization_requested';
57113
57205
  } | {
57114
57206
  /** ID of the event. */
57115
57207
  event_id: string;
@@ -60167,6 +60259,7 @@ export type Routes = {
60167
60259
  can_simulate_hub_connection?: boolean | undefined;
60168
60260
  can_simulate_hub_disconnection?: boolean | undefined;
60169
60261
  can_simulate_paid_subscription?: boolean | undefined;
60262
+ space_ids: string[];
60170
60263
  }[] | undefined;
60171
60264
  acs_entrances?: {
60172
60265
  /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
@@ -60286,6 +60379,7 @@ export type Routes = {
60286
60379
  can_unlock_with_card?: boolean | undefined;
60287
60380
  /** Indicates whether the ACS entrance can be unlocked with pin codes. */
60288
60381
  can_unlock_with_code?: boolean | undefined;
60382
+ space_ids: string[];
60289
60383
  }[] | undefined;
60290
60384
  connected_accounts?: {
60291
60385
  /** ID of the connected account. */
@@ -60394,6 +60488,13 @@ export type Routes = {
60394
60488
  subscribed_site_user_count: number;
60395
60489
  }[];
60396
60490
  };
60491
+ } | {
60492
+ /** Date and time at which Seam created the warning. */
60493
+ created_at: string;
60494
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
60495
+ message: string;
60496
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
60497
+ warning_code: 'account_reauthorization_requested';
60397
60498
  })[];
60398
60499
  /** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
60399
60500
  custom_metadata: {
@@ -84765,6 +84866,22 @@ export type Routes = {
84765
84866
  [x: string]: string | boolean;
84766
84867
  } | undefined;
84767
84868
  event_type: 'connected_account.completed_first_sync_after_reconnection';
84869
+ } | {
84870
+ /** ID of the event. */
84871
+ event_id: string;
84872
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
84873
+ workspace_id: string;
84874
+ /** Date and time at which the event was created. */
84875
+ created_at: string;
84876
+ /** Date and time at which the event occurred. */
84877
+ occurred_at: string;
84878
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
84879
+ connected_account_id: string;
84880
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
84881
+ connected_account_custom_metadata?: {
84882
+ [x: string]: string | boolean;
84883
+ } | undefined;
84884
+ event_type: 'connected_account.reauthorization_requested';
84768
84885
  } | {
84769
84886
  /** ID of the event. */
84770
84887
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.562.0",
3
+ "version": "1.564.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -36,8 +36,18 @@ export const spaces_batch = z
36
36
  .object({
37
37
  batch_type: z.literal('spaces'),
38
38
  spaces: space.array().optional(),
39
- devices: device.array().optional(),
40
- acs_entrances: acs_entrance.array().optional(),
39
+ devices: device
40
+ .extend({
41
+ space_ids: z.array(z.string().uuid()),
42
+ })
43
+ .array()
44
+ .optional(),
45
+ acs_entrances: acs_entrance
46
+ .extend({
47
+ space_ids: z.array(z.string().uuid()),
48
+ })
49
+ .array()
50
+ .optional(),
41
51
  connected_accounts: connected_account.array().optional(),
42
52
  acs_systems: acs_system.array().optional(),
43
53
  })
@@ -212,11 +212,22 @@ const salto_ks_subscription_limit_almost_reached =
212
212
  'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.',
213
213
  )
214
214
 
215
+ const account_reauthorization_requested = common_connected_account_warning
216
+ .extend({
217
+ warning_code: z
218
+ .literal('account_reauthorization_requested')
219
+ .describe(warning_code_description),
220
+ })
221
+ .describe(
222
+ 'Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.',
223
+ )
224
+
215
225
  const connected_account_warning = z
216
226
  .discriminatedUnion('warning_code', [
217
227
  scheduled_maintenance_window,
218
228
  unknown_issue_with_connected_account,
219
229
  salto_ks_subscription_limit_almost_reached,
230
+ account_reauthorization_requested,
220
231
  ])
221
232
  .describe('Warning associated with the connected account.')
222
233
 
@@ -229,6 +240,9 @@ const _connected_account_warning_map = z.object({
229
240
  .optional(),
230
241
  salto_ks_subscription_limit_almost_reached:
231
242
  salto_ks_subscription_limit_almost_reached.nullable().optional(),
243
+ account_reauthorization_requested: account_reauthorization_requested
244
+ .nullable()
245
+ .optional(),
232
246
  })
233
247
 
234
248
  export type ConnectedAccountWarningMap = z.infer<
@@ -134,6 +134,20 @@ export type ConnectedAccountCompletedFirstSyncAfterReconnectionEvent = z.infer<
134
134
  typeof connected_account_completed_first_sync_after_reconnection_event
135
135
  >
136
136
 
137
+ export const connected_account_reauthorization_requested_event =
138
+ connected_account_event.extend({
139
+ event_type: z.literal('connected_account.reauthorization_requested'),
140
+ }).describe(`
141
+ ---
142
+ route_path: /connected_accounts
143
+ ---
144
+ A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
145
+ `)
146
+
147
+ export type ConnectedAccountReauthorizationRequestedEvent = z.infer<
148
+ typeof connected_account_reauthorization_requested_event
149
+ >
150
+
137
151
  export const connected_account_events = [
138
152
  connected_account_connected_event,
139
153
  connected_account_created_event,
@@ -142,4 +156,5 @@ export const connected_account_events = [
142
156
  connected_account_completed_first_sync_event,
143
157
  connected_account_deleted_event,
144
158
  connected_account_completed_first_sync_after_reconnection_event,
159
+ connected_account_reauthorization_requested_event,
145
160
  ] as const