From 56ce1ee75cec04fbcbf00cc86784924ad90316c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 08:31:08 +0000 Subject: [PATCH 1/2] feat(deps-dev): bump @seamapi/types in the seam group Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.425.0 to 1.429.1 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.425.0...v1.429.1) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.429.1 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 cee9d0ef..c85000b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.18.1", - "@seamapi/types": "1.425.0", + "@seamapi/types": "1.429.1", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.425.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.425.0.tgz", - "integrity": "sha512-RzxfgwMNXilJxvvcDE8lcHiOaKRt/z1ZkQT6XWZsaqwGRlaIzHfLL0hvZ+Ocf+zg2ZcSkhPa/kASa3Xlqiqc2Q==", + "version": "1.429.1", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.429.1.tgz", + "integrity": "sha512-94GBjvVNKMJqSv0DRKyhjHB6Gxg6QZi9f+5xPmBYWyhtYYfA0i4QNBFDqyUcp5jXIjjtmzzUltr3BCkoisVYOw==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 536f53ab..f0d667d9 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.18.1", - "@seamapi/types": "1.425.0", + "@seamapi/types": "1.429.1", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" From cd5b93386ab977420557b72e8feb555148770459 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 30 Jun 2025 08:31:42 +0000 Subject: [PATCH 2/2] ci: Generate code --- lib/seam/routes/clients/access_methods.rb | 10 ++++++++++ lib/seam/routes/clients/acs_encoders.rb | 12 ++---------- lib/seam/routes/clients/connected_accounts.rb | 4 ++-- lib/seam/routes/resources/access_grant.rb | 2 +- lib/seam/routes/resources/access_method.rb | 2 +- lib/seam/routes/resources/device.rb | 2 +- lib/seam/routes/resources/device_provider.rb | 2 +- lib/seam/routes/resources/unmanaged_device.rb | 2 +- 8 files changed, 19 insertions(+), 17 deletions(-) diff --git a/lib/seam/routes/clients/access_methods.rb b/lib/seam/routes/clients/access_methods.rb index 05e5d1a2..f35a6b1a 100644 --- a/lib/seam/routes/clients/access_methods.rb +++ b/lib/seam/routes/clients/access_methods.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "seam/helpers/action_attempt" + module Seam module Clients class AccessMethods @@ -14,6 +16,14 @@ def delete(access_method_id:) nil end + def encode(access_method_id:, acs_encoder_id:, wait_for_action_attempt: nil) + res = @client.post("/access_methods/encode", {access_method_id: access_method_id, acs_encoder_id: acs_encoder_id}.compact) + + wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt + + Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt) + end + def get(access_method_id:) res = @client.post("/access_methods/get", {access_method_id: access_method_id}.compact) diff --git a/lib/seam/routes/clients/acs_encoders.rb b/lib/seam/routes/clients/acs_encoders.rb index 03fcb4a7..15d430b5 100644 --- a/lib/seam/routes/clients/acs_encoders.rb +++ b/lib/seam/routes/clients/acs_encoders.rb @@ -10,16 +10,8 @@ def initialize(client:, defaults:) @defaults = defaults end - def encode_access_method(access_method_id:, acs_encoder_id:, wait_for_action_attempt: nil) - res = @client.post("/acs/encoders/encode_access_method", {access_method_id: access_method_id, acs_encoder_id: acs_encoder_id}.compact) - - wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt - - Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt) - end - - def encode_credential(acs_credential_id:, acs_encoder_id:, wait_for_action_attempt: nil) - res = @client.post("/acs/encoders/encode_credential", {acs_credential_id: acs_credential_id, acs_encoder_id: acs_encoder_id}.compact) + def encode_credential(acs_encoder_id:, access_method_id: nil, acs_credential_id: nil, wait_for_action_attempt: nil) + res = @client.post("/acs/encoders/encode_credential", {acs_encoder_id: acs_encoder_id, access_method_id: access_method_id, acs_credential_id: acs_credential_id}.compact) wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt diff --git a/lib/seam/routes/clients/connected_accounts.rb b/lib/seam/routes/clients/connected_accounts.rb index b49ecaeb..e6b133e1 100644 --- a/lib/seam/routes/clients/connected_accounts.rb +++ b/lib/seam/routes/clients/connected_accounts.rb @@ -20,8 +20,8 @@ def get(connected_account_id: nil, email: nil) Seam::Resources::ConnectedAccount.load_from_response(res.body["connected_account"]) end - def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: nil, user_identifier_key: nil) - res = @client.post("/connected_accounts/list", {custom_metadata_has: custom_metadata_has, customer_ids: customer_ids, limit: limit, page_cursor: page_cursor, user_identifier_key: user_identifier_key}.compact) + def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil) + res = @client.post("/connected_accounts/list", {custom_metadata_has: custom_metadata_has, customer_ids: customer_ids, limit: limit, page_cursor: page_cursor, search: search, user_identifier_key: user_identifier_key}.compact) Seam::Resources::ConnectedAccount.load_from_response(res.body["connected_accounts"]) end diff --git a/lib/seam/routes/resources/access_grant.rb b/lib/seam/routes/resources/access_grant.rb index dacc3e09..4b565063 100644 --- a/lib/seam/routes/resources/access_grant.rb +++ b/lib/seam/routes/resources/access_grant.rb @@ -3,7 +3,7 @@ module Seam module Resources class AccessGrant < BaseResource - attr_accessor :access_grant_id, :access_method_ids, :display_name, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id + attr_accessor :access_grant_id, :access_method_ids, :display_name, :instant_key_url, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id date_accessor :created_at, :ends_at, :starts_at end diff --git a/lib/seam/routes/resources/access_method.rb b/lib/seam/routes/resources/access_method.rb index e63a8493..65a16183 100644 --- a/lib/seam/routes/resources/access_method.rb +++ b/lib/seam/routes/resources/access_method.rb @@ -3,7 +3,7 @@ module Seam module Resources class AccessMethod < BaseResource - attr_accessor :access_method_id, :display_name, :instant_key_url, :is_card_encoding_required, :mode, :workspace_id + attr_accessor :access_method_id, :display_name, :instant_key_url, :is_encoding_required, :mode, :workspace_id date_accessor :created_at, :issued_at end diff --git a/lib/seam/routes/resources/device.rb b/lib/seam/routes/resources/device.rb index 72a6f124..b977520c 100644 --- a/lib/seam/routes/resources/device.rb +++ b/lib/seam/routes/resources/device.rb @@ -3,7 +3,7 @@ module Seam module Resources class Device < BaseResource - attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id + attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id date_accessor :created_at diff --git a/lib/seam/routes/resources/device_provider.rb b/lib/seam/routes/resources/device_provider.rb index 7b2bdd93..3f5458a7 100644 --- a/lib/seam/routes/resources/device_provider.rb +++ b/lib/seam/routes/resources/device_provider.rb @@ -3,7 +3,7 @@ module Seam module Resources class DeviceProvider < BaseResource - attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :device_provider_name, :display_name, :image_url, :provider_categories + attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :device_provider_name, :display_name, :image_url, :provider_categories end end end diff --git a/lib/seam/routes/resources/unmanaged_device.rb b/lib/seam/routes/resources/unmanaged_device.rb index a29a1af1..3b8ac3af 100644 --- a/lib/seam/routes/resources/unmanaged_device.rb +++ b/lib/seam/routes/resources/unmanaged_device.rb @@ -3,7 +3,7 @@ module Seam module Resources class UnmanagedDevice < BaseResource - attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id + attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id date_accessor :created_at