seam 2.138.0 → 2.140.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +69 -66
  3. data/README.md +12 -0
  4. data/lib/seam/http_single_workspace.rb +34 -2
  5. data/lib/seam/http_without_workspace.rb +41 -12
  6. data/lib/seam/paginator.rb +4 -1
  7. data/lib/seam/request.rb +5 -1
  8. data/lib/seam/resources/access_code.rb +74 -0
  9. data/lib/seam/resources/access_grant.rb +60 -0
  10. data/lib/seam/resources/access_method.rb +39 -0
  11. data/lib/seam/resources/acs_access_group.rb +45 -0
  12. data/lib/seam/resources/acs_credential.rb +67 -0
  13. data/lib/seam/resources/acs_encoder.rb +11 -0
  14. data/lib/seam/resources/acs_entrance.rb +95 -0
  15. data/lib/seam/resources/acs_system.rb +36 -0
  16. data/lib/seam/resources/acs_user.rb +66 -0
  17. data/lib/seam/resources/action_attempt.rb +192 -0
  18. data/lib/seam/resources/batch.rb +24 -0
  19. data/lib/seam/resources/client_session.rb +12 -0
  20. data/lib/seam/resources/connect_webview.rb +19 -0
  21. data/lib/seam/resources/connected_account.rb +50 -0
  22. data/lib/seam/resources/customer_portal.rb +5 -0
  23. data/lib/seam/resources/device.rb +622 -4
  24. data/lib/seam/resources/device_provider.rb +24 -0
  25. data/lib/seam/resources/event.rb +142 -3
  26. data/lib/seam/resources/instant_key.rb +13 -0
  27. data/lib/seam/resources/noise_threshold.rb +7 -0
  28. data/lib/seam/resources/pagination.rb +3 -0
  29. data/lib/seam/resources/phone.rb +29 -0
  30. data/lib/seam/resources/space.rb +19 -0
  31. data/lib/seam/resources/thermostat_daily_program.rb +9 -0
  32. data/lib/seam/resources/thermostat_schedule.rb +15 -0
  33. data/lib/seam/resources/unmanaged_access_code.rb +51 -0
  34. data/lib/seam/resources/unmanaged_access_grant.rb +56 -0
  35. data/lib/seam/resources/unmanaged_access_method.rb +36 -0
  36. data/lib/seam/resources/unmanaged_device.rb +80 -0
  37. data/lib/seam/resources/unmanaged_user_identity.rb +20 -0
  38. data/lib/seam/resources/user_identity.rb +21 -0
  39. data/lib/seam/resources/webhook.rb +4 -0
  40. data/lib/seam/resources/workspace.rb +15 -0
  41. data/lib/seam/routes/access_codes.rb +79 -79
  42. data/lib/seam/routes/access_codes_simulate.rb +3 -3
  43. data/lib/seam/routes/access_codes_unmanaged.rb +27 -23
  44. data/lib/seam/routes/access_grants.rb +57 -45
  45. data/lib/seam/routes/access_grants_unmanaged.rb +13 -13
  46. data/lib/seam/routes/access_methods.rb +32 -24
  47. data/lib/seam/routes/access_methods_unmanaged.rb +7 -7
  48. data/lib/seam/routes/acs_access_groups.rb +21 -21
  49. data/lib/seam/routes/acs_credentials.rb +40 -40
  50. data/lib/seam/routes/acs_encoders.rb +16 -16
  51. data/lib/seam/routes/acs_encoders_simulate.rb +11 -11
  52. data/lib/seam/routes/acs_entrances.rb +20 -20
  53. data/lib/seam/routes/acs_systems.rb +11 -11
  54. data/lib/seam/routes/acs_users.rb +83 -55
  55. data/lib/seam/routes/action_attempts.rb +6 -6
  56. data/lib/seam/routes/client_sessions.rb +38 -34
  57. data/lib/seam/routes/connect_webviews.rb +20 -20
  58. data/lib/seam/routes/connected_accounts.rb +24 -20
  59. data/lib/seam/routes/connected_accounts_simulate.rb +1 -1
  60. data/lib/seam/routes/customers.rb +50 -50
  61. data/lib/seam/routes/devices.rb +33 -29
  62. data/lib/seam/routes/devices_simulate.rb +7 -7
  63. data/lib/seam/routes/devices_unmanaged.rb +25 -26
  64. data/lib/seam/routes/events.rb +40 -32
  65. data/lib/seam/routes/instant_keys.rb +11 -7
  66. data/lib/seam/routes/locks.rb +20 -27
  67. data/lib/seam/routes/locks_simulate.rb +3 -3
  68. data/lib/seam/routes/noise_sensors.rb +8 -19
  69. data/lib/seam/routes/noise_sensors_noise_thresholds.rb +21 -21
  70. data/lib/seam/routes/noise_sensors_simulate.rb +1 -1
  71. data/lib/seam/routes/phones.rb +7 -7
  72. data/lib/seam/routes/phones_simulate.rb +4 -4
  73. data/lib/seam/routes/spaces.rb +53 -45
  74. data/lib/seam/routes/thermostats.rb +75 -86
  75. data/lib/seam/routes/thermostats_daily_programs.rb +9 -9
  76. data/lib/seam/routes/thermostats_schedules.rb +22 -22
  77. data/lib/seam/routes/thermostats_simulate.rb +9 -9
  78. data/lib/seam/routes/user_identities.rb +50 -46
  79. data/lib/seam/routes/user_identities_unmanaged.rb +11 -11
  80. data/lib/seam/routes/webhooks.rb +10 -10
  81. data/lib/seam/routes/workspaces.rb +19 -19
  82. data/lib/seam/version.rb +1 -1
  83. metadata +8 -11
