seam 2.163.0 → 2.164.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: '022132618ebc3f3a0f2e87d0da9b4a2828cdd1cbe909102476566f4bc628cc4e'
4
- data.tar.gz: e941ead73232338993a765c5debd07954951a7d53358070d8605bef50791bf4f
3
+ metadata.gz: 29b629f49ba1b506fe148294d4847134e07fec1cc84b75ab4308a72260dfc245
4
+ data.tar.gz: 2d8ad86b113c0791a9558a84d8fd38561b8be20f2b89a2df6a3ee4bd606d4200
5
5
  SHA512:
6
- metadata.gz: 4281355eb3fe9a3ea175d777eb7f221bd9f56d208867bc02d5de3ba4c66a09e207af356984f09e0224a924bffe5f17470c35db56f82334afc16efd0043fff4e4
7
- data.tar.gz: d6d7887c567584108811221a7f4dd8661465735913d5636e868908464caa1672e00d1ce48394fead2e61c179d4d53059cc33161990e2cbc894fb21f9eedcc2f2
6
+ metadata.gz: 1971e10d29dec2cd3586a9cb4ea46695057ad9c39fae07ef766438b38abf5c1cd705ba48458c3d06cb44570553a0e3a87eb2650091d34f7ae5ffb1c505135d96
7
+ data.tar.gz: 3ea56b8dd69b13a194a0e6b93edd5a45e5561d250189c6267fbbdd9d93fa0b9e4b9c1291d4153d066036ac6ca399a91c68861a438da38dc1da643f41ab53d904
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.163.0)
4
+ seam (2.164.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.163.0)
174
+ seam (2.164.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
@@ -24,10 +24,26 @@ module Seam
24
24
  date_accessor :created_at
25
25
  end
26
26
 
27
+ # Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
28
+ class AccessNotProvisioned < Errors
29
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
30
+ # @return [String]
31
+ # Known values:
32
+ # - `access_not_provisioned`
33
+ attr_accessor :error_code
34
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
35
+ # @return [String]
36
+ attr_accessor :message
37
+ # Date and time at which Seam created the error.
38
+ # @return [Time]
39
+ date_accessor :created_at
40
+ end
41
+
27
42
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
28
43
  # @return [String]
29
44
  # Known values:
30
45
  # - `cannot_create_requested_access_methods`
46
+ # - `access_not_provisioned`
31
47
  attr_accessor :error_code
32
48
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
33
49
  # @return [String]
@@ -37,7 +53,8 @@ module Seam
37
53
  date_accessor :created_at
38
54
 
39
55
  discriminated_by :error_code, {
40
- "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods
56
+ "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods,
57
+ "access_not_provisioned" => AccessNotProvisioned
41
58
  }.freeze
42
59
  end
43
60
 
@@ -21,10 +21,26 @@ module Seam
21
21
  date_accessor :created_at
22
22
  end
23
23
 
24
+ # Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
25
+ class AccessNotProvisioned < Errors
26
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
27
+ # @return [String]
28
+ # Known values:
29
+ # - `access_not_provisioned`
30
+ attr_accessor :error_code
31
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
32
+ # @return [String]
33
+ attr_accessor :message
34
+ # Date and time at which Seam created the error.
35
+ # @return [Time]
36
+ date_accessor :created_at
37
+ end
38
+
24
39
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
25
40
  # @return [String]
26
41
  # Known values:
27
42
  # - `failed_to_issue`
43
+ # - `access_not_provisioned`
28
44
  attr_accessor :error_code
29
45
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
30
46
  # @return [String]
@@ -34,7 +50,8 @@ module Seam
34
50
  date_accessor :created_at
35
51
 
36
52
  discriminated_by :error_code, {
37
- "failed_to_issue" => FailedToIssue
53
+ "failed_to_issue" => FailedToIssue,
54
+ "access_not_provisioned" => AccessNotProvisioned
38
55
  }.freeze
39
56
  end
40
57
 
@@ -944,6 +944,7 @@ module Seam
944
944
  # @return [String]
945
945
  # Known values:
946
946
  # - `failed_to_issue`
947
+ # - `access_not_provisioned`
947
948
  attr_accessor :error_code
948
949
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
949
950
  # @return [String]
@@ -1464,6 +1465,46 @@ module Seam
1464
1465
  attr_accessor :status
1465
1466
  end
1466
1467
 
1468
+ # Converting an unmanaged access code to managed is pending.
1469
+ class ConvertAccessCodeToManaged < ActionAttempt
1470
+ class Error < BaseResource
1471
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1472
+ # @return [String]
1473
+ attr_accessor :message
1474
+ # Type of the error.
1475
+ # @return [String]
1476
+ attr_accessor :type
1477
+ end
1478
+
1479
+ class Result < BaseResource
1480
+ end
1481
+
1482
+ # Error associated with the action.
1483
+ # @return [Error, nil]
1484
+ # Only present when `status` is `error`; `nil` otherwise.
1485
+ resource_accessor :error, Error
1486
+ available_only_for_statuses :error, ["error"]
1487
+ # Result of the action.
1488
+ # @return [Result, nil]
1489
+ # Only present when `status` is `success`; `nil` otherwise.
1490
+ resource_accessor :result, Result
1491
+ available_only_for_statuses :result, ["success"]
1492
+ # ID of the action attempt.
1493
+ # @return [String]
1494
+ attr_accessor :action_attempt_id
1495
+ # Action attempt to track the status of converting an unmanaged access code to a managed access code.
1496
+ # @return [String]
1497
+ # Known values:
1498
+ # - `CONVERT_ACCESS_CODE_TO_MANAGED`
1499
+ attr_accessor :action_type
1500
+ # @return [String]
1501
+ # Known values:
1502
+ # - `success`
1503
+ # - `pending`
1504
+ # - `error`
1505
+ attr_accessor :status
1506
+ end
1507
+
1467
1508
  class SyncAccessCodes < ActionAttempt
1468
1509
  class Error < BaseResource
1469
1510
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
@@ -1777,6 +1818,7 @@ module Seam
1777
1818
  # - `SIMULATE_MANUAL_LOCK_VIA_KEYPAD`
1778
1819
  # - `PUSH_THERMOSTAT_PROGRAMS`
1779
1820
  # - `CONFIGURE_AUTO_LOCK`
1821
+ # - `CONVERT_ACCESS_CODE_TO_MANAGED`
1780
1822
  # - `SYNC_ACCESS_CODES`
1781
1823
  # - `CREATE_ACCESS_CODE`
1782
1824
  # - `DELETE_ACCESS_CODE`
@@ -1808,6 +1850,7 @@ module Seam
1808
1850
  "SIMULATE_MANUAL_LOCK_VIA_KEYPAD" => SimulateManualLockViaKeypad,
1809
1851
  "PUSH_THERMOSTAT_PROGRAMS" => PushThermostatPrograms,
1810
1852
  "CONFIGURE_AUTO_LOCK" => ConfigureAutoLock,
1853
+ "CONVERT_ACCESS_CODE_TO_MANAGED" => ConvertAccessCodeToManaged,
1811
1854
  "SYNC_ACCESS_CODES" => SyncAccessCodes,
1812
1855
  "CREATE_ACCESS_CODE" => CreateAccessCode,
1813
1856
  "DELETE_ACCESS_CODE" => DeleteAccessCode,
@@ -24,10 +24,26 @@ module Seam
24
24
  date_accessor :created_at
25
25
  end
26
26
 
27
+ # Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
28
+ class AccessNotProvisioned < Errors
29
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
30
+ # @return [String]
31
+ # Known values:
32
+ # - `access_not_provisioned`
33
+ attr_accessor :error_code
34
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
35
+ # @return [String]
36
+ attr_accessor :message
37
+ # Date and time at which Seam created the error.
38
+ # @return [Time]
39
+ date_accessor :created_at
40
+ end
41
+
27
42
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
28
43
  # @return [String]
29
44
  # Known values:
30
45
  # - `cannot_create_requested_access_methods`
46
+ # - `access_not_provisioned`
31
47
  attr_accessor :error_code
32
48
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
33
49
  # @return [String]
@@ -37,7 +53,8 @@ module Seam
37
53
  date_accessor :created_at
38
54
 
39
55
  discriminated_by :error_code, {
40
- "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods
56
+ "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods,
57
+ "access_not_provisioned" => AccessNotProvisioned
41
58
  }.freeze
42
59
  end
43
60
 
@@ -21,10 +21,26 @@ module Seam
21
21
  date_accessor :created_at
22
22
  end
23
23
 
24
+ # Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.
25
+ class AccessNotProvisioned < Errors
26
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
27
+ # @return [String]
28
+ # Known values:
29
+ # - `access_not_provisioned`
30
+ attr_accessor :error_code
31
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
32
+ # @return [String]
33
+ attr_accessor :message
34
+ # Date and time at which Seam created the error.
35
+ # @return [Time]
36
+ date_accessor :created_at
37
+ end
38
+
24
39
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
25
40
  # @return [String]
26
41
  # Known values:
27
42
  # - `failed_to_issue`
43
+ # - `access_not_provisioned`
28
44
  attr_accessor :error_code
29
45
  # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
30
46
  # @return [String]
@@ -34,7 +50,8 @@ module Seam
34
50
  date_accessor :created_at
35
51
 
36
52
  discriminated_by :error_code, {
37
- "failed_to_issue" => FailedToIssue
53
+ "failed_to_issue" => FailedToIssue,
54
+ "access_not_provisioned" => AccessNotProvisioned
38
55
  }.freeze
39
56
  end
40
57
 
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.163.0"
4
+ VERSION = "2.164.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.163.0
4
+ version: 2.164.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.