diff --git a/lib/seam/resources/access_method.rb b/lib/seam/resources/access_method.rb index ae3d79e..6a76201 100644 --- a/lib/seam/resources/access_method.rb +++ b/lib/seam/resources/access_method.rb @@ -142,6 +142,36 @@ class DelayInIssuing < Warnings date_accessor :created_at end + # Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant. + class UserIdentityMissingEmailAddress < Warnings + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `user_identity_missing_email_address` + attr_accessor :warning_code + # Date and time at which Seam created the warning. + # @return [Time] + date_accessor :created_at + end + + # Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant. + class UserIdentityMissingPhoneNumber < Warnings + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `user_identity_missing_phone_number` + attr_accessor :warning_code + # Date and time at which Seam created the warning. + # @return [Time] + date_accessor :created_at + end + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. # @return [String] attr_accessor :message @@ -152,6 +182,8 @@ class DelayInIssuing < Warnings # - `updating_access_times` # - `pulled_backup_access_code` # - `delay_in_issuing` + # - `user_identity_missing_email_address` + # - `user_identity_missing_phone_number` attr_accessor :warning_code # Date and time at which Seam created the warning. # @return [Time] @@ -161,7 +193,9 @@ class DelayInIssuing < Warnings "being_deleted" => BeingDeleted, "updating_access_times" => UpdatingAccessTimes, "pulled_backup_access_code" => PulledBackupAccessCode, - "delay_in_issuing" => DelayInIssuing + "delay_in_issuing" => DelayInIssuing, + "user_identity_missing_email_address" => UserIdentityMissingEmailAddress, + "user_identity_missing_phone_number" => UserIdentityMissingPhoneNumber }.freeze end diff --git a/lib/seam/resources/action_attempt.rb b/lib/seam/resources/action_attempt.rb index 09e99e5..6f5a0a1 100644 --- a/lib/seam/resources/action_attempt.rb +++ b/lib/seam/resources/action_attempt.rb @@ -1004,6 +1004,8 @@ class Warnings < BaseResource # - `updating_access_times` # - `pulled_backup_access_code` # - `delay_in_issuing` + # - `user_identity_missing_email_address` + # - `user_identity_missing_phone_number` attr_accessor :warning_code # ID of the original access method from which this backup access method was split, if applicable. # @return [String, nil] diff --git a/lib/seam/resources/device.rb b/lib/seam/resources/device.rb index 02d1456..23e90f5 100644 --- a/lib/seam/resources/device.rb +++ b/lib/seam/resources/device.rb @@ -562,15 +562,15 @@ class ControlbywebMetadata < BaseResource class DormakabaOracodeIhoMetadata < BaseResource class UserLevels < BaseResource # @return [Float, nil] - attr_accessor :userLevel + attr_accessor :user_level # @return [String, nil] - attr_accessor :userLevelCheckInTime + attr_accessor :user_level_check_in_time # @return [String, nil] - attr_accessor :userLevelCheckOutTime + attr_accessor :user_level_check_out_time # @return [String, nil] - attr_accessor :userLevelName + attr_accessor :user_level_name # @return [String, nil] - attr_accessor :userLevelType + attr_accessor :user_level_type end # User levels for a dormakaba Oracode Homeowner's Portal device. diff --git a/lib/seam/resources/event.rb b/lib/seam/resources/event.rb index 534e73c..ecab5d2 100644 --- a/lib/seam/resources/event.rb +++ b/lib/seam/resources/event.rb @@ -4325,6 +4325,7 @@ class LockLocked < SeamEvent # - `unknown` # - `remote` # - `card` + # - `mobile_key` aliased_accessor :event_method, from: :method # ID of the workspace associated with the event. # @return [String] @@ -4391,6 +4392,7 @@ class LockUnlocked < SeamEvent # - `unknown` # - `remote` # - `card` + # - `mobile_key` aliased_accessor :event_method, from: :method # ID of the workspace associated with the event. # @return [String] diff --git a/lib/seam/resources/unmanaged_access_method.rb b/lib/seam/resources/unmanaged_access_method.rb index 5f7a18a..f26af0b 100644 --- a/lib/seam/resources/unmanaged_access_method.rb +++ b/lib/seam/resources/unmanaged_access_method.rb @@ -142,6 +142,36 @@ class DelayInIssuing < Warnings date_accessor :created_at end + # Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant. + class UserIdentityMissingEmailAddress < Warnings + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `user_identity_missing_email_address` + attr_accessor :warning_code + # Date and time at which Seam created the warning. + # @return [Time] + date_accessor :created_at + end + + # Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant. + class UserIdentityMissingPhoneNumber < Warnings + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + # @return [String] + attr_accessor :message + # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + # @return [String] + # Known values: + # - `user_identity_missing_phone_number` + attr_accessor :warning_code + # Date and time at which Seam created the warning. + # @return [Time] + date_accessor :created_at + end + # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. # @return [String] attr_accessor :message @@ -152,6 +182,8 @@ class DelayInIssuing < Warnings # - `updating_access_times` # - `pulled_backup_access_code` # - `delay_in_issuing` + # - `user_identity_missing_email_address` + # - `user_identity_missing_phone_number` attr_accessor :warning_code # Date and time at which Seam created the warning. # @return [Time] @@ -161,7 +193,9 @@ class DelayInIssuing < Warnings "being_deleted" => BeingDeleted, "updating_access_times" => UpdatingAccessTimes, "pulled_backup_access_code" => PulledBackupAccessCode, - "delay_in_issuing" => DelayInIssuing + "delay_in_issuing" => DelayInIssuing, + "user_identity_missing_email_address" => UserIdentityMissingEmailAddress, + "user_identity_missing_phone_number" => UserIdentityMissingPhoneNumber }.freeze end diff --git a/lib/seam/routes/access_grants.rb b/lib/seam/routes/access_grants.rb index 8c0a96d..31d598b 100644 --- a/lib/seam/routes/access_grants.rb +++ b/lib/seam/routes/access_grants.rb @@ -89,11 +89,12 @@ def get_related(access_grant_ids: nil, access_grant_keys: nil, exclude: nil, inc # @deprecated location_id: Use `space_id`. # @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. # @param reservation_key [String, nil] Filter Access Grants by reservation_key. + # @param search [String, nil] String for which to search. Filters returned Access Grants to include all records that satisfy a partial match using `name`, `access_grant_key`, `reservation_key`, `access_grant_id`, `user_identity_id`, `user_identity_full_name`, `user_identity_email_address` or `user_identity_phone_number`. # @param space_id [String, nil] ID of the space by which you want to filter the list of Access Grants. # @param user_identity_id [String, nil] ID of user identity by which you want to filter the list of Access Grants. # @return [Seam::Resources::AccessGrant] OK - def list(access_code_id: nil, access_grant_ids: nil, access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, device_id: nil, limit: nil, location_id: nil, page_cursor: nil, reservation_key: nil, space_id: nil, user_identity_id: nil) - res = @client.get("/access_grants/list", {access_code_id: access_code_id, access_grant_ids: access_grant_ids, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, device_id: device_id, limit: limit, location_id: location_id, page_cursor: page_cursor, reservation_key: reservation_key, space_id: space_id, user_identity_id: user_identity_id}.compact) + def list(access_code_id: nil, access_grant_ids: nil, access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, device_id: nil, limit: nil, location_id: nil, page_cursor: nil, reservation_key: nil, search: nil, space_id: nil, user_identity_id: nil) + res = @client.get("/access_grants/list", {access_code_id: access_code_id, access_grant_ids: access_grant_ids, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, device_id: device_id, limit: limit, location_id: location_id, page_cursor: page_cursor, reservation_key: reservation_key, search: search, 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/workspaces.rb b/lib/seam/routes/workspaces.rb index 12c5f20..cef0bc3 100644 --- a/lib/seam/routes/workspaces.rb +++ b/lib/seam/routes/workspaces.rb @@ -17,7 +17,7 @@ def initialize(client:, defaults:) # @param connect_partner_name [String, Seam::Null, nil] Connect partner name for the new workspace. # @param connect_webview_customization [Hash, nil] [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) customizations for the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). # @param is_sandbox [Boolean, nil] Indicates whether the new workspace is a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). - # @param organization_id [String, nil] ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. + # @param organization_id [String, nil] ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it. # @param webview_logo_shape [String, nil] # @deprecated webview_logo_shape: Use `connect_webview_customization.webview_logo_shape` instead. # @param webview_primary_button_color [String, nil] diff --git a/package-lock.json b/package-lock.json index b803f91..f765a02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,10 +6,10 @@ "": { "name": "@seamapi/ruby", "devDependencies": { - "@seamapi/blueprint": "^1.11.0", + "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1057.0", + "@seamapi/types": "1.1069.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -788,9 +788,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.11.0.tgz", - "integrity": "sha512-uX0Lxf5GH5PLaRY9H8dO0FPxWhw6FQrVRHcYL9W/rkT+t6rZn5fUPJyT5FSOGo6QT0N5gLpjsVs+ymMMRtfCXA==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.12.0.tgz", + "integrity": "sha512-cH6mpLIUm2q2YxuxEW4G6ODYZJFZihJcUtGyVWjwfdfrmGCyAJRl+S7XCyGz5LuNhdBRux5iShHxtsc/b0Y80g==", "dev": true, "license": "MIT", "dependencies": { @@ -864,9 +864,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1057.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1057.0.tgz", - "integrity": "sha512-yNaapE5FG8Pf3ZfIm3+bOLtXh4rg1K2fhCrp8cttFP5hNXk4rYHbBA+YP51uidUca+Rk1oAeO8GmX0YL4YRHfw==", + "version": "1.1069.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1069.0.tgz", + "integrity": "sha512-6sbnT7dkl9DSaegp+t25UTFAxxxevOAebdQSlvCBs8PU4yudNWmJ+mkIpYGrLIz2MxK/EU4ph+5wZ/z01Dh0Cg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index d65525f..58f100c 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,10 @@ }, "packageManager": "npm@11.19.0", "devDependencies": { - "@seamapi/blueprint": "^1.11.0", + "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1057.0", + "@seamapi/types": "1.1069.0", "change-case": "^5.4.4", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"