diff --git a/lib/seam/routes/clients/acs_entrances.rb b/lib/seam/routes/clients/acs_entrances.rb index 29b1e721..13592b5c 100644 --- a/lib/seam/routes/clients/acs_entrances.rb +++ b/lib/seam/routes/clients/acs_entrances.rb @@ -20,8 +20,8 @@ def grant_access(acs_entrance_id:, acs_user_id: nil, user_identity_id: nil) nil end - def list(access_grant_id: nil, access_method_id: nil, acs_credential_id: nil, acs_system_id: nil, connected_account_id: nil, location_id: nil, space_id: nil) - res = @client.post("/acs/entrances/list", {access_grant_id: access_grant_id, access_method_id: access_method_id, acs_credential_id: acs_credential_id, acs_system_id: acs_system_id, connected_account_id: connected_account_id, location_id: location_id, space_id: space_id}.compact) + def list(access_grant_id: nil, access_method_id: nil, acs_credential_id: nil, acs_entrance_ids: nil, acs_system_id: nil, connected_account_id: nil, location_id: nil, space_id: nil) + res = @client.post("/acs/entrances/list", {access_grant_id: access_grant_id, access_method_id: access_method_id, acs_credential_id: acs_credential_id, acs_entrance_ids: acs_entrance_ids, acs_system_id: acs_system_id, connected_account_id: connected_account_id, location_id: location_id, space_id: space_id}.compact) Seam::Resources::AcsEntrance.load_from_response(res.body["acs_entrances"]) end diff --git a/lib/seam/routes/clients/devices_simulate.rb b/lib/seam/routes/clients/devices_simulate.rb index c4c0d8b8..a224814b 100644 --- a/lib/seam/routes/clients/devices_simulate.rb +++ b/lib/seam/routes/clients/devices_simulate.rb @@ -14,12 +14,24 @@ def connect(device_id:) nil end + def connect_to_hub(device_id:) + @client.post("/devices/simulate/connect_to_hub", {device_id: device_id}.compact) + + nil + end + def disconnect(device_id:) @client.post("/devices/simulate/disconnect", {device_id: device_id}.compact) nil end + def disconnect_from_hub(device_id:) + @client.post("/devices/simulate/disconnect_from_hub", {device_id: device_id}.compact) + + nil + end + def remove(device_id:) @client.post("/devices/simulate/remove", {device_id: device_id}.compact) diff --git a/lib/seam/routes/clients/spaces.rb b/lib/seam/routes/clients/spaces.rb index b4be870b..a2a6c24c 100644 --- a/lib/seam/routes/clients/spaces.rb +++ b/lib/seam/routes/clients/spaces.rb @@ -38,6 +38,12 @@ def get(space_id:) Seam::Resources::Space.load_from_response(res.body["space"]) end + def get_related(space_ids:, exclude: nil, include: nil) + @client.post("/spaces/get_related", {space_ids: space_ids, exclude: exclude, include: include}.compact) + + nil + end + def list res = @client.post("/spaces/list") diff --git a/lib/seam/routes/resources/event.rb b/lib/seam/routes/resources/event.rb index 48b9f741..ce43755f 100644 --- a/lib/seam/routes/resources/event.rb +++ b/lib/seam/routes/resources/event.rb @@ -3,7 +3,7 @@ module Seam module Resources class SeamEvent < BaseResource - attr_accessor :access_code_id, :connected_account_id, :device_id, :event_id, :event_type, :workspace_id, :code, :backup_access_code_id, :access_grant_id, :acs_entrance_id, :access_method_id, :acs_system_id, :acs_credential_id, :acs_user_id, :acs_encoder_id, :acs_access_group_id, :client_session_id, :connect_webview_id, :action_attempt_id, :action_type, :status, :error_code, :battery_level, :battery_status, :minut_metadata, :noise_level_decibels, :noise_level_nrs, :noise_threshold_id, :noise_threshold_name, :noiseaware_metadata, :method, :climate_preset_key, :is_fallback_climate_preset, :thermostat_schedule_id, :cooling_set_point_celsius, :cooling_set_point_fahrenheit, :fan_mode_setting, :heating_set_point_celsius, :heating_set_point_fahrenheit, :hvac_mode_setting, :lower_limit_celsius, :lower_limit_fahrenheit, :temperature_celsius, :temperature_fahrenheit, :upper_limit_celsius, :upper_limit_fahrenheit, :desired_temperature_celsius, :desired_temperature_fahrenheit, :device_name, :enrollment_automation_id + attr_accessor :access_code_id, :connected_account_custom_metadata, :connected_account_id, :device_custom_metadata, :device_id, :event_id, :event_type, :workspace_id, :code, :backup_access_code_id, :access_grant_id, :acs_entrance_id, :access_method_id, :acs_system_id, :acs_credential_id, :acs_user_id, :acs_encoder_id, :acs_access_group_id, :client_session_id, :connect_webview_id, :action_attempt_id, :action_type, :status, :error_code, :battery_level, :battery_status, :minut_metadata, :noise_level_decibels, :noise_level_nrs, :noise_threshold_id, :noise_threshold_name, :noiseaware_metadata, :method, :climate_preset_key, :is_fallback_climate_preset, :thermostat_schedule_id, :cooling_set_point_celsius, :cooling_set_point_fahrenheit, :fan_mode_setting, :heating_set_point_celsius, :heating_set_point_fahrenheit, :hvac_mode_setting, :lower_limit_celsius, :lower_limit_fahrenheit, :temperature_celsius, :temperature_fahrenheit, :upper_limit_celsius, :upper_limit_fahrenheit, :desired_temperature_celsius, :desired_temperature_fahrenheit, :device_name, :enrollment_automation_id date_accessor :created_at, :occurred_at end diff --git a/lib/seam/routes/resources/user_identity.rb b/lib/seam/routes/resources/user_identity.rb index 18919d53..e0cf6e93 100644 --- a/lib/seam/routes/resources/user_identity.rb +++ b/lib/seam/routes/resources/user_identity.rb @@ -3,7 +3,7 @@ module Seam module Resources class UserIdentity < BaseResource - attr_accessor :display_name, :email_address, :full_name, :phone_number, :user_identity_id, :user_identity_key, :workspace_id + attr_accessor :acs_user_ids, :display_name, :email_address, :full_name, :phone_number, :user_identity_id, :user_identity_key, :workspace_id date_accessor :created_at diff --git a/package-lock.json b/package-lock.json index 42a4ab11..93acf648 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.437.0", + "@seamapi/types": "1.439.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.437.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.437.0.tgz", - "integrity": "sha512-+rA742bee7Dy19U6lZHooi/Gx8kZmxBYUci18qPkfZ5ZCvqSg0rnOB1OkGFFw4eTQIBQ887JHhDUiYqZxK1TWQ==", + "version": "1.439.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.439.0.tgz", + "integrity": "sha512-QFzo0jLtB2CIkm26K0tMhPNbeF+qxyAWGyhRufTUKcbIE5sYoi025f2nAkssBxOWH8uf18pTaH326igBt08Wew==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 19a9baa4..1e2cbbca 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.437.0", + "@seamapi/types": "1.439.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"