From 55d0eac19596f7c5750cbf85c4647754a3b2d4d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 06:10:27 +0000 Subject: [PATCH 1/4] 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.587.0 to 1.591.0 - [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.587.0...v1.591.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.591.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 f13f084..37ae4b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.587.0", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.587.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.587.0.tgz", - "integrity": "sha512-5p5KOjoUUZVdwP0XDS0BYzeR3PU8Hiw6yQwkSaIoYfPhkZWqWiac9DjAmJysKqSOefECPUk/0BT8rpMenJ8puQ==", + "version": "1.591.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.591.0.tgz", + "integrity": "sha512-9r1414GHNbTX85XpEl9tvbiPDvw/TDghWMJk5TSz0CXkwafhOpvY08Wfl16KAPHdN5qVClDlLO9eG4ZS8z8BUQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index fd6caa5..7321743 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.587.0", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" From 20d32bff63abb8c3c53e28220e838aef503fb164 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Sep 2025 06:11:10 +0000 Subject: [PATCH 2/4] ci: Generate code --- lib/seam/routes/clients/connected_accounts.rb | 4 ++-- lib/seam/routes/clients/customers.rb | 4 ++-- lib/seam/routes/clients/index.rb | 2 ++ lib/seam/routes/clients/seam.rb | 16 ++++++++++++++++ .../routes/clients/seam_customer_v1_spaces.rb | 18 ++++++++++++++++++ lib/seam/routes/resources/space.rb | 2 +- lib/seam/routes/routes.rb | 4 ++++ 7 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 lib/seam/routes/clients/seam.rb create mode 100644 lib/seam/routes/clients/seam_customer_v1_spaces.rb diff --git a/lib/seam/routes/clients/connected_accounts.rb b/lib/seam/routes/clients/connected_accounts.rb index f9bda32..d9a2e97 100644 --- a/lib/seam/routes/clients/connected_accounts.rb +++ b/lib/seam/routes/clients/connected_accounts.rb @@ -32,8 +32,8 @@ def sync(connected_account_id:) nil end - def update(connected_account_id:, accepted_capabilities: nil, automatically_manage_new_devices: nil, custom_metadata: nil) - @client.post("/connected_accounts/update", {connected_account_id: connected_account_id, accepted_capabilities: accepted_capabilities, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata}.compact) + def update(connected_account_id:, accepted_capabilities: nil, automatically_manage_new_devices: nil, custom_metadata: nil, customer_key: nil) + @client.post("/connected_accounts/update", {connected_account_id: connected_account_id, accepted_capabilities: accepted_capabilities, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata, customer_key: customer_key}.compact) nil end diff --git a/lib/seam/routes/clients/customers.rb b/lib/seam/routes/clients/customers.rb index 1a77d7c..2caca8c 100644 --- a/lib/seam/routes/clients/customers.rb +++ b/lib/seam/routes/clients/customers.rb @@ -20,8 +20,8 @@ def delete_data(access_grant_keys: nil, booking_keys: nil, building_keys: nil, c nil end - def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil) - @client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact) + def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil) + @client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact) nil end diff --git a/lib/seam/routes/clients/index.rb b/lib/seam/routes/clients/index.rb index ddb4f83..48563c5 100644 --- a/lib/seam/routes/clients/index.rb +++ b/lib/seam/routes/clients/index.rb @@ -32,6 +32,8 @@ require_relative "noise_sensors_simulate" require_relative "phones" require_relative "phones_simulate" +require_relative "seam_customer_v1_spaces" +require_relative "seam" require_relative "spaces" require_relative "thermostats" require_relative "thermostats_daily_programs" diff --git a/lib/seam/routes/clients/seam.rb b/lib/seam/routes/clients/seam.rb new file mode 100644 index 0000000..64d4084 --- /dev/null +++ b/lib/seam/routes/clients/seam.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Seam + module Clients + class Seam + def initialize(client:, defaults:) + @client = client + @defaults = defaults + end + + def customer + @customer ||= Seam::Clients::SeamCustomer.new(client: @client, defaults: @defaults) + end + end + end +end diff --git a/lib/seam/routes/clients/seam_customer_v1_spaces.rb b/lib/seam/routes/clients/seam_customer_v1_spaces.rb new file mode 100644 index 0000000..fb03723 --- /dev/null +++ b/lib/seam/routes/clients/seam_customer_v1_spaces.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Seam + module Clients + class SeamCustomerV1Spaces + def initialize(client:, defaults:) + @client = client + @defaults = defaults + end + + def create(name:, acs_entrance_ids: nil, device_ids: nil, parent_space_key: nil, parent_space_name: nil, space_key: nil) + res = @client.post("/seam/customer/v1/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, parent_space_key: parent_space_key, parent_space_name: parent_space_name, space_key: space_key}.compact) + + Seam::Resources::Space.load_from_response(res.body["space"]) + end + end + end +end diff --git a/lib/seam/routes/resources/space.rb b/lib/seam/routes/resources/space.rb index d749351..6667501 100644 --- a/lib/seam/routes/resources/space.rb +++ b/lib/seam/routes/resources/space.rb @@ -3,7 +3,7 @@ module Seam module Resources class Space < BaseResource - attr_accessor :acs_entrance_count, :device_count, :display_name, :name, :space_id, :space_key, :workspace_id + attr_accessor :acs_entrance_count, :device_count, :display_name, :name, :parent_space_id, :parent_space_key, :space_id, :space_key, :workspace_id date_accessor :created_at end diff --git a/lib/seam/routes/routes.rb b/lib/seam/routes/routes.rb index 39ca949..6a9ecef 100644 --- a/lib/seam/routes/routes.rb +++ b/lib/seam/routes/routes.rb @@ -62,6 +62,10 @@ def phones @phones ||= Seam::Clients::Phones.new(client: @client, defaults: @defaults) end + def seam + @seam ||= Seam::Clients::Seam.new(client: @client, defaults: @defaults) + end + def spaces @spaces ||= Seam::Clients::Spaces.new(client: @client, defaults: @defaults) end From c5f792dc04058e45536404ac76b425dab6993b7b Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Tue, 21 Oct 2025 20:48:13 +0200 Subject: [PATCH 3/4] Generator 1.19.4 update --- 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 37ae4b3..ece9ea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "name": "@seamapi/ruby", "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", - "@seamapi/nextlove-sdk-generator": "^1.19.1", + "@seamapi/nextlove-sdk-generator": "^1.19.4", "@seamapi/types": "1.591.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", @@ -454,9 +454,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.1.tgz", - "integrity": "sha512-6uh6LBthvJ8y4uAOC54NZLixtOacY/+K+rEK2O94TnWdr/GFfCT+x2vMxt7sp2D73+EV7yYjvmDM5AIiKH10lQ==", + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.4.tgz", + "integrity": "sha512-zzYiomcX1Swe+Bxg6PCQM+AY+XtRQCC2osbCAwSJ0cEcIkQTIiCCOy6SFBFsUXBUE8IwGStig2zdSqK6f83bww==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 7321743..061ca4e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", - "@seamapi/nextlove-sdk-generator": "^1.19.1", + "@seamapi/nextlove-sdk-generator": "^1.19.4", "@seamapi/types": "1.591.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", From 105da23ab5486fce27a8c7b5bf3e99fefb201b37 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 21 Oct 2025 18:48:55 +0000 Subject: [PATCH 4/4] ci: Generate code --- lib/seam/routes/clients/index.rb | 2 -- lib/seam/routes/clients/seam.rb | 16 ---------------- .../routes/clients/seam_customer_v1_spaces.rb | 18 ------------------ lib/seam/routes/routes.rb | 4 ---- 4 files changed, 40 deletions(-) delete mode 100644 lib/seam/routes/clients/seam.rb delete mode 100644 lib/seam/routes/clients/seam_customer_v1_spaces.rb diff --git a/lib/seam/routes/clients/index.rb b/lib/seam/routes/clients/index.rb index 48563c5..ddb4f83 100644 --- a/lib/seam/routes/clients/index.rb +++ b/lib/seam/routes/clients/index.rb @@ -32,8 +32,6 @@ require_relative "noise_sensors_simulate" require_relative "phones" require_relative "phones_simulate" -require_relative "seam_customer_v1_spaces" -require_relative "seam" require_relative "spaces" require_relative "thermostats" require_relative "thermostats_daily_programs" diff --git a/lib/seam/routes/clients/seam.rb b/lib/seam/routes/clients/seam.rb deleted file mode 100644 index 64d4084..0000000 --- a/lib/seam/routes/clients/seam.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Seam - module Clients - class Seam - def initialize(client:, defaults:) - @client = client - @defaults = defaults - end - - def customer - @customer ||= Seam::Clients::SeamCustomer.new(client: @client, defaults: @defaults) - end - end - end -end diff --git a/lib/seam/routes/clients/seam_customer_v1_spaces.rb b/lib/seam/routes/clients/seam_customer_v1_spaces.rb deleted file mode 100644 index fb03723..0000000 --- a/lib/seam/routes/clients/seam_customer_v1_spaces.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -module Seam - module Clients - class SeamCustomerV1Spaces - def initialize(client:, defaults:) - @client = client - @defaults = defaults - end - - def create(name:, acs_entrance_ids: nil, device_ids: nil, parent_space_key: nil, parent_space_name: nil, space_key: nil) - res = @client.post("/seam/customer/v1/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, parent_space_key: parent_space_key, parent_space_name: parent_space_name, space_key: space_key}.compact) - - Seam::Resources::Space.load_from_response(res.body["space"]) - end - end - end -end diff --git a/lib/seam/routes/routes.rb b/lib/seam/routes/routes.rb index 6a9ecef..39ca949 100644 --- a/lib/seam/routes/routes.rb +++ b/lib/seam/routes/routes.rb @@ -62,10 +62,6 @@ def phones @phones ||= Seam::Clients::Phones.new(client: @client, defaults: @defaults) end - def seam - @seam ||= Seam::Clients::Seam.new(client: @client, defaults: @defaults) - end - def spaces @spaces ||= Seam::Clients::Spaces.new(client: @client, defaults: @defaults) end