@seamapi/types 1.552.0 → 1.554.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.
- package/dist/connect.cjs +159 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +727 -52
- package/dist/index.cjs +159 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +208 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +66 -0
- package/lib/seam/connect/models/events/access-grants.js +21 -0
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +65 -0
- package/lib/seam/connect/models/events/access-methods.js +12 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/openapi.d.ts +327 -0
- package/lib/seam/connect/openapi.js +133 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +184 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-grants.ts +27 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +15 -0
- package/src/lib/seam/connect/openapi.ts +138 -0
- package/src/lib/seam/connect/route-types.ts +198 -0
|
@@ -17811,6 +17811,24 @@ export type Routes = {
|
|
|
17811
17811
|
event_type: 'access_grant.access_to_door_lost';
|
|
17812
17812
|
/** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
|
|
17813
17813
|
acs_entrance_id: string;
|
|
17814
|
+
} | {
|
|
17815
|
+
/** ID of the event. */
|
|
17816
|
+
event_id: string;
|
|
17817
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
17818
|
+
workspace_id: string;
|
|
17819
|
+
/** Date and time at which the event was created. */
|
|
17820
|
+
created_at: string;
|
|
17821
|
+
/** Date and time at which the event occurred. */
|
|
17822
|
+
occurred_at: string;
|
|
17823
|
+
/** ID of the affected Access Grant. */
|
|
17824
|
+
access_grant_id: string;
|
|
17825
|
+
event_type: 'access_grant.access_times_changed';
|
|
17826
|
+
/** Key of the affected Access Grant (if present). */
|
|
17827
|
+
access_grant_key?: string | undefined;
|
|
17828
|
+
/** The new start time for the access grant. */
|
|
17829
|
+
starts_at?: string | undefined;
|
|
17830
|
+
/** The new end time for the access grant. */
|
|
17831
|
+
ends_at?: string | undefined;
|
|
17814
17832
|
} | {
|
|
17815
17833
|
/** ID of the event. */
|
|
17816
17834
|
event_id: string;
|
|
@@ -17899,6 +17917,24 @@ export type Routes = {
|
|
|
17899
17917
|
code?: string | undefined;
|
|
17900
17918
|
/** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */
|
|
17901
17919
|
is_backup_code?: boolean | undefined;
|
|
17920
|
+
} | {
|
|
17921
|
+
/** ID of the event. */
|
|
17922
|
+
event_id: string;
|
|
17923
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
17924
|
+
workspace_id: string;
|
|
17925
|
+
/** Date and time at which the event was created. */
|
|
17926
|
+
created_at: string;
|
|
17927
|
+
/** Date and time at which the event occurred. */
|
|
17928
|
+
occurred_at: string;
|
|
17929
|
+
/** ID of the affected access method. */
|
|
17930
|
+
access_method_id: string;
|
|
17931
|
+
/** IDs of the access grants associated with this access method. */
|
|
17932
|
+
access_grant_ids: string[];
|
|
17933
|
+
/** Keys of the access grants associated with this access method (if present). */
|
|
17934
|
+
access_grant_keys?: string[] | undefined;
|
|
17935
|
+
event_type: 'access_method.code_changed';
|
|
17936
|
+
/** The new PIN code for code access methods (only present when mode is 'code'). */
|
|
17937
|
+
code: string;
|
|
17902
17938
|
} | {
|
|
17903
17939
|
/** ID of the event. */
|
|
17904
17940
|
event_id: string;
|
|
@@ -35771,6 +35807,24 @@ export type Routes = {
|
|
|
35771
35807
|
event_type: 'access_grant.access_to_door_lost';
|
|
35772
35808
|
/** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
|
|
35773
35809
|
acs_entrance_id: string;
|
|
35810
|
+
} | {
|
|
35811
|
+
/** ID of the event. */
|
|
35812
|
+
event_id: string;
|
|
35813
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
35814
|
+
workspace_id: string;
|
|
35815
|
+
/** Date and time at which the event was created. */
|
|
35816
|
+
created_at: string;
|
|
35817
|
+
/** Date and time at which the event occurred. */
|
|
35818
|
+
occurred_at: string;
|
|
35819
|
+
/** ID of the affected Access Grant. */
|
|
35820
|
+
access_grant_id: string;
|
|
35821
|
+
event_type: 'access_grant.access_times_changed';
|
|
35822
|
+
/** Key of the affected Access Grant (if present). */
|
|
35823
|
+
access_grant_key?: string | undefined;
|
|
35824
|
+
/** The new start time for the access grant. */
|
|
35825
|
+
starts_at?: string | undefined;
|
|
35826
|
+
/** The new end time for the access grant. */
|
|
35827
|
+
ends_at?: string | undefined;
|
|
35774
35828
|
} | {
|
|
35775
35829
|
/** ID of the event. */
|
|
35776
35830
|
event_id: string;
|
|
@@ -35859,6 +35913,24 @@ export type Routes = {
|
|
|
35859
35913
|
code?: string | undefined;
|
|
35860
35914
|
/** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */
|
|
35861
35915
|
is_backup_code?: boolean | undefined;
|
|
35916
|
+
} | {
|
|
35917
|
+
/** ID of the event. */
|
|
35918
|
+
event_id: string;
|
|
35919
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
35920
|
+
workspace_id: string;
|
|
35921
|
+
/** Date and time at which the event was created. */
|
|
35922
|
+
created_at: string;
|
|
35923
|
+
/** Date and time at which the event occurred. */
|
|
35924
|
+
occurred_at: string;
|
|
35925
|
+
/** ID of the affected access method. */
|
|
35926
|
+
access_method_id: string;
|
|
35927
|
+
/** IDs of the access grants associated with this access method. */
|
|
35928
|
+
access_grant_ids: string[];
|
|
35929
|
+
/** Keys of the access grants associated with this access method (if present). */
|
|
35930
|
+
access_grant_keys?: string[] | undefined;
|
|
35931
|
+
event_type: 'access_method.code_changed';
|
|
35932
|
+
/** The new PIN code for code access methods (only present when mode is 'code'). */
|
|
35933
|
+
code: string;
|
|
35862
35934
|
} | {
|
|
35863
35935
|
/** ID of the event. */
|
|
35864
35936
|
event_id: string;
|
|
@@ -37184,9 +37256,9 @@ export type Routes = {
|
|
|
37184
37256
|
/** IDs of the access codes for which you want to list events. */
|
|
37185
37257
|
access_code_ids?: string[] | undefined;
|
|
37186
37258
|
/** Type of the events that you want to list. */
|
|
37187
|
-
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_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;
|
|
37259
|
+
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' | 'access_method.code_changed' | '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;
|
|
37188
37260
|
/** Types of the events that you want to list. */
|
|
37189
|
-
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_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;
|
|
37261
|
+
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' | 'access_method.code_changed' | '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;
|
|
37190
37262
|
/** ID of the connected account for which you want to list events. */
|
|
37191
37263
|
connected_account_id?: string | undefined;
|
|
37192
37264
|
/** ID of the Connect Webview for which you want to list events. */
|
|
@@ -37677,6 +37749,24 @@ export type Routes = {
|
|
|
37677
37749
|
event_type: 'access_grant.access_to_door_lost';
|
|
37678
37750
|
/** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
|
|
37679
37751
|
acs_entrance_id: string;
|
|
37752
|
+
} | {
|
|
37753
|
+
/** ID of the event. */
|
|
37754
|
+
event_id: string;
|
|
37755
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
37756
|
+
workspace_id: string;
|
|
37757
|
+
/** Date and time at which the event was created. */
|
|
37758
|
+
created_at: string;
|
|
37759
|
+
/** Date and time at which the event occurred. */
|
|
37760
|
+
occurred_at: string;
|
|
37761
|
+
/** ID of the affected Access Grant. */
|
|
37762
|
+
access_grant_id: string;
|
|
37763
|
+
event_type: 'access_grant.access_times_changed';
|
|
37764
|
+
/** Key of the affected Access Grant (if present). */
|
|
37765
|
+
access_grant_key?: string | undefined;
|
|
37766
|
+
/** The new start time for the access grant. */
|
|
37767
|
+
starts_at?: string | undefined;
|
|
37768
|
+
/** The new end time for the access grant. */
|
|
37769
|
+
ends_at?: string | undefined;
|
|
37680
37770
|
} | {
|
|
37681
37771
|
/** ID of the event. */
|
|
37682
37772
|
event_id: string;
|
|
@@ -37765,6 +37855,24 @@ export type Routes = {
|
|
|
37765
37855
|
code?: string | undefined;
|
|
37766
37856
|
/** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */
|
|
37767
37857
|
is_backup_code?: boolean | undefined;
|
|
37858
|
+
} | {
|
|
37859
|
+
/** ID of the event. */
|
|
37860
|
+
event_id: string;
|
|
37861
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
37862
|
+
workspace_id: string;
|
|
37863
|
+
/** Date and time at which the event was created. */
|
|
37864
|
+
created_at: string;
|
|
37865
|
+
/** Date and time at which the event occurred. */
|
|
37866
|
+
occurred_at: string;
|
|
37867
|
+
/** ID of the affected access method. */
|
|
37868
|
+
access_method_id: string;
|
|
37869
|
+
/** IDs of the access grants associated with this access method. */
|
|
37870
|
+
access_grant_ids: string[];
|
|
37871
|
+
/** Keys of the access grants associated with this access method (if present). */
|
|
37872
|
+
access_grant_keys?: string[] | undefined;
|
|
37873
|
+
event_type: 'access_method.code_changed';
|
|
37874
|
+
/** The new PIN code for code access methods (only present when mode is 'code'). */
|
|
37875
|
+
code: string;
|
|
37768
37876
|
} | {
|
|
37769
37877
|
/** ID of the event. */
|
|
37770
37878
|
event_id: string;
|
|
@@ -56259,9 +56367,9 @@ export type Routes = {
|
|
|
56259
56367
|
/** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
|
|
56260
56368
|
between?: (string | Date)[] | undefined;
|
|
56261
56369
|
/** Type of the events that you want to list. */
|
|
56262
|
-
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_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;
|
|
56370
|
+
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' | 'access_method.code_changed' | '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;
|
|
56263
56371
|
/** Types of the events that you want to list. */
|
|
56264
|
-
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_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;
|
|
56372
|
+
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' | 'access_method.code_changed' | '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;
|
|
56265
56373
|
/** Numerical limit on the number of events to return. */
|
|
56266
56374
|
limit?: number;
|
|
56267
56375
|
};
|
|
@@ -56746,6 +56854,24 @@ export type Routes = {
|
|
|
56746
56854
|
event_type: 'access_grant.access_to_door_lost';
|
|
56747
56855
|
/** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
|
|
56748
56856
|
acs_entrance_id: string;
|
|
56857
|
+
} | {
|
|
56858
|
+
/** ID of the event. */
|
|
56859
|
+
event_id: string;
|
|
56860
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
56861
|
+
workspace_id: string;
|
|
56862
|
+
/** Date and time at which the event was created. */
|
|
56863
|
+
created_at: string;
|
|
56864
|
+
/** Date and time at which the event occurred. */
|
|
56865
|
+
occurred_at: string;
|
|
56866
|
+
/** ID of the affected Access Grant. */
|
|
56867
|
+
access_grant_id: string;
|
|
56868
|
+
event_type: 'access_grant.access_times_changed';
|
|
56869
|
+
/** Key of the affected Access Grant (if present). */
|
|
56870
|
+
access_grant_key?: string | undefined;
|
|
56871
|
+
/** The new start time for the access grant. */
|
|
56872
|
+
starts_at?: string | undefined;
|
|
56873
|
+
/** The new end time for the access grant. */
|
|
56874
|
+
ends_at?: string | undefined;
|
|
56749
56875
|
} | {
|
|
56750
56876
|
/** ID of the event. */
|
|
56751
56877
|
event_id: string;
|
|
@@ -56834,6 +56960,24 @@ export type Routes = {
|
|
|
56834
56960
|
code?: string | undefined;
|
|
56835
56961
|
/** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */
|
|
56836
56962
|
is_backup_code?: boolean | undefined;
|
|
56963
|
+
} | {
|
|
56964
|
+
/** ID of the event. */
|
|
56965
|
+
event_id: string;
|
|
56966
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
56967
|
+
workspace_id: string;
|
|
56968
|
+
/** Date and time at which the event was created. */
|
|
56969
|
+
created_at: string;
|
|
56970
|
+
/** Date and time at which the event occurred. */
|
|
56971
|
+
occurred_at: string;
|
|
56972
|
+
/** ID of the affected access method. */
|
|
56973
|
+
access_method_id: string;
|
|
56974
|
+
/** IDs of the access grants associated with this access method. */
|
|
56975
|
+
access_grant_ids: string[];
|
|
56976
|
+
/** Keys of the access grants associated with this access method (if present). */
|
|
56977
|
+
access_grant_keys?: string[] | undefined;
|
|
56978
|
+
event_type: 'access_method.code_changed';
|
|
56979
|
+
/** The new PIN code for code access methods (only present when mode is 'code'). */
|
|
56980
|
+
code: string;
|
|
56837
56981
|
} | {
|
|
56838
56982
|
/** ID of the event. */
|
|
56839
56983
|
event_id: string;
|
|
@@ -84383,6 +84527,24 @@ export type Routes = {
|
|
|
84383
84527
|
event_type: 'access_grant.access_to_door_lost';
|
|
84384
84528
|
/** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
|
|
84385
84529
|
acs_entrance_id: string;
|
|
84530
|
+
} | {
|
|
84531
|
+
/** ID of the event. */
|
|
84532
|
+
event_id: string;
|
|
84533
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
84534
|
+
workspace_id: string;
|
|
84535
|
+
/** Date and time at which the event was created. */
|
|
84536
|
+
created_at: string;
|
|
84537
|
+
/** Date and time at which the event occurred. */
|
|
84538
|
+
occurred_at: string;
|
|
84539
|
+
/** ID of the affected Access Grant. */
|
|
84540
|
+
access_grant_id: string;
|
|
84541
|
+
event_type: 'access_grant.access_times_changed';
|
|
84542
|
+
/** Key of the affected Access Grant (if present). */
|
|
84543
|
+
access_grant_key?: string | undefined;
|
|
84544
|
+
/** The new start time for the access grant. */
|
|
84545
|
+
starts_at?: string | undefined;
|
|
84546
|
+
/** The new end time for the access grant. */
|
|
84547
|
+
ends_at?: string | undefined;
|
|
84386
84548
|
} | {
|
|
84387
84549
|
/** ID of the event. */
|
|
84388
84550
|
event_id: string;
|
|
@@ -84471,6 +84633,24 @@ export type Routes = {
|
|
|
84471
84633
|
code?: string | undefined;
|
|
84472
84634
|
/** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */
|
|
84473
84635
|
is_backup_code?: boolean | undefined;
|
|
84636
|
+
} | {
|
|
84637
|
+
/** ID of the event. */
|
|
84638
|
+
event_id: string;
|
|
84639
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
84640
|
+
workspace_id: string;
|
|
84641
|
+
/** Date and time at which the event was created. */
|
|
84642
|
+
created_at: string;
|
|
84643
|
+
/** Date and time at which the event occurred. */
|
|
84644
|
+
occurred_at: string;
|
|
84645
|
+
/** ID of the affected access method. */
|
|
84646
|
+
access_method_id: string;
|
|
84647
|
+
/** IDs of the access grants associated with this access method. */
|
|
84648
|
+
access_grant_ids: string[];
|
|
84649
|
+
/** Keys of the access grants associated with this access method (if present). */
|
|
84650
|
+
access_grant_keys?: string[] | undefined;
|
|
84651
|
+
event_type: 'access_method.code_changed';
|
|
84652
|
+
/** The new PIN code for code access methods (only present when mode is 'code'). */
|
|
84653
|
+
code: string;
|
|
84474
84654
|
} | {
|
|
84475
84655
|
/** ID of the event. */
|
|
84476
84656
|
event_id: string;
|
package/package.json
CHANGED
|
@@ -79,10 +79,37 @@ export type AccessGrantAccessToDoorLostEvent = z.infer<
|
|
|
79
79
|
typeof access_grant_access_to_door_lost_event
|
|
80
80
|
>
|
|
81
81
|
|
|
82
|
+
export const access_grant_access_times_changed_event =
|
|
83
|
+
access_grant_event.extend({
|
|
84
|
+
event_type: z.literal('access_grant.access_times_changed'),
|
|
85
|
+
access_grant_key: z
|
|
86
|
+
.string()
|
|
87
|
+
.optional()
|
|
88
|
+
.describe('Key of the affected Access Grant (if present).'),
|
|
89
|
+
starts_at: z
|
|
90
|
+
.string()
|
|
91
|
+
.optional()
|
|
92
|
+
.describe('The new start time for the access grant.'),
|
|
93
|
+
ends_at: z
|
|
94
|
+
.string()
|
|
95
|
+
.optional()
|
|
96
|
+
.describe('The new end time for the access grant.'),
|
|
97
|
+
}).describe(`
|
|
98
|
+
---
|
|
99
|
+
route_path: /access_grants
|
|
100
|
+
---
|
|
101
|
+
An Access Grant's start or end time was changed.
|
|
102
|
+
`)
|
|
103
|
+
|
|
104
|
+
export type AccessGrantAccessTimesChangedEvent = z.infer<
|
|
105
|
+
typeof access_grant_access_times_changed_event
|
|
106
|
+
>
|
|
107
|
+
|
|
82
108
|
export const access_grant_events = [
|
|
83
109
|
access_grant_created_event,
|
|
84
110
|
access_grant_deleted_event,
|
|
85
111
|
access_grant_access_granted_to_all_doors_event,
|
|
86
112
|
access_grant_access_granted_to_door_event,
|
|
87
113
|
access_grant_access_to_door_lost_event,
|
|
114
|
+
access_grant_access_times_changed_event,
|
|
88
115
|
] as const
|
|
@@ -94,6 +94,20 @@ export const access_method_reissued_event = access_method_event.extend({
|
|
|
94
94
|
An access method was reissued due to an Access Grant update.
|
|
95
95
|
`)
|
|
96
96
|
|
|
97
|
+
export const access_method_code_changed_event = access_method_event.extend({
|
|
98
|
+
event_type: z.literal('access_method.code_changed'),
|
|
99
|
+
code: z
|
|
100
|
+
.string()
|
|
101
|
+
.describe(
|
|
102
|
+
"The new PIN code for code access methods (only present when mode is 'code').",
|
|
103
|
+
),
|
|
104
|
+
}).describe(`
|
|
105
|
+
---
|
|
106
|
+
route_path: /access_methods
|
|
107
|
+
---
|
|
108
|
+
An access method's PIN code was changed.
|
|
109
|
+
`)
|
|
110
|
+
|
|
97
111
|
export type AccessMethodRevokedEvent = z.infer<
|
|
98
112
|
typeof access_method_revoked_event
|
|
99
113
|
>
|
|
@@ -104,4 +118,5 @@ export const access_method_events = [
|
|
|
104
118
|
access_method_card_encoding_required_event,
|
|
105
119
|
access_method_deleted_event,
|
|
106
120
|
access_method_reissued_event,
|
|
121
|
+
access_method_code_changed_event,
|
|
107
122
|
] as const
|