@@ -9,193 +9,288 @@ module Seam
9
9
  class AkilesMetadata < BaseResource
10
10
  class Actions < BaseResource
11
11
  # ID of the gadget action.
12
+ # @return [String, nil]
12
13
  attr_accessor :id
13
14
  # Name of the gadget action.
15
+ # @return [String, nil]
14
16
  attr_accessor :name
15
17
  end
16
18
 
19
+ # Actions the gadget exposes (for example, open).
20
+ # @return [Array<Actions>]
17
21
  resource_list_accessor :actions, Actions
18
22
  # ID of the Akiles gadget.
23
+ # @return [String, nil]
19
24
  attr_accessor :gadget_id
20
25
  # ID of the Akiles site the gadget belongs to.
26
+ # @return [String, nil]
21
27
  attr_accessor :site_id
22
28
  # Name of the Akiles site the gadget belongs to.
29
+ # @return [String, nil]
23
30
  attr_accessor :site_name
24
31
  end
25
32
 
26
33
  class AssaAbloyVostioMetadata < BaseResource
27
34
  # Name of the door in the Vostio access system.
35
+ # @return [String, nil]
28
36
  attr_accessor :door_name
29
37
  # Number of the door in the Vostio access system.
38
+ # @return [Float, nil]
30
39
  attr_accessor :door_number
31
40
  # Type of the door in the Vostio access system.
41
+ # @return [String, nil]
32
42
  attr_accessor :door_type
33
43
  # PMS ID of the door in the Vostio access system.
44
+ # @return [String, nil]
34
45
  attr_accessor :pms_id
35
46
  # Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system.
47
+ # @return [Boolean, nil]
36
48
  attr_accessor :stand_open
37
49
  end
38
50
 
39
51
  class AvigilonAltaMetadata < BaseResource
40
52
  # Entry name for an Avigilon Alta system.
53
+ # @return [String, nil]
41
54
  attr_accessor :entry_name
42
55
  # Total count of entry relays for an Avigilon Alta system.
56
+ # @return [Float, nil]
43
57
  attr_accessor :entry_relays_total_count
44
58
  # Organization name for an Avigilon Alta system.
