From f90dd42b2ab990f3d20a862528d5b9a2039a5cd7 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 16 Oct 2026 18:34:53 +0000 Subject: [PATCH] feat: Update to @seamapi/types@1.1125.0 --- package-lock.json | 8 +++--- package.json | 2 +- src/lib/resources/access-grant.ts | 11 +++++--- src/lib/resources/access-method.ts | 28 ++++++++++++++++++++ src/lib/resources/action-attempt.ts | 9 +++++++ src/lib/resources/device-provider.ts | 12 +++++++-- src/lib/resources/device.ts | 14 +++++++--- src/lib/resources/event.ts | 1 + src/lib/resources/unmanaged-access-grant.ts | 11 +++++--- src/lib/resources/unmanaged-access-method.ts | 28 ++++++++++++++++++++ src/lib/resources/unmanaged-device.ts | 12 +++++++-- src/lib/routes/customers/customers.ts | 8 ++++++ 12 files changed, 124 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c59a9a1..c1337c05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1112.0", + "@seamapi/types": "1.1125.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", @@ -1133,9 +1133,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1112.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1112.0.tgz", - "integrity": "sha512-+hUxlBQNp6EggFS0uAfPWs+ET2D+f//f0R9qvZ6X1jnsLqpRi+TUicZBRCJ1O7ykaH3C95xKjjjY+/Q9NmWwsg==", + "version": "1.1125.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1125.0.tgz", + "integrity": "sha512-jRzAOBwjMSBFLOaSmFUxCnAR1x8dUOaSeXXKLrJtxWioqUTdaMu9CK0Dp/H6l1N96kPGVEVEs2Yym7XcXiWUdg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index fb6a2735..ffe4ff34 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1112.0", + "@seamapi/types": "1.1125.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/access-grant.ts b/src/lib/resources/access-grant.ts index 86779e77..05d8957a 100644 --- a/src/lib/resources/access-grant.ts +++ b/src/lib/resources/access-grant.ts @@ -364,19 +364,22 @@ export type AccessGrant = { */ warning_code: 'updating_access_times' } /** - * Indicates that the requested PIN code was already in use on a device, so a different code was assigned. + * Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules. */ | { + /** + * ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. + */ + access_method_id?: string | undefined /** * Date and time at which Seam created the warning. */ created_at: string /** - * ID of the device where the requested code was unavailable. + * ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ - device_id: string - + device_id?: string | undefined /** * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ diff --git a/src/lib/resources/access-method.ts b/src/lib/resources/access-method.ts index 14476af0..5247ea21 100644 --- a/src/lib/resources/access-method.ts +++ b/src/lib/resources/access-method.ts @@ -379,6 +379,34 @@ export type AccessMethod = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number' + } /** + * Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * The PIN code that was assigned instead. + */ + new_code: string + + /** + * The originally requested PIN code that could not be used. + */ + original_code: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'requested_code_unavailable' } > diff --git a/src/lib/resources/action-attempt.ts b/src/lib/resources/action-attempt.ts index e9817913..4e503766 100644 --- a/src/lib/resources/action-attempt.ts +++ b/src/lib/resources/action-attempt.ts @@ -1426,11 +1426,20 @@ export type ActionAttempt = | 'delay_in_issuing' | 'user_identity_missing_email_address' | 'user_identity_missing_phone_number' + | 'requested_code_unavailable' /** * ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined + /** + * The PIN code that was assigned instead. + */ + new_code?: string | undefined + /** + * The originally requested PIN code that could not be used. + */ + original_code?: string | undefined }> /** diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index 0a1bbf7b..905ee5db 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -25,11 +25,11 @@ export type DeviceProvider = { */ can_hvac_heat_cool?: boolean | undefined /** - * Indicates whether the speaker supports muting and unmuting. + * Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined /** - * Indicates whether the speaker supports pausing and resuming playback. + * Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined /** @@ -64,6 +64,10 @@ export type DeviceProvider = { * Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined + /** + * Indicates whether the speaker supports resuming playback. + */ + can_resume_speaker_playback?: boolean | undefined /** * Indicates whether the thermostat supports running climate programs. */ @@ -108,6 +112,10 @@ export type DeviceProvider = { * Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined + /** + * Indicates whether the speaker supports unmuting. + */ + can_unmute_speaker?: boolean | undefined /** * Name of the device provider. */ diff --git a/src/lib/resources/device.ts b/src/lib/resources/device.ts index 118d90cc..79a927f6 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -28,11 +28,11 @@ export type Device = { */ can_hvac_heat_cool?: boolean | undefined /** - * Indicates whether the speaker supports muting and unmuting. + * Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined /** - * Indicates whether the speaker supports pausing and resuming playback. + * Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined /** @@ -67,6 +67,10 @@ export type Device = { * Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined + /** + * Indicates whether the speaker supports resuming playback. + */ + can_resume_speaker_playback?: boolean | undefined /** * Indicates whether the thermostat supports running climate programs. */ @@ -111,6 +115,10 @@ export type Device = { * Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined + /** + * Indicates whether the speaker supports unmuting. + */ + can_unmute_speaker?: boolean | undefined /** * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags). */ @@ -1818,7 +1826,7 @@ export type Device = { */ device_name?: string | undefined /** - * Set to true when the device does not support the /dual-setpoints API endpoint. + * Deprecated. Seam no longer sets this field. */ dual_setpoints_not_supported?: boolean | undefined /** diff --git a/src/lib/resources/event.ts b/src/lib/resources/event.ts index 852a33cd..ec57ad54 100644 --- a/src/lib/resources/event.ts +++ b/src/lib/resources/event.ts @@ -5828,6 +5828,7 @@ export type SeamEvent = | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' + | 'connection_error' } | undefined /** diff --git a/src/lib/resources/unmanaged-access-grant.ts b/src/lib/resources/unmanaged-access-grant.ts index 65602c62..d78c2611 100644 --- a/src/lib/resources/unmanaged-access-grant.ts +++ b/src/lib/resources/unmanaged-access-grant.ts @@ -342,19 +342,22 @@ export type UnmanagedAccessGrant = { */ warning_code: 'updating_access_times' } /** - * Indicates that the requested PIN code was already in use on a device, so a different code was assigned. + * Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules. */ | { + /** + * ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. + */ + access_method_id?: string | undefined /** * Date and time at which Seam created the warning. */ created_at: string /** - * ID of the device where the requested code was unavailable. + * ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ - device_id: string - + device_id?: string | undefined /** * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ diff --git a/src/lib/resources/unmanaged-access-method.ts b/src/lib/resources/unmanaged-access-method.ts index 47db8d84..2931f5d6 100644 --- a/src/lib/resources/unmanaged-access-method.ts +++ b/src/lib/resources/unmanaged-access-method.ts @@ -367,6 +367,34 @@ export type UnmanagedAccessMethod = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number' + } /** + * Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * The PIN code that was assigned instead. + */ + new_code: string + + /** + * The originally requested PIN code that could not be used. + */ + original_code: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'requested_code_unavailable' } > diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index 60cfd83f..7898aa70 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -28,11 +28,11 @@ export type UnmanagedDevice = { */ can_hvac_heat_cool?: boolean | undefined /** - * Indicates whether the speaker supports muting and unmuting. + * Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined /** - * Indicates whether the speaker supports pausing and resuming playback. + * Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined /** @@ -67,6 +67,10 @@ export type UnmanagedDevice = { * Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined + /** + * Indicates whether the speaker supports resuming playback. + */ + can_resume_speaker_playback?: boolean | undefined /** * Indicates whether the thermostat supports running climate programs. */ @@ -111,6 +115,10 @@ export type UnmanagedDevice = { * Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined + /** + * Indicates whether the speaker supports unmuting. + */ + can_unmute_speaker?: boolean | undefined /** * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags). */ diff --git a/src/lib/routes/customers/customers.ts b/src/lib/routes/customers/customers.ts index 63cdadc9..797c8d86 100644 --- a/src/lib/routes/customers/customers.ts +++ b/src/lib/routes/customers/customers.ts @@ -936,6 +936,10 @@ export type CustomersCreatePortalParameters = { * Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined + /** + * Indicates whether the customer can customize the sound automation rules for their properties. + */ + allow_sound_automation_rule_customization?: boolean | undefined /** * Whether to exclude this feature from the portal. */ @@ -1008,6 +1012,10 @@ export type CustomersCreatePortalParameters = { * Whether to exclude this feature from the portal. */ exclude?: boolean | undefined + /** + * Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. + */ + exclude_device_management?: boolean | undefined /** * Indicates whether the customer can manage reservations for their properties. */