@seamapi/types 1.562.0 → 1.563.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;
@@ -60394,6 +60486,13 @@ export type Routes = {
60394
60486
  subscribed_site_user_count: number;
60395
60487
  }[];
60396
60488
  };
60489
+ } | {
60490
+ /** Date and time at which Seam created the warning. */
60491
+ created_at: string;
60492
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
60493
+ message: string;
60494
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
60495
+ warning_code: 'account_reauthorization_requested';
60397
60496
  })[];
60398
60497
  /** 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
60498
  custom_metadata: {
@@ -84765,6 +84864,22 @@ export type Routes = {
84765
84864
  [x: string]: string | boolean;
84766
84865
  } | undefined;
84767
84866
  event_type: 'connected_account.completed_first_sync_after_reconnection';
84867
+ } | {
84868
+ /** ID of the event. */
84869
+ event_id: string;
84870
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
84871
+ workspace_id: string;
84872
+ /** Date and time at which the event was created. */
84873
+ created_at: string;
84874
+ /** Date and time at which the event occurred. */
84875
+ occurred_at: string;
84876
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
84877
+ connected_account_id: string;
84878
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
84879
+ connected_account_custom_metadata?: {
84880
+ [x: string]: string | boolean;
84881
+ } | undefined;
84882
+ event_type: 'connected_account.reauthorization_requested';
84768
84883
  } | {
84769
84884
  /** ID of the event. */
84770
84885
  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.563.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
@@ -9285,6 +9285,31 @@ export default {
9285
9285
  ],
9286
9286
  type: 'object',
9287
9287
  },
9288
+ {
9289
+ description:
9290
+ '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.',
9291
+ properties: {
9292
+ created_at: {
9293
+ description:
9294
+ 'Date and time at which Seam created the warning.',
9295
+ format: 'date-time',
9296
+ type: 'string',
9297
+ },
9298
+ message: {
9299
+ description:
9300
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
9301
+ type: 'string',
9302
+ },
9303
+ warning_code: {
9304
+ description:
9305
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
9306
+ enum: ['account_reauthorization_requested'],
9307
+ type: 'string',
9308
+ },
9309
+ },
9310
+ required: ['created_at', 'message', 'warning_code'],
9311
+ type: 'object',
9312
+ },
9288
9313
  ],
9289
9314
  },
9290
9315
  type: 'array',
@@ -16278,6 +16303,61 @@ export default {
16278
16303
  type: 'object',
16279
16304
  'x-route-path': '/connected_accounts',
16280
16305
  },