59
+ # @return [String, nil]
45
60
  attr_accessor :org_name
46
61
  # Site ID for an Avigilon Alta system.
62
+ # @return [Float, nil]
47
63
  attr_accessor :site_id
48
64
  # Site name for an Avigilon Alta system.
65
+ # @return [String, nil]
49
66
  attr_accessor :site_name
50
67
  # Zone ID for an Avigilon Alta system.
68
+ # @return [Float, nil]
51
69
  attr_accessor :zone_id
52
70
  # Zone name for an Avigilon Alta system.
71
+ # @return [String, nil]
53
72
  attr_accessor :zone_name
54
73
  end
55
74
 
56
75
  class BrivoMetadata < BaseResource
57
76
  # ID of the access point in the Brivo access system.
77
+ # @return [String, nil]
58
78
  attr_accessor :access_point_id
59
79
  # ID of the site that the access point belongs to.
80
+ # @return [Float, nil]
60
81
  attr_accessor :site_id
61
82
  # Name of the site that the access point belongs to.
83
+ # @return [String, nil]
62
84
  attr_accessor :site_name
63
85
  end
64
86
 
65
87
  class DormakabaAmbianceMetadata < BaseResource
66
88
  # Name of the access point in the dormakaba Ambiance access system.
89
+ # @return [String, nil]
67
90
  attr_accessor :access_point_name
68
91
  end
69
92
 
70
93
  class DormakabaCommunityMetadata < BaseResource
71
94
  # Type of access point profile in the dormakaba Community access system.
95
+ # @return [String, nil]
72
96
  attr_accessor :access_point_profile
73
97
  end
74
98
 
75
99
  class Errors < BaseResource
76
100
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
101
+ # @return [String]
77
102
  attr_accessor :error_code
78
103
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
104
+ # @return [String]
79
105
  attr_accessor :message
80
106
  # Date and time at which Seam created the error.
107
+ # @return [Time]
81
108
  date_accessor :created_at
82
109
  end
83
110
 
84
111
  class HotekMetadata < BaseResource
85
112
  # Display name of the entrance.
113
+ # @return [String, nil]
86
114
  attr_accessor :common_area_name
87
115
  # Display name of the entrance.
116
+ # @return [String, nil]
88
117
  attr_accessor :common_area_number
89
118
  # Room number of the entrance.
119
+ # @return [String, nil]
90
120
  attr_accessor :room_number
91
121
  end
92
122
 
93
123
  class LatchMetadata < BaseResource
94
124
  # Accessibility type in the Latch access system.
125
+ # @return [String, nil]
95
126
  attr_accessor :accessibility_type
96
127
  # Name of the door in the Latch access system.
128
+ # @return [String, nil]
97
129
  attr_accessor :door_name
98
130
  # Type of the door in the Latch access system.
131
+ # @return [String, nil]
99
132
  attr_accessor :door_type
100
133
  # Indicates whether the entrance is connected.
134
+ # @return [Boolean, nil]
101
135
  attr_accessor :is_connected
102
136
  end
103
137
 
104
138
  class SaltoKsMetadata < BaseResource
105
139
  # Battery level of the door access device.
140
+ # @return [String, nil]
106
141
  attr_accessor :battery_level
107
142
  # Name of the door in the Salto KS access system.
143
+ # @return [String, nil]
108
144
  attr_accessor :door_name
109
145
  # Indicates whether an intrusion alarm is active on the door.
146
+ # @return [Boolean, nil]
110
147
  attr_accessor :intrusion_alarm
111
148
  # Indicates whether the door is left open.
149
+ # @return [Boolean, nil]
112
150
  attr_accessor :left_open_alarm
113
151
  # Type of the lock in the Salto KS access system.
152
+ # @return [String, nil]
114
153
  attr_accessor :lock_type
115
154
  # Locked state of the door in the Salto KS access system.
155
+ # @return [String, nil]
116
156
  attr_accessor :locked_state
117
157
  # Indicates whether the door access device is online.
