seam 2.134.0 → 2.136.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 +1 -1
- data/README.md +17 -7
- data/lib/seam/auth.rb +1 -1
- data/lib/seam/base_resource.rb +45 -1
- data/lib/seam/deep_hash_accessor.rb +8 -4
- data/lib/seam/{http_multi_workspace.rb → http_without_workspace.rb} +4 -3
- data/lib/seam/request.rb +0 -1
- data/lib/seam/resources/access_code.rb +109 -7
- data/lib/seam/resources/access_grant.rb +90 -7
- data/lib/seam/resources/access_method.rb +49 -5
- data/lib/seam/resources/acs_access_group.rb +69 -7
- data/lib/seam/resources/acs_credential.rb +54 -7
- data/lib/seam/resources/acs_encoder.rb +10 -2
- data/lib/seam/resources/acs_entrance.rb +166 -25
- data/lib/seam/resources/acs_system.rb +40 -7
- data/lib/seam/resources/acs_user.rb +93 -11
- data/lib/seam/resources/action_attempt.rb +304 -5
- data/lib/seam/resources/connected_account.rb +70 -6
- data/lib/seam/resources/device.rb +1126 -11
- data/lib/seam/resources/event.rb +133 -49
- data/lib/seam/resources/index.rb +0 -4
- data/lib/seam/resources/instant_key.rb +10 -2
- data/lib/seam/resources/phone.rb +44 -5
- data/lib/seam/resources/space.rb +20 -4
- data/lib/seam/resources/thermostat_daily_program.rb +8 -2
- data/lib/seam/resources/thermostat_schedule.rb +10 -2
- data/lib/seam/resources/unmanaged_access_code.rb +74 -5
- data/lib/seam/resources/unmanaged_access_grant.rb +90 -7
- data/lib/seam/resources/unmanaged_access_method.rb +49 -5
- data/lib/seam/resources/unmanaged_device.rb +99 -7
- data/lib/seam/resources/unmanaged_user_identity.rb +24 -3
- data/lib/seam/resources/user_identity.rb +24 -3
- data/lib/seam/resources/workspace.rb +14 -1
- data/lib/seam/version.rb +1 -1
- data/lib/seam.rb +1 -1
- metadata +3 -7
- data/lib/seam/resources/resource_error.rb +0 -11
- data/lib/seam/resources/resource_errors_support.rb +0 -11
- data/lib/seam/resources/resource_warning.rb +0 -11
- data/lib/seam/resources/resource_warnings_support.rb +0 -11
|
@@ -4,14 +4,313 @@ module Seam
|
|
|
4
4
|
module Resources
|
|
5
5
|
# Locking a door is pending.
|
|
6
6
|
class ActionAttempt < BaseResource
|
|
7
|
+
class Error < BaseResource
|
|
8
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
9
|
+
attr_accessor :message
|
|
10
|
+
attr_accessor :type
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class Result < BaseResource
|
|
14
|
+
class AcsCredentialOnEncoder < BaseResource
|
|
15
|
+
class VisionlineMetadata < BaseResource
|
|
16
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is cancelled.
|
|
17
|
+
attr_accessor :cancelled
|
|
18
|
+
# Format of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
19
|
+
attr_accessor :card_format
|
|
20
|
+
# Holder of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
21
|
+
attr_accessor :card_holder
|
|
22
|
+
# Card ID for the Visionline card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
23
|
+
attr_accessor :card_id
|
|
24
|
+
# IDs of the common [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
25
|
+
attr_accessor :common_acs_entrance_ids
|
|
26
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is discarded.
|
|
27
|
+
attr_accessor :discarded
|
|
28
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is expired.
|
|
29
|
+
attr_accessor :expired
|
|
30
|
+
# IDs of the guest [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
31
|
+
attr_accessor :guest_acs_entrance_ids
|
|
32
|
+
# Number of issued cards associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
33
|
+
attr_accessor :number_of_issued_cards
|
|
34
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overridden.
|
|
35
|
+
attr_accessor :overridden
|
|
36
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overwritten.
|
|
37
|
+
attr_accessor :overwritten
|
|
38
|
+
# Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is pending auto-update.
|
|
39
|
+
attr_accessor :pending_auto_update
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
resource_accessor :visionline_metadata, VisionlineMetadata
|
|
43
|
+
# A number or string that physically identifies the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
44
|
+
attr_accessor :card_number
|
|
45
|
+
# Indicates whether the credential has been issued (encoded onto a card).
|
|
46
|
+
attr_accessor :is_issued
|
|
47
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
48
|
+
date_accessor :created_at
|
|
49
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) will stop being usable.
|
|
50
|
+
date_accessor :ends_at
|
|
51
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) becomes usable.
|
|
52
|
+
date_accessor :starts_at
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class AcsCredentialOnSeam < BaseResource
|
|
56
|
+
class AssaAbloyVostioMetadata < BaseResource
|
|
57
|
+
# Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
58
|
+
attr_accessor :auto_join
|
|
59
|
+
# Names of the doors to which to grant access in the Vostio access system.
|
|
60
|
+
attr_accessor :door_names
|
|
61
|
+
# Endpoint ID in the Vostio access system.
|
|
62
|
+
attr_accessor :endpoint_id
|
|
63
|
+
# Key ID in the Vostio access system.
|
|
64
|
+
attr_accessor :key_id
|
|
65
|
+
# Key issuing request ID in the Vostio access system.
|
|
66
|
+
attr_accessor :key_issuing_request_id
|
|
67
|
+
# IDs of the guest entrances to override in the Vostio access system.
|
|
68
|
+
attr_accessor :override_guest_acs_entrance_ids
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class Errors < BaseResource
|
|
72
|
+
attr_accessor :error_code
|
|
73
|
+
attr_accessor :message
|
|
74
|
+
# Date and time at which Seam created the error.
|
|
75
|
+
date_accessor :created_at
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class VisionlineMetadata < BaseResource
|
|
79
|
+
# Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
80
|
+
attr_accessor :auto_join
|
|
81
|
+
# Card function type in the Visionline access system.
|
|
82
|
+
attr_accessor :card_function_type
|
|
83
|
+
# ID of the card in the Visionline access system.
|
|
84
|
+
attr_accessor :card_id
|
|
85
|
+
# Common entrance IDs in the Visionline access system.
|
|
86
|
+
attr_accessor :common_acs_entrance_ids
|
|
87
|
+
# ID of the credential in the Visionline access system.
|
|
88
|
+
attr_accessor :credential_id
|
|
89
|
+
# Guest entrance IDs in the Visionline access system.
|
|
90
|
+
attr_accessor :guest_acs_entrance_ids
|
|
91
|
+
# Indicates whether the credential is valid.
|
|
92
|
+
attr_accessor :is_valid
|
|
93
|
+
# IDs of the credentials to which you want to join.
|
|
94
|
+
attr_accessor :joiner_acs_credential_ids
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class Warnings < BaseResource
|
|
98
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
99
|
+
attr_accessor :message
|
|
100
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
101
|
+
attr_accessor :warning_code
|
|
102
|
+
# Date and time at which Seam created the warning.
|
|
103
|
+
date_accessor :created_at
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
resource_accessor :assa_abloy_vostio_metadata, AssaAbloyVostioMetadata
|
|
107
|
+
resource_accessor :visionline_metadata, VisionlineMetadata
|
|
108
|
+
resource_list_accessor :errors, Errors
|
|
109
|
+
resource_list_accessor :warnings, Warnings
|
|
110
|
+
# Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
111
|
+
attr_accessor :access_method
|
|
112
|
+
# ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
113
|
+
attr_accessor :acs_credential_id
|
|
114
|
+
# ID of the credential pool to which the credential belongs.
|
|
115
|
+
attr_accessor :acs_credential_pool_id
|
|
116
|
+
# ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
117
|
+
attr_accessor :acs_system_id
|
|
118
|
+
# ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
119
|
+
attr_accessor :acs_user_id
|
|
120
|
+
# Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
121
|
+
attr_accessor :card_number
|
|
122
|
+
# Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
123
|
+
attr_accessor :code
|
|
124
|
+
# ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
125
|
+
attr_accessor :connected_account_id
|
|
126
|
+
# Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
127
|
+
attr_accessor :display_name
|
|
128
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
|
|
129
|
+
attr_accessor :ends_at
|
|
130
|
+
# Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
|
|
131
|
+
attr_accessor :external_type
|
|
132
|
+
# Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
133
|
+
attr_accessor :external_type_display_name
|
|
134
|
+
# Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
|
|
135
|
+
attr_accessor :is_issued
|
|
136
|
+
# Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
137
|
+
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
138
|
+
attr_accessor :is_managed
|
|
139
|
+
# Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
140
|
+
attr_accessor :is_multi_phone_sync_credential
|
|
141
|
+
# Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
|
|
142
|
+
attr_accessor :is_one_time_use
|
|
143
|
+
# ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
144
|
+
attr_accessor :parent_acs_credential_id
|
|
145
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
146
|
+
attr_accessor :starts_at
|
|
147
|
+
# ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
148
|
+
attr_accessor :user_identity_id
|
|
149
|
+
# ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
150
|
+
attr_accessor :workspace_id
|
|
151
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
152
|
+
date_accessor :created_at
|
|
153
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
|
|
154
|
+
date_accessor :issued_at
|
|
155
|
+
# Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
|
|
156
|
+
date_accessor :latest_desired_state_synced_with_provider_at
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
class AssaAbloyVostioMetadata < BaseResource
|
|
160
|
+
# Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
161
|
+
attr_accessor :auto_join
|
|
162
|
+
# Names of the doors to which to grant access in the Vostio access system.
|
|
163
|
+
attr_accessor :door_names
|
|
164
|
+
# Endpoint ID in the Vostio access system.
|
|
165
|
+
attr_accessor :endpoint_id
|
|
166
|
+
# Key ID in the Vostio access system.
|
|
167
|
+
attr_accessor :key_id
|
|
168
|
+
# Key issuing request ID in the Vostio access system.
|
|
169
|
+
attr_accessor :key_issuing_request_id
|
|
170
|
+
# IDs of the guest entrances to override in the Vostio access system.
|
|
171
|
+
attr_accessor :override_guest_acs_entrance_ids
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
class Errors < BaseResource
|
|
175
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
176
|
+
attr_accessor :error_code
|
|
177
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
178
|
+
attr_accessor :message
|
|
179
|
+
# Date and time at which Seam created the error.
|
|
180
|
+
date_accessor :created_at
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
class PendingMutations < BaseResource
|
|
184
|
+
class From < BaseResource
|
|
185
|
+
# Previous end time for access.
|
|
186
|
+
date_accessor :ends_at
|
|
187
|
+
# Previous start time for access.
|
|
188
|
+
date_accessor :starts_at
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class To < BaseResource
|
|
192
|
+
# New end time for access.
|
|
193
|
+
date_accessor :ends_at
|
|
194
|
+
# New start time for access.
|
|
195
|
+
date_accessor :starts_at
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
resource_accessor :from, From
|
|
199
|
+
resource_accessor :to, To
|
|
200
|
+
# Detailed description of the mutation.
|
|
201
|
+
attr_accessor :message
|
|
202
|
+
# Mutation code to indicate that Seam is in the process of updating the access times for this access method.
|
|
203
|
+
attr_accessor :mutation_code
|
|
204
|
+
# Date and time at which the mutation was created.
|
|
205
|
+
date_accessor :created_at
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
class VisionlineMetadata < BaseResource
|
|
209
|
+
# Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
210
|
+
attr_accessor :auto_join
|
|
211
|
+
# Card function type in the Visionline access system.
|
|
212
|
+
attr_accessor :card_function_type
|
|
213
|
+
# ID of the card in the Visionline access system.
|
|
214
|
+
attr_accessor :card_id
|
|
215
|
+
# Common entrance IDs in the Visionline access system.
|
|
216
|
+
attr_accessor :common_acs_entrance_ids
|
|
217
|
+
# ID of the credential in the Visionline access system.
|
|
218
|
+
attr_accessor :credential_id
|
|
219
|
+
# Guest entrance IDs in the Visionline access system.
|
|
220
|
+
attr_accessor :guest_acs_entrance_ids
|
|
221
|
+
# Indicates whether the credential is valid.
|
|
222
|
+
attr_accessor :is_valid
|
|
223
|
+
# IDs of the credentials to which you want to join.
|
|
224
|
+
attr_accessor :joiner_acs_credential_ids
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
class Warnings < BaseResource
|
|
228
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
229
|
+
attr_accessor :message
|
|
230
|
+
# ID of the original access method from which this backup access method was split, if applicable.
|
|
231
|
+
attr_accessor :original_access_method_id
|
|
232
|
+
attr_accessor :warning_code
|
|
233
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
234
|
+
attr_accessor :warning_message
|
|
235
|
+
# Date and time at which Seam created the warning.
|
|
236
|
+
date_accessor :created_at
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
resource_accessor :acs_credential_on_encoder, AcsCredentialOnEncoder
|
|
240
|
+
resource_accessor :acs_credential_on_seam, AcsCredentialOnSeam
|
|
241
|
+
resource_accessor :assa_abloy_vostio_metadata, AssaAbloyVostioMetadata
|
|
242
|
+
resource_accessor :visionline_metadata, VisionlineMetadata
|
|
243
|
+
resource_list_accessor :errors, Errors
|
|
244
|
+
resource_list_accessor :pending_mutations, PendingMutations
|
|
245
|
+
resource_list_accessor :warnings, Warnings
|
|
246
|
+
# Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
247
|
+
attr_accessor :access_method
|
|
248
|
+
# ID of the access method.
|
|
249
|
+
attr_accessor :access_method_id
|
|
250
|
+
# ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
251
|
+
attr_accessor :acs_credential_id
|
|
252
|
+
# ID of the credential pool to which the credential belongs.
|
|
253
|
+
attr_accessor :acs_credential_pool_id
|
|
254
|
+
# ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
255
|
+
attr_accessor :acs_system_id
|
|
256
|
+
# ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
257
|
+
attr_accessor :acs_user_id
|
|
258
|
+
# Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
259
|
+
attr_accessor :card_number
|
|
260
|
+
# Token of the client session associated with the access method.
|
|
261
|
+
attr_accessor :client_session_token
|
|
262
|
+
attr_accessor :code
|
|
263
|
+
# ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
264
|
+
attr_accessor :connected_account_id
|
|
265
|
+
# ID of the customization profile associated with the access method.
|
|
266
|
+
attr_accessor :customization_profile_id
|
|
267
|
+
attr_accessor :display_name
|
|
268
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
|
|
269
|
+
attr_accessor :ends_at
|
|
270
|
+
# Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
|
|
271
|
+
attr_accessor :external_type
|
|
272
|
+
# Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
273
|
+
attr_accessor :external_type_display_name
|
|
274
|
+
# URL of the Instant Key for mobile key access methods.
|
|
275
|
+
attr_accessor :instant_key_url
|
|
276
|
+
# Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.
|
|
277
|
+
attr_accessor :is_assignment_required
|
|
278
|
+
# Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.
|
|
279
|
+
attr_accessor :is_encoding_required
|
|
280
|
+
attr_accessor :is_issued
|
|
281
|
+
# Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
282
|
+
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
283
|
+
# Indicates whether Seam manages the credential.
|
|
284
|
+
attr_accessor :is_managed
|
|
285
|
+
# Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
286
|
+
attr_accessor :is_multi_phone_sync_credential
|
|
287
|
+
# Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
|
|
288
|
+
attr_accessor :is_one_time_use
|
|
289
|
+
# 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.
|
|
290
|
+
attr_accessor :is_ready_for_assignment
|
|
291
|
+
# 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.
|
|
292
|
+
attr_accessor :is_ready_for_encoding
|
|
293
|
+
# Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
294
|
+
attr_accessor :mode
|
|
295
|
+
# ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
296
|
+
attr_accessor :parent_acs_credential_id
|
|
297
|
+
# Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
298
|
+
attr_accessor :starts_at
|
|
299
|
+
# ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
300
|
+
attr_accessor :user_identity_id
|
|
301
|
+
attr_accessor :was_confirmed_by_device
|
|
302
|
+
attr_accessor :workspace_id
|
|
303
|
+
date_accessor :created_at
|
|
304
|
+
date_accessor :issued_at
|
|
305
|
+
# Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
|
|
306
|
+
date_accessor :latest_desired_state_synced_with_provider_at
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
resource_accessor :error, Error
|
|
310
|
+
resource_accessor :result, Result
|
|
7
311
|
# ID of the action attempt.
|
|
8
312
|
attr_accessor :action_attempt_id
|
|
9
|
-
# Action attempt to track the status of locking a door.
|
|
10
313
|
attr_accessor :action_type
|
|
11
|
-
# Error associated with the action.
|
|
12
|
-
attr_accessor :error
|
|
13
|
-
# Result of the action.
|
|
14
|
-
attr_accessor :result
|
|
15
314
|
attr_accessor :status
|
|
16
315
|
end
|
|
17
316
|
end
|
|
@@ -4,6 +4,76 @@ 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
|
+
class Errors < BaseResource
|
|
8
|
+
class SaltoKsMetadata < BaseResource
|
|
9
|
+
class Sites < BaseResource
|
|
10
|
+
# ID of a Salto site associated with the connected account that has an error.
|
|
11
|
+
attr_accessor :site_id
|
|
12
|
+
# Name of a Salto site associated with the connected account that has an error.
|
|
13
|
+
attr_accessor :site_name
|
|
14
|
+
# Subscription limit of site users for a Salto site associated with the connected account that has an error.
|
|
15
|
+
attr_accessor :site_user_subscription_limit
|
|
16
|
+
# Count of subscribed site users for a Salto site associated with the connected account that has an error.
|
|
17
|
+
attr_accessor :subscribed_site_user_count
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
resource_list_accessor :sites, Sites
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
24
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
25
|
+
attr_accessor :error_code
|
|
26
|
+
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
27
|
+
attr_accessor :is_bridge_error
|
|
28
|
+
# Indicates whether the error is related specifically to the connected account.
|
|
29
|
+
attr_accessor :is_connected_account_error
|
|
30
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
31
|
+
attr_accessor :message
|
|
32
|
+
# Date and time at which Seam created the error.
|
|
33
|
+
date_accessor :created_at
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
class UserIdentifier < BaseResource
|
|
37
|
+
# API URL for the user identifier associated with the connected account.
|
|
38
|
+
attr_accessor :api_url
|
|
39
|
+
# Email address of the user identifier associated with the connected account.
|
|
40
|
+
attr_accessor :email
|
|
41
|
+
# Indicates whether the user identifier associated with the connected account is exclusive.
|
|
42
|
+
attr_accessor :exclusive
|
|
43
|
+
# Phone number of the user identifier associated with the connected account.
|
|
44
|
+
attr_accessor :phone
|
|
45
|
+
# Username of the user identifier associated with the connected account.
|
|
46
|
+
attr_accessor :username
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class Warnings < BaseResource
|
|
50
|
+
class SaltoKsMetadata < BaseResource
|
|
51
|
+
class Sites < BaseResource
|
|
52
|
+
# ID of a Salto site associated with the connected account that has a warning.
|
|
53
|
+
attr_accessor :site_id
|
|
54
|
+
# Name of a Salto site associated with the connected account that has a warning.
|
|
55
|
+
attr_accessor :site_name
|
|
56
|
+
# Subscription limit of site users for a Salto site associated with the connected account that has a warning.
|
|
57
|
+
attr_accessor :site_user_subscription_limit
|
|
58
|
+
# Count of subscribed site users for a Salto site associated with the connected account that has a warning.
|
|
59
|
+
attr_accessor :subscribed_site_user_count
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
resource_list_accessor :sites, Sites
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
resource_accessor :salto_ks_metadata, SaltoKsMetadata
|
|
66
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
67
|
+
attr_accessor :message
|
|
68
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
69
|
+
attr_accessor :warning_code
|
|
70
|
+
# Date and time at which Seam created the warning.
|
|
71
|
+
date_accessor :created_at
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
resource_accessor :user_identifier, UserIdentifier
|
|
75
|
+
resource_list_accessor :errors, Errors
|
|
76
|
+
resource_list_accessor :warnings, Warnings
|
|
7
77
|
# List of capabilities that were accepted during the account connection process.
|
|
8
78
|
attr_accessor :accepted_capabilities
|
|
9
79
|
# Type of connected account.
|
|
@@ -32,15 +102,9 @@ module Seam
|
|
|
32
102
|
attr_accessor :image_url
|
|
33
103
|
# IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.
|
|
34
104
|
attr_accessor :time_zone
|
|
35
|
-
# User identifier associated with the connected account.
|
|
36
|
-
# @deprecated Use `display_name` instead.
|
|
37
|
-
attr_accessor :user_identifier
|
|
38
105
|
|
|
39
106
|
# Date and time at which the connected account was created.
|
|
40
107
|
date_accessor :created_at
|
|
41
|
-
|
|
42
|
-
include Seam::Resources::ResourceErrorsSupport
|
|
43
|
-
include Seam::Resources::ResourceWarningsSupport
|
|
44
108
|
end
|
|
45
109
|
end
|
|
46
110
|
end
|