seam 2.139.0 → 2.141.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +69 -66
  3. data/README.md +86 -0
  4. data/lib/seam/http_without_workspace.rb +4 -4
  5. data/lib/seam/null.rb +23 -0
  6. data/lib/seam/paginator.rb +4 -1
  7. data/lib/seam/request.rb +49 -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/strict_url_search_params_serializer.rb +17 -0
  83. data/lib/seam/url_search_params.rb +102 -0
  84. data/lib/seam/url_search_params_serializer.rb +217 -0
  85. data/lib/seam/version.rb +1 -1
  86. data/lib/seam.rb +3 -0
  87. metadata +12 -11
@@ -10,97 +10,142 @@ module Seam
10
10
  class AcsAccessGroup < 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
19
21
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
22
+ # @return [String]
20
23
  attr_accessor :error_code
21
24
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
25
+ # @return [String]
22
26
  attr_accessor :message
23
27
  # Date and time at which Seam created the error.
28
+ # @return [Time]
24
29
  date_accessor :created_at
25
30
  end
26
31
 
27
32
  class PendingMutations < BaseResource
28
33
  class From < BaseResource
29
34
  # Old entrance ID.
35
+ # @return [String, nil]
30
36
  attr_accessor :acs_entrance_id
31
37
  # Old user ID.
38
+ # @return [String, nil]
32
39
  attr_accessor :acs_user_id
33
40
  # Name of the access group.
41
+ # @return [String, nil]
34
42
  attr_accessor :name
35
43
  # Ending time for the access schedule.
44
+ # @return [Time, nil]
36
45
  date_accessor :ends_at
37
46
  # Starting time for the access schedule.
47
+ # @return [Time, nil]
38
48
  date_accessor :starts_at
39
49
  end
40
50
 
41
51
  class To < BaseResource
42
52
  # New entrance ID.
53
+ # @return [String, nil]
43
54
  attr_accessor :acs_entrance_id
44
55
  # New user ID.
56
+ # @return [String, nil]
45
57
  attr_accessor :acs_user_id
46
58
  # Name of the access group.
59
+ # @return [String, nil]
47
60
  attr_accessor :name
48
61
  # Ending time for the access schedule.
62
+ # @return [Time, nil]
49
63
  date_accessor :ends_at
50
64
  # Starting time for the access schedule.
65
+ # @return [Time, nil]
51
66
  date_accessor :starts_at
52
67
  end
53
68
 
69
+ # @return [From]
54
70
  resource_accessor :from, From
71
+ # @return [To]
55
72
  resource_accessor :to, To
56
73
  # ID of the user involved in the scheduled change.
74
+ # @return [String]
57
75
  attr_accessor :acs_user_id
58
76
  # Detailed description of the mutation.
77
+ # @return [String]
59
78
  attr_accessor :message
79
+ # @return [String]
60
80
  attr_accessor :mutation_code
61
81
  # Whether the user is scheduled to be added to or removed from this access group.
82
+ # @return [String]
62
83
  attr_accessor :variant
63
84
  # Date and time at which the mutation was created.
85
+ # @return [Time]
64
86
  date_accessor :created_at
65
87
  end
66
88
 
67
89
  class Warnings < BaseResource
68
90
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
91
+ # @return [String]
69
92
  attr_accessor :message
70
93
  # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
94
+ # @return [String]
71
95
  attr_accessor :warning_code
72
96
  # Date and time at which Seam created the warning.
97
+ # @return [Time]
73
98
  date_accessor :created_at
74
99
  end
75
100
 
101
+ # `starts_at` and `ends_at` timestamps for the access group's access.
102
+ # @return [AccessSchedule, nil]
76
103
  resource_accessor :access_schedule, AccessSchedule
104
+ # Errors associated with the `acs_access_group`.
105
+ # @return [Array<Errors>]
77
106
  resource_list_accessor :errors, Errors
107
+ # Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.
108
+ # @return [Array<PendingMutations>]
78
109
  resource_list_accessor :pending_mutations, PendingMutations
110
+ # Warnings associated with the `acs_access_group`.
111
+ # @return [Array<Warnings>]
79
112
  resource_list_accessor :warnings, Warnings
113
+ # @return [String]
80
114
  # @deprecated Use `external_type`.
81
115
  attr_accessor :access_group_type
116
+ # @return [String]
82
117
  # @deprecated Use `external_type_display_name`.
83
118
  attr_accessor :access_group_type_display_name
84
119
  # ID of the access group.
120
+ # @return [String]
85
121
  attr_accessor :acs_access_group_id
86
122
  # ID of the access control system that contains the access group.
