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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/seam/resources/access_grant.rb +21 -2
- data/lib/seam/resources/access_method.rb +19 -2
- 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 +264 -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 +21 -2
- data/lib/seam/resources/unmanaged_access_method.rb +19 -2
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz: '
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0728def14eca9e4d20afc7b4b6c8d6a312f6369058f1a1ffb39912223af2090d'
|
|
4
|
+
data.tar.gz: 2fe687ec9d2b0e01b5bfff64abcd2bd162ade8f4d014754dc01acda67eae9334
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74524876fa1bc0ca169ac6fdacc094eb06d2479da4865ec6b0150054f9ee243064b649193c4ab2080eba422ee33e469496fd413de94d025f330003439d85e6c1
|
|
7
|
+
data.tar.gz: 5334fa180093c7f8ba841e8c165bac6b711a7277f330d2eaa472ecb08a0e910388a4f8cd2c38046de359f78fb2095befc806629f6e6c64d2031fe981f6ddb472
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
seam (2.
|
|
4
|
+
seam (2.165.0)
|
|
5
5
|
faraday (~> 2.7)
|
|
6
6
|
faraday-retry (~> 2.2)
|
|
7
7
|
svix (~> 1.30)
|
|
@@ -171,7 +171,7 @@ CHECKSUMS
|
|
|
171
171
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
172
172
|
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
173
173
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
174
|
-
seam (2.
|
|
174
|
+
seam (2.165.0)
|
|
175
175
|
simplecov (1.1.1) sha256=25825ef13f0b2e74694d769817dad6ab8e90131dabdaa666e522fea105521e78
|
|
176
176
|
simplecov-console (0.9.5) sha256=b1108bcfff5f210143e2b8301698c367b01586f20d25a73e95475a5df6fc6ff6
|
|
177
177
|
standard (1.56.0) sha256=ae2af4d9669589162ac69ed5ef59dcf9f346d4afc81f7e62b84339310dfcb787
|
|
@@ -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
|
|
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
|
|
|
@@ -241,7 +258,7 @@ module Seam
|
|
|
241
258
|
# 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.
|
|
242
259
|
# @return [Boolean, nil]
|
|
243
260
|
attr_accessor :is_ready_for_assignment
|
|
244
|
-
# Indicates whether the access method is ready to be encoded. This is true when the
|
|
261
|
+
# 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`.
|
|
245
262
|
# @return [Boolean, nil]
|
|
246
263
|
attr_accessor :is_ready_for_encoding
|
|
247
264
|
# Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
@@ -101,9 +101,27 @@ module Seam
|
|
|
101
101
|
attr_accessor :access_point_profile
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# Known `error_code` values load as subclasses; unknown values remain Errors instances for forward compatibility.
|
|
104
105
|
class Errors < BaseResource
|
|
106
|
+
# Indicates that the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was removed from the connected account, so Seam can no longer sync it.
|
|
107
|
+
class EntranceRemoved < Errors
|
|
108
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
109
|
+
# @return [String]
|
|
110
|
+
# Known values:
|
|
111
|
+
# - `entrance_removed`
|
|
112
|
+
attr_accessor :error_code
|
|
113
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
114
|
+
# @return [String]
|
|
115
|
+
attr_accessor :message
|
|
116
|
+
# Date and time at which Seam created the error.
|
|
117
|
+
# @return [Time]
|
|
118
|
+
date_accessor :created_at
|
|
119
|
+
end
|
|
120
|
+
|
|
105
121
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
106
122
|
# @return [String]
|
|
123
|
+
# Known values:
|
|
124
|
+
# - `entrance_removed`
|
|
107
125
|
attr_accessor :error_code
|
|
108
126
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
109
127
|
# @return [String]
|
|
@@ -111,6 +129,10 @@ module Seam
|
|
|
111
129
|
# Date and time at which Seam created the error.
|
|
112
130
|
# @return [Time]
|
|
113
131
|
date_accessor :created_at
|
|
132
|
+
|
|
133
|
+
discriminated_by :error_code, {
|
|
134
|
+
"entrance_removed" => EntranceRemoved
|
|
135
|
+
}.freeze
|
|
114
136
|
end
|
|
115
137
|
|
|
116
138
|
class HotekMetadata < BaseResource
|
|
@@ -78,6 +78,21 @@ module Seam
|
|
|
78
78
|
date_accessor :created_at
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
# Indicates that the access control system has reached the maximum number of users its license allows, so Seam cannot create new users on it and access for new guests is not provisioned. Remove unused users from the access control system or increase its license. The error clears once Seam can create users again.
|
|
82
|
+
class UserLicenseLimitReached < Errors
|
|
83
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
84
|
+
# @return [String]
|
|
85
|
+
# Known values:
|
|
86
|
+
# - `user_license_limit_reached`
|
|
87
|
+
attr_accessor :error_code
|
|
88
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
89
|
+
# @return [String]
|
|
90
|
+
attr_accessor :message
|
|
91
|
+
# Date and time at which Seam created the error.
|
|
92
|
+
# @return [Time]
|
|
93
|
+
date_accessor :created_at
|
|
94
|
+
end
|
|
95
|
+
|
|
81
96
|
# Indicates that the provider's system backing this [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is not letting Seam act on it, so access cannot be managed until this is resolved. The error message says which of two causes applies. Either Seam's integration user does not have sufficient permissions on the provider's system, or has been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. Or the provider account or site does not have a valid subscription with the provider: set up or renew that subscription with the provider.
|
|
82
97
|
class InsufficientPermissions < Errors
|
|
83
98
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -160,6 +175,7 @@ module Seam
|
|
|
160
175
|
# - `bridge_disconnected`
|
|
161
176
|
# - `visionline_instance_unreachable`
|
|
162
177
|
# - `salto_ks_subscription_limit_exceeded`
|
|
178
|
+
# - `user_license_limit_reached`
|
|
163
179
|
# - `insufficient_permissions`
|
|
164
180
|
# - `acs_system_disconnected`
|
|
165
181
|
# - `account_disconnected`
|
|
@@ -178,6 +194,7 @@ module Seam
|
|
|
178
194
|
"bridge_disconnected" => BridgeDisconnected,
|
|
179
195
|
"visionline_instance_unreachable" => VisionlineInstanceUnreachable,
|
|
180
196
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
197
|
+
"user_license_limit_reached" => UserLicenseLimitReached,
|
|
181
198
|
"insufficient_permissions" => InsufficientPermissions,
|
|
182
199
|
"acs_system_disconnected" => AcsSystemDisconnected,
|
|
183
200
|
"account_disconnected" => AccountDisconnected,
|
|
@@ -944,6 +944,7 @@ module Seam
|
|
|
944
944
|
# @return [String]
|
|
945
945
|
# Known values:
|
|
946
946
|
# - `failed_to_issue`
|
|
947
|
+
# - `access_not_provisioned`
|
|
947
948
|
attr_accessor :error_code
|
|
948
949
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
949
950
|
# @return [String]
|
|
@@ -973,20 +974,21 @@ module Seam
|
|
|
973
974
|
end
|
|
974
975
|
|
|
975
976
|
# Previous access time configuration.
|
|
976
|
-
# @return [From]
|
|
977
|
+
# @return [From, nil]
|
|
977
978
|
resource_accessor :from, From
|
|
978
979
|
# New access time configuration.
|
|
979
|
-
# @return [To]
|
|
980
|
+
# @return [To, nil]
|
|
980
981
|
resource_accessor :to, To
|
|
981
982
|
# Detailed description of the mutation.
|
|
982
983
|
# @return [String]
|
|
983
984
|
attr_accessor :message
|
|
984
|
-
# Mutation code to indicate that
|
|
985
|
+
# Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.
|
|
985
986
|
# @return [String]
|
|
986
987
|
# Known values:
|
|
987
988
|
# - `provisioning_access`
|
|
988
989
|
# - `revoking_access`
|
|
989
990
|
# - `updating_access_times`
|
|
991
|
+
# - `waiting_for_access_on_acs_system`
|
|
990
992
|
attr_accessor :mutation_code
|
|
991
993
|
# Date and time at which the mutation was created.
|
|
992
994
|
# @return [Time]
|
|
@@ -1057,7 +1059,7 @@ module Seam
|
|
|
1057
1059
|
# 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.
|
|
1058
1060
|
# @return [Boolean, nil]
|
|
1059
1061
|
attr_accessor :is_ready_for_assignment
|
|
1060
|
-
# Indicates whether the access method is ready to be encoded. This is true when the
|
|
1062
|
+
# 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`.
|
|
1061
1063
|
# @return [Boolean, nil]
|
|
1062
1064
|
attr_accessor :is_ready_for_encoding
|
|
1063
1065
|
# Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
@@ -1464,6 +1466,252 @@ module Seam
|
|
|
1464
1466
|
attr_accessor :status
|
|
1465
1467
|
end
|
|
1466
1468
|
|
|
1469
|
+
# Converting an unmanaged access code to managed is pending.
|
|
1470
|
+
class ConvertAccessCodeToManaged < ActionAttempt
|
|
1471
|
+
class Error < BaseResource
|
|
1472
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1473
|
+
# @return [String]
|
|
1474
|
+
attr_accessor :message
|
|
1475
|
+
# Type of the error.
|
|
1476
|
+
# @return [String]
|
|
1477
|
+
attr_accessor :type
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
class Result < BaseResource
|
|
1481
|
+
end
|
|
1482
|
+
|
|
1483
|
+
# Error associated with the action.
|
|
1484
|
+
# @return [Error, nil]
|
|
1485
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1486
|
+
resource_accessor :error, Error
|
|
1487
|
+
available_only_for_statuses :error, ["error"]
|
|
1488
|
+
# Result of the action.
|
|
1489
|
+
# @return [Result, nil]
|
|
1490
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1491
|
+
resource_accessor :result, Result
|
|
1492
|
+
available_only_for_statuses :result, ["success"]
|
|
1493
|
+
# ID of the action attempt.
|
|
1494
|
+
# @return [String]
|
|
1495
|
+
attr_accessor :action_attempt_id
|
|
1496
|
+
# Action attempt to track the status of converting an unmanaged access code to a managed access code.
|
|
1497
|
+
# @return [String]
|
|
1498
|
+
# Known values:
|
|
1499
|
+
# - `CONVERT_ACCESS_CODE_TO_MANAGED`
|
|
1500
|
+
attr_accessor :action_type
|
|
1501
|
+
# @return [String]
|
|
1502
|
+
# Known values:
|
|
1503
|
+
# - `success`
|
|
1504
|
+
# - `pending`
|
|
1505
|
+
# - `error`
|
|
1506
|
+
attr_accessor :status
|
|
1507
|
+
end
|
|
1508
|
+
|
|
1509
|
+
# Setting the speaker volume is pending.
|
|
1510
|
+
class SetSpeakerVolume < ActionAttempt
|
|
1511
|
+
class Error < BaseResource
|
|
1512
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1513
|
+
# @return [String]
|
|
1514
|
+
attr_accessor :message
|
|
1515
|
+
# Type of the error.
|
|
1516
|
+
# @return [String]
|
|
1517
|
+
attr_accessor :type
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
class Result < BaseResource
|
|
1521
|
+
end
|
|
1522
|
+
|
|
1523
|
+
# Error associated with the action.
|
|
1524
|
+
# @return [Error, nil]
|
|
1525
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1526
|
+
resource_accessor :error, Error
|
|
1527
|
+
available_only_for_statuses :error, ["error"]
|
|
1528
|
+
# Result of the action.
|
|
1529
|
+
# @return [Result, nil]
|
|
1530
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1531
|
+
resource_accessor :result, Result
|
|
1532
|
+
available_only_for_statuses :result, ["success"]
|
|
1533
|
+
# ID of the action attempt.
|
|
1534
|
+
# @return [String]
|
|
1535
|
+
attr_accessor :action_attempt_id
|
|
1536
|
+
# Action attempt to track the status of setting the volume on a speaker.
|
|
1537
|
+
# @return [String]
|
|
1538
|
+
# Known values:
|
|
1539
|
+
# - `SET_SPEAKER_VOLUME`
|
|
1540
|
+
attr_accessor :action_type
|
|
1541
|
+
# @return [String]
|
|
1542
|
+
# Known values:
|
|
1543
|
+
# - `success`
|
|
1544
|
+
# - `pending`
|
|
1545
|
+
# - `error`
|
|
1546
|
+
attr_accessor :status
|
|
1547
|
+
end
|
|
1548
|
+
|
|
1549
|
+
# Muting or unmuting the speaker is pending.
|
|
1550
|
+
class SetSpeakerMute < ActionAttempt
|
|
1551
|
+
class Error < BaseResource
|
|
1552
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1553
|
+
# @return [String]
|
|
1554
|
+
attr_accessor :message
|
|
1555
|
+
# Type of the error.
|
|
1556
|
+
# @return [String]
|
|
1557
|
+
attr_accessor :type
|
|
1558
|
+
end
|
|
1559
|
+
|
|
1560
|
+
class Result < BaseResource
|
|
1561
|
+
end
|
|
1562
|
+
|
|
1563
|
+
# Error associated with the action.
|
|
1564
|
+
# @return [Error, nil]
|
|
1565
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1566
|
+
resource_accessor :error, Error
|
|
1567
|
+
available_only_for_statuses :error, ["error"]
|
|
1568
|
+
# Result of the action.
|
|
1569
|
+
# @return [Result, nil]
|
|
1570
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1571
|
+
resource_accessor :result, Result
|
|
1572
|
+
available_only_for_statuses :result, ["success"]
|
|
1573
|
+
# ID of the action attempt.
|
|
1574
|
+
# @return [String]
|
|
1575
|
+
attr_accessor :action_attempt_id
|
|
1576
|
+
# Action attempt to track the status of muting or unmuting a speaker.
|
|
1577
|
+
# @return [String]
|
|
1578
|
+
# Known values:
|
|
1579
|
+
# - `SET_SPEAKER_MUTE`
|
|
1580
|
+
attr_accessor :action_type
|
|
1581
|
+
# @return [String]
|
|
1582
|
+
# Known values:
|
|
1583
|
+
# - `success`
|
|
1584
|
+
# - `pending`
|
|
1585
|
+
# - `error`
|
|
1586
|
+
attr_accessor :status
|
|
1587
|
+
end
|
|
1588
|
+
|
|
1589
|
+
# Pausing playback on the speaker is pending.
|
|
1590
|
+
class PauseSpeakerPlayback < ActionAttempt
|
|
1591
|
+
class Error < BaseResource
|
|
1592
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1593
|
+
# @return [String]
|
|
1594
|
+
attr_accessor :message
|
|
1595
|
+
# Type of the error.
|
|
1596
|
+
# @return [String]
|
|
1597
|
+
attr_accessor :type
|
|
1598
|
+
end
|
|
1599
|
+
|
|
1600
|
+
class Result < BaseResource
|
|
1601
|
+
# IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.
|
|
1602
|
+
# @return [Array<String>]
|
|
1603
|
+
attr_accessor :affected_device_ids
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
# Error associated with the action.
|
|
1607
|
+
# @return [Error, nil]
|
|
1608
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1609
|
+
resource_accessor :error, Error
|
|
1610
|
+
available_only_for_statuses :error, ["error"]
|
|
1611
|
+
# Result of the action.
|
|
1612
|
+
# @return [Result, nil]
|
|
1613
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1614
|
+
resource_accessor :result, Result
|
|
1615
|
+
available_only_for_statuses :result, ["success"]
|
|
1616
|
+
# ID of the action attempt.
|
|
1617
|
+
# @return [String]
|
|
1618
|
+
attr_accessor :action_attempt_id
|
|
1619
|
+
# Action attempt to track the status of pausing playback on a speaker.
|
|
1620
|
+
# @return [String]
|
|
1621
|
+
# Known values:
|
|
1622
|
+
# - `PAUSE_SPEAKER_PLAYBACK`
|
|
1623
|
+
attr_accessor :action_type
|
|
1624
|
+
# @return [String]
|
|
1625
|
+
# Known values:
|
|
1626
|
+
# - `success`
|
|
1627
|
+
# - `pending`
|
|
1628
|
+
# - `error`
|
|
1629
|
+
attr_accessor :status
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
# Resuming playback on the speaker is pending.
|
|
1633
|
+
class ResumeSpeakerPlayback < ActionAttempt
|
|
1634
|
+
class Error < BaseResource
|
|
1635
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1636
|
+
# @return [String]
|
|
1637
|
+
attr_accessor :message
|
|
1638
|
+
# Type of the error.
|
|
1639
|
+
# @return [String]
|
|
1640
|
+
attr_accessor :type
|
|
1641
|
+
end
|
|
1642
|
+
|
|
1643
|
+
class Result < BaseResource
|
|
1644
|
+
# IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.
|
|
1645
|
+
# @return [Array<String>]
|
|
1646
|
+
attr_accessor :affected_device_ids
|
|
1647
|
+
end
|
|
1648
|
+
|
|
1649
|
+
# Error associated with the action.
|
|
1650
|
+
# @return [Error, nil]
|
|
1651
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1652
|
+
resource_accessor :error, Error
|
|
1653
|
+
available_only_for_statuses :error, ["error"]
|
|
1654
|
+
# Result of the action.
|
|
1655
|
+
# @return [Result, nil]
|
|
1656
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1657
|
+
resource_accessor :result, Result
|
|
1658
|
+
available_only_for_statuses :result, ["success"]
|
|
1659
|
+
# ID of the action attempt.
|
|
1660
|
+
# @return [String]
|
|
1661
|
+
attr_accessor :action_attempt_id
|
|
1662
|
+
# Action attempt to track the status of resuming playback on a speaker.
|
|
1663
|
+
# @return [String]
|
|
1664
|
+
# Known values:
|
|
1665
|
+
# - `RESUME_SPEAKER_PLAYBACK`
|
|
1666
|
+
attr_accessor :action_type
|
|
1667
|
+
# @return [String]
|
|
1668
|
+
# Known values:
|
|
1669
|
+
# - `success`
|
|
1670
|
+
# - `pending`
|
|
1671
|
+
# - `error`
|
|
1672
|
+
attr_accessor :status
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# Playing a chime on the speaker is pending.
|
|
1676
|
+
class PlaySpeakerChime < ActionAttempt
|
|
1677
|
+
class Error < BaseResource
|
|
1678
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1679
|
+
# @return [String]
|
|
1680
|
+
attr_accessor :message
|
|
1681
|
+
# Type of the error.
|
|
1682
|
+
# @return [String]
|
|
1683
|
+
attr_accessor :type
|
|
1684
|
+
end
|
|
1685
|
+
|
|
1686
|
+
class Result < BaseResource
|
|
1687
|
+
end
|
|
1688
|
+
|
|
1689
|
+
# Error associated with the action.
|
|
1690
|
+
# @return [Error, nil]
|
|
1691
|
+
# Only present when `status` is `error`; `nil` otherwise.
|
|
1692
|
+
resource_accessor :error, Error
|
|
1693
|
+
available_only_for_statuses :error, ["error"]
|
|
1694
|
+
# Result of the action.
|
|
1695
|
+
# @return [Result, nil]
|
|
1696
|
+
# Only present when `status` is `success`; `nil` otherwise.
|
|
1697
|
+
resource_accessor :result, Result
|
|
1698
|
+
available_only_for_statuses :result, ["success"]
|
|
1699
|
+
# ID of the action attempt.
|
|
1700
|
+
# @return [String]
|
|
1701
|
+
attr_accessor :action_attempt_id
|
|
1702
|
+
# Action attempt to track the status of playing a chime on a speaker.
|
|
1703
|
+
# @return [String]
|
|
1704
|
+
# Known values:
|
|
1705
|
+
# - `PLAY_SPEAKER_CHIME`
|
|
1706
|
+
attr_accessor :action_type
|
|
1707
|
+
# @return [String]
|
|
1708
|
+
# Known values:
|
|
1709
|
+
# - `success`
|
|
1710
|
+
# - `pending`
|
|
1711
|
+
# - `error`
|
|
1712
|
+
attr_accessor :status
|
|
1713
|
+
end
|
|
1714
|
+
|
|
1467
1715
|
class SyncAccessCodes < ActionAttempt
|
|
1468
1716
|
class Error < BaseResource
|
|
1469
1717
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -1777,6 +2025,12 @@ module Seam
|
|
|
1777
2025
|
# - `SIMULATE_MANUAL_LOCK_VIA_KEYPAD`
|
|
1778
2026
|
# - `PUSH_THERMOSTAT_PROGRAMS`
|
|
1779
2027
|
# - `CONFIGURE_AUTO_LOCK`
|
|
2028
|
+
# - `CONVERT_ACCESS_CODE_TO_MANAGED`
|
|
2029
|
+
# - `SET_SPEAKER_VOLUME`
|
|
2030
|
+
# - `SET_SPEAKER_MUTE`
|
|
2031
|
+
# - `PAUSE_SPEAKER_PLAYBACK`
|
|
2032
|
+
# - `RESUME_SPEAKER_PLAYBACK`
|
|
2033
|
+
# - `PLAY_SPEAKER_CHIME`
|
|
1780
2034
|
# - `SYNC_ACCESS_CODES`
|
|
1781
2035
|
# - `CREATE_ACCESS_CODE`
|
|
1782
2036
|
# - `DELETE_ACCESS_CODE`
|
|
@@ -1808,6 +2062,12 @@ module Seam
|
|
|
1808
2062
|
"SIMULATE_MANUAL_LOCK_VIA_KEYPAD" => SimulateManualLockViaKeypad,
|
|
1809
2063
|
"PUSH_THERMOSTAT_PROGRAMS" => PushThermostatPrograms,
|
|
1810
2064
|
"CONFIGURE_AUTO_LOCK" => ConfigureAutoLock,
|
|
2065
|
+
"CONVERT_ACCESS_CODE_TO_MANAGED" => ConvertAccessCodeToManaged,
|
|
2066
|
+
"SET_SPEAKER_VOLUME" => SetSpeakerVolume,
|
|
2067
|
+
"SET_SPEAKER_MUTE" => SetSpeakerMute,
|
|
2068
|
+
"PAUSE_SPEAKER_PLAYBACK" => PauseSpeakerPlayback,
|
|
2069
|
+
"RESUME_SPEAKER_PLAYBACK" => ResumeSpeakerPlayback,
|
|
2070
|
+
"PLAY_SPEAKER_CHIME" => PlaySpeakerChime,
|
|
1811
2071
|
"SYNC_ACCESS_CODES" => SyncAccessCodes,
|
|
1812
2072
|
"CREATE_ACCESS_CODE" => CreateAccessCode,
|
|
1813
2073
|
"DELETE_ACCESS_CODE" => DeleteAccessCode,
|
|
@@ -22,6 +22,7 @@ module Seam
|
|
|
22
22
|
# - `noise_sensor`
|
|
23
23
|
# - `access_control`
|
|
24
24
|
# - `camera`
|
|
25
|
+
# - `speaker`
|
|
25
26
|
attr_accessor :accepted_capabilities
|
|
26
27
|
# List of accepted [provider keys](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
|
|
27
28
|
# @return [Array<String>]
|