@seamapi/http 2.6.0 → 2.6.1
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/event.d.ts +3 -22
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/resources/event.ts +3 -134
- package/src/lib/version.ts +1 -1
package/lib/resources/event.d.ts
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was created.
|
|
3
|
+
*/
|
|
1
4
|
export type SeamEvent = {
|
|
2
|
-
/**
|
|
3
|
-
* Date and time at which the event was created.
|
|
4
|
-
*/
|
|
5
|
-
created_at?: string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
|
|
8
|
-
*/
|
|
9
|
-
event_description?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* ID of the event.
|
|
12
|
-
*/
|
|
13
|
-
event_id?: string | undefined;
|
|
14
|
-
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.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;
|
|
15
|
-
/**
|
|
16
|
-
* Date and time at which the event occurred.
|
|
17
|
-
*/
|
|
18
|
-
occurred_at?: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* ID of the workspace associated with the event.
|
|
21
|
-
*/
|
|
22
|
-
workspace_id?: string | undefined;
|
|
23
|
-
} | {
|
|
24
5
|
/**
|
|
25
6
|
* ID of the affected access code.
|
|
26
7
|
*/
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.6.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.6.1";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -3,141 +3,10 @@
|
|
|
3
3
|
* Do not edit this file.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was created.
|
|
8
|
+
*/
|
|
6
9
|
export type SeamEvent =
|
|
7
|
-
| {
|
|
8
|
-
/**
|
|
9
|
-
* Date and time at which the event was created.
|
|
10
|
-
*/
|
|
11
|
-
created_at?: string | undefined
|
|
12
|
-
/**
|
|
13
|
-
* Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
|
|
14
|
-
*/
|
|
15
|
-
event_description?: string | undefined
|
|
16
|
-
/**
|
|
17
|
-
* ID of the event.
|
|
18
|
-
*/
|
|
19
|
-
event_id?: string | undefined
|
|
20
|
-
|
|
21
|
-
event_type?:
|
|
22
|
-
| 'access_code.created'
|
|
23
|
-
| 'access_code.changed'
|
|
24
|
-
| 'access_code.name_changed'
|
|
25
|
-
| 'access_code.code_changed'
|
|
26
|
-
| 'access_code.time_frame_changed'
|
|
27
|
-
| 'access_code.mutations_requested'
|
|
28
|
-
| 'access_code.scheduled_on_device'
|
|
29
|
-
| 'access_code.set_on_device'
|
|
30
|
-
| 'access_code.removed_from_device'
|
|
31
|
-
| 'access_code.delay_in_setting_on_device'
|
|
32
|
-
| 'access_code.failed_to_set_on_device'
|
|
33
|
-
| 'access_code.deleted'
|
|
34
|
-
| 'access_code.delay_in_removing_from_device'
|
|
35
|
-
| 'access_code.failed_to_remove_from_device'
|
|
36
|
-
| 'access_code.modified_external_to_seam'
|
|
37
|
-
| 'access_code.deleted_external_to_seam'
|
|
38
|
-
| 'access_code.backup_access_code_pulled'
|
|
39
|
-
| 'access_code.unmanaged.converted_to_managed'
|
|
40
|
-
| 'access_code.unmanaged.failed_to_convert_to_managed'
|
|
41
|
-
| 'access_code.unmanaged.created'
|
|
42
|
-
| 'access_code.unmanaged.removed'
|
|
43
|
-
| 'access_grant.created'
|
|
44
|
-
| 'access_grant.deleted'
|
|
45
|
-
| 'access_grant.access_granted_to_all_doors'
|
|
46
|
-
| 'access_grant.access_granted_to_door'
|
|
47
|
-
| 'access_grant.access_to_door_lost'
|
|
48
|
-
| 'access_grant.access_times_changed'
|
|
49
|
-
| 'access_grant.could_not_create_requested_access_methods'
|
|
50
|
-
| 'access_method.issued'
|
|
51
|
-
| 'access_method.revoked'
|
|
52
|
-
| 'access_method.card_encoding_required'
|
|
53
|
-
| 'access_method.deleted'
|
|
54
|
-
| 'access_method.reissued'
|
|
55
|
-
| 'access_method.created'
|
|
56
|
-
| 'access_method.delay_in_issuing'
|
|
57
|
-
| 'access_method.failed_to_issue'
|
|
58
|
-
| 'acs_system.connected'
|
|
59
|
-
| 'acs_system.added'
|
|
60
|
-
| 'acs_system.disconnected'
|
|
61
|
-
| 'acs_credential.deleted'
|
|
62
|
-
| 'acs_credential.issued'
|
|
63
|
-
| 'acs_credential.reissued'
|
|
64
|
-
| 'acs_credential.invalidated'
|
|
65
|
-
| 'acs_user.created'
|
|
66
|
-
| 'acs_user.deleted'
|
|
67
|
-
| 'acs_encoder.added'
|
|
68
|
-
| 'acs_encoder.removed'
|
|
69
|
-
| 'acs_access_group.deleted'
|
|
70
|
-
| 'acs_entrance.added'
|
|
71
|
-
| 'acs_entrance.removed'
|
|
72
|
-
| 'client_session.deleted'
|
|
73
|
-
| 'connected_account.connected'
|
|
74
|
-
| 'connected_account.created'
|
|
75
|
-
| 'connected_account.successful_login'
|
|
76
|
-
| 'connected_account.disconnected'
|
|
77
|
-
| 'connected_account.completed_first_sync'
|
|
78
|
-
| 'connected_account.deleted'
|
|
79
|
-
| 'connected_account.completed_first_sync_after_reconnection'
|
|
80
|
-
| 'connected_account.reauthorization_requested'
|
|
81
|
-
| 'action_attempt.lock_door.succeeded'
|
|
82
|
-
| 'action_attempt.lock_door.failed'
|
|
83
|
-
| 'action_attempt.unlock_door.succeeded'
|
|
84
|
-
| 'action_attempt.unlock_door.failed'
|
|
85
|
-
| 'action_attempt.simulate_keypad_code_entry.succeeded'
|
|
86
|
-
| 'action_attempt.simulate_keypad_code_entry.failed'
|
|
87
|
-
| 'action_attempt.simulate_manual_lock_via_keypad.succeeded'
|
|
88
|
-
| 'action_attempt.simulate_manual_lock_via_keypad.failed'
|
|
89
|
-
| 'connect_webview.login_succeeded'
|
|
90
|
-
| 'connect_webview.login_failed'
|
|
91
|
-
| 'device.connected'
|
|
92
|
-
| 'device.added'
|
|
93
|
-
| 'device.converted_to_unmanaged'
|
|
94
|
-
| 'device.unmanaged.converted_to_managed'
|
|
95
|
-
| 'device.unmanaged.connected'
|
|
96
|
-
| 'device.disconnected'
|
|
97
|
-
| 'device.unmanaged.disconnected'
|
|
98
|
-
| 'device.tampered'
|
|
99
|
-
| 'device.low_battery'
|
|
100
|
-
| 'device.battery_status_changed'
|
|
101
|
-
| 'device.removed'
|
|
102
|
-
| 'device.deleted'
|
|
103
|
-
| 'device.third_party_integration_detected'
|
|
104
|
-
| 'device.third_party_integration_no_longer_detected'
|
|
105
|
-
| 'device.salto.privacy_mode_activated'
|
|
106
|
-
| 'device.salto.privacy_mode_deactivated'
|
|
107
|
-
| 'device.connection_became_flaky'
|
|
108
|
-
| 'device.connection_stabilized'
|
|
109
|
-
| 'device.error.subscription_required'
|
|
110
|
-
| 'device.error.subscription_required.resolved'
|
|
111
|
-
| 'device.accessory_keypad_connected'
|
|
112
|
-
| 'device.accessory_keypad_disconnected'
|
|
113
|
-
| 'noise_sensor.noise_threshold_triggered'
|
|
114
|
-
| 'lock.locked'
|
|
115
|
-
| 'lock.unlocked'
|
|
116
|
-
| 'lock.access_denied'
|
|
117
|
-
| 'thermostat.climate_preset_activated'
|
|
118
|
-
| 'thermostat.manually_adjusted'
|
|
119
|
-
| 'thermostat.temperature_threshold_exceeded'
|
|
120
|
-
| 'thermostat.temperature_threshold_no_longer_exceeded'
|
|
121
|
-
| 'thermostat.temperature_reached_set_point'
|
|
122
|
-
| 'thermostat.temperature_changed'
|
|
123
|
-
| 'device.name_changed'
|
|
124
|
-
| 'camera.activated'
|
|
125
|
-
| 'device.doorbell_rang'
|
|
126
|
-
| 'enrollment_automation.deleted'
|
|
127
|
-
| 'phone.deactivated'
|
|
128
|
-
| 'space.device_membership_changed'
|
|
129
|
-
| 'space.created'
|
|
130
|
-
| 'space.deleted'
|
|
131
|
-
| undefined
|
|
132
|
-
/**
|
|
133
|
-
* Date and time at which the event occurred.
|
|
134
|
-
*/
|
|
135
|
-
occurred_at?: string | undefined
|
|
136
|
-
/**
|
|
137
|
-
* ID of the workspace associated with the event.
|
|
138
|
-
*/
|
|
139
|
-
workspace_id?: string | undefined
|
|
140
|
-
}
|
|
141
10
|
| {
|
|
142
11
|
/**
|
|
143
12
|
* ID of the affected access code.
|
package/src/lib/version.ts
CHANGED