123
+ # @return [String]
87
124
  attr_accessor :acs_system_id
88
125
  # ID of the connected account that contains the access group.
126
+ # @return [String]
89
127
  attr_accessor :connected_account_id
90
128
  # Display name for the access group.
129
+ # @return [String]
91
130
  attr_accessor :display_name
92
131
  # Brand-specific terminology for the access group type.
132
+ # @return [String]
93
133
  attr_accessor :external_type
94
134
  # Display name that corresponds to the brand-specific terminology for the access group type.
135
+ # @return [String]
95
136
  attr_accessor :external_type_display_name
96
137
  # Indicates whether Seam manages the access group.
138
+ # @return [Boolean]
97
139
  attr_accessor :is_managed
98
140
  # Name of the access group.
141
+ # @return [String]
99
142
  attr_accessor :name
100
143
  # ID of the workspace that contains the access group.
144
+ # @return [String]
101
145
  attr_accessor :workspace_id
102
146
 
103
147
  # Date and time at which the access group was created.
148
+ # @return [Time]
104
149
  date_accessor :created_at
105
150
  end
106
151
  end
@@ -10,110 +10,177 @@ module Seam
10
10
  #
11
11
  # For granting a person access to a space, [Access Grants](https://docs.seam.co/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.
12
12
  class AcsCredential < BaseResource
13
+ class AkilesMetadata < BaseResource
14
+ # ID of the Akiles member PIN.
15
+ # @return [String, nil]
16
+ attr_accessor :member_pin_id
17
+ end
18
+
13
19
  class AssaAbloyVostioMetadata < BaseResource
14
20
  # 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.
21
+ # @return [Boolean, nil]
15
22
  attr_accessor :auto_join
16
23
  # Names of the doors to which to grant access in the Vostio access system.
24
+ # @return [Array<String>]
17
25
  attr_accessor :door_names
18
26
  # Endpoint ID in the Vostio access system.
27
+ # @return [String, nil]
19
28
  attr_accessor :endpoint_id
20
29
  # Key ID in the Vostio access system.
30
+ # @return [String, nil]
21
31
  attr_accessor :key_id
22
32
  # Key issuing request ID in the Vostio access system.
33
+ # @return [String, nil]
23
34
  attr_accessor :key_issuing_request_id
24
35
  # IDs of the guest entrances to override in the Vostio access system.
36
+ # @return [Array<String>]
25
37
  attr_accessor :override_guest_acs_entrance_ids
26
38
  end
27
39
 
28
40
  class Errors < BaseResource
41
+ # @return [String]
29
42
  attr_accessor :error_code
43
+ # @return [String]
30
44
  attr_accessor :message
31
45
  # Date and time at which Seam created the error.
46
+ # @return [Time]
32
47
  date_accessor :created_at
33
48
  end
34
49
 
35
50
  class VisionlineMetadata < BaseResource
36
51
  # 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.
52
+ # @return [Boolean, nil]
37
53
  attr_accessor :auto_join
38
54
  # Card function type in the Visionline access system.
55
+ # @return [String, nil]
39
56
  attr_accessor :card_function_type
40
57
  # ID of the card in the Visionline access system.
58
+ # @return [String, nil]
41
59
  attr_accessor :card_id
42
60
  # Common entrance IDs in the Visionline access system.
61
+ # @return [Array<String>]
43
62
  attr_accessor :common_acs_entrance_ids
44
63
  # ID of the credential in the Visionline access system.
64
+ # @return [String, nil]
45
65
  attr_accessor :credential_id
46
66
  # Guest entrance IDs in the Visionline access system.
67
+ # @return [Array<String>]
47
68
  attr_accessor :guest_acs_entrance_ids
48
69
  # Indicates whether the credential is valid.
70
+ # @return [Boolean, nil]
49
71
  attr_accessor :is_valid
50
72
  # IDs of the credentials to which you want to join.
73
+ # @return [Array<String>]
51
74
  attr_accessor :joiner_acs_credential_ids
52
75
  end
53
76
 
54
77
  class Warnings < BaseResource
55
78
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
79
+ # @return [String]
56
80
  attr_accessor :message
81
+ # The PIN code that was assigned instead.
82
+ # @return [String]
83
+ attr_accessor :new_code
84
+ # The originally requested PIN code that could not be used.
85
+ # @return [String]
86
+ attr_accessor :original_code
57
87
  # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
88
+ # @return [String]
58
89
  attr_accessor :warning_code
59
90
  # Date and time at which Seam created the warning.
91
+ # @return [Time]
60
92
  date_accessor :created_at
61
93
  end
62
94
 
