diff --git a/lib/seam/routes/clients/connected_accounts.rb b/lib/seam/routes/clients/connected_accounts.rb index e6b133e..f9bda32 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, 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) + def list(custom_metadata_has: nil, customer_key: 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_key: customer_key, 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 @@ -32,8 +32,8 @@ def sync(connected_account_id:) nil end - def update(connected_account_id:, automatically_manage_new_devices: nil, custom_metadata: nil) - @client.post("/connected_accounts/update", {connected_account_id: connected_account_id, 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) + @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) nil end diff --git a/lib/seam/routes/clients/spaces.rb b/lib/seam/routes/clients/spaces.rb index 30e65cb..14fb3d1 100644 --- a/lib/seam/routes/clients/spaces.rb +++ b/lib/seam/routes/clients/spaces.rb @@ -44,8 +44,8 @@ def get_related(space_ids:, exclude: nil, include: nil) nil end - def list(search: nil, space_key: nil) - res = @client.post("/spaces/list", {search: search, space_key: space_key}.compact) + def list(connected_account_id: nil, search: nil, space_key: nil) + res = @client.post("/spaces/list", {connected_account_id: connected_account_id, 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 3e5613e..f280c4b 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_grant_key, :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, :client_session_token, :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 3056036..4aedcbd 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, :code, :display_name, :instant_key_url, :is_encoding_required, :mode, :workspace_id + attr_accessor :access_method_id, :client_session_token, :code, :display_name, :instant_key_url, :is_encoding_required, :mode, :workspace_id date_accessor :created_at, :issued_at end diff --git a/package-lock.json b/package-lock.json index aba17bf..41de027 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.446.0", + "@seamapi/types": "1.451.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.446.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.446.0.tgz", - "integrity": "sha512-5xQxR4btug8h4SPtpZcQ69g3u0SZbgydAfeSDd2Jq+pW2wQ0E4VrdNOnFajpylCO9xjod0rerLwlHUsELOZ3qw==", + "version": "1.451.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.451.0.tgz", + "integrity": "sha512-AbKuOjHysExffbc58AiXTjKYz0wo7MIlNa0kkiWGmBHTQh2G0CLraJkqhQIGHUkeMi8l1XHR5G/xiyxruMsg+g==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 86acc86..d10330f 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.446.0", + "@seamapi/types": "1.451.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"