158
+ # @return [Boolean, nil]
118
159
  attr_accessor :online
119
160
  # Indicates whether privacy mode is enabled for the lock.
161
+ # @return [Boolean, nil]
120
162
  attr_accessor :privacy_mode
121
163
  end
122
164
 
123
165
  class SaltoSpaceMetadata < BaseResource
124
166
  # Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system.
167
+ # @return [Boolean, nil]
125
168
  attr_accessor :audit_on_keys
126
169
  # Description of the door in the Salto Space access system.
170
+ # @return [String, nil]
127
171
  attr_accessor :door_description
128
172
  # Door ID in the Salto Space access system.
173
+ # @return [String, nil]
129
174
  attr_accessor :door_id
130
175
  # Name of the door in the Salto Space access system.
176
+ # @return [String, nil]
131
177
  attr_accessor :door_name
132
178
  # Description of the room in the Salto Space access system.
179
+ # @return [String, nil]
133
180
  attr_accessor :room_description
134
181
  # Name of the room in the Salto Space access system.
182
+ # @return [String, nil]
135
183
  attr_accessor :room_name
136
184
  end
137
185
 
138
186
  class VisionlineMetadata < BaseResource
139
187
  class Profiles < BaseResource
140
188
  # Door profile ID in the Visionline access system.
189
+ # @return [String, nil]
141
190
  attr_accessor :visionline_door_profile_id
142
191
  # Door profile type in the Visionline access system.
192
+ # @return [String, nil]
143
193
  attr_accessor :visionline_door_profile_type
144
194
  end
145
195
 
196
+ # Profile for the door in the Visionline access system.
197
+ # @return [Array<Profiles>]
146
198
  resource_list_accessor :profiles, Profiles
147
199
  # Category of the door in the Visionline access system.
200
+ # @return [String, nil]
148
201
  attr_accessor :door_category
149
202
  # Name of the door in the Visionline access system.
203
+ # @return [String, nil]
150
204
  attr_accessor :door_name
151
205
  end
152
206
 
153
207
  class Warnings < BaseResource
154
208
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
209
+ # @return [String]
155
210
  attr_accessor :message
156
211
  # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
212
+ # @return [String]
157
213
  attr_accessor :warning_code
158
214
  # Date and time at which Seam created the warning.
215
+ # @return [Time]
159
216
  date_accessor :created_at
160
217
  end
161
218
 
219
+ # Akiles-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
220
+ # @return [AkilesMetadata, nil]
162
221
  resource_accessor :akiles_metadata, AkilesMetadata
222
+ # ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
223
+ # @return [AssaAbloyVostioMetadata, nil]
163
224
  resource_accessor :assa_abloy_vostio_metadata, AssaAbloyVostioMetadata
225
+ # Avigilon Alta-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
226
+ # @return [AvigilonAltaMetadata, nil]
164
227
  resource_accessor :avigilon_alta_metadata, AvigilonAltaMetadata
228
+ # Brivo-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
229
+ # @return [BrivoMetadata, nil]
165
230
  resource_accessor :brivo_metadata, BrivoMetadata
231
+ # dormakaba Ambiance-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
232
+ # @return [DormakabaAmbianceMetadata, nil]
166
233
  resource_accessor :dormakaba_ambiance_metadata, DormakabaAmbianceMetadata
234
+ # dormakaba Community-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
235
+ # @return [DormakabaCommunityMetadata, nil]
167
236
  resource_accessor :dormakaba_community_metadata, DormakabaCommunityMetadata
237
+ # Hotek-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
238
+ # @return [HotekMetadata, nil]
168
239
  resource_accessor :hotek_metadata, HotekMetadata
240
+ # Latch-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
241
+ # @return [LatchMetadata, nil]
169
242
  resource_accessor :latch_metadata, LatchMetadata
243
+ # Salto KS-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
244
+ # @return [SaltoKsMetadata, nil]
170
245
  resource_accessor :salto_ks_metadata, SaltoKsMetadata
