@seamapi/http 2.20.0 → 2.22.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/lib/resources/access-code.d.ts +2 -17
- package/lib/resources/device.d.ts +15 -0
- package/lib/resources/event.d.ts +4 -0
- package/lib/resources/unmanaged-access-code.d.ts +2 -17
- package/lib/resources/unmanaged-device.d.ts +15 -0
- package/lib/routes/events/events.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
- package/src/lib/resources/access-code.ts +2 -19
- package/src/lib/resources/device.ts +18 -0
- package/src/lib/resources/event.ts +4 -0
- package/src/lib/resources/unmanaged-access-code.ts +2 -19
- package/src/lib/resources/unmanaged-device.ts +18 -0
- package/src/lib/routes/events/events.ts +2 -4
- package/src/lib/version.ts +1 -1
|
@@ -277,7 +277,7 @@ export type AccessCode = {
|
|
|
277
277
|
*/
|
|
278
278
|
message: string;
|
|
279
279
|
} /**
|
|
280
|
-
* Seam was unable to apply this access code's
|
|
280
|
+
* Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
281
281
|
*/ | {
|
|
282
282
|
/**
|
|
283
283
|
* Date and time at which Seam created the error.
|
|
@@ -286,7 +286,7 @@ export type AccessCode = {
|
|
|
286
286
|
/**
|
|
287
287
|
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
288
288
|
*/
|
|
289
|
-
error_code: '
|
|
289
|
+
error_code: 'failed_to_update';
|
|
290
290
|
/**
|
|
291
291
|
* Indicates that this is an access code error.
|
|
292
292
|
*/
|
|
@@ -932,21 +932,6 @@ export type AccessCode = {
|
|
|
932
932
|
*/
|
|
933
933
|
warning_code: 'delay_in_issuing';
|
|
934
934
|
} /**
|
|
935
|
-
* Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied.
|
|
936
|
-
*/ | {
|
|
937
|
-
/**
|
|
938
|
-
* Date and time at which Seam created the warning.
|
|
939
|
-
*/
|
|
940
|
-
created_at?: string | undefined;
|
|
941
|
-
/**
|
|
942
|
-
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
943
|
-
*/
|
|
944
|
-
message: string;
|
|
945
|
-
/**
|
|
946
|
-
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
947
|
-
*/
|
|
948
|
-
warning_code: 'delay_in_applying_mutations';
|
|
949
|
-
} /**
|
|
950
935
|
* Third-party integration detected that may cause access codes to fail.
|
|
951
936
|
*/ | {
|
|
952
937
|
/**
|
|
@@ -2781,6 +2781,21 @@ export type Device = {
|
|
|
2781
2781
|
*/
|
|
2782
2782
|
warning_code: 'accessory_keypad_setup_required';
|
|
2783
2783
|
} /**
|
|
2784
|
+
* Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.
|
|
2785
|
+
*/ | {
|
|
2786
|
+
/**
|
|
2787
|
+
* Date and time at which Seam created the warning.
|
|
2788
|
+
*/
|
|
2789
|
+
created_at: string;
|
|
2790
|
+
/**
|
|
2791
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
2792
|
+
*/
|
|
2793
|
+
message: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
2796
|
+
*/
|
|
2797
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
2798
|
+
} /**
|
|
2784
2799
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
2785
2800
|
*/ | {
|
|
2786
2801
|
/**
|
package/lib/resources/event.d.ts
CHANGED
|
@@ -3790,6 +3790,10 @@ export type SeamEvent = {
|
|
|
3790
3790
|
* Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.
|
|
3791
3791
|
*/
|
|
3792
3792
|
battery_level: number;
|
|
3793
|
+
/**
|
|
3794
|
+
* Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery.
|
|
3795
|
+
*/
|
|
3796
|
+
battery_source?: 'lock' | 'accessory_keypad' | undefined;
|
|
3793
3797
|
/**
|
|
3794
3798
|
* Custom metadata of the connected account, present when connected_account_id is provided.
|
|
3795
3799
|
*/
|
|
@@ -283,7 +283,7 @@ export type UnmanagedAccessCode = {
|
|
|
283
283
|
*/
|
|
284
284
|
message: string;
|
|
285
285
|
} /**
|
|
286
|
-
* Seam was unable to apply this access code's
|
|
286
|
+
* Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
287
287
|
*/ | {
|
|
288
288
|
/**
|
|
289
289
|
* Date and time at which Seam created the error.
|
|
@@ -292,7 +292,7 @@ export type UnmanagedAccessCode = {
|
|
|
292
292
|
/**
|
|
293
293
|
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
294
294
|
*/
|
|
295
|
-
error_code: '
|
|
295
|
+
error_code: 'failed_to_update';
|
|
296
296
|
/**
|
|
297
297
|
* Indicates that this is an access code error.
|
|
298
298
|
*/
|
|
@@ -744,21 +744,6 @@ export type UnmanagedAccessCode = {
|
|
|
744
744
|
*/
|
|
745
745
|
warning_code: 'delay_in_issuing';
|
|
746
746
|
} /**
|
|
747
|
-
* Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied.
|
|
748
|
-
*/ | {
|
|
749
|
-
/**
|
|
750
|
-
* Date and time at which Seam created the warning.
|
|
751
|
-
*/
|
|
752
|
-
created_at?: string | undefined;
|
|
753
|
-
/**
|
|
754
|
-
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
755
|
-
*/
|
|
756
|
-
message: string;
|
|
757
|
-
/**
|
|
758
|
-
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
759
|
-
*/
|
|
760
|
-
warning_code: 'delay_in_applying_mutations';
|
|
761
|
-
} /**
|
|
762
747
|
* Third-party integration detected that may cause access codes to fail.
|
|
763
748
|
*/ | {
|
|
764
749
|
/**
|
|
@@ -910,6 +910,21 @@ export type UnmanagedDevice = {
|
|
|
910
910
|
*/
|
|
911
911
|
warning_code: 'accessory_keypad_setup_required';
|
|
912
912
|
} /**
|
|
913
|
+
* Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.
|
|
914
|
+
*/ | {
|
|
915
|
+
/**
|
|
916
|
+
* Date and time at which Seam created the warning.
|
|
917
|
+
*/
|
|
918
|
+
created_at: string;
|
|
919
|
+
/**
|
|
920
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
921
|
+
*/
|
|
922
|
+
message: string;
|
|
923
|
+
/**
|
|
924
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
925
|
+
*/
|
|
926
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
927
|
+
} /**
|
|
913
928
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
914
929
|
*/ | {
|
|
915
930
|
/**
|
|
@@ -132,11 +132,11 @@ export type EventsListParameters = RequireAtLeastOne<{
|
|
|
132
132
|
/**
|
|
133
133
|
* Type of the events that you want to list.
|
|
134
134
|
*/
|
|
135
|
-
event_type?: 'access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_changed' | 'access_code.mutations_requested' | '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.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' | 'access_code.
|
|
135
|
+
event_type?: 'access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_changed' | 'access_code.mutations_requested' | '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.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' | 'access_code.failed_to_update' | 'access_code.failed_to_expire' | '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_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'access_method.delay_in_issuing' | 'access_method.failed_to_issue' | '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' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted' | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* Types of the events that you want to list.
|
|
138
138
|
*/
|
|
139
|
-
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_changed' | 'access_code.mutations_requested' | '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.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' | 'access_code.
|
|
139
|
+
event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_changed' | 'access_code.mutations_requested' | '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.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' | 'access_code.failed_to_update' | 'access_code.failed_to_expire' | '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_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'access_method.delay_in_issuing' | 'access_method.failed_to_issue' | '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' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted'> | undefined;
|
|
140
140
|
/**
|
|
141
141
|
* Numerical limit on the number of events to return.
|
|
142
142
|
*/
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.22.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"version": "^11.0.0 || ^10.0.0"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
+
"packageManager": "npm@11.19.0",
|
|
81
82
|
"dependencies": {
|
|
82
83
|
"@seamapi/url-search-params-serializer": "^3.0.3",
|
|
83
84
|
"axios": "^1.9.0",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"@seamapi/blueprint": "^1.8.0",
|
|
88
89
|
"@seamapi/fake-seam-connect": "^2.0.4",
|
|
89
90
|
"@seamapi/smith": "^1.1.0",
|
|
90
|
-
"@seamapi/types": "1.
|
|
91
|
+
"@seamapi/types": "1.1036.0",
|
|
91
92
|
"@types/jsonwebtoken": "^9.0.6",
|
|
92
93
|
"@types/node": "^24.10.9",
|
|
93
94
|
"ava": "^8.0.1",
|
|
@@ -319,7 +319,7 @@ export type AccessCode = {
|
|
|
319
319
|
*/
|
|
320
320
|
message: string
|
|
321
321
|
} /**
|
|
322
|
-
* Seam was unable to apply this access code's
|
|
322
|
+
* Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
323
323
|
*/
|
|
324
324
|
| {
|
|
325
325
|
/**
|
|
@@ -329,7 +329,7 @@ export type AccessCode = {
|
|
|
329
329
|
/**
|
|
330
330
|
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
331
331
|
*/
|
|
332
|
-
error_code: '
|
|
332
|
+
error_code: 'failed_to_update'
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* Indicates that this is an access code error.
|
|
@@ -1088,23 +1088,6 @@ export type AccessCode = {
|
|
|
1088
1088
|
*/
|
|
1089
1089
|
warning_code: 'delay_in_issuing'
|
|
1090
1090
|
} /**
|
|
1091
|
-
* Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied.
|
|
1092
|
-
*/
|
|
1093
|
-
| {
|
|
1094
|
-
/**
|
|
1095
|
-
* Date and time at which Seam created the warning.
|
|
1096
|
-
*/
|
|
1097
|
-
created_at?: string | undefined
|
|
1098
|
-
/**
|
|
1099
|
-
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1100
|
-
*/
|
|
1101
|
-
message: string
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1105
|
-
*/
|
|
1106
|
-
warning_code: 'delay_in_applying_mutations'
|
|
1107
|
-
} /**
|
|
1108
1091
|
* Third-party integration detected that may cause access codes to fail.
|
|
1109
1092
|
*/
|
|
1110
1093
|
| {
|
|
@@ -3208,6 +3208,24 @@ export type Device = {
|
|
|
3208
3208
|
*/
|
|
3209
3209
|
warning_code: 'accessory_keypad_setup_required'
|
|
3210
3210
|
} /**
|
|
3211
|
+
* Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.
|
|
3212
|
+
*/
|
|
3213
|
+
| {
|
|
3214
|
+
/**
|
|
3215
|
+
* Date and time at which Seam created the warning.
|
|
3216
|
+
*/
|
|
3217
|
+
created_at: string
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
3221
|
+
*/
|
|
3222
|
+
message: string
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
3226
|
+
*/
|
|
3227
|
+
warning_code: 'accessory_keypad_low_battery'
|
|
3228
|
+
} /**
|
|
3211
3229
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
3212
3230
|
*/
|
|
3213
3231
|
| {
|
|
@@ -4553,6 +4553,10 @@ export type SeamEvent =
|
|
|
4553
4553
|
*/
|
|
4554
4554
|
battery_level: number
|
|
4555
4555
|
|
|
4556
|
+
/**
|
|
4557
|
+
* Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery.
|
|
4558
|
+
*/
|
|
4559
|
+
battery_source?: 'lock' | 'accessory_keypad' | undefined
|
|
4556
4560
|
/**
|
|
4557
4561
|
* Custom metadata of the connected account, present when connected_account_id is provided.
|
|
4558
4562
|
*/
|
|
@@ -325,7 +325,7 @@ export type UnmanagedAccessCode = {
|
|
|
325
325
|
*/
|
|
326
326
|
message: string
|
|
327
327
|
} /**
|
|
328
|
-
* Seam was unable to apply this access code's
|
|
328
|
+
* Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
329
329
|
*/
|
|
330
330
|
| {
|
|
331
331
|
/**
|
|
@@ -335,7 +335,7 @@ export type UnmanagedAccessCode = {
|
|
|
335
335
|
/**
|
|
336
336
|
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
337
337
|
*/
|
|
338
|
-
error_code: '
|
|
338
|
+
error_code: 'failed_to_update'
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* Indicates that this is an access code error.
|
|
@@ -870,23 +870,6 @@ export type UnmanagedAccessCode = {
|
|
|
870
870
|
*/
|
|
871
871
|
warning_code: 'delay_in_issuing'
|
|
872
872
|
} /**
|
|
873
|
-
* Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied.
|
|
874
|
-
*/
|
|
875
|
-
| {
|
|
876
|
-
/**
|
|
877
|
-
* Date and time at which Seam created the warning.
|
|
878
|
-
*/
|
|
879
|
-
created_at?: string | undefined
|
|
880
|
-
/**
|
|
881
|
-
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
882
|
-
*/
|
|
883
|
-
message: string
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
887
|
-
*/
|
|
888
|
-
warning_code: 'delay_in_applying_mutations'
|
|
889
|
-
} /**
|
|
890
873
|
* Third-party integration detected that may cause access codes to fail.
|
|
891
874
|
*/
|
|
892
875
|
| {
|
|
@@ -1122,6 +1122,24 @@ export type UnmanagedDevice = {
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
warning_code: 'accessory_keypad_setup_required'
|
|
1124
1124
|
} /**
|
|
1125
|
+
* Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.
|
|
1126
|
+
*/
|
|
1127
|
+
| {
|
|
1128
|
+
/**
|
|
1129
|
+
* Date and time at which Seam created the warning.
|
|
1130
|
+
*/
|
|
1131
|
+
created_at: string
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1135
|
+
*/
|
|
1136
|
+
message: string
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1140
|
+
*/
|
|
1141
|
+
warning_code: 'accessory_keypad_low_battery'
|
|
1142
|
+
} /**
|
|
1125
1143
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
1126
1144
|
*/
|
|
1127
1145
|
| {
|
|
@@ -321,8 +321,7 @@ export type EventsListParameters = RequireAtLeastOne<{
|
|
|
321
321
|
| 'access_code.issued'
|
|
322
322
|
| 'access_code.delay_in_issuing'
|
|
323
323
|
| 'access_code.failed_to_issue'
|
|
324
|
-
| 'access_code.
|
|
325
|
-
| 'access_code.failed_to_apply_mutations'
|
|
324
|
+
| 'access_code.failed_to_update'
|
|
326
325
|
| 'access_code.failed_to_expire'
|
|
327
326
|
| 'access_code.deleted'
|
|
328
327
|
| 'access_code.delay_in_removing_from_device'
|
|
@@ -442,8 +441,7 @@ export type EventsListParameters = RequireAtLeastOne<{
|
|
|
442
441
|
| 'access_code.issued'
|
|
443
442
|
| 'access_code.delay_in_issuing'
|
|
444
443
|
| 'access_code.failed_to_issue'
|
|
445
|
-
| 'access_code.
|
|
446
|
-
| 'access_code.failed_to_apply_mutations'
|
|
444
|
+
| 'access_code.failed_to_update'
|
|
447
445
|
| 'access_code.failed_to_expire'
|
|
448
446
|
| 'access_code.deleted'
|
|
449
447
|
| 'access_code.delay_in_removing_from_device'
|
package/src/lib/version.ts
CHANGED