95
+ # Akiles-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
96
+ # @return [AkilesMetadata, nil]
97
+ resource_accessor :akiles_metadata, AkilesMetadata
98
+ # Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
99
+ # @return [AssaAbloyVostioMetadata, nil]
63
100
  resource_accessor :assa_abloy_vostio_metadata, AssaAbloyVostioMetadata
101
+ # Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
102
+ # @return [VisionlineMetadata, nil]
64
103
  resource_accessor :visionline_metadata, VisionlineMetadata
104
+ # Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
105
+ # @return [Array<Errors>]
65
106
  resource_list_accessor :errors, Errors
107
+ # Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
108
+ # @return [Array<Warnings>]
66
109
  resource_list_accessor :warnings, Warnings
67
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
+ # @return [String]
68
112
  attr_accessor :access_method
69
113
  # ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
114
+ # @return [String]
70
115
  attr_accessor :acs_credential_id
71
116
  # ID of the credential pool to which the credential belongs.
117
+ # @return [String, nil]
72
118
  attr_accessor :acs_credential_pool_id
73
119
  # 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).
120
+ # @return [String]
74
121
  attr_accessor :acs_system_id
75
122
  # 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.
123
+ # @return [String, nil]
76
124
  attr_accessor :acs_user_id
77
125
  # Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
126
+ # @return [String, nil]
78
127
  attr_accessor :card_number
79
128
  # Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
129
+ # @return [String, nil]
80
130
  attr_accessor :code
81
131
  # 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.
132
+ # @return [String]
82
133
  attr_accessor :connected_account_id
83
134
  # Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
135
+ # @return [String]
84
136
  attr_accessor :display_name
85
137
  # 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`.
138
+ # @return [String, nil]
86
139
  attr_accessor :ends_at
87
140
  # 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`.
141
+ # @return [String, nil]
88
142
  attr_accessor :external_type
89
143
  # Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
144
+ # @return [String, nil]
90
145
  attr_accessor :external_type_display_name
91
146
  # Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
147
+ # @return [Boolean, nil]
92
148
  attr_accessor :is_issued
93
149
  # 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.
150
+ # @return [Boolean, nil]
94
151
  attr_accessor :is_latest_desired_state_synced_with_provider
95
152
  # Indicates whether Seam manages the credential.
153
+ # @return [Boolean]
96
154
  attr_accessor :is_managed
97
155
  # 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).
156
+ # @return [Boolean, nil]
98
157
  attr_accessor :is_multi_phone_sync_credential
99
158
  # 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.
159
+ # @return [Boolean, nil]
100
160
  attr_accessor :is_one_time_use
101
161
  # ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
162
+ # @return [String, nil]
102
163
  attr_accessor :parent_acs_credential_id
103
164
  # 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.
165
+ # @return [String, nil]
104
166
  attr_accessor :starts_at
105
167
  # 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.
168
+ # @return [String, nil]
106
169
  attr_accessor :user_identity_id
107
170
  # ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
171
+ # @return [String]
108
172
  attr_accessor :workspace_id
109
173
 
110
174
  # Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
175
+ # @return [Time]
111
176
  date_accessor :created_at
112
177
 
113
178
  # Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
179
+ # @return [Time, nil]
114
180
  date_accessor :issued_at
115
181
 
116
182
  # 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.
183
+ # @return [Time, nil]
117
184
  date_accessor :latest_desired_state_synced_with_provider_at
118
185
  end
119
186
  end
@@ -19,26 +19,37 @@ module Seam
19
19
  class AcsEncoder < BaseResource
20
20
  class Errors < BaseResource
21
21
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
22
+ # @return [String]
22
23
  attr_accessor :error_code
23
24
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
25
+ # @return [String]
24
26
  attr_accessor :message
25
27
  # Date and time at which Seam created the error.
28
+ # @return [Time]
26
29
  date_accessor :created_at
27
30
  end
28
31
 
32
+ # Errors associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
33
+ # @return [Array<Errors>]
29
34
  resource_list_accessor :errors, Errors
30
35
  # ID of the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
36
+ # @return [String]
31
37
  attr_accessor :acs_encoder_id
32
38
  # ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
39
+ # @return [String]
33
40
  attr_accessor :acs_system_id
34
41
  # ID of the connected account that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
42
+ # @return [String]
35
43
  attr_accessor :connected_account_id
36
44
  # Display name for the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
45
+ # @return [String]
37
46
  attr_accessor :display_name
38
47
  # ID of the workspace that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
48
+ # @return [String]
39
49
  attr_accessor :workspace_id
40
50
 
41
51
  # Date and time at which the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was created.
52
+ # @return [Time]
42
53
  date_accessor :created_at
43
54
  end
44
55
  end
@@ -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