246
+ # Salto Space-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
247
+ # @return [SaltoSpaceMetadata, nil]
171
248
  resource_accessor :salto_space_metadata, SaltoSpaceMetadata
249
+ # Visionline-specific metadata associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
250
+ # @return [VisionlineMetadata, nil]
172
251
  resource_accessor :visionline_metadata, VisionlineMetadata
252
+ # Errors associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
253
+ # @return [Array<Errors>]
173
254
  resource_list_accessor :errors, Errors
255
+ # Warnings associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
256
+ # @return [Array<Warnings>]
174
257
  resource_list_accessor :warnings, Warnings
175
258
  # ID of the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
259
+ # @return [String]
176
260
  attr_accessor :acs_entrance_id
177
261
  # ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
262
+ # @return [String]
178
263
  attr_accessor :acs_system_id
179
264
  # Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.
265
+ # @return [Boolean, nil]
180
266
  attr_accessor :can_belong_to_reservation
181
267
  # Indicates whether the ACS entrance can be unlocked with card credentials.
268
+ # @return [Boolean, nil]
182
269
  attr_accessor :can_unlock_with_card
183
270
  # Indicates whether the ACS entrance can be unlocked with cloud key credentials.
271
+ # @return [Boolean, nil]
184
272
  attr_accessor :can_unlock_with_cloud_key
185
273
  # Indicates whether the ACS entrance can be unlocked with pin codes.
274
+ # @return [Boolean, nil]
186
275
  attr_accessor :can_unlock_with_code
187
276
  # Indicates whether the ACS entrance can be unlocked with mobile key credentials.
277
+ # @return [Boolean, nil]
188
278
  attr_accessor :can_unlock_with_mobile_key
189
279
  # ID of the [connected account](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
280
+ # @return [String]
190
281
  attr_accessor :connected_account_id
191
282
  # Display name for the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
283
+ # @return [String]
192
284
  attr_accessor :display_name
193
285
  # Indicates whether the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) is currently locked.
286
+ # @return [Boolean, nil]
194
287
  attr_accessor :is_locked
195
288
  # IDs of the spaces that the entrance is in.
289
+ # @return [Array<String>]
196
290
  attr_accessor :space_ids
197
291
 
198
292
  # Date and time at which the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) was created.
293
+ # @return [Time]
199
294
  date_accessor :created_at
200
295
  end
201
296
  end
@@ -10,77 +10,113 @@ module Seam
10
10
  class AcsSystem < BaseResource
11
11
  class Errors < BaseResource
12
12
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
13
+ # @return [String]
13
14
  attr_accessor :error_code
14
15
  # Indicates whether the error is related to the [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
16
+ # @return [Boolean, nil]
15
17
  attr_accessor :is_bridge_error
16
18
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
19
+ # @return [String]
17
20
  attr_accessor :message
18
21
  # Date and time at which Seam created the error.
22
+ # @return [Time]
19
23
  date_accessor :created_at
20
24
  end
21
25
 
22
26
  class Location < BaseResource
23
27
  # Time zone in which the [access control system](https://docs.seam.co/low-level-apis/access-systems) is located.
28
+ # @return [String, nil]
24
29
  attr_accessor :time_zone
25
30
  end
26
31
 
27
32
  class VisionlineMetadata < BaseResource
28
33
  # IP address or hostname of the main Visionline server relative to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) on the local network.
34
+ # @return [String, nil]
29
35
  attr_accessor :lan_address
30
36
  # Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset.
37
+ # @return [String, nil]
31
38
  attr_accessor :mobile_access_uuid
32
39
  # Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager.
40
+ # @return [String, nil]
33
41
  attr_accessor :system_id
34
42
  end
35
43
 
36
44
  class Warnings < BaseResource
37
45
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
46
+ # @return [String]
38
47
  attr_accessor :message
48
+ # @return [Array<String>]
39
49
  # @deprecated this field is deprecated.
40
50
  attr_accessor :misconfigured_acs_entrance_ids
