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.
- checksums.yaml +4 -4
- data/Gemfile.lock +69 -66
- data/README.md +12 -0
- data/lib/seam/http_single_workspace.rb +34 -2
- data/lib/seam/http_without_workspace.rb +41 -12
- data/lib/seam/paginator.rb +4 -1
- data/lib/seam/request.rb +5 -1
- data/lib/seam/resources/access_code.rb +74 -0
- data/lib/seam/resources/access_grant.rb +60 -0
- data/lib/seam/resources/access_method.rb +39 -0
- data/lib/seam/resources/acs_access_group.rb +45 -0
- data/lib/seam/resources/acs_credential.rb +67 -0
- data/lib/seam/resources/acs_encoder.rb +11 -0
- data/lib/seam/resources/acs_entrance.rb +95 -0
- data/lib/seam/resources/acs_system.rb +36 -0
- data/lib/seam/resources/acs_user.rb +66 -0
- data/lib/seam/resources/action_attempt.rb +192 -0
- data/lib/seam/resources/batch.rb +24 -0
- data/lib/seam/resources/client_session.rb +12 -0
- data/lib/seam/resources/connect_webview.rb +19 -0
- data/lib/seam/resources/connected_account.rb +50 -0
- data/lib/seam/resources/customer_portal.rb +5 -0
- data/lib/seam/resources/device.rb +622 -4
- data/lib/seam/resources/device_provider.rb +24 -0
- data/lib/seam/resources/event.rb +142 -3
- data/lib/seam/resources/instant_key.rb +13 -0
- data/lib/seam/resources/noise_threshold.rb +7 -0
- data/lib/seam/resources/pagination.rb +3 -0
- data/lib/seam/resources/phone.rb +29 -0
- data/lib/seam/resources/space.rb +19 -0
- data/lib/seam/resources/thermostat_daily_program.rb +9 -0
- data/lib/seam/resources/thermostat_schedule.rb +15 -0
- data/lib/seam/resources/unmanaged_access_code.rb +51 -0
- data/lib/seam/resources/unmanaged_access_grant.rb +56 -0
- data/lib/seam/resources/unmanaged_access_method.rb +36 -0
- data/lib/seam/resources/unmanaged_device.rb +80 -0
- data/lib/seam/resources/unmanaged_user_identity.rb +20 -0
- data/lib/seam/resources/user_identity.rb +21 -0
- data/lib/seam/resources/webhook.rb +4 -0
- data/lib/seam/resources/workspace.rb +15 -0
- data/lib/seam/routes/access_codes.rb +79 -79
- data/lib/seam/routes/access_codes_simulate.rb +3 -3
- data/lib/seam/routes/access_codes_unmanaged.rb +27 -23
- data/lib/seam/routes/access_grants.rb +57 -45
- data/lib/seam/routes/access_grants_unmanaged.rb +13 -13
- data/lib/seam/routes/access_methods.rb +32 -24
- data/lib/seam/routes/access_methods_unmanaged.rb +7 -7
- data/lib/seam/routes/acs_access_groups.rb +21 -21
- data/lib/seam/routes/acs_credentials.rb +40 -40
- data/lib/seam/routes/acs_encoders.rb +16 -16
- data/lib/seam/routes/acs_encoders_simulate.rb +11 -11
- data/lib/seam/routes/acs_entrances.rb +20 -20
- data/lib/seam/routes/acs_systems.rb +11 -11
- data/lib/seam/routes/acs_users.rb +83 -55
- data/lib/seam/routes/action_attempts.rb +6 -6
- data/lib/seam/routes/client_sessions.rb +38 -34
- data/lib/seam/routes/connect_webviews.rb +20 -20
- data/lib/seam/routes/connected_accounts.rb +24 -20
- data/lib/seam/routes/connected_accounts_simulate.rb +1 -1
- data/lib/seam/routes/customers.rb +50 -50
- data/lib/seam/routes/devices.rb +33 -29
- data/lib/seam/routes/devices_simulate.rb +7 -7
- data/lib/seam/routes/devices_unmanaged.rb +25 -26
- data/lib/seam/routes/events.rb +40 -32
- data/lib/seam/routes/instant_keys.rb +11 -7
- data/lib/seam/routes/locks.rb +20 -27
- data/lib/seam/routes/locks_simulate.rb +3 -3
- data/lib/seam/routes/noise_sensors.rb +8 -19
- data/lib/seam/routes/noise_sensors_noise_thresholds.rb +21 -21
- data/lib/seam/routes/noise_sensors_simulate.rb +1 -1
- data/lib/seam/routes/phones.rb +7 -7
- data/lib/seam/routes/phones_simulate.rb +4 -4
- data/lib/seam/routes/spaces.rb +53 -45
- data/lib/seam/routes/thermostats.rb +75 -86
- data/lib/seam/routes/thermostats_daily_programs.rb +9 -9
- data/lib/seam/routes/thermostats_schedules.rb +22 -22
- data/lib/seam/routes/thermostats_simulate.rb +9 -9
- data/lib/seam/routes/user_identities.rb +50 -46
- data/lib/seam/routes/user_identities_unmanaged.rb +11 -11
- data/lib/seam/routes/webhooks.rb +10 -10
- data/lib/seam/routes/workspaces.rb +19 -19
- data/lib/seam/version.rb +1 -1
- metadata +8 -11
|
@@ -6,23 +6,35 @@ module Seam
|
|
|
6
6
|
class UnmanagedDevice < BaseResource
|
|
7
7
|
class Errors < BaseResource
|
|
8
8
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
9
|
+
# @return [String]
|
|
9
10
|
attr_accessor :error_code
|
|
10
11
|
# Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
12
|
+
# @return [Boolean, nil]
|
|
11
13
|
attr_accessor :is_bridge_error
|
|
14
|
+
# @return [Boolean, nil]
|
|
12
15
|
attr_accessor :is_connected_account_error
|
|
16
|
+
# @return [Boolean]
|
|
13
17
|
attr_accessor :is_device_error
|
|
14
18
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
19
|
+
# @return [String]
|
|
15
20
|
attr_accessor :message
|
|
16
21
|
# Date and time at which Seam created the error.
|
|
22
|
+
# @return [Time]
|
|
17
23
|
date_accessor :created_at
|
|
18
24
|
end
|
|
19
25
|
|
|
20
26
|
class Location < BaseResource
|
|
21
27
|
# Name of the device location.
|
|
28
|
+
# @return [String, nil]
|
|
22
29
|
attr_accessor :location_name
|
|
30
|
+
# Name of the room within the device location, when the provider reports one.
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
attr_accessor :room_name
|
|
23
33
|
# Time zone of the device location.
|
|
34
|
+
# @return [String, nil]
|
|
24
35
|
attr_accessor :time_zone
|
|
25
36
|
# Time zone of the device location.
|
|
37
|
+
# @return [String, nil]
|
|
26
38
|
# @deprecated Use `time_zone` instead.
|
|
27
39
|
attr_accessor :timezone
|
|
28
40
|
end
|
|
@@ -30,135 +42,203 @@ module Seam
|
|
|
30
42
|
class Properties < BaseResource
|
|
31
43
|
class AccessoryKeypad < BaseResource
|
|
32
44
|
class Battery < BaseResource
|
|
45
|
+
# @return [Float]
|
|
33
46
|
attr_accessor :level
|
|
34
47
|
end
|
|
35
48
|
|
|
49
|
+
# Keypad battery properties.
|
|
50
|
+
# @return [Battery, nil]
|
|
36
51
|
resource_accessor :battery, Battery
|
|
37
52
|
# Indicates if an accessory keypad is connected to the device.
|
|
53
|
+
# @return [Boolean]
|
|
38
54
|
attr_accessor :is_connected
|
|
39
55
|
end
|
|
40
56
|
|
|
41
57
|
class Battery < BaseResource
|
|
42
58
|
# Battery charge level as a value between 0 and 1, inclusive.
|
|
59
|
+
# @return [Float]
|
|
43
60
|
attr_accessor :level
|
|
44
61
|
# Represents the current status of the battery charge level. Values are `critical`, which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; `low`, which signifies that the battery is under the preferred threshold and should be charged soon; `good`, which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and `full`, which represents a battery that is fully charged, providing the maximum duration of usage.
|
|
62
|
+
# @return [String]
|
|
45
63
|
attr_accessor :status
|
|
46
64
|
end
|
|
47
65
|
|
|
48
66
|
class Model < BaseResource
|
|
67
|
+
# @return [Boolean, nil]
|
|
49
68
|
# @deprecated use device.properties.model.can_connect_accessory_keypad
|
|
50
69
|
attr_accessor :accessory_keypad_supported
|
|
51
70
|
# Indicates whether the device can connect a accessory keypad.
|
|
71
|
+
# @return [Boolean, nil]
|
|
52
72
|
attr_accessor :can_connect_accessory_keypad
|
|
53
73
|
# Display name of the device model.
|
|
74
|
+
# @return [String]
|
|
54
75
|
attr_accessor :display_name
|
|
55
76
|
# Indicates whether the device has a built in accessory keypad.
|
|
77
|
+
# @return [Boolean, nil]
|
|
56
78
|
attr_accessor :has_built_in_keypad
|
|
57
79
|
# Display name that corresponds to the manufacturer-specific terminology for the device.
|
|
80
|
+
# @return [String]
|
|
58
81
|
attr_accessor :manufacturer_display_name
|
|
82
|
+
# @return [Boolean, nil]
|
|
59
83
|
# @deprecated use device.can_program_offline_access_codes.
|
|
60
84
|
attr_accessor :offline_access_codes_supported
|
|
85
|
+
# @return [Boolean, nil]
|
|
61
86
|
# @deprecated use device.can_program_online_access_codes.
|
|
62
87
|
attr_accessor :online_access_codes_supported
|
|
63
88
|
end
|
|
64
89
|
|
|
90
|
+
# Accessory keypad properties and state.
|
|
91
|
+
# @return [AccessoryKeypad, nil]
|
|
65
92
|
resource_accessor :accessory_keypad, AccessoryKeypad
|
|
93
|
+
# Represents the current status of the battery charge level.
|
|
94
|
+
# @return [Battery, nil]
|
|
66
95
|
resource_accessor :battery, Battery
|
|
96
|
+
# Device model-related properties.
|
|
97
|
+
# @return [Model]
|
|
67
98
|
resource_accessor :model, Model
|
|
68
99
|
# Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.
|
|
100
|
+
# @return [Float, nil]
|
|
69
101
|
attr_accessor :battery_level
|
|
70
102
|
# Alt text for the device image.
|
|
103
|
+
# @return [String, nil]
|
|
71
104
|
attr_accessor :image_alt_text
|
|
72
105
|
# Image URL for the device.
|
|
106
|
+
# @return [String, nil]
|
|
73
107
|
attr_accessor :image_url
|
|
74
108
|
# Manufacturer of the device. When a device, such as a smart lock, is connected through a smart hub, the manufacturer of the device might be different from that of the smart hub.
|
|
109
|
+
# @return [String, nil]
|
|
75
110
|
attr_accessor :manufacturer
|
|
76
111
|
# Name of the device.
|
|
112
|
+
# @return [String]
|
|
77
113
|
# @deprecated use device.display_name instead
|
|
78
114
|
attr_accessor :name
|
|
79
115
|
# Indicates whether it is currently possible to use offline access codes for the device.
|
|
116
|
+
# @return [Boolean, nil]
|
|
80
117
|
# @deprecated use device.can_program_offline_access_codes
|
|
81
118
|
attr_accessor :offline_access_codes_enabled
|
|
82
119
|
# Indicates whether the device is online.
|
|
120
|
+
# @return [Boolean]
|
|
83
121
|
attr_accessor :online
|
|
84
122
|
# Indicates whether it is currently possible to use online access codes for the device.
|
|
123
|
+
# @return [Boolean, nil]
|
|
85
124
|
# @deprecated use device.can_program_online_access_codes
|
|
86
125
|
attr_accessor :online_access_codes_enabled
|
|
87
126
|
end
|
|
88
127
|
|
|
89
128
|
class Warnings < BaseResource
|
|
90
129
|
# Number of active access codes on the device when the warning was set.
|
|
130
|
+
# @return [Integer]
|
|
91
131
|
attr_accessor :active_access_code_count
|
|
92
132
|
# Maximum number of active access codes supported by the device.
|
|
133
|
+
# @return [Integer]
|
|
93
134
|
attr_accessor :max_active_access_code_count
|
|
94
135
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
136
|
+
# @return [String]
|
|
95
137
|
attr_accessor :message
|
|
96
138
|
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
139
|
+
# @return [String]
|
|
97
140
|
attr_accessor :warning_code
|
|
98
141
|
# Date and time at which Seam created the warning.
|
|
142
|
+
# @return [Time]
|
|
99
143
|
date_accessor :created_at
|
|
100
144
|
end
|
|
101
145
|
|
|
146
|
+
# Location information for the device.
|
|
147
|
+
# @return [Location, nil]
|
|
102
148
|
resource_accessor :location, Location
|
|
149
|
+
# properties of the device.
|
|
150
|
+
# @return [Properties]
|
|
103
151
|
resource_accessor :properties, Properties
|
|
152
|
+
# Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
|
|
153
|
+
# @return [Array<Errors>]
|
|
104
154
|
resource_list_accessor :errors, Errors
|
|
155
|
+
# Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
|
|
156
|
+
# @return [Array<Warnings>]
|
|
105
157
|
resource_list_accessor :warnings, Warnings
|
|
106
158
|
# Indicates whether the lock supports configuring automatic locking.
|
|
159
|
+
# @return [Boolean, nil]
|
|
107
160
|
attr_accessor :can_configure_auto_lock
|
|
108
161
|
# Indicates whether the thermostat supports cooling.
|
|
162
|
+
# @return [Boolean, nil]
|
|
109
163
|
attr_accessor :can_hvac_cool
|
|
110
164
|
# Indicates whether the thermostat supports heating.
|
|
165
|
+
# @return [Boolean, nil]
|
|
111
166
|
attr_accessor :can_hvac_heat
|
|
112
167
|
# Indicates whether the thermostat supports simultaneous heating and cooling.
|
|
168
|
+
# @return [Boolean, nil]
|
|
113
169
|
attr_accessor :can_hvac_heat_cool
|
|
114
170
|
# Indicates whether the device supports programming offline access codes.
|
|
171
|
+
# @return [Boolean, nil]
|
|
115
172
|
attr_accessor :can_program_offline_access_codes
|
|
116
173
|
# Indicates whether the device supports programming online access codes.
|
|
174
|
+
# @return [Boolean, nil]
|
|
117
175
|
attr_accessor :can_program_online_access_codes
|
|
118
176
|
# Indicates whether the thermostat supports different climate programs for each day of the week.
|
|
177
|
+
# @return [Boolean, nil]
|
|
119
178
|
attr_accessor :can_program_thermostat_programs_as_different_each_day
|
|
120
179
|
# Indicates whether the thermostat supports a single climate program applied to every day.
|
|
180
|
+
# @return [Boolean, nil]
|
|
121
181
|
attr_accessor :can_program_thermostat_programs_as_same_each_day
|
|
122
182
|
# Indicates whether the thermostat supports weekday/weekend climate programs.
|
|
183
|
+
# @return [Boolean, nil]
|
|
123
184
|
attr_accessor :can_program_thermostat_programs_as_weekday_weekend
|
|
124
185
|
# Indicates whether the device supports remote locking.
|
|
186
|
+
# @return [Boolean, nil]
|
|
125
187
|
attr_accessor :can_remotely_lock
|
|
126
188
|
# Indicates whether the device supports remote unlocking.
|
|
189
|
+
# @return [Boolean, nil]
|
|
127
190
|
attr_accessor :can_remotely_unlock
|
|
128
191
|
# Indicates whether the thermostat supports running climate programs.
|
|
192
|
+
# @return [Boolean, nil]
|
|
129
193
|
attr_accessor :can_run_thermostat_programs
|
|
130
194
|
# Indicates whether the device supports simulating connection in a sandbox.
|
|
195
|
+
# @return [Boolean, nil]
|
|
131
196
|
attr_accessor :can_simulate_connection
|
|
132
197
|
# Indicates whether the device supports simulating disconnection in a sandbox.
|
|
198
|
+
# @return [Boolean, nil]
|
|
133
199
|
attr_accessor :can_simulate_disconnection
|
|
134
200
|
# Indicates whether the hub supports simulating connection in a sandbox.
|
|
201
|
+
# @return [Boolean, nil]
|
|
135
202
|
attr_accessor :can_simulate_hub_connection
|
|
136
203
|
# Indicates whether the hub supports simulating disconnection in a sandbox.
|
|
204
|
+
# @return [Boolean, nil]
|
|
137
205
|
attr_accessor :can_simulate_hub_disconnection
|
|
138
206
|
# Indicates whether the device supports simulating a paid subscription in a sandbox.
|
|
207
|
+
# @return [Boolean, nil]
|
|
139
208
|
attr_accessor :can_simulate_paid_subscription
|
|
140
209
|
# Indicates whether the device supports simulating removal in a sandbox.
|
|
210
|
+
# @return [Boolean, nil]
|
|
141
211
|
attr_accessor :can_simulate_removal
|
|
142
212
|
# Indicates whether the thermostat can be turned off.
|
|
213
|
+
# @return [Boolean, nil]
|
|
143
214
|
attr_accessor :can_turn_off_hvac
|
|
144
215
|
# Indicates whether the lock supports unlocking with an access code.
|
|
216
|
+
# @return [Boolean, nil]
|
|
145
217
|
attr_accessor :can_unlock_with_code
|
|
146
218
|
# Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://docs.seam.co/capability-guides/device-and-system-capabilities#capability-flags).
|
|
219
|
+
# @return [Array<String>]
|
|
147
220
|
attr_accessor :capabilities_supported
|
|
148
221
|
# Unique identifier for the account associated with the device.
|
|
222
|
+
# @return [String]
|
|
149
223
|
attr_accessor :connected_account_id
|
|
150
224
|
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
225
|
+
# @return [Hash]
|
|
151
226
|
attr_accessor :custom_metadata
|
|
152
227
|
# ID of the device.
|
|
228
|
+
# @return [String]
|
|
153
229
|
attr_accessor :device_id
|
|
154
230
|
# Type of the device.
|
|
231
|
+
# @return [String]
|
|
155
232
|
attr_accessor :device_type
|
|
156
233
|
# Indicates that Seam does not manage the device.
|
|
234
|
+
# @return [Boolean]
|
|
157
235
|
attr_accessor :is_managed
|
|
158
236
|
# Unique identifier for the Seam workspace associated with the device.
|
|
237
|
+
# @return [String]
|
|
159
238
|
attr_accessor :workspace_id
|
|
160
239
|
|
|
161
240
|
# Date and time at which the device object was created.
|
|
241
|
+
# @return [Time]
|
|
162
242
|
date_accessor :created_at
|
|
163
243
|
end
|
|
164
244
|
end
|
|
@@ -6,44 +6,64 @@ module Seam
|
|
|
6
6
|
class UnmanagedUserIdentity < BaseResource
|
|
7
7
|
class Errors < BaseResource
|
|
8
8
|
# ID of the access system that the user identity is associated with.
|
|
9
|
+
# @return [String]
|
|
9
10
|
attr_accessor :acs_system_id
|
|
10
11
|
# ID of the access system user that has an issue.
|
|
12
|
+
# @return [String]
|
|
11
13
|
attr_accessor :acs_user_id
|
|
12
14
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
15
|
+
# @return [String]
|
|
13
16
|
attr_accessor :error_code
|
|
14
17
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
18
|
+
# @return [String]
|
|
15
19
|
attr_accessor :message
|
|
16
20
|
# Date and time at which Seam created the error.
|
|
21
|
+
# @return [Time]
|
|
17
22
|
date_accessor :created_at
|
|
18
23
|
end
|
|
19
24
|
|
|
20
25
|
class Warnings < BaseResource
|
|
21
26
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
27
|
+
# @return [String]
|
|
22
28
|
attr_accessor :message
|
|
23
29
|
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
30
|
+
# @return [String]
|
|
24
31
|
attr_accessor :warning_code
|
|
25
32
|
# Date and time at which Seam created the warning.
|
|
33
|
+
# @return [Time]
|
|
26
34
|
date_accessor :created_at
|
|
27
35
|
end
|
|
28
36
|
|
|
37
|
+
# Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
|
|
38
|
+
# @return [Array<Errors>]
|
|
29
39
|
resource_list_accessor :errors, Errors
|
|
40
|
+
# Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
|
|
41
|
+
# @return [Array<Warnings>]
|
|
30
42
|
resource_list_accessor :warnings, Warnings
|
|
31
43
|
# Array of access system user IDs associated with the user identity.
|
|
44
|
+
# @return [Array<String>]
|
|
32
45
|
attr_accessor :acs_user_ids
|
|
33
46
|
# Display name for the user identity.
|
|
47
|
+
# @return [String]
|
|
34
48
|
attr_accessor :display_name
|
|
35
49
|
# Unique email address for the user identity.
|
|
50
|
+
# @return [String, nil]
|
|
36
51
|
attr_accessor :email_address
|
|
37
52
|
# Full name of the user associated with the user identity.
|
|
53
|
+
# @return [String, nil]
|
|
38
54
|
attr_accessor :full_name
|
|
39
55
|
# Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
56
|
+
# @return [String, nil]
|
|
40
57
|
attr_accessor :phone_number
|
|
41
58
|
# ID of the user identity.
|
|
59
|
+
# @return [String]
|
|
42
60
|
attr_accessor :user_identity_id
|
|
43
61
|
# ID of the workspace that contains the user identity.
|
|
62
|
+
# @return [String]
|
|
44
63
|
attr_accessor :workspace_id
|
|
45
64
|
|
|
46
65
|
# Date and time at which the user identity was created.
|
|
66
|
+
# @return [Time]
|
|
47
67
|
date_accessor :created_at
|
|
48
68
|
end
|
|
49
69
|
end
|
|
@@ -6,46 +6,67 @@ module Seam
|
|
|
6
6
|
class UserIdentity < BaseResource
|
|
7
7
|
class Errors < BaseResource
|
|
8
8
|
# ID of the access system that the user identity is associated with.
|
|
9
|
+
# @return [String]
|
|
9
10
|
attr_accessor :acs_system_id
|
|
10
11
|
# ID of the access system user that has an issue.
|
|
12
|
+
# @return [String]
|
|
11
13
|
attr_accessor :acs_user_id
|
|
12
14
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
15
|
+
# @return [String]
|
|
13
16
|
attr_accessor :error_code
|
|
14
17
|
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
18
|
+
# @return [String]
|
|
15
19
|
attr_accessor :message
|
|
16
20
|
# Date and time at which Seam created the error.
|
|
21
|
+
# @return [Time]
|
|
17
22
|
date_accessor :created_at
|
|
18
23
|
end
|
|
19
24
|
|
|
20
25
|
class Warnings < BaseResource
|
|
21
26
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
27
|
+
# @return [String]
|
|
22
28
|
attr_accessor :message
|
|
23
29
|
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
30
|
+
# @return [String]
|
|
24
31
|
attr_accessor :warning_code
|
|
25
32
|
# Date and time at which Seam created the warning.
|
|
33
|
+
# @return [Time]
|
|
26
34
|
date_accessor :created_at
|
|
27
35
|
end
|
|
28
36
|
|
|
37
|
+
# Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
|
|
38
|
+
# @return [Array<Errors>]
|
|
29
39
|
resource_list_accessor :errors, Errors
|
|
40
|
+
# Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
|
|
41
|
+
# @return [Array<Warnings>]
|
|
30
42
|
resource_list_accessor :warnings, Warnings
|
|
31
43
|
# Array of access system user IDs associated with the user identity.
|
|
44
|
+
# @return [Array<String>]
|
|
32
45
|
attr_accessor :acs_user_ids
|
|
33
46
|
# Display name for the user identity.
|
|
47
|
+
# @return [String]
|
|
34
48
|
attr_accessor :display_name
|
|
35
49
|
# Unique email address for the user identity.
|
|
50
|
+
# @return [String, nil]
|
|
36
51
|
attr_accessor :email_address
|
|
37
52
|
# Full name of the user associated with the user identity.
|
|
53
|
+
# @return [String, nil]
|
|
38
54
|
attr_accessor :full_name
|
|
39
55
|
# Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
56
|
+
# @return [String, nil]
|
|
40
57
|
attr_accessor :phone_number
|
|
41
58
|
# ID of the user identity.
|
|
59
|
+
# @return [String]
|
|
42
60
|
attr_accessor :user_identity_id
|
|
43
61
|
# Unique key for the user identity.
|
|
62
|
+
# @return [String, nil]
|
|
44
63
|
attr_accessor :user_identity_key
|
|
45
64
|
# ID of the workspace that contains the user identity.
|
|
65
|
+
# @return [String]
|
|
46
66
|
attr_accessor :workspace_id
|
|
47
67
|
|
|
48
68
|
# Date and time at which the user identity was created.
|
|
69
|
+
# @return [Time]
|
|
49
70
|
date_accessor :created_at
|
|
50
71
|
end
|
|
51
72
|
end
|
|
@@ -5,12 +5,16 @@ module Seam
|
|
|
5
5
|
# Represents a [webhook](https://docs.seam.co/developer-tools/webhooks) that enables you to receive notifications of events. When you create a webhook, specify the endpoint URL at which you want to receive events and the set of event types that you want to receive.
|
|
6
6
|
class Webhook < BaseResource
|
|
7
7
|
# Types of events that the [webhook](https://docs.seam.co/developer-tools/webhooks) should receive.
|
|
8
|
+
# @return [Array<String>]
|
|
8
9
|
attr_accessor :event_types
|
|
9
10
|
# Secret associated with the [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
11
|
+
# @return [String, nil]
|
|
10
12
|
attr_accessor :secret
|
|
11
13
|
# URL for the [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
14
|
+
# @return [String]
|
|
12
15
|
attr_accessor :url
|
|
13
16
|
# ID of the webhook.
|
|
17
|
+
# @return [String]
|
|
14
18
|
attr_accessor :webhook_id
|
|
15
19
|
end
|
|
16
20
|
end
|
|
@@ -6,35 +6,50 @@ module Seam
|
|
|
6
6
|
class Workspace < BaseResource
|
|
7
7
|
class ConnectWebviewCustomization < BaseResource
|
|
8
8
|
# URL of the inviter logo for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).
|
|
9
|
+
# @return [String, nil]
|
|
9
10
|
attr_accessor :inviter_logo_url
|
|
10
11
|
# Logo shape for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).
|
|
12
|
+
# @return [String, nil]
|
|
11
13
|
attr_accessor :logo_shape
|
|
12
14
|
# Primary button color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).
|
|
15
|
+
# @return [String, nil]
|
|
13
16
|
attr_accessor :primary_button_color
|
|
14
17
|
# Primary button text color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).
|
|
18
|
+
# @return [String, nil]
|
|
15
19
|
attr_accessor :primary_button_text_color
|
|
16
20
|
# Success message for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).
|
|
21
|
+
# @return [String, nil]
|
|
17
22
|
attr_accessor :success_message
|
|
18
23
|
end
|
|
19
24
|
|
|
25
|
+
# @return [ConnectWebviewCustomization]
|
|
20
26
|
resource_accessor :connect_webview_customization, ConnectWebviewCustomization
|
|
21
27
|
# Company name associated with the [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
28
|
+
# @return [String]
|
|
22
29
|
attr_accessor :company_name
|
|
30
|
+
# @return [String, nil]
|
|
23
31
|
# @deprecated Use `company_name` instead.
|
|
24
32
|
attr_accessor :connect_partner_name
|
|
25
33
|
# Indicates whether publishable key authentication is enabled for this workspace.
|
|
34
|
+
# @return [Boolean]
|
|
26
35
|
attr_accessor :is_publishable_key_auth_enabled
|
|
27
36
|
# Indicates whether the workspace is a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
37
|
+
# @return [Boolean]
|
|
28
38
|
attr_accessor :is_sandbox
|
|
29
39
|
# Indicates whether the [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces) is suspended. Seam suspends sandbox workspaces that have not been accessed in 14 days.
|
|
40
|
+
# @return [Boolean]
|
|
30
41
|
attr_accessor :is_suspended
|
|
31
42
|
# Name of the [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
43
|
+
# @return [String]
|
|
32
44
|
attr_accessor :name
|
|
33
45
|
# ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization.
|
|
46
|
+
# @return [String, nil]
|
|
34
47
|
attr_accessor :organization_id
|
|
35
48
|
# Publishable key for the [workspace](https://docs.seam.co/core-concepts/workspaces). This key is used to identify the workspace in client-side applications.
|
|
49
|
+
# @return [String, nil]
|
|
36
50
|
attr_accessor :publishable_key
|
|
37
51
|
# ID of the workspace.
|
|
52
|
+
# @return [String]
|
|
38
53
|
attr_accessor :workspace_id
|
|
39
54
|
end
|
|
40
55
|
end
|