From f29ed5522927f4064e70a723f1d608277a60ba8f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 07:31:38 +0000 Subject: [PATCH 1/2] feat(deps-dev): bump @seamapi/types in the seam group --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.461.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 4e32392..bc2d5ff 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.19.0", - "@seamapi/types": "1.457.0", + "@seamapi/types": "1.461.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.457.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.457.0.tgz", - "integrity": "sha512-vjaMQOLXnuZyCgnZu3eR1bvTh7hKyVMroNmiix8Gkc615Xp0NWyVBaasENj3ufa2dozOznuh9jukNGz085JEzg==", + "version": "1.461.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.461.0.tgz", + "integrity": "sha512-e077CCv/Uhp2XBxYNFHHwYVSpjPxKywl5a/0P3jQqGeSMj4Vix28JTFig3DaDxD0+HjcNuT1wS2HMu6yuluhgw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index c650c4f..21dcff0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.19.0", - "@seamapi/types": "1.457.0", + "@seamapi/types": "1.461.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" From 79a68e3fe0a9c916446127ae6878aa88fa2fc391 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 22 Jul 2025 07:32:12 +0000 Subject: [PATCH 2/2] ci: Generate code --- lib/seam/routes/clients/access_grants.rb | 4 ++-- lib/seam/routes/clients/index.rb | 1 + lib/seam/routes/clients/instant_keys.rb | 18 ++++++++++++++++++ lib/seam/routes/resources/phone_session.rb | 2 +- lib/seam/routes/routes.rb | 4 ++++ 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 lib/seam/routes/clients/instant_keys.rb diff --git a/lib/seam/routes/clients/access_grants.rb b/lib/seam/routes/clients/access_grants.rb index f72a732..b9f046e 100644 --- a/lib/seam/routes/clients/access_grants.rb +++ b/lib/seam/routes/clients/access_grants.rb @@ -8,8 +8,8 @@ def initialize(client:, defaults:) @defaults = defaults end - def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, access_grant_key: nil, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, name: nil, space_ids: nil, starts_at: nil) - res = @client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, access_grant_key: access_grant_key, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, name: name, space_ids: space_ids, starts_at: starts_at}.compact) + def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, access_grant_key: nil, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, name: nil, space_ids: nil, space_keys: nil, starts_at: nil) + res = @client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, access_grant_key: access_grant_key, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, name: name, space_ids: space_ids, space_keys: space_keys, starts_at: starts_at}.compact) Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"]) end diff --git a/lib/seam/routes/clients/index.rb b/lib/seam/routes/clients/index.rb index 3c61ad3..422bd50 100644 --- a/lib/seam/routes/clients/index.rb +++ b/lib/seam/routes/clients/index.rb @@ -22,6 +22,7 @@ require_relative "devices_simulate" require_relative "devices_unmanaged" require_relative "events" +require_relative "instant_keys" require_relative "locks" require_relative "locks_simulate" require_relative "noise_sensors" diff --git a/lib/seam/routes/clients/instant_keys.rb b/lib/seam/routes/clients/instant_keys.rb new file mode 100644 index 0000000..9460e57 --- /dev/null +++ b/lib/seam/routes/clients/instant_keys.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Seam + module Clients + class InstantKeys + def initialize(client:, defaults:) + @client = client + @defaults = defaults + end + + def list(user_identity_id: nil) + res = @client.post("/instant_keys/list", {user_identity_id: user_identity_id}.compact) + + Seam::Resources::InstantKey.load_from_response(res.body["instant_keys"]) + end + end + end +end diff --git a/lib/seam/routes/resources/phone_session.rb b/lib/seam/routes/resources/phone_session.rb index c752a41..78d86ad 100644 --- a/lib/seam/routes/resources/phone_session.rb +++ b/lib/seam/routes/resources/phone_session.rb @@ -3,7 +3,7 @@ module Seam module Resources class PhoneSession < BaseResource - attr_accessor :provider_sessions + attr_accessor :provider_sessions, :user_identity, :workspace_id end end end diff --git a/lib/seam/routes/routes.rb b/lib/seam/routes/routes.rb index daf75c6..39ca949 100644 --- a/lib/seam/routes/routes.rb +++ b/lib/seam/routes/routes.rb @@ -46,6 +46,10 @@ def events @events ||= Seam::Clients::Events.new(client: @client, defaults: @defaults) end + def instant_keys + @instant_keys ||= Seam::Clients::InstantKeys.new(client: @client, defaults: @defaults) + end + def locks @locks ||= Seam::Clients::Locks.new(client: @client, defaults: @defaults) end