16306
+ {
16307
+ description:
16308
+ '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.',
16309
+ properties: {
16310
+ connected_account_custom_metadata: {
16311
+ additionalProperties: {
16312
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
16313
+ },
16314
+ description:
16315
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
16316
+ type: 'object',
16317
+ },
16318
+ connected_account_id: {
16319
+ description:
16320
+ 'ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
16321
+ format: 'uuid',
16322
+ type: 'string',
16323
+ },
16324
+ created_at: {
16325
+ description: 'Date and time at which the event was created.',
16326
+ format: 'date-time',
16327
+ type: 'string',
16328
+ },
16329
+ event_id: {
16330
+ description: 'ID of the event.',
16331
+ format: 'uuid',
16332
+ type: 'string',
16333
+ },
16334
+ event_type: {
16335
+ enum: ['connected_account.reauthorization_requested'],
16336
+ type: 'string',
16337
+ },
16338
+ occurred_at: {
16339
+ description: 'Date and time at which the event occurred.',
16340
+ format: 'date-time',
16341
+ type: 'string',
16342
+ },
16343
+ workspace_id: {
16344
+ description:
16345
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
16346
+ format: 'uuid',
16347
+ type: 'string',
16348
+ },
16349
+ },
16350
+ required: [
16351
+ 'event_id',
16352
+ 'workspace_id',
16353
+ 'created_at',
16354
+ 'occurred_at',
16355
+ 'connected_account_id',
16356
+ 'event_type',
16357
+ ],
16358
+ type: 'object',
16359
+ 'x-route-path': '/connected_accounts',
16360
+ },
16281
16361
  {
16282
16362
  description:
16283
16363
  'A lock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) succeeded.',
@@ -43475,6 +43555,7 @@ export default {
43475
43555
  'connected_account.completed_first_sync',
43476
43556
  'connected_account.deleted',
43477
43557
  'connected_account.completed_first_sync_after_reconnection',
43558
+ 'connected_account.reauthorization_requested',
43478
43559
  'action_attempt.lock_door.succeeded',
43479
43560
  'action_attempt.lock_door.failed',
43480
43561
  'action_attempt.unlock_door.succeeded',
@@ -43577,6 +43658,7 @@ export default {
43577
43658
  'connected_account.completed_first_sync',
43578
43659
  'connected_account.deleted',
43579
43660
  'connected_account.completed_first_sync_after_reconnection',
43661
+ 'connected_account.reauthorization_requested',
43580
43662
  'action_attempt.lock_door.succeeded',
43581
43663
  'action_attempt.lock_door.failed',
43582
43664
  'action_attempt.unlock_door.succeeded',
@@ -43834,6 +43916,7 @@ export default {
43834
43916
  'connected_account.completed_first_sync',
43835
43917
  'connected_account.deleted',
43836
43918
  'connected_account.completed_first_sync_after_reconnection',
43919
+ 'connected_account.reauthorization_requested',
43837
43920
  'action_attempt.lock_door.succeeded',
43838
43921
  'action_attempt.lock_door.failed',
43839
43922
  'action_attempt.unlock_door.succeeded',
@@ -43932,6 +44015,7 @@ export default {
43932
44015
  'connected_account.completed_first_sync',
43933
44016
  'connected_account.deleted',
43934
44017
  'connected_account.completed_first_sync_after_reconnection',
44018
+ 'connected_account.reauthorization_requested',
43935
44019
  'action_attempt.lock_door.succeeded',
43936
44020
  'action_attempt.lock_door.failed',
43937
44021
  'action_attempt.unlock_door.succeeded',
@@ -49107,6 +49191,7 @@ export default {
49107
49191
  'connected_account.completed_first_sync',
49108
49192
  'connected_account.deleted',
49109
49193
  'connected_account.completed_first_sync_after_reconnection',
49194
+ 'connected_account.reauthorization_requested',
49110
49195
  'action_attempt.lock_door.succeeded',
49111
49196
  'action_attempt.lock_door.failed',
49112
49197
  'action_attempt.unlock_door.succeeded',
@@ -49210,6 +49295,7 @@ export default {
49210
49295
  'connected_account.completed_first_sync',
49211
49296
  'connected_account.deleted',
49212
49297
  'connected_account.completed_first_sync_after_reconnection',
49298
+ 'connected_account.reauthorization_requested',
49213
49299
  'action_attempt.lock_door.succeeded',
49214
49300
  'action_attempt.lock_door.failed',
49215
49301
  'action_attempt.unlock_door.succeeded',
@@ -49376,6 +49462,7 @@ export default {
49376
49462
  'connected_account.completed_first_sync',
49377
49463
  'connected_account.deleted',
49378
49464
  'connected_account.completed_first_sync_after_reconnection',
49465
+ 'connected_account.reauthorization_requested',
49379
49466
  'action_attempt.lock_door.succeeded',
49380
49467
  'action_attempt.lock_door.failed',
49381
49468
  'action_attempt.unlock_door.succeeded',
@@ -49474,6 +49561,7 @@ export default {
49474
49561
  'connected_account.completed_first_sync',
49475
49562
  'connected_account.deleted',
49476
49563
  'connected_account.completed_first_sync_after_reconnection',
49564
+ 'connected_account.reauthorization_requested',
49477
49565
  'action_attempt.lock_door.succeeded',
49478
49566
  'action_attempt.lock_door.failed',
49479
49567
  'action_attempt.unlock_door.succeeded',