41
51
  # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
52
+ # @return [String]
42
53
  attr_accessor :warning_code
43
54
  # Date and time at which Seam created the warning.
55
+ # @return [Time]
44
56
  date_accessor :created_at
45
57
  end
46
58
 
59
+ # Location information for the [access control system](https://docs.seam.co/low-level-apis/access-systems).
60
+ # @return [Location]
47
61
  resource_accessor :location, Location
62
+ # Visionline-specific metadata for the [access control system](https://docs.seam.co/low-level-apis/access-systems).
63
+ # @return [VisionlineMetadata, nil]
48
64
  resource_accessor :visionline_metadata, VisionlineMetadata
65
+ # Errors associated with the [access control system](https://docs.seam.co/low-level-apis/access-systems).
66
+ # @return [Array<Errors>]
49
67
  resource_list_accessor :errors, Errors
68
+ # Warnings associated with the [access control system](https://docs.seam.co/low-level-apis/access-systems).
69
+ # @return [Array<Warnings>]
50
70
  resource_list_accessor :warnings, Warnings
51
71
  # Number of access groups in the [access control system](https://docs.seam.co/low-level-apis/access-systems).
72
+ # @return [Float, nil]
52
73
  attr_accessor :acs_access_group_count
53
74
  # ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems).
75
+ # @return [String]
54
76
  attr_accessor :acs_system_id
55
77
  # Number of users in the [access control system](https://docs.seam.co/low-level-apis/access-systems).
78
+ # @return [Float, nil]
56
79
  attr_accessor :acs_user_count
57
80
  # ID of the connected account associated with the [access control system](https://docs.seam.co/low-level-apis/access-systems).
81
+ # @return [String]
58
82
  attr_accessor :connected_account_id
59
83
  # IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) associated with the [access control system](https://docs.seam.co/low-level-apis/access-systems).
84
+ # @return [Array<String>]
60
85
  # @deprecated Use `connected_account_id`.
61
86
  attr_accessor :connected_account_ids
62
87
  # ID of the default credential manager `acs_system` for this [access control system](https://docs.seam.co/low-level-apis/access-systems).
88
+ # @return [String, nil]
63
89
  attr_accessor :default_credential_manager_acs_system_id
64
90
  # Brand-specific terminology for the [access control system](https://docs.seam.co/low-level-apis/access-systems) type.
91
+ # @return [String, nil]
65
92
  attr_accessor :external_type
66
93
  # Display name that corresponds to the brand-specific terminology for the [access control system](https://docs.seam.co/low-level-apis/access-systems) type.
94
+ # @return [String, nil]
67
95
  attr_accessor :external_type_display_name
68
96
  # Alternative text for the [access control system](https://docs.seam.co/low-level-apis/access-systems) image.
97
+ # @return [String]
69
98
  attr_accessor :image_alt_text
70
99
  # URL for the image that represents the [access control system](https://docs.seam.co/low-level-apis/access-systems).
100
+ # @return [String]
71
101
  attr_accessor :image_url
72
102
  # Indicates whether the `acs_system` is a credential manager.
103
+ # @return [Boolean]
73
104
  attr_accessor :is_credential_manager
74
105
  # Name of the [access control system](https://docs.seam.co/low-level-apis/access-systems).
106
+ # @return [String]
75
107
  attr_accessor :name
108
+ # @return [String, nil]
76
109
  # @deprecated Use `external_type`.
77
110
  attr_accessor :system_type
111
+ # @return [String, nil]
78
112
  # @deprecated Use `external_type_display_name`.
79
113
  attr_accessor :system_type_display_name
80
114
  # ID of the workspace that contains the [access control system](https://docs.seam.co/low-level-apis/access-systems).
115
+ # @return [String]
81
116
  attr_accessor :workspace_id
82
117
 
83
118
  # Date and time at which the [access control system](https://docs.seam.co/low-level-apis/access-systems) was created.
119
+ # @return [Time]
84
120
  date_accessor :created_at
