seam 2.142.0 → 2.145.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/README.md +11 -7
- data/lib/seam/base_resource.rb +24 -3
- data/lib/seam/resources/access_code.rb +682 -43
- data/lib/seam/resources/access_grant.rb +189 -25
- data/lib/seam/resources/access_method.rb +105 -3
- data/lib/seam/resources/acs_access_group.rb +52 -0
- data/lib/seam/resources/acs_credential.rb +153 -6
- data/lib/seam/resources/acs_encoder.rb +2 -0
- data/lib/seam/resources/acs_entrance.rb +105 -0
- data/lib/seam/resources/acs_system.rb +278 -6
- data/lib/seam/resources/acs_user.rb +201 -0
- data/lib/seam/resources/action_attempt.rb +1457 -279
- data/lib/seam/resources/connect_webview.rb +15 -1
- data/lib/seam/resources/connected_account.rb +285 -41
- data/lib/seam/resources/device.rb +929 -14
- data/lib/seam/resources/device_provider.rb +74 -0
- data/lib/seam/resources/event.rb +5205 -316
- data/lib/seam/resources/phone.rb +4 -1
- data/lib/seam/resources/unmanaged_access_code.rb +677 -43
- data/lib/seam/resources/unmanaged_access_grant.rb +189 -25
- data/lib/seam/resources/unmanaged_access_method.rb +105 -3
- data/lib/seam/resources/unmanaged_device.rb +827 -14
- data/lib/seam/resources/unmanaged_user_identity.rb +67 -0
- data/lib/seam/resources/user_identity.rb +67 -0
- data/lib/seam/resources/workspace.rb +3 -0
- data/lib/seam/routes/access_codes.rb +1 -1
- data/lib/seam/routes/access_grants.rb +2 -2
- data/lib/seam/routes/access_methods.rb +1 -1
- data/lib/seam/routes/acs_encoders.rb +1 -1
- data/lib/seam/routes/acs_entrances.rb +2 -2
- data/lib/seam/routes/action_attempts.rb +1 -1
- data/lib/seam/routes/connect_webviews.rb +3 -3
- data/lib/seam/routes/connected_accounts.rb +3 -3
- data/lib/seam/routes/customers.rb +1 -1
- data/lib/seam/routes/devices.rb +3 -3
- data/lib/seam/routes/devices_unmanaged.rb +2 -2
- data/lib/seam/routes/events.rb +1 -1
- data/lib/seam/routes/locks.rb +1 -1
- data/lib/seam/routes/noise_sensors.rb +1 -1
- data/lib/seam/routes/spaces.rb +3 -3
- data/lib/seam/routes/thermostats.rb +1 -1
- data/lib/seam/routes/user_identities.rb +1 -1
- data/lib/seam/version.rb +1 -1
- data/lib/seam/webhook.rb +5 -2
- metadata +1 -1
|
@@ -16,6 +16,12 @@ module Seam
|
|
|
16
16
|
class ConnectWebview < BaseResource
|
|
17
17
|
# High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.
|
|
18
18
|
# @return [Array<String>]
|
|
19
|
+
# Known values:
|
|
20
|
+
# - `lock`
|
|
21
|
+
# - `thermostat`
|
|
22
|
+
# - `noise_sensor`
|
|
23
|
+
# - `access_control`
|
|
24
|
+
# - `camera`
|
|
19
25
|
attr_accessor :accepted_capabilities
|
|
20
26
|
# List of accepted [provider keys](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
|
|
21
27
|
# @return [Array<String>]
|
|
@@ -33,7 +39,7 @@ module Seam
|
|
|
33
39
|
# @return [String, nil]
|
|
34
40
|
attr_accessor :connected_account_id
|
|
35
41
|
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
36
|
-
# @return [Hash]
|
|
42
|
+
# @return [Hash{String => String, Boolean}]
|
|
37
43
|
attr_accessor :custom_metadata
|
|
38
44
|
# URL to which the Connect Webview should redirect when an unexpected error occurs.
|
|
39
45
|
# @return [String, nil]
|
|
@@ -46,6 +52,10 @@ module Seam
|
|
|
46
52
|
attr_accessor :customer_key
|
|
47
53
|
# Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`.
|
|
48
54
|
# @return [String]
|
|
55
|
+
# Known values:
|
|
56
|
+
# - `none`
|
|
57
|
+
# - `single`
|
|
58
|
+
# - `multiple`
|
|
49
59
|
attr_accessor :device_selection_mode
|
|
50
60
|
# Indicates whether the user logged in successfully using the Connect Webview.
|
|
51
61
|
# @return [Boolean]
|
|
@@ -55,6 +65,10 @@ module Seam
|
|
|
55
65
|
attr_accessor :selected_provider
|
|
56
66
|
# Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.
|
|
57
67
|
# @return [String]
|
|
68
|
+
# Known values:
|
|
69
|
+
# - `pending`
|
|
70
|
+
# - `failed`
|
|
71
|
+
# - `authorized`
|
|
58
72
|
attr_accessor :status
|
|
59
73
|
# URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.
|
|
60
74
|
# @return [String]
|
|
@@ -4,33 +4,123 @@ module Seam
|
|
|
4
4
|
module Resources
|
|
5
5
|
# Represents a [connected account](https://docs.seam.co/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks.
|
|
6
6
|
class ConnectedAccount < BaseResource
|
|
7
|
+
# Known `error_code` values load as subclasses; unknown values remain Errors instances for forward compatibility.
|
|
7
8
|
class Errors < BaseResource
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
# Indicates that the account is disconnected.
|
|
10
|
+
class AccountDisconnected < Errors
|
|
11
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
12
|
+
# @return [String]
|
|
13
|
+
# Known values:
|
|
14
|
+
# - `account_disconnected`
|
|
15
|
+
attr_accessor :error_code
|
|
16
|
+
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
17
|
+
# @return [Boolean, nil]
|
|
18
|
+
attr_accessor :is_bridge_error
|
|
19
|
+
# Indicates whether the error is related specifically to the connected account.
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
attr_accessor :is_connected_account_error
|
|
22
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :message
|
|
25
|
+
# Date and time at which Seam created the error.
|
|
26
|
+
# @return [Time]
|
|
27
|
+
date_accessor :created_at
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).
|
|
31
|
+
class BridgeDisconnected < Errors
|
|
32
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
33
|
+
# @return [String]
|
|
34
|
+
# Known values:
|
|
35
|
+
# - `bridge_disconnected`
|
|
36
|
+
attr_accessor :error_code
|
|
37
|
+
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
38
|
+
# @return [Boolean, nil]
|
|
39
|
+
attr_accessor :is_bridge_error
|
|
40
|
+
# Indicates whether the error is related specifically to the connected account.
|
|
41
|
+
# @return [Boolean, nil]
|
|
42
|
+
attr_accessor :is_connected_account_error
|
|
43
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :message
|
|
46
|
+
# Date and time at which Seam created the error.
|
|
47
|
+
# @return [Time]
|
|
48
|
+
date_accessor :created_at
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.
|
|
52
|
+
class SaltoKsSubscriptionLimitExceeded < Errors
|
|
53
|
+
class SaltoKsMetadata < BaseResource
|
|
54
|
+
class Sites < BaseResource
|
|
55
|
+
# ID of a Salto site associated with the connected account that has an error.
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
attr_accessor :site_id
|
|
58
|
+
# Name of a Salto site associated with the connected account that has an error.
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
attr_accessor :site_name
|
|
61
|
+
# Subscription limit of site users for a Salto site associated with the connected account that has an error.
|
|
62
|
+
# @return [Integer, nil]
|
|
63
|
+
attr_accessor :site_user_subscription_limit
|
|
64
|
+
# Count of subscribed site users for a Salto site associated with the connected account that has an error.
|
|
65
|
+
# @return [Integer, nil]
|
|
66
|
+
attr_accessor :subscribed_site_user_count
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Salto sites associated with the connected account that has an error.
|
|
70
|
+
# @return [Array<Sites>]
|
|
71
|
+
resource_list_accessor :sites, Sites
|
|
22
72
|
end
|
|
23
73
|
|
|
24
|
-
# Salto
|
|
25
|
-
# @return [
|
|
26
|
-
|
|
74
|
+
# Salto KS metadata associated with the connected account that has an error.
|
|
75
|
+
# @return [SaltoKsMetadata]
|
|
76
|
+
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
77
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
78
|
+
# @return [String]
|
|
79
|
+
# Known values:
|
|
80
|
+
# - `salto_ks_subscription_limit_exceeded`
|
|
81
|
+
attr_accessor :error_code
|
|
82
|
+
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
83
|
+
# @return [Boolean, nil]
|
|
84
|
+
attr_accessor :is_bridge_error
|
|
85
|
+
# Indicates whether the error is related specifically to the connected account.
|
|
86
|
+
# @return [Boolean, nil]
|
|
87
|
+
attr_accessor :is_connected_account_error
|
|
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
|
+
|
|
96
|
+
# Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
97
|
+
class DormakabaSitesDisconnected < Errors
|
|
98
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
99
|
+
# @return [String]
|
|
100
|
+
# Known values:
|
|
101
|
+
# - `dormakaba_sites_disconnected`
|
|
102
|
+
attr_accessor :error_code
|
|
103
|
+
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
104
|
+
# @return [Boolean, nil]
|
|
105
|
+
attr_accessor :is_bridge_error
|
|
106
|
+
# Indicates whether the error is related specifically to the connected account.
|
|
107
|
+
# @return [Boolean, nil]
|
|
108
|
+
attr_accessor :is_connected_account_error
|
|
109
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
110
|
+
# @return [String]
|
|
111
|
+
attr_accessor :message
|
|
112
|
+
# Date and time at which Seam created the error.
|
|
113
|
+
# @return [Time]
|
|
114
|
+
date_accessor :created_at
|
|
27
115
|
end
|
|
28
116
|
|
|
29
|
-
# Salto KS metadata associated with the connected account that has an error.
|
|
30
|
-
# @return [SaltoKsMetadata]
|
|
31
|
-
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
32
117
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
33
118
|
# @return [String]
|
|
119
|
+
# Known values:
|
|
120
|
+
# - `account_disconnected`
|
|
121
|
+
# - `bridge_disconnected`
|
|
122
|
+
# - `salto_ks_subscription_limit_exceeded`
|
|
123
|
+
# - `dormakaba_sites_disconnected`
|
|
34
124
|
attr_accessor :error_code
|
|
35
125
|
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
36
126
|
# @return [Boolean, nil]
|
|
@@ -44,6 +134,13 @@ module Seam
|
|
|
44
134
|
# Date and time at which Seam created the error.
|
|
45
135
|
# @return [Time]
|
|
46
136
|
date_accessor :created_at
|
|
137
|
+
|
|
138
|
+
discriminated_by :error_code, {
|
|
139
|
+
"account_disconnected" => AccountDisconnected,
|
|
140
|
+
"bridge_disconnected" => BridgeDisconnected,
|
|
141
|
+
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
142
|
+
"dormakaba_sites_disconnected" => DormakabaSitesDisconnected
|
|
143
|
+
}.freeze
|
|
47
144
|
end
|
|
48
145
|
|
|
49
146
|
class UserIdentifier < BaseResource
|
|
@@ -64,40 +161,181 @@ module Seam
|
|
|
64
161
|
attr_accessor :username
|
|
65
162
|
end
|
|
66
163
|
|
|
164
|
+
# Known `warning_code` values load as subclasses; unknown values remain Warnings instances for forward compatibility.
|
|
67
165
|
class Warnings < BaseResource
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
166
|
+
# Indicates that scheduled downtime is planned for the connected account.
|
|
167
|
+
class ScheduledMaintenanceWindow < Warnings
|
|
168
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
169
|
+
# @return [String]
|
|
170
|
+
attr_accessor :message
|
|
171
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
172
|
+
# @return [String]
|
|
173
|
+
# Known values:
|
|
174
|
+
# - `scheduled_maintenance_window`
|
|
175
|
+
attr_accessor :warning_code
|
|
176
|
+
# Date and time at which Seam created the warning.
|
|
177
|
+
# @return [Time]
|
|
178
|
+
date_accessor :created_at
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Indicates that an unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.
|
|
182
|
+
class UnknownIssueWithConnectedAccount < Warnings
|
|
183
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
184
|
+
# @return [String]
|
|
185
|
+
attr_accessor :message
|
|
186
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
187
|
+
# @return [String]
|
|
188
|
+
# Known values:
|
|
189
|
+
# - `unknown_issue_with_connected_account`
|
|
190
|
+
attr_accessor :warning_code
|
|
191
|
+
# Date and time at which Seam created the warning.
|
|
192
|
+
# @return [Time]
|
|
193
|
+
date_accessor :created_at
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.
|
|
197
|
+
class SaltoKsSubscriptionLimitAlmostReached < Warnings
|
|
198
|
+
class SaltoKsMetadata < BaseResource
|
|
199
|
+
class Sites < BaseResource
|
|
200
|
+
# ID of a Salto site associated with the connected account that has a warning.
|
|
201
|
+
# @return [String, nil]
|
|
202
|
+
attr_accessor :site_id
|
|
203
|
+
# Name of a Salto site associated with the connected account that has a warning.
|
|
204
|
+
# @return [String, nil]
|
|
205
|
+
attr_accessor :site_name
|
|
206
|
+
# Subscription limit of site users for a Salto site associated with the connected account that has a warning.
|
|
207
|
+
# @return [Integer, nil]
|
|
208
|
+
attr_accessor :site_user_subscription_limit
|
|
209
|
+
# Count of subscribed site users for a Salto site associated with the connected account that has a warning.
|
|
210
|
+
# @return [Integer, nil]
|
|
211
|
+
attr_accessor :subscribed_site_user_count
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Salto sites associated with the connected account that has a warning.
|
|
215
|
+
# @return [Array<Sites>]
|
|
216
|
+
resource_list_accessor :sites, Sites
|
|
82
217
|
end
|
|
83
218
|
|
|
84
|
-
# Salto
|
|
85
|
-
# @return [
|
|
86
|
-
|
|
219
|
+
# Salto KS metadata associated with the connected account that has a warning.
|
|
220
|
+
# @return [SaltoKsMetadata]
|
|
221
|
+
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
222
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
223
|
+
# @return [String]
|
|
224
|
+
attr_accessor :message
|
|
225
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
226
|
+
# @return [String]
|
|
227
|
+
# Known values:
|
|
228
|
+
# - `salto_ks_subscription_limit_almost_reached`
|
|
229
|
+
attr_accessor :warning_code
|
|
230
|
+
# Date and time at which Seam created the warning.
|
|
231
|
+
# @return [Time]
|
|
232
|
+
date_accessor :created_at
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
|
|
236
|
+
class AccountReauthorizationRequested < Warnings
|
|
237
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
238
|
+
# @return [String]
|
|
239
|
+
attr_accessor :message
|
|
240
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
241
|
+
# @return [String]
|
|
242
|
+
# Known values:
|
|
243
|
+
# - `account_reauthorization_requested`
|
|
244
|
+
attr_accessor :warning_code
|
|
245
|
+
# Date and time at which Seam created the warning.
|
|
246
|
+
# @return [Time]
|
|
247
|
+
date_accessor :created_at
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.
|
|
251
|
+
class BeingDeleted < Warnings
|
|
252
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
253
|
+
# @return [String]
|
|
254
|
+
attr_accessor :message
|
|
255
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
256
|
+
# @return [String]
|
|
257
|
+
# Known values:
|
|
258
|
+
# - `being_deleted`
|
|
259
|
+
attr_accessor :warning_code
|
|
260
|
+
# Date and time at which Seam created the warning.
|
|
261
|
+
# @return [Time]
|
|
262
|
+
date_accessor :created_at
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
|
|
266
|
+
class ProviderServiceUnavailable < Warnings
|
|
267
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
268
|
+
# @return [String]
|
|
269
|
+
attr_accessor :message
|
|
270
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
271
|
+
# @return [String]
|
|
272
|
+
# Known values:
|
|
273
|
+
# - `provider_service_unavailable`
|
|
274
|
+
attr_accessor :warning_code
|
|
275
|
+
# Date and time at which Seam created the warning.
|
|
276
|
+
# @return [Time]
|
|
277
|
+
date_accessor :created_at
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.
|
|
281
|
+
class SetupRequired < Warnings
|
|
282
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
283
|
+
# @return [String]
|
|
284
|
+
attr_accessor :message
|
|
285
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
286
|
+
# @return [String]
|
|
287
|
+
# Known values:
|
|
288
|
+
# - `setup_required`
|
|
289
|
+
attr_accessor :warning_code
|
|
290
|
+
# Date and time at which Seam created the warning.
|
|
291
|
+
# @return [Time]
|
|
292
|
+
date_accessor :created_at
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
|
|
296
|
+
class DormakabaSitesUnapproved < Warnings
|
|
297
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
298
|
+
# @return [String]
|
|
299
|
+
attr_accessor :message
|
|
300
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
301
|
+
# @return [String]
|
|
302
|
+
# Known values:
|
|
303
|
+
# - `dormakaba_sites_unapproved`
|
|
304
|
+
attr_accessor :warning_code
|
|
305
|
+
# Date and time at which Seam created the warning.
|
|
306
|
+
# @return [Time]
|
|
307
|
+
date_accessor :created_at
|
|
87
308
|
end
|
|
88
309
|
|
|
89
|
-
# Salto KS metadata associated with the connected account that has a warning.
|
|
90
|
-
# @return [SaltoKsMetadata]
|
|
91
|
-
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
92
310
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
93
311
|
# @return [String]
|
|
94
312
|
attr_accessor :message
|
|
95
313
|
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
96
314
|
# @return [String]
|
|
315
|
+
# Known values:
|
|
316
|
+
# - `scheduled_maintenance_window`
|
|
317
|
+
# - `unknown_issue_with_connected_account`
|
|
318
|
+
# - `salto_ks_subscription_limit_almost_reached`
|
|
319
|
+
# - `account_reauthorization_requested`
|
|
320
|
+
# - `being_deleted`
|
|
321
|
+
# - `provider_service_unavailable`
|
|
322
|
+
# - `setup_required`
|
|
323
|
+
# - `dormakaba_sites_unapproved`
|
|
97
324
|
attr_accessor :warning_code
|
|
98
325
|
# Date and time at which Seam created the warning.
|
|
99
326
|
# @return [Time]
|
|
100
327
|
date_accessor :created_at
|
|
328
|
+
|
|
329
|
+
discriminated_by :warning_code, {
|
|
330
|
+
"scheduled_maintenance_window" => ScheduledMaintenanceWindow,
|
|
331
|
+
"unknown_issue_with_connected_account" => UnknownIssueWithConnectedAccount,
|
|
332
|
+
"salto_ks_subscription_limit_almost_reached" => SaltoKsSubscriptionLimitAlmostReached,
|
|
333
|
+
"account_reauthorization_requested" => AccountReauthorizationRequested,
|
|
334
|
+
"being_deleted" => BeingDeleted,
|
|
335
|
+
"provider_service_unavailable" => ProviderServiceUnavailable,
|
|
336
|
+
"setup_required" => SetupRequired,
|
|
337
|
+
"dormakaba_sites_unapproved" => DormakabaSitesUnapproved
|
|
338
|
+
}.freeze
|
|
101
339
|
end
|
|
102
340
|
|
|
103
341
|
# User identifier associated with the connected account.
|
|
@@ -111,6 +349,12 @@ module Seam
|
|
|
111
349
|
resource_list_accessor :warnings, Warnings
|
|
112
350
|
# List of capabilities that were accepted during the account connection process.
|
|
113
351
|
# @return [Array<String>]
|
|
352
|
+
# Known values:
|
|
353
|
+
# - `lock`
|
|
354
|
+
# - `thermostat`
|
|
355
|
+
# - `noise_sensor`
|
|
356
|
+
# - `access_control`
|
|
357
|
+
# - `camera`
|
|
114
358
|
attr_accessor :accepted_capabilities
|
|
115
359
|
# Type of connected account.
|
|
116
360
|
# @return [String, nil]
|
|
@@ -125,7 +369,7 @@ module Seam
|
|
|
125
369
|
# @return [String]
|
|
126
370
|
attr_accessor :connected_account_id
|
|
127
371
|
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
128
|
-
# @return [Hash]
|
|
372
|
+
# @return [Hash{String => String, Boolean}]
|
|
129
373
|
attr_accessor :custom_metadata
|
|
130
374
|
# Your unique key for the customer associated with this connected account.
|
|
131
375
|
# @return [String, nil]
|