diff --git a/lib/seam/routes/clients/access_grants.rb b/lib/seam/routes/clients/access_grants.rb index bb621ece..8b3d5452 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, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: 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, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, 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, 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, space_ids: space_ids, starts_at: starts_at}.compact) Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"]) end @@ -20,14 +20,14 @@ def delete(access_grant_id:) nil end - def get(access_grant_id:) - res = @client.post("/access_grants/get", {access_grant_id: access_grant_id}.compact) + def get(access_grant_id: nil, access_grant_key: nil) + res = @client.post("/access_grants/get", {access_grant_id: access_grant_id, access_grant_key: access_grant_key}.compact) Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"]) end - def list(acs_entrance_id: nil, acs_system_id: nil, location_id: nil, space_id: nil, user_identity_id: nil) - res = @client.post("/access_grants/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, location_id: location_id, space_id: space_id, user_identity_id: user_identity_id}.compact) + def list(access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, location_id: nil, space_id: nil, user_identity_id: nil) + res = @client.post("/access_grants/list", {access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, location_id: location_id, space_id: space_id, user_identity_id: user_identity_id}.compact) Seam::Resources::AccessGrant.load_from_response(res.body["access_grants"]) end diff --git a/lib/seam/routes/clients/connect_webviews.rb b/lib/seam/routes/clients/connect_webviews.rb index 475bd7b4..42336572 100644 --- a/lib/seam/routes/clients/connect_webviews.rb +++ b/lib/seam/routes/clients/connect_webviews.rb @@ -8,8 +8,8 @@ def initialize(client:, defaults:) @defaults = defaults end - def create(accepted_capabilities: nil, accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, customer_id: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) - res = @client.post("/connect_webviews/create", {accepted_capabilities: accepted_capabilities, accepted_providers: accepted_providers, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata, custom_redirect_failure_url: custom_redirect_failure_url, custom_redirect_url: custom_redirect_url, customer_id: customer_id, device_selection_mode: device_selection_mode, provider_category: provider_category, wait_for_device_creation: wait_for_device_creation}.compact) + def create(accepted_capabilities: nil, accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, customer_key: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) + res = @client.post("/connect_webviews/create", {accepted_capabilities: accepted_capabilities, accepted_providers: accepted_providers, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata, custom_redirect_failure_url: custom_redirect_failure_url, custom_redirect_url: custom_redirect_url, customer_key: customer_key, device_selection_mode: device_selection_mode, provider_category: provider_category, wait_for_device_creation: wait_for_device_creation}.compact) Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webview"]) end @@ -26,8 +26,8 @@ def get(connect_webview_id:) Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webview"]) end - def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: nil, user_identifier_key: nil) - res = @client.post("/connect_webviews/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, limit: nil, page_cursor: nil, user_identifier_key: nil) + res = @client.post("/connect_webviews/list", {custom_metadata_has: custom_metadata_has, limit: limit, page_cursor: page_cursor, user_identifier_key: user_identifier_key}.compact) Seam::Resources::ConnectWebview.load_from_response(res.body["connect_webviews"]) end diff --git a/lib/seam/routes/clients/spaces.rb b/lib/seam/routes/clients/spaces.rb index f8a5ea5a..30e65cb9 100644 --- a/lib/seam/routes/clients/spaces.rb +++ b/lib/seam/routes/clients/spaces.rb @@ -20,8 +20,8 @@ def add_devices(device_ids:, space_id:) nil end - def create(name:, acs_entrance_ids: nil, device_ids: nil) - res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids}.compact) + def create(name:, acs_entrance_ids: nil, device_ids: nil, space_key: nil) + res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, space_key: space_key}.compact) Seam::Resources::Space.load_from_response(res.body["space"]) end @@ -32,8 +32,8 @@ def delete(space_id:) nil end - def get(space_id:) - res = @client.post("/spaces/get", {space_id: space_id}.compact) + def get(space_id: nil, space_key: nil) + res = @client.post("/spaces/get", {space_id: space_id, space_key: space_key}.compact) Seam::Resources::Space.load_from_response(res.body["space"]) end @@ -44,8 +44,8 @@ def get_related(space_ids:, exclude: nil, include: nil) nil end - def list(search: nil) - res = @client.post("/spaces/list", {search: search}.compact) + def list(search: nil, space_key: nil) + res = @client.post("/spaces/list", {search: search, space_key: space_key}.compact) Seam::Resources::Space.load_from_response(res.body["spaces"]) end diff --git a/lib/seam/routes/resources/access_grant.rb b/lib/seam/routes/resources/access_grant.rb index 4b565063..3e5613e0 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, :instant_key_url, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id + attr_accessor :access_grant_id, :access_grant_key, :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/connect_webview.rb b/lib/seam/routes/resources/connect_webview.rb index cde74a05..6d9e8047 100644 --- a/lib/seam/routes/resources/connect_webview.rb +++ b/lib/seam/routes/resources/connect_webview.rb @@ -3,7 +3,7 @@ module Seam module Resources class ConnectWebview < BaseResource - attr_accessor :accepted_capabilities, :accepted_devices, :accepted_providers, :any_device_allowed, :any_provider_allowed, :automatically_manage_new_devices, :connect_webview_id, :connected_account_id, :custom_metadata, :custom_redirect_failure_url, :custom_redirect_url, :device_selection_mode, :login_successful, :selected_provider, :status, :url, :wait_for_device_creation, :workspace_id + attr_accessor :accepted_capabilities, :accepted_devices, :accepted_providers, :any_device_allowed, :any_provider_allowed, :automatically_manage_new_devices, :connect_webview_id, :connected_account_id, :custom_metadata, :custom_redirect_failure_url, :custom_redirect_url, :customer_key, :device_selection_mode, :login_successful, :selected_provider, :status, :url, :wait_for_device_creation, :workspace_id date_accessor :authorized_at, :created_at end diff --git a/lib/seam/routes/resources/space.rb b/lib/seam/routes/resources/space.rb index 77ec39e9..d7493515 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, :workspace_id + attr_accessor :acs_entrance_count, :device_count, :display_name, :name, :space_id, :space_key, :workspace_id date_accessor :created_at end diff --git a/package-lock.json b/package-lock.json index ffcfe853..aba17bf1 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.444.1", + "@seamapi/types": "1.446.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.444.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.444.1.tgz", - "integrity": "sha512-3FLBjlCuyaUQqb0br7/cX9lpE74koFktXVoF363E7AHdXY1n3ZgROQKeK/rinEF+6Mb8o89sEnTvJ+DUNA96pg==", + "version": "1.446.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.446.0.tgz", + "integrity": "sha512-5xQxR4btug8h4SPtpZcQ69g3u0SZbgydAfeSDd2Jq+pW2wQ0E4VrdNOnFajpylCO9xjod0rerLwlHUsELOZ3qw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index bb6e7c62..86acc865 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.444.1", + "@seamapi/types": "1.446.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"