85
121
  end
86
122
  end
@@ -10,135 +10,201 @@ module Seam
10
10
  class AcsUser < BaseResource
11
11
  class AccessSchedule < BaseResource
12
12
  # Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
13
+ # @return [Time, nil]
13
14
  date_accessor :ends_at
14
15
  # Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
16
+ # @return [Time]
15
17
  date_accessor :starts_at
16
18
  end
17
19
 
18
20
  class Errors < BaseResource
21
+ # @return [String]
19
22
  attr_accessor :error_code
20
23
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
24
+ # @return [String]
21
25
  attr_accessor :message
22
26
  # Date and time at which Seam created the error.
27
+ # @return [Time]
23
28
  date_accessor :created_at
24
29
  end
25
30
 
26
31
  class PendingMutations < BaseResource
27
32
  class From < BaseResource
28
33
  # Old access group ID.
34
+ # @return [String, nil]
29
35
  attr_accessor :acs_access_group_id
30
36
  # Previous credential ID.
37
+ # @return [String, nil]
31
38
  attr_accessor :acs_credential_id
32
39
  # Email address of the access system user.
40
+ # @return [String, nil]
33
41
  attr_accessor :email_address
34
42
  # Full name of the access system user.
43
+ # @return [String, nil]
35
44
  attr_accessor :full_name
45
+ # @return [Boolean]
36
46
  attr_accessor :is_suspended
37
47
  # Phone number of the access system user.
48
+ # @return [String, nil]
38
49
  attr_accessor :phone_number
39
50
  # Starting time for the access schedule.
51
+ # @return [Time, nil]
40
52
  date_accessor :ends_at
41
53
  # Starting time for the access schedule.
54
+ # @return [Time, nil]
42
55
  date_accessor :starts_at
43
56
  end
44
57
 
45
58
  class To < BaseResource
46
59
  # New access group ID.
60
+ # @return [String, nil]
47
61
  attr_accessor :acs_access_group_id
48
62
  # New credential ID.
63
+ # @return [String, nil]
49
64
  attr_accessor :acs_credential_id
50
65
  # Email address of the access system user.
66
+ # @return [String, nil]
51
67
  attr_accessor :email_address
52
68
  # Full name of the access system user.
69
+ # @return [String, nil]
53
70
  attr_accessor :full_name
71
+ # @return [Boolean]
54
72
  attr_accessor :is_suspended
55
73
  # Phone number of the access system user.
74
+ # @return [String, nil]
56
75
  attr_accessor :phone_number
57
76
  # Starting time for the access schedule.
77
+ # @return [Time, nil]
58
78
  date_accessor :ends_at
59
79
  # Starting time for the access schedule.
80
+ # @return [Time, nil]
60
81
  date_accessor :starts_at
61
82
  end
62
83
 
84
+ # @return [From]
63
85
  resource_accessor :from, From
86
+ # @return [To]
64
87
  resource_accessor :to, To
65
88
  # ID of the access group involved in the scheduled change.
89
+ # @return [String]
66
90
  attr_accessor :acs_access_group_id
67
91
  # Detailed description of the mutation.
92
+ # @return [String]
68
93
  attr_accessor :message
94
+ # @return [String]
69
95
  attr_accessor :mutation_code
70
96
  # Whether the user is scheduled to be added to or removed from the access group.
97
+ # @return [String]
71
98
  attr_accessor :variant
72
99
  # Date and time at which the mutation was created.
100
+ # @return [Time]
73
101
  date_accessor :created_at
74
102
  # Optional: When the user creation is scheduled to occur.
103
+ # @return [Time, nil]
75
104
  date_accessor :scheduled_at
76
105
  end
77
106
 
78
107
  class SaltoKsMetadata < BaseResource
79
108
  # Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.
109
+ # @return [Boolean, nil]
80
110
  attr_accessor :is_subscribed
81
111
  end
82
112
 
83
113
  class SaltoSpaceMetadata < BaseResource
