seam 2.164.0 → 2.165.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/seam/resources/access_grant.rb +3 -1
- data/lib/seam/resources/access_method.rb +1 -1
- data/lib/seam/resources/acs_entrance.rb +22 -0
- data/lib/seam/resources/acs_system.rb +17 -0
- data/lib/seam/resources/action_attempt.rb +221 -4
- data/lib/seam/resources/connect_webview.rb +1 -0
- data/lib/seam/resources/connected_account.rb +1 -0
- data/lib/seam/resources/device.rb +97 -0
- data/lib/seam/resources/device_provider.rb +13 -0
- data/lib/seam/resources/phone.rb +793 -6
- data/lib/seam/resources/unmanaged_access_grant.rb +3 -1
- data/lib/seam/resources/unmanaged_access_method.rb +1 -1
- data/lib/seam/resources/unmanaged_device.rb +13 -0
- data/lib/seam/routes/customers.rb +4 -2
- data/lib/seam/version.rb +1 -1
- metadata +1 -1
|
@@ -169,8 +169,10 @@ module Seam
|
|
|
169
169
|
# Device whose access code could not be revoked.
|
|
170
170
|
# @return [String]
|
|
171
171
|
attr_accessor :device_id
|
|
172
|
-
# Reason the access code could not be revoked
|
|
172
|
+
# Reason the access code could not be revoked.
|
|
173
173
|
# @return [String]
|
|
174
|
+
# Known values:
|
|
175
|
+
# - `offline_access_code_not_revocable`
|
|
174
176
|
attr_accessor :error_code
|
|
175
177
|
# Human-readable description of why revocation failed.
|
|
176
178
|
# @return [String]
|
|
@@ -249,7 +249,7 @@ module Seam
|
|
|
249
249
|
# Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.
|
|
250
250
|
# @return [Boolean, nil]
|
|
251
251
|
attr_accessor :is_ready_for_assignment
|
|
252
|
-
# Indicates whether the access method is ready to be encoded. This is true when the
|
|
252
|
+
# Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
|
|
253
253
|
# @return [Boolean, nil]
|
|
254
254
|
attr_accessor :is_ready_for_encoding
|
|
255
255
|
# Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
@@ -949,6 +949,15 @@ module Seam
|
|
|
949
949
|
# Indicates whether the thermostat supports simultaneous heating and cooling.
|
|
950
950
|
# @return [Boolean, nil]
|
|
951
951
|
attr_accessor :can_hvac_heat_cool
|
|
952
|
+
# Indicates whether the speaker supports muting and unmuting.
|
|
953
|
+
# @return [Boolean, nil]
|
|
954
|
+
attr_accessor :can_mute_speaker
|
|
955
|
+
# Indicates whether the speaker supports pausing and resuming playback.
|
|
956
|
+
# @return [Boolean, nil]
|
|
957
|
+
attr_accessor :can_pause_speaker_playback
|
|
958
|
+
# Indicates whether the speaker supports playing a chime.
|
|
959
|
+
# @return [Boolean, nil]
|
|
960
|
+
attr_accessor :can_play_speaker_chime
|
|
952
961
|
# Indicates whether the device supports programming offline access codes.
|
|
953
962
|
# @return [Boolean, nil]
|
|
954
963
|
attr_accessor :can_program_offline_access_codes
|
|
@@ -973,6 +982,9 @@ module Seam
|
|
|
973
982
|
# Indicates whether the thermostat supports running climate programs.
|
|
974
983
|
# @return [Boolean, nil]
|
|
975
984
|
attr_accessor :can_run_thermostat_programs
|
|
985
|
+
# Indicates whether the speaker supports setting its volume.
|
|
986
|
+
# @return [Boolean, nil]
|
|
987
|
+
attr_accessor :can_set_speaker_volume
|
|
976
988
|
# Indicates whether the device supports simulating connection in a sandbox.
|
|
977
989
|
# @return [Boolean, nil]
|
|
978
990
|
attr_accessor :can_simulate_connection
|
|
@@ -1068,6 +1080,7 @@ module Seam
|
|
|
1068
1080
|
# - `tapo_camera`
|
|
1069
1081
|
# - `arlo_camera`
|
|
1070
1082
|
# - `reolink_camera`
|
|
1083
|
+
# - `sonos_speaker`
|
|
1071
1084
|
attr_accessor :device_type
|
|
1072
1085
|
# Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
|
|
1073
1086
|
# @return [String]
|
|
@@ -29,6 +29,7 @@ module Seam
|
|
|
29
29
|
|
|
30
30
|
# Deletes customer data including resources like spaces, properties, rooms, users, etc.
|
|
31
31
|
# This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
|
|
32
|
+
# Space keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).
|
|
32
33
|
# @param access_grant_keys [Array<String>, nil] List of access grant keys to delete.
|
|
33
34
|
# @param booking_keys [Array<String>, nil] List of booking keys to delete.
|
|
34
35
|
# @param building_keys [Array<String>, nil] List of building keys to delete.
|
|
@@ -65,6 +66,7 @@ module Seam
|
|
|
65
66
|
# @param facilities [Array<Hash>, nil] List of gym or fitness facilities.
|
|
66
67
|
# @param guests [Array<Hash>, nil] List of guests.
|
|
67
68
|
# @param listings [Array<Hash>, nil] List of property listings.
|
|
69
|
+
# @param low_battery_alert_threshold [Float, Seam::Null, nil] Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.
|
|
68
70
|
# @param properties [Array<Hash>, nil] List of short-term rental properties.
|
|
69
71
|
# @param property_listings [Array<Hash>, nil] List of property listings.
|
|
70
72
|
# @param reservations [Array<Hash>, nil] List of reservations.
|
|
@@ -78,8 +80,8 @@ module Seam
|
|
|
78
80
|
# @param user_identities [Array<Hash>, nil] List of user identities.
|
|
79
81
|
# @param users [Array<Hash>, nil] List of users.
|
|
80
82
|
# @return [nil] OK
|
|
81
|
-
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, staff_members: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
|
82
|
-
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, staff_members: staff_members, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
83
|
+
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, low_battery_alert_threshold: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, staff_members: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
|
84
|
+
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, low_battery_alert_threshold: low_battery_alert_threshold, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, staff_members: staff_members, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
83
85
|
|
|
84
86
|
nil
|
|
85
87
|
end
|
data/lib/seam/version.rb
CHANGED