seam 2.163.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.
@@ -24,10 +24,26 @@ module Seam
24
24
  date_accessor :created_at
25
25
  end
26
26
 
27
+ # Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
28
+ class AccessNotProvisioned < Errors
29
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
30
+ # @return [String]
31
+ # Known values:
32
+ # - `access_not_provisioned`
33
+ attr_accessor :error_code
34
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
35
+ # @return [String]
36
+ attr_accessor :message
37
+ # Date and time at which Seam created the error.
38
+ # @return [Time]
39
+ date_accessor :created_at
40
+ end
41
+
27
42
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
28
43
  # @return [String]
29
44
  # Known values:
30
45
  # - `cannot_create_requested_access_methods`
46
+ # - `access_not_provisioned`
31
47
  attr_accessor :error_code
32
48
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
33
49
  # @return [String]
@@ -37,7 +53,8 @@ module Seam
37
53
  date_accessor :created_at
38
54
 
39
55
  discriminated_by :error_code, {
40
- "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods
56
+ "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods,
57
+ "access_not_provisioned" => AccessNotProvisioned
41
58
  }.freeze
42
59
  end
43
60
 
@@ -152,8 +169,10 @@ module Seam
152
169
  # Device whose access code could not be revoked.
153
170
  # @return [String]
154
171
  attr_accessor :device_id
155
- # Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
172
+ # Reason the access code could not be revoked.
156
173
  # @return [String]
174
+ # Known values:
175
+ # - `offline_access_code_not_revocable`
157
176
  attr_accessor :error_code
158
177
  # Human-readable description of why revocation failed.
159
178
  # @return [String]
@@ -21,10 +21,26 @@ module Seam
21
21
  date_accessor :created_at
22
22
  end
23
23
 
24
+ # Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
25
+ class AccessNotProvisioned < Errors
26
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
27
+ # @return [String]
28
+ # Known values:
29
+ # - `access_not_provisioned`
30
+ attr_accessor :error_code
31
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
32
+ # @return [String]
33
+ attr_accessor :message
34
+ # Date and time at which Seam created the error.
35
+ # @return [Time]
36
+ date_accessor :created_at
37
+ end
38
+
24
39
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
25
40
  # @return [String]
26
41
  # Known values:
27
42
  # - `failed_to_issue`
43
+ # - `access_not_provisioned`
28
44
  attr_accessor :error_code
29
45
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
30
46
  # @return [String]
@@ -34,7 +50,8 @@ module Seam
34
50
  date_accessor :created_at
35
51
 
36
52
  discriminated_by :error_code, {
37
- "failed_to_issue" => FailedToIssue
53
+ "failed_to_issue" => FailedToIssue,
54
+ "access_not_provisioned" => AccessNotProvisioned
38
55
  }.freeze
39
56
  end
40
57
 
@@ -232,7 +249,7 @@ module Seam
232
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.
233
250
  # @return [Boolean, nil]
234
251
  attr_accessor :is_ready_for_assignment
235
- # Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
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`.
236
253
  # @return [Boolean, nil]
237
254
  attr_accessor :is_ready_for_encoding
238
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.163.0"
4
+ VERSION = "2.165.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.163.0
4
+ version: 2.165.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.