84
114
  # Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.
115
+ # @return [Boolean, nil]
85
116
  attr_accessor :audit_openings
86
117
  # User ID in the Salto Space access system.
118
+ # @return [String, nil]
87
119
  attr_accessor :user_id
88
120
  end
89
121
 
90
122
  class Warnings < BaseResource
91
123
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
124
+ # @return [String]
92
125
  attr_accessor :message
126
+ # @return [String]
93
127
  attr_accessor :warning_code
94
128
  # Date and time at which Seam created the warning.
129
+ # @return [Time]
95
130
  date_accessor :created_at
96
131
  end
97
132
 
133
+ # `starts_at` and `ends_at` timestamps for the [access system user's](https://docs.seam.co/low-level-apis/access-systems/user-management) access.
134
+ # @return [AccessSchedule, nil]
98
135
  resource_accessor :access_schedule, AccessSchedule
136
+ # Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
137
+ # @return [SaltoKsMetadata, nil]
99
138
  resource_accessor :salto_ks_metadata, SaltoKsMetadata
139
+ # Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
140
+ # @return [SaltoSpaceMetadata, nil]
100
141
  resource_accessor :salto_space_metadata, SaltoSpaceMetadata
142
+ # Errors associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
143
+ # @return [Array<Errors>]
101
144
  resource_list_accessor :errors, Errors
145
+ # Pending mutations associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.
146
+ # @return [Array<PendingMutations>]
102
147
  resource_list_accessor :pending_mutations, PendingMutations
148
+ # Warnings associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
149
+ # @return [Array<Warnings>]
103
150
  resource_list_accessor :warnings, Warnings
104
151
  # ID of the [access system](https://docs.seam.co/low-level-apis/access-systems) that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
152
+ # @return [String]
105
153
  attr_accessor :acs_system_id
106
154
  # ID of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
155
+ # @return [String]
107
156
  attr_accessor :acs_user_id
108
157
  # The ID of the connected account that is associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
158
+ # @return [String]
109
159
  attr_accessor :connected_account_id
110
160
  # Display name for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
161
+ # @return [String]
111
162
  attr_accessor :display_name
163
+ # @return [String, nil]
112
164
  # @deprecated use email_address.
113
165
  attr_accessor :email
114
166
  # Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
167
+ # @return [String, nil]
115
168
  attr_accessor :email_address
116
169
  # Brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
170
+ # @return [String, nil]
117
171
  attr_accessor :external_type
118
172
  # Display name that corresponds to the brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
173
+ # @return [String, nil]
119
174
  attr_accessor :external_type_display_name
120
175
  # Full name of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
176
+ # @return [String, nil]
121
177
  attr_accessor :full_name
122
178
  # ID of the HID access control system associated with the user.
179
+ # @return [String, nil]
123
180
  attr_accessor :hid_acs_system_id
124
181
  # Indicates whether Seam manages the access system user.
182
+ # @return [Boolean]
125
183
  attr_accessor :is_managed
126
184
  # Indicates whether the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is currently [suspended](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).
185
+ # @return [Boolean, nil]
127
186
  attr_accessor :is_suspended
128
187
  # Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
188
+ # @return [String, nil]
129
189
  attr_accessor :phone_number
130
190
  # Email address of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
191
+ # @return [String, nil]
131
192
  attr_accessor :user_identity_email_address
132
193
  # Full name of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
194
+ # @return [String, nil]
133
195
  attr_accessor :user_identity_full_name
134
196
  # ID of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
197
+ # @return [String, nil]
135
198
  attr_accessor :user_identity_id
136
199
  # Phone number of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
200
+ # @return [String, nil]
137
201
  attr_accessor :user_identity_phone_number
138
202
  # ID of the workspace that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
203
+ # @return [String]
139
204
  attr_accessor :workspace_id
140
205
 
141
206
  # Date and time at which the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created.
207
+ # @return [Time]
142
208
  date_accessor :created_at
143
209
  end
144
210
  end