seam 2.145.0 → 2.146.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/seam/resources/access_code.rb +20 -0
- data/lib/seam/resources/access_grant.rb +3 -0
- data/lib/seam/resources/access_method.rb +3 -0
- data/lib/seam/resources/action_attempt.rb +3 -0
- data/lib/seam/resources/connect_webview.rb +1 -1
- data/lib/seam/resources/connected_account.rb +1 -1
- data/lib/seam/resources/device.rb +1 -1
- data/lib/seam/resources/unmanaged_access_code.rb +20 -0
- data/lib/seam/resources/unmanaged_access_method.rb +3 -0
- data/lib/seam/resources/unmanaged_device.rb +1 -1
- data/lib/seam/resources/unmanaged_user_identity.rb +6 -0
- data/lib/seam/resources/user_identity.rb +6 -0
- data/lib/seam/routes/acs_credentials.rb +4 -4
- data/lib/seam/routes/acs_encoders.rb +3 -3
- data/lib/seam/routes/connect_webviews.rb +2 -2
- data/lib/seam/routes/connected_accounts.rb +2 -2
- data/lib/seam/routes/devices.rb +2 -2
- data/lib/seam/routes/devices_unmanaged.rb +1 -1
- data/lib/seam/routes/events.rb +1 -1
- data/lib/seam/routes/user_identities.rb +22 -0
- data/lib/seam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a45352597670141b7fcf4d8043acf833a4019e97523ac004acdf9a24d140d3ad
|
|
4
|
+
data.tar.gz: cb4cf04a8b07d629f763f56b4f676150b431342abd6ad7365abfb64585af478a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56fca9672c6ccd40f33ce7773ca672f3c4910885b396eb2b9b3d3c7d251821ecb694c47ebb940a1c39f1bcfa1324cd7a2dca7151aaa3ca244e32da6fa57bfabe
|
|
7
|
+
data.tar.gz: 67313f9ffa5d35fe509944ed85c7c2f072480aedc62d48984ef2a656d150b6d11d5281d5721c270027b8ebc5e6646d2fde62ce918c228a43034f4649420710d6
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
seam (2.
|
|
4
|
+
seam (2.146.0)
|
|
5
5
|
faraday (~> 2.7)
|
|
6
6
|
faraday-retry (~> 2.2)
|
|
7
7
|
svix (~> 1.30)
|
|
@@ -171,7 +171,7 @@ CHECKSUMS
|
|
|
171
171
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
172
172
|
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
173
173
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
174
|
-
seam (2.
|
|
174
|
+
seam (2.146.0)
|
|
175
175
|
simplecov (1.1.1) sha256=25825ef13f0b2e74694d769817dad6ab8e90131dabdaa666e522fea105521e78
|
|
176
176
|
simplecov-console (0.9.5) sha256=b1108bcfff5f210143e2b8301698c367b01586f20d25a73e95475a5df6fc6ff6
|
|
177
177
|
standard (1.56.0) sha256=ae2af4d9669589162ac69ed5ef59dcf9f346d4afc81f7e62b84339310dfcb787
|
|
@@ -194,6 +194,24 @@ module Seam
|
|
|
194
194
|
date_accessor :created_at
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
+
# The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.
|
|
198
|
+
class CodeConstraintsViolated < Errors
|
|
199
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
200
|
+
# @return [String]
|
|
201
|
+
# Known values:
|
|
202
|
+
# - `code_constraints_violated`
|
|
203
|
+
attr_accessor :error_code
|
|
204
|
+
# Indicates that this is an access code error.
|
|
205
|
+
# @return [TrueClass]
|
|
206
|
+
attr_accessor :is_access_code_error
|
|
207
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
208
|
+
# @return [String]
|
|
209
|
+
attr_accessor :message
|
|
210
|
+
# Date and time at which Seam created the error.
|
|
211
|
+
# @return [Time, nil]
|
|
212
|
+
date_accessor :created_at
|
|
213
|
+
end
|
|
214
|
+
|
|
197
215
|
# Indicates that the account is disconnected.
|
|
198
216
|
class AccountDisconnected < Errors
|
|
199
217
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -471,6 +489,7 @@ module Seam
|
|
|
471
489
|
# - `no_space_for_access_code_on_device`
|
|
472
490
|
# - `conflicting_external_modification`
|
|
473
491
|
# - `access_code_inactive`
|
|
492
|
+
# - `code_constraints_violated`
|
|
474
493
|
# - `account_disconnected`
|
|
475
494
|
# - `salto_ks_subscription_limit_exceeded`
|
|
476
495
|
# - `insufficient_permissions`
|
|
@@ -501,6 +520,7 @@ module Seam
|
|
|
501
520
|
"no_space_for_access_code_on_device" => NoSpaceForAccessCodeOnDevice,
|
|
502
521
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
503
522
|
"access_code_inactive" => AccessCodeInactive,
|
|
523
|
+
"code_constraints_violated" => CodeConstraintsViolated,
|
|
504
524
|
"account_disconnected" => AccountDisconnected,
|
|
505
525
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
506
526
|
"insufficient_permissions" => InsufficientPermissions,
|
|
@@ -320,6 +320,9 @@ module Seam
|
|
|
320
320
|
# Display name of the Access Grant.
|
|
321
321
|
# @return [String]
|
|
322
322
|
attr_accessor :display_name
|
|
323
|
+
# Human-readable sentence answering whether the user can currently get in, for example `Awaiting encoding` on an access method or `Upcoming` here. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `starts_at`, `ends_at`, `errors`, and the access methods' own fields.
|
|
324
|
+
# @return [String]
|
|
325
|
+
attr_accessor :display_status
|
|
323
326
|
# Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method.
|
|
324
327
|
# @return [String, nil]
|
|
325
328
|
attr_accessor :instant_key_url
|
|
@@ -189,6 +189,9 @@ module Seam
|
|
|
189
189
|
# Display name of the access method.
|
|
190
190
|
# @return [String]
|
|
191
191
|
attr_accessor :display_name
|
|
192
|
+
# Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
193
|
+
# @return [String]
|
|
194
|
+
attr_accessor :display_status
|
|
192
195
|
# URL of the Instant Key for mobile key access methods.
|
|
193
196
|
# @return [String, nil]
|
|
194
197
|
attr_accessor :instant_key_url
|
|
@@ -1017,6 +1017,9 @@ module Seam
|
|
|
1017
1017
|
# Display name of the access method.
|
|
1018
1018
|
# @return [String]
|
|
1019
1019
|
attr_accessor :display_name
|
|
1020
|
+
# Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
1021
|
+
# @return [String]
|
|
1022
|
+
attr_accessor :display_status
|
|
1020
1023
|
# URL of the Instant Key for mobile key access methods.
|
|
1021
1024
|
# @return [String, nil]
|
|
1022
1025
|
attr_accessor :instant_key_url
|
|
@@ -38,7 +38,7 @@ module Seam
|
|
|
38
38
|
# ID of the connected account associated with the Connect Webview.
|
|
39
39
|
# @return [String, nil]
|
|
40
40
|
attr_accessor :connected_account_id
|
|
41
|
-
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
41
|
+
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.
|
|
42
42
|
# @return [Hash{String => String, Boolean}]
|
|
43
43
|
attr_accessor :custom_metadata
|
|
44
44
|
# URL to which the Connect Webview should redirect when an unexpected error occurs.
|
|
@@ -368,7 +368,7 @@ module Seam
|
|
|
368
368
|
# ID of the connected account.
|
|
369
369
|
# @return [String]
|
|
370
370
|
attr_accessor :connected_account_id
|
|
371
|
-
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
371
|
+
# Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.
|
|
372
372
|
# @return [Hash{String => String, Boolean}]
|
|
373
373
|
attr_accessor :custom_metadata
|
|
374
374
|
# Your unique key for the customer associated with this connected account.
|
|
@@ -2654,7 +2654,7 @@ module Seam
|
|
|
2654
2654
|
# Unique identifier for the account associated with the device.
|
|
2655
2655
|
# @return [String]
|
|
2656
2656
|
attr_accessor :connected_account_id
|
|
2657
|
-
# 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.
|
|
2657
|
+
# 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. Keys set to `null` or to an empty string are omitted.
|
|
2658
2658
|
# @return [Hash{String => String, Boolean}]
|
|
2659
2659
|
attr_accessor :custom_metadata
|
|
2660
2660
|
# ID of the device.
|
|
@@ -196,6 +196,24 @@ module Seam
|
|
|
196
196
|
date_accessor :created_at
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
+
# The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.
|
|
200
|
+
class CodeConstraintsViolated < Errors
|
|
201
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
202
|
+
# @return [String]
|
|
203
|
+
# Known values:
|
|
204
|
+
# - `code_constraints_violated`
|
|
205
|
+
attr_accessor :error_code
|
|
206
|
+
# Indicates that this is an access code error.
|
|
207
|
+
# @return [TrueClass]
|
|
208
|
+
attr_accessor :is_access_code_error
|
|
209
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
210
|
+
# @return [String]
|
|
211
|
+
attr_accessor :message
|
|
212
|
+
# Date and time at which Seam created the error.
|
|
213
|
+
# @return [Time, nil]
|
|
214
|
+
date_accessor :created_at
|
|
215
|
+
end
|
|
216
|
+
|
|
199
217
|
# Indicates that the account is disconnected.
|
|
200
218
|
class AccountDisconnected < Errors
|
|
201
219
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -473,6 +491,7 @@ module Seam
|
|
|
473
491
|
# - `no_space_for_access_code_on_device`
|
|
474
492
|
# - `conflicting_external_modification`
|
|
475
493
|
# - `access_code_inactive`
|
|
494
|
+
# - `code_constraints_violated`
|
|
476
495
|
# - `account_disconnected`
|
|
477
496
|
# - `salto_ks_subscription_limit_exceeded`
|
|
478
497
|
# - `insufficient_permissions`
|
|
@@ -503,6 +522,7 @@ module Seam
|
|
|
503
522
|
"no_space_for_access_code_on_device" => NoSpaceForAccessCodeOnDevice,
|
|
504
523
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
505
524
|
"access_code_inactive" => AccessCodeInactive,
|
|
525
|
+
"code_constraints_violated" => CodeConstraintsViolated,
|
|
506
526
|
"account_disconnected" => AccountDisconnected,
|
|
507
527
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
508
528
|
"insufficient_permissions" => InsufficientPermissions,
|
|
@@ -183,6 +183,9 @@ module Seam
|
|
|
183
183
|
# Display name of the access method.
|
|
184
184
|
# @return [String]
|
|
185
185
|
attr_accessor :display_name
|
|
186
|
+
# Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.
|
|
187
|
+
# @return [String]
|
|
188
|
+
attr_accessor :display_status
|
|
186
189
|
# Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.
|
|
187
190
|
# @return [Boolean, nil]
|
|
188
191
|
attr_accessor :is_assignment_required
|
|
@@ -990,7 +990,7 @@ module Seam
|
|
|
990
990
|
# Unique identifier for the account associated with the device.
|
|
991
991
|
# @return [String]
|
|
992
992
|
attr_accessor :connected_account_id
|
|
993
|
-
# 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.
|
|
993
|
+
# 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. Keys set to `null` or to an empty string are omitted.
|
|
994
994
|
# @return [Hash{String => String, Boolean}]
|
|
995
995
|
attr_accessor :custom_metadata
|
|
996
996
|
# ID of the device.
|
|
@@ -119,6 +119,12 @@ module Seam
|
|
|
119
119
|
# Full name of the user associated with the user identity.
|
|
120
120
|
# @return [String, nil]
|
|
121
121
|
attr_accessor :full_name
|
|
122
|
+
# IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
123
|
+
# @return [Array<String>]
|
|
124
|
+
attr_accessor :merged_user_identity_ids
|
|
125
|
+
# Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
126
|
+
# @return [Array<String>]
|
|
127
|
+
attr_accessor :merged_user_identity_keys
|
|
122
128
|
# Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
123
129
|
# @return [String, nil]
|
|
124
130
|
attr_accessor :phone_number
|
|
@@ -119,6 +119,12 @@ module Seam
|
|
|
119
119
|
# Full name of the user associated with the user identity.
|
|
120
120
|
# @return [String, nil]
|
|
121
121
|
attr_accessor :full_name
|
|
122
|
+
# IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
123
|
+
# @return [Array<String>]
|
|
124
|
+
attr_accessor :merged_user_identity_ids
|
|
125
|
+
# Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.
|
|
126
|
+
# @return [Array<String>]
|
|
127
|
+
attr_accessor :merged_user_identity_keys
|
|
122
128
|
# Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
123
129
|
# @return [String, nil]
|
|
124
130
|
attr_accessor :phone_number
|
|
@@ -59,17 +59,17 @@ module Seam
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
# Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
62
|
-
# @param acs_user_id [String, nil] ID of the access system user for which you want to retrieve all credentials.
|
|
63
62
|
# @param acs_system_id [String, nil] ID of the access system for which you want to retrieve all credentials.
|
|
64
|
-
# @param
|
|
63
|
+
# @param acs_user_id [String, nil] ID of the access system user for which you want to retrieve all credentials.
|
|
65
64
|
# @param created_before [Time, nil] Date and time, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, before which events to return were created.
|
|
66
65
|
# @param is_multi_phone_sync_credential [Boolean, nil] Indicates whether you want to retrieve only multi-phone sync credentials or non-multi-phone sync credentials.
|
|
67
66
|
# @param limit [Float, nil] Number of credentials to return.
|
|
68
67
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
69
68
|
# @param search [String, nil] String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`.
|
|
69
|
+
# @param user_identity_id [String, nil] ID of the user identity for which you want to retrieve all credentials.
|
|
70
70
|
# @return [Seam::Resources::AcsCredential] OK
|
|
71
|
-
def list(
|
|
72
|
-
res = @client.get("/acs/credentials/list", {
|
|
71
|
+
def list(acs_system_id: nil, acs_user_id: nil, created_before: nil, is_multi_phone_sync_credential: nil, limit: nil, page_cursor: nil, search: nil, user_identity_id: nil)
|
|
72
|
+
res = @client.get("/acs/credentials/list", {acs_system_id: acs_system_id, acs_user_id: acs_user_id, created_before: created_before, is_multi_phone_sync_credential: is_multi_phone_sync_credential, limit: limit, page_cursor: page_cursor, search: search, user_identity_id: user_identity_id}.compact)
|
|
73
73
|
|
|
74
74
|
Seam::Resources::AcsCredential.load_from_response(res.body["acs_credentials"])
|
|
75
75
|
end
|
|
@@ -37,14 +37,14 @@ module Seam
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# Returns a list of all [encoders](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
40
|
+
# @param acs_encoder_ids [Array<String>, nil] IDs of the encoders that you want to retrieve.
|
|
40
41
|
# @param acs_system_id [String, nil] ID of the access system for which you want to retrieve all encoders.
|
|
41
42
|
# @param acs_system_ids [Array<String>, nil] IDs of the access systems for which you want to retrieve all encoders.
|
|
42
|
-
# @param acs_encoder_ids [Array<String>, nil] IDs of the encoders that you want to retrieve.
|
|
43
43
|
# @param limit [Float, nil] Number of encoders to return.
|
|
44
44
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
45
45
|
# @return [Seam::Resources::AcsEncoder] OK
|
|
46
|
-
def list(
|
|
47
|
-
res = @client.get("/acs/encoders/list", {acs_system_id: acs_system_id, acs_system_ids: acs_system_ids,
|
|
46
|
+
def list(acs_encoder_ids: nil, acs_system_id: nil, acs_system_ids: nil, limit: nil, page_cursor: nil)
|
|
47
|
+
res = @client.get("/acs/encoders/list", {acs_encoder_ids: acs_encoder_ids, acs_system_id: acs_system_id, acs_system_ids: acs_system_ids, limit: limit, page_cursor: page_cursor}.compact)
|
|
48
48
|
|
|
49
49
|
Seam::Resources::AcsEncoder.load_from_response(res.body["acs_encoders"])
|
|
50
50
|
end
|
|
@@ -18,7 +18,7 @@ module Seam
|
|
|
18
18
|
# @param accepted_capabilities [Array<String>, nil] List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.
|
|
19
19
|
# @param accepted_providers [Array<String>, nil] Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with no filters.
|
|
20
20
|
# @param automatically_manage_new_devices [Boolean, nil] Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices). See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
|
|
21
|
-
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://docs.seam.co/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata).
|
|
21
|
+
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://docs.seam.co/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.
|
|
22
22
|
# @param custom_redirect_failure_url [String, nil] Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`.
|
|
23
23
|
# @param custom_redirect_url [String, nil] URL that you want to redirect the user to after the provider login is complete.
|
|
24
24
|
# @param customer_key [String, nil] Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.
|
|
@@ -55,7 +55,7 @@ module Seam
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
|
|
58
|
-
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.
|
|
58
|
+
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.
|
|
59
59
|
# @param customer_key [String, nil] Customer key for which you want to list connect webviews.
|
|
60
60
|
# @param limit [Float, nil] Maximum number of records to return per page.
|
|
61
61
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
@@ -40,7 +40,7 @@ module Seam
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
|
|
43
|
-
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs.
|
|
43
|
+
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.
|
|
44
44
|
# @param customer_key [String, nil] Customer key by which you want to filter connected accounts.
|
|
45
45
|
# @param limit [Integer, nil] Maximum number of records to return per page.
|
|
46
46
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
@@ -67,7 +67,7 @@ module Seam
|
|
|
67
67
|
# @param connected_account_id [String] ID of the connected account that you want to update.
|
|
68
68
|
# @param accepted_capabilities [Array<String>, nil] List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.
|
|
69
69
|
# @param automatically_manage_new_devices [Boolean, nil] Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
70
|
-
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).
|
|
70
|
+
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.
|
|
71
71
|
# @param customer_key [String, nil] The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.
|
|
72
72
|
# @param display_name [String, nil] Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`.
|
|
73
73
|
# @return [nil] OK
|
data/lib/seam/routes/devices.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Seam
|
|
|
37
37
|
# @param connected_account_id [String, nil] ID of the connected account for which you want to list devices.
|
|
38
38
|
# @param connected_account_ids [Array<String>, nil] Array of IDs of the connected accounts for which you want to list devices.
|
|
39
39
|
# @param created_before [Time, nil] Timestamp by which to limit returned devices. Returns devices created before this timestamp.
|
|
40
|
-
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices.
|
|
40
|
+
# @param custom_metadata_has [Hash{String => String, Boolean}, nil] Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.
|
|
41
41
|
# @param customer_key [String, nil] Customer key for which you want to list devices.
|
|
42
42
|
# @param device_ids [Array<String>, nil] Array of device IDs for which you want to list devices.
|
|
43
43
|
# @param device_type [String, nil] Device type for which you want to list devices.
|
|
@@ -84,7 +84,7 @@ module Seam
|
|
|
84
84
|
# You can add or change [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) for a device, change the device's name, or [convert a managed device to unmanaged](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
85
85
|
# @param device_id [String] ID of the device that you want to update.
|
|
86
86
|
# @param backup_access_code_pool_enabled [Boolean, nil] Indicates whether the device's [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is enabled. Set to `false` to disable the pool: Seam stops refilling it and removes any backup codes that have not yet been pulled into active use.
|
|
87
|
-
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a 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. Then, you can [filter devices by the desired metadata](https://docs.seam.co/core-concepts/devices/filtering-devices-by-custom-metadata).
|
|
87
|
+
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a 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. Then, you can [filter devices by the desired metadata](https://docs.seam.co/core-concepts/devices/filtering-devices-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.
|
|
88
88
|
# @param is_managed [Boolean, nil] Indicates whether the device is managed. To unmanage a device, set `is_managed` to `false`.
|
|
89
89
|
# @param name [String, Seam::Null, nil] Name for the device.
|
|
90
90
|
# @param properties [Hash, nil]
|
|
@@ -52,7 +52,7 @@ module Seam
|
|
|
52
52
|
#
|
|
53
53
|
# An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).
|
|
54
54
|
# @param device_id [String] ID of the unmanaged device that you want to update.
|
|
55
|
-
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.
|
|
55
|
+
# @param custom_metadata [Hash{String => String, Boolean}, nil] Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). Set a key to `null` or to an empty string to remove that key from the custom metadata.
|
|
56
56
|
# @param is_managed [TrueClass, nil] Indicates whether the device is managed. Set this parameter to `true` to convert an unmanaged device to managed.
|
|
57
57
|
# @return [nil] OK
|
|
58
58
|
def update(device_id:, custom_metadata: nil, is_managed: nil)
|
data/lib/seam/routes/events.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Seam
|
|
|
37
37
|
# @param acs_system_id [String, nil] ID of the access system for which you want to list events.
|
|
38
38
|
# @param acs_system_ids [Array<String>, nil] IDs of the access systems for which you want to list events.
|
|
39
39
|
# @param acs_user_id [String, nil] ID of the ACS user for which you want to list events.
|
|
40
|
-
# @param between [Array<
|
|
40
|
+
# @param between [Array<String>, nil] Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`.
|
|
41
41
|
# @param connect_webview_id [String, nil] ID of the Connect Webview for which you want to list events.
|
|
42
42
|
# @param connected_account_id [String, nil] ID of the connected account for which you want to list events.
|
|
43
43
|
# @param customer_key [String, nil] Customer key for which you want to list events.
|
|
@@ -134,6 +134,28 @@ module Seam
|
|
|
134
134
|
Seam::Resources::AcsUser.load_from_response(res.body["acs_users"])
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
+
# Merges one or more [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) into a primary user identity, for when the same person ended up with more than one user identity.
|
|
138
|
+
#
|
|
139
|
+
# The primary user identity takes on any email address or phone number it was missing from the user identities merged into it, and the merged user identities are then deleted. Their IDs and keys keep working: looking one up returns the primary user identity, and they are listed on it as `merged_user_identity_ids` and `merged_user_identity_keys`.
|
|
140
|
+
#
|
|
141
|
+
# Access grants, access system users, client sessions and other resources belonging to the merged user identities are moved to the primary user identity.
|
|
142
|
+
#
|
|
143
|
+
# Identify the user identities either by ID or by key, but not both in the same request. Repeating a merge that has already been applied makes no further changes.
|
|
144
|
+
# @param merged_user_identity_ids [Array<String>, nil] IDs of the user identities to merge into the primary user identity. These user identities are deleted.
|
|
145
|
+
# @param user_identity_id [String, nil] ID of the primary user identity to keep.
|
|
146
|
+
# @param merged_user_identity_keys [Array<String>, nil] Keys of the user identities to merge into the primary user identity. These user identities are deleted.
|
|
147
|
+
# @param user_identity_key [String, nil] Key of the primary user identity to keep.
|
|
148
|
+
# @return [nil] OK
|
|
149
|
+
def merge(merged_user_identity_ids: nil, user_identity_id: nil, merged_user_identity_keys: nil, user_identity_key: nil)
|
|
150
|
+
if merged_user_identity_ids.nil? && user_identity_id.nil? && merged_user_identity_keys.nil? && user_identity_key.nil?
|
|
151
|
+
raise TypeError, "At least one parameter is required for /user_identities/merge"
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@client.post("/user_identities/merge", {merged_user_identity_ids: merged_user_identity_ids, user_identity_id: user_identity_id, merged_user_identity_keys: merged_user_identity_keys, user_identity_key: user_identity_key}.compact)
|
|
155
|
+
|
|
156
|
+
nil
|
|
157
|
+
end
|
|
158
|
+
|
|
137
159
|
# Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
138
160
|
# @param acs_user_id [String] ID of the access system user that you want to remove from the user identity..
|
|
139
161
|
# @param user_identity_id [String] ID of the user identity from which you want to remove an access system user.
|
data/lib/seam/version.rb
CHANGED