diff --git a/package-lock.json b/package-lock.json index 7e5d954f..dd30305a 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.1125.0", + "@seamapi/types": "1.1129.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.1125.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1125.0.tgz", - "integrity": "sha512-jRzAOBwjMSBFLOaSmFUxCnAR1x8dUOaSeXXKLrJtxWioqUTdaMu9CK0Dp/H6l1N96kPGVEVEs2Yym7XcXiWUdg==", + "version": "1.1129.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1129.0.tgz", + "integrity": "sha512-TlWoYyag1WXGB3CRjI3utqoDcmEvP4bPqCeUc1SXUW1o7bX3k3y+EGr9ZDPKfmMiQkOd6YaC4QgbP7h4hOSn6A==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 12756f54..c723db56 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.1125.0", + "@seamapi/types": "1.1129.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/action-attempt.ts b/src/lib/resources/action-attempt.ts index 4e503766..b4c32d26 100644 --- a/src/lib/resources/action-attempt.ts +++ b/src/lib/resources/action-attempt.ts @@ -2278,401 +2278,6 @@ export type ActionAttempt = */ action_attempt_id: string - /** - * Action attempt to track the status of setting the volume on a speaker. - */ - action_type: 'SET_SPEAKER_VOLUME' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: {} - - status: 'success' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of setting the volume on a speaker. - */ - action_type: 'SET_SPEAKER_VOLUME' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: null - - status: 'pending' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of setting the volume on a speaker. - */ - action_type: 'SET_SPEAKER_VOLUME' - - /** - * Error associated with the action. - */ - error: { - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Type of the error. - */ - type: string - } - - /** - * Result of the action. - */ - result: null - - status: 'error' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of muting or unmuting a speaker. - */ - action_type: 'SET_SPEAKER_MUTE' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: {} - - status: 'success' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of muting or unmuting a speaker. - */ - action_type: 'SET_SPEAKER_MUTE' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: null - - status: 'pending' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of muting or unmuting a speaker. - */ - action_type: 'SET_SPEAKER_MUTE' - - /** - * Error associated with the action. - */ - error: { - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Type of the error. - */ - type: string - } - - /** - * Result of the action. - */ - result: null - - status: 'error' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of pausing playback on a speaker. - */ - action_type: 'PAUSE_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: { - /** - * IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. - */ - affected_device_ids: Array - } - - status: 'success' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of pausing playback on a speaker. - */ - action_type: 'PAUSE_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: null - - status: 'pending' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of pausing playback on a speaker. - */ - action_type: 'PAUSE_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: { - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Type of the error. - */ - type: string - } - - /** - * Result of the action. - */ - result: null - - status: 'error' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of resuming playback on a speaker. - */ - action_type: 'RESUME_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: { - /** - * IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. - */ - affected_device_ids: Array - } - - status: 'success' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of resuming playback on a speaker. - */ - action_type: 'RESUME_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: null - - status: 'pending' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of resuming playback on a speaker. - */ - action_type: 'RESUME_SPEAKER_PLAYBACK' - - /** - * Error associated with the action. - */ - error: { - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Type of the error. - */ - type: string - } - - /** - * Result of the action. - */ - result: null - - status: 'error' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of playing a chime on a speaker. - */ - action_type: 'PLAY_SPEAKER_CHIME' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: {} - - status: 'success' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of playing a chime on a speaker. - */ - action_type: 'PLAY_SPEAKER_CHIME' - - /** - * Error associated with the action. - */ - error: null - /** - * Result of the action. - */ - result: null - - status: 'pending' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - - /** - * Action attempt to track the status of playing a chime on a speaker. - */ - action_type: 'PLAY_SPEAKER_CHIME' - - /** - * Error associated with the action. - */ - error: { - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Type of the error. - */ - type: string - } - - /** - * Result of the action. - */ - result: null - - status: 'error' - } - | { - /** - * ID of the action attempt. - */ - action_attempt_id: string - /** * Syncing access codes is pending. */ diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index 905ee5db..1ef0ed09 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -24,18 +24,6 @@ export type DeviceProvider = { * Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined - /** - * Indicates whether the speaker supports muting. - */ - can_mute_speaker?: boolean | undefined - /** - * Indicates whether the speaker supports pausing playback. - */ - can_pause_speaker_playback?: boolean | undefined - /** - * Indicates whether the speaker supports playing a chime. - */ - can_play_speaker_chime?: boolean | undefined /** * Indicates whether the device supports programming offline access codes. */ @@ -64,18 +52,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. */ can_run_thermostat_programs?: boolean | undefined - /** - * Indicates whether the speaker supports setting its volume. - */ - can_set_speaker_volume?: boolean | undefined /** * Indicates whether the device supports simulating connection in a sandbox. */ @@ -112,10 +92,6 @@ 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 79a927f6..36379726 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -27,18 +27,6 @@ export type Device = { * Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined - /** - * Indicates whether the speaker supports muting. - */ - can_mute_speaker?: boolean | undefined - /** - * Indicates whether the speaker supports pausing playback. - */ - can_pause_speaker_playback?: boolean | undefined - /** - * Indicates whether the speaker supports playing a chime. - */ - can_play_speaker_chime?: boolean | undefined /** * Indicates whether the device supports programming offline access codes. */ @@ -67,18 +55,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. */ can_run_thermostat_programs?: boolean | undefined - /** - * Indicates whether the speaker supports setting its volume. - */ - can_set_speaker_volume?: boolean | undefined /** * Indicates whether the device supports simulating connection in a sandbox. */ @@ -115,10 +95,6 @@ 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). */ @@ -1858,41 +1834,6 @@ export type Device = { model?: string | undefined } | undefined - /** - * Metadata for a Sonos speaker. - */ - sonos_metadata?: - | { - /** - * Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. - */ - bonded_member_models?: Array | undefined - /** - * Color of the speaker, as reported by Sonos. - */ - color?: string | undefined - /** - * ID of the Sonos household that the speaker belongs to. - */ - household_id?: string | undefined - /** - * Model name of the speaker, as reported by Sonos. - */ - model_display_name?: string | undefined - /** - * ID of the Sonos player for the speaker. - */ - player_id?: string | undefined - /** - * Name of the speaker, as set in the Sonos app. - */ - player_name?: string | undefined - /** - * Software version running on the speaker. - */ - software_version?: string | undefined - } - | undefined /** * Metadata for a tado° device. */ @@ -2334,81 +2275,6 @@ export type Device = { time_zone?: string | undefined }> | undefined - /** - * Audio state and capabilities of the speaker. - */ - speaker?: - | { - /** - * IDs of the other speakers that are currently grouped with this speaker. Pausing or resuming playback on a speaker also affects the speakers in its group. - */ - grouped_with_device_ids: Array - - /** - * Indicates whether the speaker's volume is fixed, for example, because the speaker's line-out level is controlled by an external amplifier. A speaker with a fixed volume cannot have its volume set through Seam. - */ - has_fixed_volume: boolean - - /** - * Indicates whether the speaker is muted. - */ - is_muted: boolean - - /** - * Maximum volume that you can set on the speaker. This is the ceiling of the speaker's native volume scale, not a limit configured for guests. - */ - max_volume: number - - /** - * Minimum volume that you can set on the speaker. - */ - min_volume: number - - /** - * Content that is currently playing on the speaker. - */ - now_playing?: - | { - /** - * Album of the content that is currently playing. - */ - album?: string | undefined - /** - * Artist of the content that is currently playing. - */ - artist?: string | undefined - /** - * Title of the content that is currently playing. - */ - title?: string | undefined - } - | undefined - /** - * Playback state of the speaker. - */ - playback_state: - 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown' - - /** - * Indicates whether the speaker can play a chime. - */ - supports_chime: boolean - - /** - * Current volume of the speaker, on the speaker's native volume scale from `min_volume` to `max_volume`. This is the native volume setting, not a decibel level. - */ - volume: number - - /** - * Date and time at which the speaker first reported its current volume. - */ - volume_reported_at?: string | undefined - /** - * Increment between the volume values that you can set on the speaker. - */ - volume_step: number - } - | undefined /** * Supported code lengths for access codes. */ diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index 7898aa70..febaab89 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -27,18 +27,6 @@ export type UnmanagedDevice = { * Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined - /** - * Indicates whether the speaker supports muting. - */ - can_mute_speaker?: boolean | undefined - /** - * Indicates whether the speaker supports pausing playback. - */ - can_pause_speaker_playback?: boolean | undefined - /** - * Indicates whether the speaker supports playing a chime. - */ - can_play_speaker_chime?: boolean | undefined /** * Indicates whether the device supports programming offline access codes. */ @@ -67,18 +55,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. */ can_run_thermostat_programs?: boolean | undefined - /** - * Indicates whether the speaker supports setting its volume. - */ - can_set_speaker_volume?: boolean | undefined /** * Indicates whether the device supports simulating connection in a sandbox. */ @@ -115,10 +95,6 @@ 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 797c8d86..e768aa26 100644 --- a/src/lib/routes/customers/customers.ts +++ b/src/lib/routes/customers/customers.ts @@ -912,7 +912,9 @@ export type CustomersCreatePortalParameters = { * Whether to exclude the option to select a locale within the portal UI. */ exclude_locale_picker?: boolean | undefined - + /** + * Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them. + */ features?: | { /** diff --git a/src/lib/routes/user-identities/user-identities.ts b/src/lib/routes/user-identities/user-identities.ts index 4185d960..3e989965 100644 --- a/src/lib/routes/user-identities/user-identities.ts +++ b/src/lib/routes/user-identities/user-identities.ts @@ -523,6 +523,10 @@ export type UserIdentitiesCreateParameters = { * List of access system IDs to associate with the new user identity through access system users. If there's no user with the same email address or phone number in the specified access systems, a new access system user is created. If there is an existing user with the same email or phone number in the specified access systems, the user is linked to the user identity. */ acs_system_ids?: Array | undefined + /** + * Customer key of the customer that owns the new user identity. Set it when the user identity will be used in access grants created through that customer's client session or Customer Portal. + */ + customer_key?: string | undefined /** * Unique email address for the new user identity. */