From eafe46dd319c97227dabf20064697b7e1978a531 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 06:13:05 +0000 Subject: [PATCH 1/2] feat(deps-dev): bump @seamapi/types Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.1098.0 to 1.1100.0 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](https://github.com/seamapi/types/compare/v1.1098.0...v1.1100.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.1100.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ccecf3..2bbb8df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1098.0", + "@seamapi/types": "1.1100.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -864,9 +864,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1098.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1098.0.tgz", - "integrity": "sha512-pxGJrkuDd62oNiGnKHKnx3LaNvylrWfj5T6IEKlE/njVrp4K/khVmiSqjt4wh3EcgU3R27Zk8pOqivhB8fwKkA==", + "version": "1.1100.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1100.0.tgz", + "integrity": "sha512-syQWT7HOR5T24hzSAXpcFvWzRUrn+PuObNhiN2xvfxGJUseUvhB0LQGfI7mJY0lxWdBazYJEXLf8M3cqYW7K8g==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index d38d901..8e9cfdd 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1098.0", + "@seamapi/types": "1.1100.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" From c693940410d17ecb5c571855a8d8b2aa989b4eb1 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 9 Oct 2026 06:13:49 +0000 Subject: [PATCH 2/2] ci: Generate code --- lib/seam/resources/access_grant.rb | 19 +++++++- lib/seam/resources/access_method.rb | 19 +++++++- lib/seam/resources/action_attempt.rb | 43 +++++++++++++++++++ lib/seam/resources/unmanaged_access_grant.rb | 19 +++++++- lib/seam/resources/unmanaged_access_method.rb | 19 +++++++- 5 files changed, 115 insertions(+), 4 deletions(-) diff --git a/lib/seam/resources/access_grant.rb b/lib/seam/resources/access_grant.rb index e4329ea..c45370e 100644 --- a/lib/seam/resources/access_grant.rb +++ b/lib/seam/resources/access_grant.rb @@ -24,10 +24,26 @@ class CannotCreateRequestedAccessMethods < Errors date_accessor :created_at end + # 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. + class AccessNotProvisioned < Errors + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `access_not_provisioned` + attr_accessor :error_code + # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Date and time at which Seam created the error. + # @return [Time] + date_accessor :created_at + end + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. # @return [String] # Known values: # - `cannot_create_requested_access_methods` + # - `access_not_provisioned` attr_accessor :error_code # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. # @return [String] @@ -37,7 +53,8 @@ class CannotCreateRequestedAccessMethods < Errors date_accessor :created_at discriminated_by :error_code, { - "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods + "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods, + "access_not_provisioned" => AccessNotProvisioned }.freeze end diff --git a/lib/seam/resources/access_method.rb b/lib/seam/resources/access_method.rb index af6378b..f3e5d04 100644 --- a/lib/seam/resources/access_method.rb +++ b/lib/seam/resources/access_method.rb @@ -21,10 +21,26 @@ class FailedToIssue < Errors date_accessor :created_at end + # 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. + class AccessNotProvisioned < Errors + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `access_not_provisioned` + attr_accessor :error_code + # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Date and time at which Seam created the error. + # @return [Time] + date_accessor :created_at + end + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. # @return [String] # Known values: # - `failed_to_issue` + # - `access_not_provisioned` attr_accessor :error_code # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. # @return [String] @@ -34,7 +50,8 @@ class FailedToIssue < Errors date_accessor :created_at discriminated_by :error_code, { - "failed_to_issue" => FailedToIssue + "failed_to_issue" => FailedToIssue, + "access_not_provisioned" => AccessNotProvisioned }.freeze end diff --git a/lib/seam/resources/action_attempt.rb b/lib/seam/resources/action_attempt.rb index 8eb8680..4b70c7f 100644 --- a/lib/seam/resources/action_attempt.rb +++ b/lib/seam/resources/action_attempt.rb @@ -944,6 +944,7 @@ class Errors < BaseResource # @return [String] # Known values: # - `failed_to_issue` + # - `access_not_provisioned` attr_accessor :error_code # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. # @return [String] @@ -1464,6 +1465,46 @@ class Result < BaseResource attr_accessor :status end + # Converting an unmanaged access code to managed is pending. + class ConvertAccessCodeToManaged < ActionAttempt + class Error < BaseResource + # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Type of the error. + # @return [String] + attr_accessor :type + end + + class Result < BaseResource + end + + # Error associated with the action. + # @return [Error, nil] + # Only present when `status` is `error`; `nil` otherwise. + resource_accessor :error, Error + available_only_for_statuses :error, ["error"] + # Result of the action. + # @return [Result, nil] + # Only present when `status` is `success`; `nil` otherwise. + resource_accessor :result, Result + available_only_for_statuses :result, ["success"] + # ID of the action attempt. + # @return [String] + attr_accessor :action_attempt_id + # Action attempt to track the status of converting an unmanaged access code to a managed access code. + # @return [String] + # Known values: + # - `CONVERT_ACCESS_CODE_TO_MANAGED` + attr_accessor :action_type + # @return [String] + # Known values: + # - `success` + # - `pending` + # - `error` + attr_accessor :status + end + class SyncAccessCodes < ActionAttempt class Error < BaseResource # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. @@ -1777,6 +1818,7 @@ class Result < BaseResource # - `SIMULATE_MANUAL_LOCK_VIA_KEYPAD` # - `PUSH_THERMOSTAT_PROGRAMS` # - `CONFIGURE_AUTO_LOCK` + # - `CONVERT_ACCESS_CODE_TO_MANAGED` # - `SYNC_ACCESS_CODES` # - `CREATE_ACCESS_CODE` # - `DELETE_ACCESS_CODE` @@ -1808,6 +1850,7 @@ class Result < BaseResource "SIMULATE_MANUAL_LOCK_VIA_KEYPAD" => SimulateManualLockViaKeypad, "PUSH_THERMOSTAT_PROGRAMS" => PushThermostatPrograms, "CONFIGURE_AUTO_LOCK" => ConfigureAutoLock, + "CONVERT_ACCESS_CODE_TO_MANAGED" => ConvertAccessCodeToManaged, "SYNC_ACCESS_CODES" => SyncAccessCodes, "CREATE_ACCESS_CODE" => CreateAccessCode, "DELETE_ACCESS_CODE" => DeleteAccessCode, diff --git a/lib/seam/resources/unmanaged_access_grant.rb b/lib/seam/resources/unmanaged_access_grant.rb index cd40d20..06b2580 100644 --- a/lib/seam/resources/unmanaged_access_grant.rb +++ b/lib/seam/resources/unmanaged_access_grant.rb @@ -24,10 +24,26 @@ class CannotCreateRequestedAccessMethods < Errors date_accessor :created_at end + # 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. + class AccessNotProvisioned < Errors + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `access_not_provisioned` + attr_accessor :error_code + # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Date and time at which Seam created the error. + # @return [Time] + date_accessor :created_at + end + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. # @return [String] # Known values: # - `cannot_create_requested_access_methods` + # - `access_not_provisioned` attr_accessor :error_code # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. # @return [String] @@ -37,7 +53,8 @@ class CannotCreateRequestedAccessMethods < Errors date_accessor :created_at discriminated_by :error_code, { - "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods + "cannot_create_requested_access_methods" => CannotCreateRequestedAccessMethods, + "access_not_provisioned" => AccessNotProvisioned }.freeze end diff --git a/lib/seam/resources/unmanaged_access_method.rb b/lib/seam/resources/unmanaged_access_method.rb index d06c616..51c7b50 100644 --- a/lib/seam/resources/unmanaged_access_method.rb +++ b/lib/seam/resources/unmanaged_access_method.rb @@ -21,10 +21,26 @@ class FailedToIssue < Errors date_accessor :created_at end + # 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. + class AccessNotProvisioned < Errors + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `access_not_provisioned` + attr_accessor :error_code + # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Date and time at which Seam created the error. + # @return [Time] + date_accessor :created_at + end + # Unique identifier of the type of error. Enables quick recognition and categorization of the issue. # @return [String] # Known values: # - `failed_to_issue` + # - `access_not_provisioned` attr_accessor :error_code # Detailed description of the error. Provides insights into the issue and potentially how to rectify it. # @return [String] @@ -34,7 +50,8 @@ class FailedToIssue < Errors date_accessor :created_at discriminated_by :error_code, { - "failed_to_issue" => FailedToIssue + "failed_to_issue" => FailedToIssue, + "access_not_provisioned" => AccessNotProvisioned }.freeze end