seam 2.141.2 → 2.142.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74daae0b262e03490e0317f9b90fa9c117834a99ebce0e1e32b7c020f05bc7cd
4
- data.tar.gz: 56c57316a19a5e4bcbd2381ac9dce3b3c84ed58d060096e8cf323b4588862f8b
3
+ metadata.gz: f8e9429cc66f5767d44b6d409f85a5dfa2f07d5f7af369eb20f1b2690ecb14ee
4
+ data.tar.gz: ecd20ffb6213341e419d9b9ae27abe1a783d7d8ced2ee33d2fe2a86d1606df69
5
5
  SHA512:
6
- metadata.gz: e822df4248a29c5d4ee8ea3eeab2e3d19c4c33eba33f088268df9a815f6c712a95d4b12520226eef849bd32fec3c873adfbcbcc63c786bd72cc8a404d74324b2
7
- data.tar.gz: 93db379056b0471a97aff42553b8a25011019b1d5832bd69b8e3fac8471f71fa291dddbdde4de5eb1ddbd6a53bf08bfa609cb6674f6894be2b89d89076f89ef6
6
+ metadata.gz: 59dc939e24445cc86e826a2e6287a48c5c5d1732aed9fdbe8428742de74476e228a67335e807faf3bae068c7d6a2074983838285f46a58f3cd09391de26532c8
7
+ data.tar.gz: 9adaf12116c5d351651cd8f9d7b513b352a1440336e05c64fed92b370ae49223bc725e4474854af9f9a86855526ef863da0f52331032d6a10b1bd7a587a9efe2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.141.2)
4
+ seam (2.142.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.141.2)
174
+ seam (2.142.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
data/README.md CHANGED
@@ -14,7 +14,9 @@ Please refer to the official [Seam Docs](https://docs.seam.co/latest/) to get st
14
14
  Parts of this SDK are generated from always up-to-date type information
15
15
  provided by [@seamapi/types](https://github.com/seamapi/types/).
16
16
  This ensures all API methods, request shapes, and response shapes are
17
- accurate and fully typed.
17
+ accurate and fully typed. Ruby cannot statically enforce literal booleans, so
18
+ the generated YARD types use `TrueClass` and `FalseClass` to document singleton
19
+ constraints.
18
20
 
19
21
  <!-- toc -->
20
22
 
@@ -62,7 +62,7 @@ module Seam
62
62
  # @return [String]
63
63
  attr_accessor :error_code
64
64
  # Indicates that this is an access code error.
65
- # @return [Boolean]
65
+ # @return [TrueClass]
66
66
  attr_accessor :is_access_code_error
67
67
  # Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
68
68
  # @return [Boolean, nil]
@@ -197,7 +197,7 @@ module Seam
197
197
  # @return [Boolean]
198
198
  attr_accessor :is_external_modification_allowed
199
199
  # Indicates whether Seam manages the access code.
200
- # @return [Boolean]
200
+ # @return [TrueClass]
201
201
  attr_accessor :is_managed
202
202
  # Indicates whether the access code is intended for use in offline scenarios. If `true`, this code can be created on a device without a network connection.
203
203
  # @return [Boolean]
@@ -135,7 +135,7 @@ module Seam
135
135
  # @return [String]
136
136
  attr_accessor :external_type_display_name
137
137
  # Indicates whether Seam manages the access group.
138
- # @return [Boolean]
138
+ # @return [TrueClass]
139
139
  attr_accessor :is_managed
140
140
  # Name of the access group.
141
141
  # @return [String]
@@ -150,7 +150,7 @@ module Seam
150
150
  # @return [Boolean, nil]
151
151
  attr_accessor :is_latest_desired_state_synced_with_provider
152
152
  # Indicates whether Seam manages the credential.
153
- # @return [Boolean]
153
+ # @return [TrueClass]
154
154
  attr_accessor :is_managed
155
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
156
  # @return [Boolean, nil]
@@ -179,7 +179,7 @@ module Seam
179
179
  # @return [String, nil]
180
180
  attr_accessor :hid_acs_system_id
181
181
  # Indicates whether Seam manages the access system user.
182
- # @return [Boolean]
182
+ # @return [TrueClass]
183
183
  attr_accessor :is_managed
184
184
  # Indicates whether the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is currently [suspended](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).
185
185
  # @return [Boolean, nil]
@@ -1004,7 +1004,7 @@ module Seam
1004
1004
  # @return [String, nil]
1005
1005
  attr_accessor :end_date_recurrence_rule
1006
1006
  # When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.
1007
- # @return [Boolean, nil]
1007
+ # @return [TrueClass, nil]
1008
1008
  attr_accessor :matching_start_end_time
1009
1009
  # Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.
1010
1010
  # @return [String, nil]
@@ -1043,7 +1043,7 @@ module Seam
1043
1043
  # @return [String, nil]
1044
1044
  attr_accessor :end_date_recurrence_rule
1045
1045
  # When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.
1046
- # @return [Boolean, nil]
1046
+ # @return [TrueClass, nil]
1047
1047
  attr_accessor :matching_start_end_time
1048
1048
  # Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.
1049
1049
  # @return [String, nil]
@@ -1796,7 +1796,7 @@ module Seam
1796
1796
  # @return [String]
1797
1797
  attr_accessor :display_name
1798
1798
  # Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
1799
- # @return [Boolean]
1799
+ # @return [TrueClass]
1800
1800
  attr_accessor :is_managed
1801
1801
  # Optional nickname to describe the device, settable through Seam.
1802
1802
  # @return [String, nil]
@@ -64,7 +64,7 @@ module Seam
64
64
  # @return [String]
65
65
  attr_accessor :error_code
66
66
  # Indicates that this is an access code error.
67
- # @return [Boolean]
67
+ # @return [TrueClass]
68
68
  attr_accessor :is_access_code_error
69
69
  # Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
70
70
  # @return [Boolean, nil]
@@ -130,10 +130,10 @@ module Seam
130
130
  # @return [String]
131
131
  attr_accessor :access_code_id
132
132
  # Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations.
133
- # @return [Boolean, nil]
133
+ # @return [TrueClass, nil]
134
134
  attr_accessor :cannot_be_managed
135
135
  # Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app.
136
- # @return [Boolean, nil]
136
+ # @return [TrueClass, nil]
137
137
  attr_accessor :cannot_delete_unmanaged_access_code
138
138
  # Code used for access. Typically, a numeric or alphanumeric string.
139
139
  # @return [String, nil]
@@ -142,7 +142,7 @@ module Seam
142
142
  # @return [String]
143
143
  attr_accessor :device_id
144
144
  # Indicates that Seam does not manage the access code.
145
- # @return [Boolean]
145
+ # @return [FalseClass]
146
146
  attr_accessor :is_managed
147
147
  # Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`. To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints. To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
148
148
  # @return [String, nil]
@@ -231,7 +231,7 @@ module Seam
231
231
  # @return [String]
232
232
  attr_accessor :device_type
233
233
  # Indicates that Seam does not manage the device.
234
- # @return [Boolean]
234
+ # @return [FalseClass]
235
235
  attr_accessor :is_managed
236
236
  # Unique identifier for the Seam workspace associated with the device.
237
237
  # @return [String]
@@ -37,7 +37,7 @@ module Seam
37
37
  #
38
38
  # When converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.
39
39
  # @param access_grant_id [String] ID of the unmanaged Access Grant to update.
40
- # @param is_managed [Boolean] Must be set to true to convert the unmanaged access grant to managed.
40
+ # @param is_managed [TrueClass] Must be set to true to convert the unmanaged access grant to managed.
41
41
  # @param access_grant_key [String, nil] Unique key for the access grant. If not provided, the existing key will be preserved.
42
42
  # @return [nil] OK
43
43
  def update(access_grant_id:, is_managed:, access_grant_key: nil)
@@ -53,7 +53,7 @@ module Seam
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
55
  # @param custom_metadata [Hash, nil] Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.
56
- # @param is_managed [Boolean, nil] Indicates whether the device is managed. Set this parameter to `true` to convert an unmanaged device to managed.
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)
59
59
  @client.patch("/devices/unmanaged/update", {device_id: device_id, custom_metadata: custom_metadata, is_managed: is_managed}.compact)
@@ -32,7 +32,7 @@ module Seam
32
32
  # Updates an unmanaged [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.
33
33
  #
34
34
  # This endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.
35
- # @param is_managed [Boolean] Must be set to true to convert the unmanaged user identity to managed.
35
+ # @param is_managed [TrueClass] Must be set to true to convert the unmanaged user identity to managed.
36
36
  # @param user_identity_id [String] ID of the unmanaged user identity that you want to update.
37
37
  # @param user_identity_key [String, nil] Unique key for the user identity. If not provided, the existing key will be preserved.
38
38
  # @return [nil] OK
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.141.2"
4
+ VERSION = "2.142.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.141.2
4
+ version: 2.142.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.