diff --git a/package-lock.json b/package-lock.json index 25a93b00..931dd8be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,10 +10,10 @@ "license": "MIT", "devDependencies": { "@prettier/plugin-php": "^0.25.0", - "@seamapi/blueprint": "^1.13.2", + "@seamapi/blueprint": "^1.13.3", "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1189.0", + "@seamapi/types": "1.1201.0", "change-case": "^5.4.4", "execa": "^10.0.1", "prettier": "^3.9.6" @@ -813,9 +813,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.2.tgz", - "integrity": "sha512-FS8zYX01P/eCXcZDUp+dOY3b34tjDmKj6TR1gE8P7IE8Fc7Q9Sr57yUBDv+OKhPIpMifDkr6+0G+A/ej/nIDTw==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.3.tgz", + "integrity": "sha512-OuYxF4b8r5cEjgsfNyfAucfbaDlTwiWbXSxhh4Fjic04KhcYhiPxGc9PplNVkWLyFJTXi1yOmZJgO/koJuOK4w==", "dev": true, "license": "MIT", "dependencies": { @@ -889,9 +889,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1189.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1189.0.tgz", - "integrity": "sha512-b4elCtQSd54yz8vtgDXw3dBXwX6RP2T+C8hkfbZ4NWGiq5VXCXE6iiNFLCXhZh4ecWY6QHD3cK9+lt+SEIkG3g==", + "version": "1.1201.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1201.0.tgz", + "integrity": "sha512-KYCgnWd8hwwrnttrtv+rE61G292g/F4EbtofDzUK8+vXXsr5oOlWV8l00E2Se9kulB6mIhTXrpJhJkcxRNz6yg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 9315bfa0..f7114650 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ "packageManager": "npm@11.19.0", "devDependencies": { "@prettier/plugin-php": "^0.25.0", - "@seamapi/blueprint": "^1.13.2", + "@seamapi/blueprint": "^1.13.3", "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1189.0", + "@seamapi/types": "1.1201.0", "change-case": "^5.4.4", "execa": "^10.0.1", "prettier": "^3.9.6" diff --git a/src/Resources/AccessGrant.php b/src/Resources/AccessGrant.php index e987c76d..b8ad4984 100644 --- a/src/Resources/AccessGrant.php +++ b/src/Resources/AccessGrant.php @@ -22,7 +22,6 @@ public static function from_json(mixed $json): AccessGrant|null fn($e) => \Seam\Resources\AccessGrant\Errors::from_json($e), $json->errors ?? [], ), - location_ids: $json->location_ids ?? null, name: $json->name ?? null, pending_mutations: array_map( fn( @@ -92,11 +91,6 @@ public function __construct( * @var list<\Seam\Resources\AccessGrant\Errors> */ public array $errors, - /** - * @var list|null - * @deprecated Use `space_ids`. - */ - public array|null $location_ids, /** * Name of the Access Grant. If not provided, the display name will be computed. */ diff --git a/src/Resources/AcsAccessGroup.php b/src/Resources/AcsAccessGroup.php index 81767956..1df9e3df 100644 --- a/src/Resources/AcsAccessGroup.php +++ b/src/Resources/AcsAccessGroup.php @@ -16,9 +16,6 @@ public static function from_json(mixed $json): AcsAccessGroup|null return null; } return new self( - access_group_type: $json->access_group_type ?? null, - access_group_type_display_name: $json->access_group_type_display_name ?? - null, acs_access_group_id: $json->acs_access_group_id ?? null, acs_system_id: $json->acs_system_id ?? null, connected_account_id: $json->connected_account_id ?? null, @@ -59,15 +56,6 @@ public static function from_json(mixed $json): AcsAccessGroup|null } public function __construct( - /** - * @var value-of<\Seam\Resources\AcsAccessGroup\AccessGroupType>|string|null - * @deprecated Use `external_type`. - */ - public string|null $access_group_type, - /** - * @deprecated Use `external_type_display_name`. - */ - public string|null $access_group_type_display_name, /** * ID of the access group. */ @@ -322,20 +310,6 @@ public function __construct( ) {} } - enum AccessGroupType: string - { - case PTI_UNIT = "pti_unit"; - case PTI_ACCESS_LEVEL = "pti_access_level"; - case SALTO_KS_ACCESS_GROUP = "salto_ks_access_group"; - case BRIVO_GROUP = "brivo_group"; - case SALTO_SPACE_GROUP = "salto_space_group"; - case DORMAKABA_COMMUNITY_ACCESS_GROUP = "dormakaba_community_access_group"; - case DORMAKABA_AMBIANCE_ACCESS_GROUP = "dormakaba_ambiance_access_group"; - case AVIGILON_ALTA_GROUP = "avigilon_alta_group"; - case KISI_ACCESS_GROUP = "kisi_access_group"; - case AKILES_MEMBER_GROUP = "akiles_member_group"; - } - enum ExternalType: string { case PTI_UNIT = "pti_unit"; diff --git a/src/Resources/AcsSystem.php b/src/Resources/AcsSystem.php index a3df9a2d..f18a607b 100644 --- a/src/Resources/AcsSystem.php +++ b/src/Resources/AcsSystem.php @@ -18,7 +18,6 @@ public static function from_json(mixed $json): AcsSystem|null return new self( acs_system_id: $json->acs_system_id ?? null, connected_account_id: $json->connected_account_id ?? null, - connected_account_ids: $json->connected_account_ids ?? null, created_at: $json->created_at ?? null, errors: array_map( fn($e) => \Seam\Resources\AcsSystem\Errors::from_json($e), @@ -45,9 +44,6 @@ public static function from_json(mixed $json): AcsSystem|null external_type: $json->external_type ?? null, external_type_display_name: $json->external_type_display_name ?? null, - system_type: $json->system_type ?? null, - system_type_display_name: $json->system_type_display_name ?? - null, visionline_metadata: isset($json->visionline_metadata) ? \Seam\Resources\AcsSystem\VisionlineMetadata::from_json( $json->visionline_metadata, @@ -65,13 +61,6 @@ public function __construct( * ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ public string|null $connected_account_id, - /** - * IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). - * - * @var list|null - * @deprecated Use `connected_account_id`. - */ - public array|null $connected_account_ids, /** * Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ @@ -134,15 +123,6 @@ public function __construct( * Display name that corresponds to the brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ public string|null $external_type_display_name = null, - /** - * @var value-of<\Seam\Resources\AcsSystem\SystemType>|string|null - * @deprecated Use `external_type`. - */ - public string|null $system_type = null, - /** - * @deprecated Use `external_type_display_name`. - */ - public string|null $system_type_display_name = null, /** * Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ @@ -310,6 +290,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\AcsSystem\Warnings\SaltoKsSubscriptionLimitAlmostReached::from_json( $json, ), + \Seam\Resources\AcsSystem\Warnings\WarningCode::SALTO_KS_CUSTOM_PINS_NOT_SUPPORTED + => \Seam\Resources\AcsSystem\Warnings\SaltoKsCustomPinsNotSupported::from_json( + $json, + ), \Seam\Resources\AcsSystem\Warnings\WarningCode::TIME_ZONE_DOES_NOT_MATCH_LOCATION => \Seam\Resources\AcsSystem\Warnings\TimeZoneDoesNotMatchLocation::from_json( $json, @@ -368,27 +352,6 @@ enum ExternalType: string case KISI_ORGANIZATION = "kisi_organization"; case AKILES_ORGANIZATION = "akiles_organization"; } - - enum SystemType: string - { - case PTI_SITE = "pti_site"; - case AVIGILON_ALTA_ORG = "avigilon_alta_org"; - case SALTO_KS_SITE = "salto_ks_site"; - case SALTO_SPACE_SYSTEM = "salto_space_system"; - case BRIVO_ACCOUNT = "brivo_account"; - case HID_CREDENTIAL_MANAGER_ORGANIZATION = "hid_credential_manager_organization"; - case VISIONLINE_SYSTEM = "visionline_system"; - case ASSA_ABLOY_CREDENTIAL_SERVICE = "assa_abloy_credential_service"; - case LATCH_BUILDING = "latch_building"; - case DORMAKABA_COMMUNITY_SITE = "dormakaba_community_site"; - case DORMAKABA_AMBIANCE_SITE = "dormakaba_ambiance_site"; - case LEGIC_CONNECT_CREDENTIAL_SERVICE = "legic_connect_credential_service"; - case ASSA_ABLOY_VOSTIO = "assa_abloy_vostio"; - case ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE = "assa_abloy_vostio_credential_service"; - case HOTEK_SITE = "hotek_site"; - case KISI_ORGANIZATION = "kisi_organization"; - case AKILES_ORGANIZATION = "akiles_organization"; - } } namespace Seam\Resources\AcsSystem\Errors { @@ -883,6 +846,49 @@ public function __construct( } } + /** + * Indicates that the Salto KS site does not accept custom PIN codes, either because its Salto subscription does not include the Custom PIN feature or because Custom PIN is turned off in the site's settings. Salto KS generates every PIN on the site, so a PIN code requested on an access grant or reservation is replaced with a Salto-generated one. The message says which of the two applies. + */ + final class SaltoKsCustomPinsNotSupported extends + \Seam\Resources\AcsSystem\Warnings + { + public static function from_json( + mixed $json, + ): SaltoKsCustomPinsNotSupported|null { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\AcsSystem\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) time zone could not be determined because the reported physical location does not match the time zone configured on the physical [ACS entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ @@ -899,8 +905,6 @@ public static function from_json( created_at: $json->created_at ?? null, message: $json->message ?? null, warning_code: $json->warning_code ?? null, - misconfigured_acs_entrance_ids: $json->misconfigured_acs_entrance_ids ?? - null, ); } @@ -919,11 +923,6 @@ public function __construct( * @var value-of<\Seam\Resources\AcsSystem\Warnings\WarningCode>|string|null */ string|null $warning_code, - /** - * @var list|null - * @deprecated this field is deprecated. - */ - public array|null $misconfigured_acs_entrance_ids = null, ) { parent::__construct( created_at: $created_at, @@ -1020,6 +1019,7 @@ public function __construct( enum WarningCode: string { case SALTO_KS_SUBSCRIPTION_LIMIT_ALMOST_REACHED = "salto_ks_subscription_limit_almost_reached"; + case SALTO_KS_CUSTOM_PINS_NOT_SUPPORTED = "salto_ks_custom_pins_not_supported"; case TIME_ZONE_DOES_NOT_MATCH_LOCATION = "time_zone_does_not_match_location"; case SETUP_REQUIRED = "setup_required"; case UNKNOWN_ISSUE_WITH_ACS_SYSTEM = "unknown_issue_with_acs_system"; diff --git a/src/Resources/AcsUser.php b/src/Resources/AcsUser.php index 5842baa9..99c595c6 100644 --- a/src/Resources/AcsUser.php +++ b/src/Resources/AcsUser.php @@ -36,7 +36,6 @@ public static function from_json(mixed $json): AcsUser|null $json->access_schedule, ) : null, - email: $json->email ?? null, email_address: $json->email_address ?? null, external_type: $json->external_type ?? null, external_type_display_name: $json->external_type_display_name ?? @@ -117,10 +116,6 @@ public function __construct( * `starts_at` and `ends_at` timestamps for the [access system user's](https://www.seam.co/docs/low-level-apis/access-systems/user-management) access. */ public \Seam\Resources\AcsUser\AccessSchedule|null $access_schedule = null, - /** - * @deprecated use email_address. - */ - public string|null $email = null, /** * Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ diff --git a/src/Resources/ClientSession.php b/src/Resources/ClientSession.php index f7c43dd7..489bdf1c 100644 --- a/src/Resources/ClientSession.php +++ b/src/Resources/ClientSession.php @@ -28,7 +28,6 @@ public static function from_json(mixed $json): ClientSession|null expires_at: $json->expires_at ?? null, token: $json->token ?? null, user_identifier_key: $json->user_identifier_key ?? null, - user_identity_ids: $json->user_identity_ids ?? null, workspace_id: $json->workspace_id ?? null, customer_key: $json->customer_key ?? null, user_identity_id: $json->user_identity_id ?? null, @@ -72,13 +71,6 @@ public function __construct( * Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ public string|null $user_identifier_key, - /** - * IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session. - * - * @var list|null - * @deprecated Use `user_identity_id` instead. - */ - public array|null $user_identity_ids, /** * ID of the workspace associated with the client session. */ diff --git a/src/Resources/ConnectedAccount.php b/src/Resources/ConnectedAccount.php index bde91d28..0cf1295b 100644 --- a/src/Resources/ConnectedAccount.php +++ b/src/Resources/ConnectedAccount.php @@ -43,11 +43,6 @@ public static function from_json(mixed $json): ConnectedAccount|null ical_url: $json->ical_url ?? null, image_url: $json->image_url ?? null, time_zone: $json->time_zone ?? null, - user_identifier: isset($json->user_identifier) - ? \Seam\Resources\ConnectedAccount\UserIdentifier::from_json( - $json->user_identifier, - ) - : null, ); } @@ -128,12 +123,6 @@ public function __construct( * IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ public string|null $time_zone = null, - /** - * User identifier associated with the connected account. - * - * @deprecated Use `display_name` instead. - */ - public \Seam\Resources\ConnectedAccount\UserIdentifier|null $user_identifier = null, ) {} } } @@ -209,51 +198,6 @@ public function __construct( ) {} } - /** - * User identifier associated with the connected account. - * - * @deprecated Use `display_name` instead. - */ - class UserIdentifier - { - public static function from_json(mixed $json): UserIdentifier|null - { - if (!$json) { - return null; - } - return new self( - api_url: $json->api_url ?? null, - email: $json->email ?? null, - exclusive: $json->exclusive ?? null, - phone: $json->phone ?? null, - username: $json->username ?? null, - ); - } - - public function __construct( - /** - * API URL for the user identifier associated with the connected account. - */ - public string|null $api_url = null, - /** - * Email address of the user identifier associated with the connected account. - */ - public string|null $email = null, - /** - * Indicates whether the user identifier associated with the connected account is exclusive. - */ - public bool|null $exclusive = null, - /** - * Phone number of the user identifier associated with the connected account. - */ - public string|null $phone = null, - /** - * Username of the user identifier associated with the connected account. - */ - public string|null $username = null, - ) {} - } - /** * Warnings associated with the connected account. Known warning_code values use subclasses; unknown values use this base class and retain their raw discriminator. */ diff --git a/src/Resources/Device.php b/src/Resources/Device.php index 18f89caf..ac07395f 100644 --- a/src/Resources/Device.php +++ b/src/Resources/Device.php @@ -76,7 +76,9 @@ public static function from_json(mixed $json): Device|null $json->device_provider, ) : null, - is_occupied: $json->is_occupied ?? null, + estimated_occupant_count: $json->estimated_occupant_count ?? + null, + is_occupancy_detected: $json->is_occupancy_detected ?? null, is_smoking_detected: $json->is_smoking_detected ?? null, location: isset($json->location) ? \Seam\Resources\Device\Location::from_json( @@ -93,7 +95,6 @@ public static function from_json(mixed $json): Device|null nickname: $json->nickname ?? null, noise_level_decibels: $json->noise_level_decibels ?? null, noise_level_nrs: $json->noise_level_nrs ?? null, - occupant_count: $json->occupant_count ?? null, properties: isset($json->properties) ? \Seam\Resources\Device\Properties::from_json( $json->properties, @@ -275,9 +276,13 @@ public function __construct( */ public \Seam\Resources\Device\DeviceProvider|null $device_provider = null, /** - * Indicates whether the device detects that the space is occupied, if the device measures occupancy. + * Estimated number of occupants detected by the device. + */ + public float|null $estimated_occupant_count = null, + /** + * Indicates whether the device detects occupancy. */ - public bool|null $is_occupied = null, + public bool|null $is_occupancy_detected = null, /** * Indicates whether the device detects smoking, if the device measures it. */ @@ -308,10 +313,6 @@ public function __construct( * Noise level as a Noise Risk Score (NRS), if the device reports one. */ public float|null $noise_level_nrs = null, - /** - * Number of occupants the device detects, if the device counts occupants. - */ - public float|null $occupant_count = null, /** * Properties of the device. */ @@ -517,7 +518,6 @@ public static function from_json(mixed $json): Location|null location_name: $json->location_name ?? null, room_name: $json->room_name ?? null, time_zone: $json->time_zone ?? null, - timezone: $json->timezone ?? null, ); } @@ -534,12 +534,6 @@ public function __construct( * Time zone of the device location. */ public string|null $time_zone = null, - /** - * Time zone of the device location. - * - * @deprecated Use `time_zone` instead. - */ - public string|null $timezone = null, ) {} } @@ -559,12 +553,13 @@ public static function from_json(mixed $json): NamedSensors|null air_quality_index: $json->air_quality_index ?? null, co_ppm: $json->co_ppm ?? null, co2_ppm: $json->co2_ppm ?? null, - is_occupied: $json->is_occupied ?? null, + estimated_occupant_count: $json->estimated_occupant_count ?? + null, + is_occupancy_detected: $json->is_occupancy_detected ?? null, is_smoking_detected: $json->is_smoking_detected ?? null, mold_risk_level: $json->mold_risk_level ?? null, noise_level_decibels: $json->noise_level_decibels ?? null, noise_level_nrs: $json->noise_level_nrs ?? null, - occupant_count: $json->occupant_count ?? null, relative_humidity: $json->relative_humidity ?? null, temperature_celsius: $json->temperature_celsius ?? null, temperature_fahrenheit: $json->temperature_fahrenheit ?? null, @@ -593,9 +588,13 @@ public function __construct( */ public float|null $co2_ppm = null, /** - * Indicates whether the device detects that the space is occupied, if the device measures occupancy. + * Estimated number of occupants detected by the device. + */ + public float|null $estimated_occupant_count = null, + /** + * Indicates whether the device detects occupancy. */ - public bool|null $is_occupied = null, + public bool|null $is_occupancy_detected = null, /** * Indicates whether the device detects smoking, if the device measures it. */ @@ -612,10 +611,6 @@ public function __construct( * Noise level as a Noise Risk Score (NRS), if the device reports one. */ public float|null $noise_level_nrs = null, - /** - * Number of occupants the device detects, if the device counts occupants. - */ - public float|null $occupant_count = null, /** * Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ @@ -659,13 +654,6 @@ public static function from_json(mixed $json): Properties|null $json->accessory_keypad, ) : null, - active_thermostat_schedule: isset( - $json->active_thermostat_schedule, - ) - ? \Seam\Resources\Device\Properties\ActiveThermostatSchedule::from_json( - $json->active_thermostat_schedule, - ) - : null, active_thermostat_schedule_id: $json->active_thermostat_schedule_id ?? null, akiles_metadata: isset($json->akiles_metadata) @@ -756,11 +744,6 @@ public static function from_json(mixed $json): Properties|null : null, currently_triggering_noise_threshold_ids: $json->currently_triggering_noise_threshold_ids ?? null, - default_climate_setting: isset($json->default_climate_setting) - ? \Seam\Resources\Device\Properties\DefaultClimateSetting::from_json( - $json->default_climate_setting, - ) - : null, door_open: $json->door_open ?? null, dormakaba_oracode_iho_metadata: isset( $json->dormakaba_oracode_iho_metadata, @@ -788,7 +771,6 @@ public static function from_json(mixed $json): Properties|null : null, fallback_climate_preset_key: $json->fallback_climate_preset_key ?? null, - fan_mode_setting: $json->fan_mode_setting ?? null, four_suites_metadata: isset($json->four_suites_metadata) ? \Seam\Resources\Device\Properties\FourSuitesMetadata::from_json( $json->four_suites_metadata, @@ -904,8 +886,6 @@ public static function from_json(mixed $json): Properties|null $json->nuki_metadata, ) : null, - offline_access_codes_enabled: $json->offline_access_codes_enabled ?? - null, offline_time_frame_options: array_map( fn( $o, @@ -919,8 +899,6 @@ public static function from_json(mixed $json): Properties|null $json->omnitec_metadata, ) : null, - online_access_codes_enabled: $json->online_access_codes_enabled ?? - null, online_time_frame_options: array_map( fn( $o, @@ -945,11 +923,6 @@ public static function from_json(mixed $json): Properties|null $json->salto_ks_metadata, ) : null, - salto_metadata: isset($json->salto_metadata) - ? \Seam\Resources\Device\Properties\SaltoMetadata::from_json( - $json->salto_metadata, - ) - : null, salto_space_credential_service_metadata: isset( $json->salto_space_credential_service_metadata, ) @@ -972,6 +945,11 @@ public static function from_json(mixed $json): Properties|null $json->sensi_metadata, ) : null, + sensibo_metadata: isset($json->sensibo_metadata) + ? \Seam\Resources\Device\Properties\SensiboMetadata::from_json( + $json->sensibo_metadata, + ) + : null, serial_number: $json->serial_number ?? null, smartthings_metadata: isset($json->smartthings_metadata) ? \Seam\Resources\Device\Properties\SmartthingsMetadata::from_json( @@ -979,12 +957,8 @@ public static function from_json(mixed $json): Properties|null ) : null, supported_code_lengths: $json->supported_code_lengths ?? null, - supports_accessory_keypad: $json->supports_accessory_keypad ?? - null, supports_backup_access_code_pool: $json->supports_backup_access_code_pool ?? null, - supports_offline_access_codes: $json->supports_offline_access_codes ?? - null, tado_metadata: isset($json->tado_metadata) ? \Seam\Resources\Device\Properties\TadoMetadata::from_json( $json->tado_metadata, @@ -1029,6 +1003,11 @@ public static function from_json(mixed $json): Properties|null $json->ttlock_metadata, ) : null, + tuya_metadata: isset($json->tuya_metadata) + ? \Seam\Resources\Device\Properties\TuyaMetadata::from_json( + $json->tuya_metadata, + ) + : null, two_n_metadata: isset($json->two_n_metadata) ? \Seam\Resources\Device\Properties\TwoNMetadata::from_json( $json->two_n_metadata, @@ -1090,12 +1069,6 @@ public function __construct( * Accessory keypad properties and state. */ public \Seam\Resources\Device\Properties\AccessoryKeypad|null $accessory_keypad = null, - /** - * Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - * - * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead. - */ - public \Seam\Resources\Device\Properties\ActiveThermostatSchedule|null $active_thermostat_schedule = null, /** * ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -1196,10 +1169,6 @@ public function __construct( * @var list|null */ public array|null $currently_triggering_noise_threshold_ids = null, - /** - * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead. - */ - public \Seam\Resources\Device\Properties\DefaultClimateSetting|null $default_climate_setting = null, /** * Indicates whether the door is open. */ @@ -1224,11 +1193,6 @@ public function __construct( * Key of the [fallback climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat. */ public string|null $fallback_climate_preset_key = null, - /** - * @var value-of<\Seam\Resources\Device\Properties\FanModeSetting>|string|null - * @deprecated Use `current_climate_setting.fan_mode_setting` instead. - */ - public string|null $fan_mode_setting = null, /** * Metadata for a 4SUITES device. */ @@ -1385,12 +1349,6 @@ public function __construct( * Metadata for a Nuki device. */ public \Seam\Resources\Device\Properties\NukiMetadata|null $nuki_metadata = null, - /** - * Indicates whether it is currently possible to use offline access codes for the device. - * - * @deprecated use device.can_program_offline_access_codes - */ - public bool|null $offline_access_codes_enabled = null, /** * Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works. * @@ -1401,12 +1359,6 @@ public function __construct( * Metadata for an Omnitec device. */ public \Seam\Resources\Device\Properties\OmnitecMetadata|null $omnitec_metadata = null, - /** - * Indicates whether it is currently possible to use online access codes for the device. - * - * @deprecated use device.can_program_online_access_codes - */ - public bool|null $online_access_codes_enabled = null, /** * Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works. * @@ -1429,12 +1381,6 @@ public function __construct( * Metadata for a Salto KS device. */ public \Seam\Resources\Device\Properties\SaltoKsMetadata|null $salto_ks_metadata = null, - /** - * Metada for a Salto device. - * - * @deprecated Use `salto_ks_metadata` instead. - */ - public \Seam\Resources\Device\Properties\SaltoMetadata|null $salto_metadata = null, /** * Salto Space credential service metadata for the phone. */ @@ -1451,6 +1397,10 @@ public function __construct( * Metadata for a Sensi device. */ public \Seam\Resources\Device\Properties\SensiMetadata|null $sensi_metadata = null, + /** + * Metadata for a Sensibo device. + */ + public \Seam\Resources\Device\Properties\SensiboMetadata|null $sensibo_metadata = null, /** * Serial number of the device. */ @@ -1465,18 +1415,10 @@ public function __construct( * @var list|null */ public array|null $supported_code_lengths = null, - /** - * @deprecated use device.properties.model.can_connect_accessory_keypad - */ - public bool|null $supports_accessory_keypad = null, /** * Indicates whether the device supports a [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes). */ public bool|null $supports_backup_access_code_pool = null, - /** - * @deprecated use offline_access_codes_enabled - */ - public bool|null $supports_offline_access_codes = null, /** * Metadata for a tado° device. */ @@ -1519,6 +1461,10 @@ public function __construct( * Metadata for a TTLock device. */ public \Seam\Resources\Device\Properties\TtlockMetadata|null $ttlock_metadata = null, + /** + * Metadata for a Tuya device. + */ + public \Seam\Resources\Device\Properties\TuyaMetadata|null $tuya_metadata = null, /** * Metadata for a 2N device. */ @@ -1655,6 +1601,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\Device\Warnings\HubRequiredForAdditionalCapabilities::from_json( $json, ), + \Seam\Resources\Device\Warnings\WarningCode::SERVICE_MODE + => \Seam\Resources\Device\Warnings\ServiceMode::from_json( + $json, + ), \Seam\Resources\Device\Warnings\WarningCode::PROVIDER_ISSUE => \Seam\Resources\Device\Warnings\ProviderIssue::from_json( $json, @@ -1679,6 +1629,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\Device\Warnings\MaxAccessCodesReached::from_json( $json, ), + \Seam\Resources\Device\Warnings\WarningCode::SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES + => \Seam\Resources\Device\Warnings\SubscriptionRequiredForAdditionalCapabilities::from_json( + $json, + ), \Seam\Resources\Device\Warnings\WarningCode::CLOUD_RECORDING_NOT_ENABLED => \Seam\Resources\Device\Warnings\CloudRecordingNotEnabled::from_json( $json, @@ -1745,6 +1699,7 @@ enum DeviceType: string case OMNITEC_LOCK = "omnitec_lock"; case KISI_LOCK = "kisi_lock"; case AQARA_LOCK = "aqara_lock"; + case TUYA_LOCK = "tuya_lock"; case EUFY_LOCK = "eufy_lock"; case KEYNEST_KEY = "keynest_key"; case NOISEAWARE_ACTIVITY_ZONE = "noiseaware_activity_zone"; @@ -1754,6 +1709,7 @@ enum DeviceType: string case HONEYWELL_RESIDEO_THERMOSTAT = "honeywell_resideo_thermostat"; case TADO_THERMOSTAT = "tado_thermostat"; case SENSI_THERMOSTAT = "sensi_thermostat"; + case SENSIBO_THERMOSTAT = "sensibo_thermostat"; case SMARTTHINGS_THERMOSTAT = "smartthings_thermostat"; case IOS_PHONE = "ios_phone"; case ANDROID_PHONE = "android_phone"; @@ -1764,6 +1720,8 @@ enum DeviceType: string case UNIFI_PROTECT_CAMERA = "unifi_protect_camera"; case SONOS_SPEAKER = "sonos_speaker"; case ALERTIFY_SENSOR = "alertify_sensor"; + case HAYWARD_POOL_SYSTEM = "hayward_pool_system"; + case HAYWARD_POOL = "hayward_pool"; } } @@ -2566,15 +2524,9 @@ public static function from_json(mixed $json): Model|null display_name: $json->display_name ?? null, manufacturer_display_name: $json->manufacturer_display_name ?? null, - accessory_keypad_supported: $json->accessory_keypad_supported ?? - null, can_connect_accessory_keypad: $json->can_connect_accessory_keypad ?? null, has_built_in_keypad: $json->has_built_in_keypad ?? null, - offline_access_codes_supported: $json->offline_access_codes_supported ?? - null, - online_access_codes_supported: $json->online_access_codes_supported ?? - null, ); } @@ -2587,10 +2539,6 @@ public function __construct( * Display name that corresponds to the manufacturer-specific terminology for the device. */ public string|null $manufacturer_display_name, - /** - * @deprecated use device.properties.model.can_connect_accessory_keypad - */ - public bool|null $accessory_keypad_supported = null, /** * Indicates whether the device can connect a accessory keypad. */ @@ -2599,14 +2547,6 @@ public function __construct( * Indicates whether the device has a built in accessory keypad. */ public bool|null $has_built_in_keypad = null, - /** - * @deprecated use device.can_program_offline_access_codes. - */ - public bool|null $offline_access_codes_supported = null, - /** - * @deprecated use device.can_program_online_access_codes. - */ - public bool|null $online_access_codes_supported = null, ) {} } @@ -3067,7 +3007,6 @@ public static function from_json( ), $json->predefined_time_slots ?? [], ), - site_id: $json->site_id ?? null, site_name: $json->site_name ?? null, ); } @@ -3099,12 +3038,6 @@ public function __construct( * @var list<\Seam\Resources\Device\Properties\DormakabaOracodeMetadata\PredefinedTimeSlots>|null */ public array|null $predefined_time_slots = null, - /** - * Site ID for a dormakaba Oracode device. - * - * @deprecated Previously marked as "@DEPRECATED." - */ - public float|null $site_id = null, /** * Site name for a dormakaba Oracode device. */ @@ -3971,66 +3904,6 @@ public function __construct( ) {} } - /** - * Metada for a Salto device. - * - * @deprecated Use `salto_ks_metadata` instead. - */ - class SaltoMetadata - { - public static function from_json(mixed $json): SaltoMetadata|null - { - if (!$json) { - return null; - } - return new self( - battery_level: $json->battery_level ?? null, - customer_reference: $json->customer_reference ?? null, - lock_id: $json->lock_id ?? null, - lock_type: $json->lock_type ?? null, - locked_state: $json->locked_state ?? null, - model: $json->model ?? null, - site_id: $json->site_id ?? null, - site_name: $json->site_name ?? null, - ); - } - - public function __construct( - /** - * Battery level for a Salto device. - */ - public string|null $battery_level = null, - /** - * Customer reference for a Salto device. - */ - public string|null $customer_reference = null, - /** - * Lock ID for a Salto device. - */ - public string|null $lock_id = null, - /** - * Lock type for a Salto device. - */ - public string|null $lock_type = null, - /** - * Locked state for a Salto device. - */ - public string|null $locked_state = null, - /** - * Model for a Salto device. - */ - public string|null $model = null, - /** - * Site ID for the Salto KS site to which the device belongs. - */ - public string|null $site_id = null, - /** - * Site name for the Salto KS site to which the device belongs. - */ - public string|null $site_name = null, - ) {} - } - /** * Metadata for a Schlage device. */ @@ -4112,8 +3985,6 @@ public static function from_json(mixed $json): SensiMetadata|null return new self( device_id: $json->device_id ?? null, device_name: $json->device_name ?? null, - dual_setpoints_not_supported: $json->dual_setpoints_not_supported ?? - null, product_type: $json->product_type ?? null, ); } @@ -4127,10 +3998,6 @@ public function __construct( * Device name for a Sensi device. */ public string|null $device_name = null, - /** - * Deprecated. Seam no longer sets this field. - */ - public bool|null $dual_setpoints_not_supported = null, /** * Product type for a Sensi device. */ @@ -4138,6 +4005,59 @@ public function __construct( ) {} } + /** + * Metadata for a Sensibo device. + */ + class SensiboMetadata + { + public static function from_json(mixed $json): SensiboMetadata|null + { + if (!$json) { + return null; + } + return new self( + firmware_version: $json->firmware_version ?? null, + mac_address: $json->mac_address ?? null, + pod_id: $json->pod_id ?? null, + product_model: $json->product_model ?? null, + room_name: $json->room_name ?? null, + serial_number: $json->serial_number ?? null, + temperature_unit: $json->temperature_unit ?? null, + ); + } + + public function __construct( + /** + * Firmware version of the Sensibo device. + */ + public string|null $firmware_version = null, + /** + * MAC address of the Sensibo device. + */ + public string|null $mac_address = null, + /** + * ID of the Sensibo device, which Sensibo calls a pod. + */ + public string|null $pod_id = null, + /** + * Product model of the Sensibo device, such as `skyv2` or `air`. + */ + public string|null $product_model = null, + /** + * Name of the room that the Sensibo device is in. + */ + public string|null $room_name = null, + /** + * Serial number of the Sensibo device. + */ + public string|null $serial_number = null, + /** + * Temperature unit that the Sensibo device displays: `C` or `F`. + */ + public string|null $temperature_unit = null, + ) {} + } + /** * Metadata for a SmartThings device. */ @@ -4393,6 +4313,59 @@ public function __construct( ) {} } + /** + * Metadata for a Tuya device. + */ + class TuyaMetadata + { + public static function from_json(mixed $json): TuyaMetadata|null + { + if (!$json) { + return null; + } + return new self( + category: $json->category ?? null, + device_id: $json->device_id ?? null, + device_name: $json->device_name ?? null, + model: $json->model ?? null, + product_id: $json->product_id ?? null, + product_name: $json->product_name ?? null, + time_zone: $json->time_zone ?? null, + ); + } + + public function __construct( + /** + * Tuya product category code for the device (e.g. ms). + */ + public string|null $category = null, + /** + * Device ID for a Tuya device. + */ + public string|null $device_id = null, + /** + * Device name for a Tuya device. + */ + public string|null $device_name = null, + /** + * Model reported for a Tuya device. + */ + public string|null $model = null, + /** + * Tuya product ID for the device. + */ + public string|null $product_id = null, + /** + * Tuya product name for the device. + */ + public string|null $product_name = null, + /** + * Time zone reported for a Tuya device (e.g. +08:00). + */ + public string|null $time_zone = null, + ) {} + } + /** * Metadata for a 2N device. */ @@ -4867,163 +4840,70 @@ public function __construct( } /** - * Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - * - * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead. + * Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ - class ActiveThermostatSchedule + class AvailableClimatePresets { public static function from_json( mixed $json, - ): ActiveThermostatSchedule|null { + ): AvailableClimatePresets|null { if (!$json) { return null; } return new self( + can_delete: $json->can_delete ?? null, + can_edit: $json->can_edit ?? null, + can_use_with_thermostat_daily_programs: $json->can_use_with_thermostat_daily_programs ?? + null, climate_preset_key: $json->climate_preset_key ?? null, - created_at: $json->created_at ?? null, - device_id: $json->device_id ?? null, - ends_at: $json->ends_at ?? null, - errors: array_map( - fn( - $e, - ) => \Seam\Resources\Device\Properties\ActiveThermostatSchedule\Errors::from_json( - $e, - ), - $json->errors ?? [], - ), - name: $json->name ?? null, - starts_at: $json->starts_at ?? null, - thermostat_schedule_id: $json->thermostat_schedule_id ?? null, - workspace_id: $json->workspace_id ?? null, - is_override_allowed: $json->is_override_allowed ?? null, - max_override_period_minutes: $json->max_override_period_minutes ?? + display_name: $json->display_name ?? null, + climate_preset_mode: $json->climate_preset_mode ?? null, + cooling_set_point_celsius: $json->cooling_set_point_celsius ?? + null, + cooling_set_point_fahrenheit: $json->cooling_set_point_fahrenheit ?? null, + ecobee_metadata: isset($json->ecobee_metadata) + ? \Seam\Resources\Device\Properties\AvailableClimatePresets\EcobeeMetadata::from_json( + $json->ecobee_metadata, + ) + : null, + fan_mode_setting: $json->fan_mode_setting ?? null, + heating_set_point_celsius: $json->heating_set_point_celsius ?? + null, + heating_set_point_fahrenheit: $json->heating_set_point_fahrenheit ?? + null, + hvac_mode_setting: $json->hvac_mode_setting ?? null, + name: $json->name ?? null, ); } public function __construct( /** - * Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). + * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ - public string|null $climate_preset_key, + public bool|null $can_delete, /** - * Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. + * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ - public string|null $created_at, + public bool|null $can_edit, /** - * ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. + * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program. */ - public string|null $device_id, + public bool|null $can_use_with_thermostat_daily_programs, /** - * Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. + * Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ - public string|null $ends_at, + public string|null $climate_preset_key, /** - * Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - * - * @var list<\Seam\Resources\Device\Properties\ActiveThermostatSchedule\Errors> + * Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ - public array $errors, + public string|null $display_name, /** - * User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). + * The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. + * + * @var value-of<\Seam\Resources\Device\Properties\AvailableClimatePresets\ClimatePresetMode>|string|null */ - public string|null $name, - /** - * Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - */ - public string|null $starts_at, - /** - * ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - */ - public string|null $thermostat_schedule_id, - /** - * ID of the workspace that contains the thermostat schedule. - */ - public string|null $workspace_id, - /** - * Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts. - */ - public bool|null $is_override_allowed = null, - /** - * Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - */ - public int|null $max_override_period_minutes = null, - ) {} - } - - /** - * Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. - */ - class AvailableClimatePresets - { - public static function from_json( - mixed $json, - ): AvailableClimatePresets|null { - if (!$json) { - return null; - } - return new self( - can_delete: $json->can_delete ?? null, - can_edit: $json->can_edit ?? null, - can_use_with_thermostat_daily_programs: $json->can_use_with_thermostat_daily_programs ?? - null, - climate_preset_key: $json->climate_preset_key ?? null, - display_name: $json->display_name ?? null, - manual_override_allowed: $json->manual_override_allowed ?? null, - climate_preset_mode: $json->climate_preset_mode ?? null, - cooling_set_point_celsius: $json->cooling_set_point_celsius ?? - null, - cooling_set_point_fahrenheit: $json->cooling_set_point_fahrenheit ?? - null, - ecobee_metadata: isset($json->ecobee_metadata) - ? \Seam\Resources\Device\Properties\AvailableClimatePresets\EcobeeMetadata::from_json( - $json->ecobee_metadata, - ) - : null, - fan_mode_setting: $json->fan_mode_setting ?? null, - heating_set_point_celsius: $json->heating_set_point_celsius ?? - null, - heating_set_point_fahrenheit: $json->heating_set_point_fahrenheit ?? - null, - hvac_mode_setting: $json->hvac_mode_setting ?? null, - name: $json->name ?? null, - ); - } - - public function __construct( - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. - */ - public bool|null $can_delete, - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. - */ - public bool|null $can_edit, - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program. - */ - public bool|null $can_use_with_thermostat_daily_programs, - /** - * Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - */ - public string|null $climate_preset_key, - /** - * Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - */ - public string|null $display_name, - /** - * Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - * - * @deprecated Use 'thermostat_schedule.is_override_allowed' - */ - public bool|null $manual_override_allowed, - /** - * The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. - * - * @var value-of<\Seam\Resources\Device\Properties\AvailableClimatePresets\ClimatePresetMode>|string|null - */ - public string|null $climate_preset_mode = null, + public string|null $climate_preset_mode = null, /** * Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */ @@ -5097,7 +4977,6 @@ public static function from_json( heating_set_point_fahrenheit: $json->heating_set_point_fahrenheit ?? null, hvac_mode_setting: $json->hvac_mode_setting ?? null, - manual_override_allowed: $json->manual_override_allowed ?? null, name: $json->name ?? null, ); } @@ -5161,123 +5040,6 @@ public function __construct( * @var value-of<\Seam\Resources\Device\Properties\CurrentClimateSetting\HvacModeSetting>|string|null */ public string|null $hvac_mode_setting = null, - /** - * Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - * - * @deprecated Use 'thermostat_schedule.is_override_allowed' - */ - public bool|null $manual_override_allowed = null, - /** - * User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - */ - public string|null $name = null, - ) {} - } - - /** - * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead. - */ - class DefaultClimateSetting - { - public static function from_json( - mixed $json, - ): DefaultClimateSetting|null { - if (!$json) { - return null; - } - return new self( - can_delete: $json->can_delete ?? null, - can_edit: $json->can_edit ?? null, - can_use_with_thermostat_daily_programs: $json->can_use_with_thermostat_daily_programs ?? - null, - climate_preset_key: $json->climate_preset_key ?? null, - climate_preset_mode: $json->climate_preset_mode ?? null, - cooling_set_point_celsius: $json->cooling_set_point_celsius ?? - null, - cooling_set_point_fahrenheit: $json->cooling_set_point_fahrenheit ?? - null, - display_name: $json->display_name ?? null, - ecobee_metadata: isset($json->ecobee_metadata) - ? \Seam\Resources\Device\Properties\DefaultClimateSetting\EcobeeMetadata::from_json( - $json->ecobee_metadata, - ) - : null, - fan_mode_setting: $json->fan_mode_setting ?? null, - heating_set_point_celsius: $json->heating_set_point_celsius ?? - null, - heating_set_point_fahrenheit: $json->heating_set_point_fahrenheit ?? - null, - hvac_mode_setting: $json->hvac_mode_setting ?? null, - manual_override_allowed: $json->manual_override_allowed ?? null, - name: $json->name ?? null, - ); - } - - public function __construct( - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. - */ - public bool|null $can_delete = null, - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. - */ - public bool|null $can_edit = null, - /** - * Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program. - */ - public bool|null $can_use_with_thermostat_daily_programs = null, - /** - * Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - */ - public string|null $climate_preset_key = null, - /** - * The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. - * - * @var value-of<\Seam\Resources\Device\Properties\DefaultClimateSetting\ClimatePresetMode>|string|null - */ - public string|null $climate_preset_mode = null, - /** - * Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - */ - public float|null $cooling_set_point_celsius = null, - /** - * Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - */ - public float|null $cooling_set_point_fahrenheit = null, - /** - * Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - */ - public string|null $display_name = null, - /** - * Metadata specific to the Ecobee climate, if applicable. - */ - public \Seam\Resources\Device\Properties\DefaultClimateSetting\EcobeeMetadata|null $ecobee_metadata = null, - /** - * Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`. - * - * @var value-of<\Seam\Resources\Device\Properties\DefaultClimateSetting\FanModeSetting>|string|null - */ - public string|null $fan_mode_setting = null, - /** - * Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - */ - public float|null $heating_set_point_celsius = null, - /** - * Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - */ - public float|null $heating_set_point_fahrenheit = null, - /** - * Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. - * - * @var value-of<\Seam\Resources\Device\Properties\DefaultClimateSetting\HvacModeSetting>|string|null - */ - public string|null $hvac_mode_setting = null, - /** - * Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - * - * @deprecated Use 'thermostat_schedule.is_override_allowed' - */ - public bool|null $manual_override_allowed = null, /** * User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ @@ -5440,13 +5202,6 @@ public function __construct( public string|null $wednesday_program_id, ) {} } - - enum FanModeSetting: string - { - case AUTO = "auto"; - case ON = "on"; - case CIRCULATE = "circulate"; - } } namespace Seam\Resources\Device\Properties\AccessoryKeypad { @@ -6008,41 +5763,6 @@ public function __construct( } } -namespace Seam\Resources\Device\Properties\ActiveThermostatSchedule { - /** - * Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - */ - class Errors - { - public static function from_json(mixed $json): Errors|null - { - if (!$json) { - return null; - } - return new self( - created_at: $json->created_at ?? null, - error_code: $json->error_code ?? null, - message: $json->message ?? null, - ); - } - - public function __construct( - /** - * Date and time at which Seam created the error. - */ - public string|null $created_at, - /** - * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. - */ - public string|null $error_code, - /** - * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - */ - public string|null $message, - ) {} - } -} - namespace Seam\Resources\Device\Properties\AvailableClimatePresets { /** * Metadata specific to the Ecobee climate, if applicable. @@ -6185,77 +5905,6 @@ enum Owner: string } } -namespace Seam\Resources\Device\Properties\DefaultClimateSetting { - /** - * Metadata specific to the Ecobee climate, if applicable. - */ - class EcobeeMetadata - { - public static function from_json(mixed $json): EcobeeMetadata|null - { - if (!$json) { - return null; - } - return new self( - climate_ref: $json->climate_ref ?? null, - is_optimized: $json->is_optimized ?? null, - owner: $json->owner ?? null, - ); - } - - public function __construct( - /** - * Reference to the Ecobee climate, if applicable. - */ - public string|null $climate_ref = null, - /** - * Indicates if the climate preset is optimized by Ecobee. - */ - public bool|null $is_optimized = null, - /** - * Indicates whether the climate preset is owned by the user or the system. - * - * @var value-of<\Seam\Resources\Device\Properties\DefaultClimateSetting\EcobeeMetadata\Owner>|string|null - */ - public string|null $owner = null, - ) {} - } - - enum ClimatePresetMode: string - { - case HOME = "home"; - case AWAY = "away"; - case WAKE = "wake"; - case SLEEP = "sleep"; - case OCCUPIED = "occupied"; - case UNOCCUPIED = "unoccupied"; - } - - enum FanModeSetting: string - { - case AUTO = "auto"; - case ON = "on"; - case CIRCULATE = "circulate"; - } - - enum HvacModeSetting: string - { - case OFF = "off"; - case HEAT = "heat"; - case COOL = "cool"; - case HEAT_COOL = "heat_cool"; - case ECO = "eco"; - } -} - -namespace Seam\Resources\Device\Properties\DefaultClimateSetting\EcobeeMetadata { - enum Owner: string - { - case USER = "user"; - case SYSTEM = "system"; - } -} - namespace Seam\Resources\Device\Properties\ThermostatDailyPrograms { /** * Array of thermostat daily program periods. @@ -7216,6 +6865,47 @@ public function __construct( } } + /** + * Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + */ + final class ServiceMode extends \Seam\Resources\Device\Warnings + { + public static function from_json(mixed $json): ServiceMode|null + { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\Device\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates a provider-specific issue that may affect device functionality. */ @@ -7481,6 +7171,49 @@ public function __construct( } } + /** + * Indicates that a third-party subscription is required to enable additional device capabilities. + */ + final class SubscriptionRequiredForAdditionalCapabilities extends + \Seam\Resources\Device\Warnings + { + public static function from_json( + mixed $json, + ): SubscriptionRequiredForAdditionalCapabilities|null { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\Device\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. */ @@ -7547,12 +7280,14 @@ enum WarningCode: string case TIME_ZONE_MISMATCH = "time_zone_mismatch"; case TWO_N_DEVICE_MISSING_TIMEZONE = "two_n_device_missing_timezone"; case HUB_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "hub_required_for_additional_capabilities"; + case SERVICE_MODE = "service_mode"; case PROVIDER_ISSUE = "provider_issue"; case KEYNEST_UNSUPPORTED_LOCKER = "keynest_unsupported_locker"; case ACCESSORY_KEYPAD_SETUP_REQUIRED = "accessory_keypad_setup_required"; case ACCESSORY_KEYPAD_LOW_BATTERY = "accessory_keypad_low_battery"; case UNRELIABLE_ONLINE_STATUS = "unreliable_online_status"; case MAX_ACCESS_CODES_REACHED = "max_access_codes_reached"; + case SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "subscription_required_for_additional_capabilities"; case CLOUD_RECORDING_NOT_ENABLED = "cloud_recording_not_enabled"; } } diff --git a/src/Resources/DeviceProvider.php b/src/Resources/DeviceProvider.php index 20a6d73f..1cdf4669 100644 --- a/src/Resources/DeviceProvider.php +++ b/src/Resources/DeviceProvider.php @@ -214,6 +214,7 @@ enum DeviceProviderName: string case TADO = "tado"; case SALTO_SPACE = "salto_space"; case SENSI = "sensi"; + case SENSIBO = "sensibo"; case KEYNEST = "keynest"; case KORELOCK = "korelock"; case KEYINCODE = "keyincode"; @@ -240,5 +241,7 @@ enum DeviceProviderName: string case AQARA = "aqara"; case EUFY = "eufy"; case SONOS = "sonos"; + case HAYWARD_OMNILOGIC = "hayward_omnilogic"; + case TUYA = "tuya"; } } diff --git a/src/Resources/Event.php b/src/Resources/Event.php index 576341f0..695a973c 100644 --- a/src/Resources/Event.php +++ b/src/Resources/Event.php @@ -218,10 +218,6 @@ public static function from_json(mixed $json): Event|null => \Seam\Resources\Event\ConnectedAccountCreated::from_json( $json, ), - \Seam\Resources\Event\EventType::CONNECTED_ACCOUNT_SUCCESSFUL_LOGIN - => \Seam\Resources\Event\ConnectedAccountSuccessfulLogin::from_json( - $json, - ), \Seam\Resources\Event\EventType::CONNECTED_ACCOUNT_DISCONNECTED => \Seam\Resources\Event\ConnectedAccountDisconnected::from_json( $json, @@ -5229,82 +5225,6 @@ public function __construct( } } - /** - * A connected account had a successful login using a Connect Webview. - */ - final class ConnectedAccountSuccessfulLogin extends \Seam\Resources\Event - { - public static function from_json( - mixed $json, - ): ConnectedAccountSuccessfulLogin|null { - if (!$json) { - return null; - } - return new self( - connect_webview_id: $json->connect_webview_id ?? null, - connected_account_id: $json->connected_account_id ?? null, - created_at: $json->created_at ?? null, - event_id: $json->event_id ?? null, - event_type: $json->event_type ?? null, - occurred_at: $json->occurred_at ?? null, - workspace_id: $json->workspace_id ?? null, - connected_account_custom_metadata: $json->connected_account_custom_metadata ?? - null, - event_description: $json->event_description ?? null, - ); - } - - public function __construct( - /** - * ID of the Connect Webview associated with the event. - */ - public string|null $connect_webview_id, - /** - * ID of the affected connected account. - */ - public string|null $connected_account_id, - /** - * Date and time at which the event was created. - */ - string|null $created_at, - /** - * ID of the event. - */ - string|null $event_id, - /** - * @var value-of<\Seam\Resources\Event\EventType>|string|null - */ - string|null $event_type, - /** - * Date and time at which the event occurred. - */ - string|null $occurred_at, - /** - * ID of the workspace associated with the event. - */ - string|null $workspace_id, - /** - * Custom metadata of the connected account, present when connected_account_id is provided. - * - * @var array|\stdClass|null - */ - public array|\stdClass|null $connected_account_custom_metadata = null, - /** - * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. - */ - string|null $event_description = null, - ) { - parent::__construct( - created_at: $created_at, - event_description: $event_description, - event_id: $event_id, - event_type: $event_type, - occurred_at: $occurred_at, - workspace_id: $workspace_id, - ); - } - } - /** * A connected account was disconnected. */ @@ -7372,7 +7292,6 @@ public static function from_json(mixed $json): DeviceLowBattery|null return null; } return new self( - battery_level: $json->battery_level ?? null, connected_account_id: $json->connected_account_id ?? null, created_at: $json->created_at ?? null, device_id: $json->device_id ?? null, @@ -7392,12 +7311,6 @@ public static function from_json(mixed $json): DeviceLowBattery|null } public function __construct( - /** - * Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. - * - * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery. - */ - public float|null $battery_level, /** * ID of the connected account associated with the event. */ @@ -10315,7 +10228,6 @@ public static function from_json(mixed $json): CameraActivated|null return null; } return new self( - activation_reason: $json->activation_reason ?? null, connected_account_id: $json->connected_account_id ?? null, created_at: $json->created_at ?? null, device_id: $json->device_id ?? null, @@ -10329,6 +10241,7 @@ public static function from_json(mixed $json): CameraActivated|null device_custom_metadata: $json->device_custom_metadata ?? null, event_description: $json->event_description ?? null, image_url: $json->image_url ?? null, + is_motion_detected: $json->is_motion_detected ?? null, media_ids: $json->media_ids ?? null, motion_sub_type: $json->motion_sub_type ?? null, video_url: $json->video_url ?? null, @@ -10336,12 +10249,6 @@ public static function from_json(mixed $json): CameraActivated|null } public function __construct( - /** - * The reason the camera was activated. - * - * @var value-of<\Seam\Resources\Event\CameraActivated\ActivationReason>|string|null - */ - public string|null $activation_reason, /** * ID of the connected account associated with the event. */ @@ -10394,6 +10301,10 @@ public function __construct( * URL to a thumbnail image captured at the time of activation. */ public string|null $image_url = null, + /** + * Whether motion detection activated the camera, if known. + */ + public bool|null $is_motion_detected = null, /** * IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. * @@ -10894,7 +10805,6 @@ enum EventType: string case CLIENT_SESSION_DELETED = "client_session.deleted"; case CONNECTED_ACCOUNT_CONNECTED = "connected_account.connected"; case CONNECTED_ACCOUNT_CREATED = "connected_account.created"; - case CONNECTED_ACCOUNT_SUCCESSFUL_LOGIN = "connected_account.successful_login"; case CONNECTED_ACCOUNT_DISCONNECTED = "connected_account.disconnected"; case CONNECTED_ACCOUNT_COMPLETED_FIRST_SYNC = "connected_account.completed_first_sync"; case CONNECTED_ACCOUNT_DELETED = "connected_account.deleted"; @@ -13275,11 +13185,6 @@ enum Method: string } namespace Seam\Resources\Event\CameraActivated { - enum ActivationReason: string - { - case MOTION_DETECTED = "motion_detected"; - } - enum MotionSubType: string { case HUMAN = "human"; diff --git a/src/Resources/Phone.php b/src/Resources/Phone.php index 6e03cfd9..8ac00006 100644 --- a/src/Resources/Phone.php +++ b/src/Resources/Phone.php @@ -333,6 +333,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\Phone\Warnings\HubRequiredForAdditionalCapabilities::from_json( $json, ), + \Seam\Resources\Phone\Warnings\WarningCode::SERVICE_MODE + => \Seam\Resources\Phone\Warnings\ServiceMode::from_json( + $json, + ), \Seam\Resources\Phone\Warnings\WarningCode::PROVIDER_ISSUE => \Seam\Resources\Phone\Warnings\ProviderIssue::from_json( $json, @@ -357,6 +361,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\Phone\Warnings\MaxAccessCodesReached::from_json( $json, ), + \Seam\Resources\Phone\Warnings\WarningCode::SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES + => \Seam\Resources\Phone\Warnings\SubscriptionRequiredForAdditionalCapabilities::from_json( + $json, + ), \Seam\Resources\Phone\Warnings\WarningCode::CLOUD_RECORDING_NOT_ENABLED => \Seam\Resources\Phone\Warnings\CloudRecordingNotEnabled::from_json( $json, @@ -2116,6 +2124,47 @@ public function __construct( } } + /** + * Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + */ + final class ServiceMode extends \Seam\Resources\Phone\Warnings + { + public static function from_json(mixed $json): ServiceMode|null + { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\Phone\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates a provider-specific issue that may affect device functionality. */ @@ -2380,6 +2429,49 @@ public function __construct( } } + /** + * Indicates that a third-party subscription is required to enable additional device capabilities. + */ + final class SubscriptionRequiredForAdditionalCapabilities extends + \Seam\Resources\Phone\Warnings + { + public static function from_json( + mixed $json, + ): SubscriptionRequiredForAdditionalCapabilities|null { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\Phone\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. */ @@ -2446,12 +2538,14 @@ enum WarningCode: string case TIME_ZONE_MISMATCH = "time_zone_mismatch"; case TWO_N_DEVICE_MISSING_TIMEZONE = "two_n_device_missing_timezone"; case HUB_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "hub_required_for_additional_capabilities"; + case SERVICE_MODE = "service_mode"; case PROVIDER_ISSUE = "provider_issue"; case KEYNEST_UNSUPPORTED_LOCKER = "keynest_unsupported_locker"; case ACCESSORY_KEYPAD_SETUP_REQUIRED = "accessory_keypad_setup_required"; case ACCESSORY_KEYPAD_LOW_BATTERY = "accessory_keypad_low_battery"; case UNRELIABLE_ONLINE_STATUS = "unreliable_online_status"; case MAX_ACCESS_CODES_REACHED = "max_access_codes_reached"; + case SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "subscription_required_for_additional_capabilities"; case CLOUD_RECORDING_NOT_ENABLED = "cloud_recording_not_enabled"; } } diff --git a/src/Resources/UnmanagedAccessGrant.php b/src/Resources/UnmanagedAccessGrant.php index de27cd9d..8179beba 100644 --- a/src/Resources/UnmanagedAccessGrant.php +++ b/src/Resources/UnmanagedAccessGrant.php @@ -25,7 +25,6 @@ public static function from_json(mixed $json): UnmanagedAccessGrant|null ), $json->errors ?? [], ), - location_ids: $json->location_ids ?? null, name: $json->name ?? null, pending_mutations: array_map( fn( @@ -88,11 +87,6 @@ public function __construct( * @var list<\Seam\Resources\UnmanagedAccessGrant\Errors> */ public array $errors, - /** - * @var list|null - * @deprecated Use `space_ids`. - */ - public array|null $location_ids, /** * Name of the Access Grant. If not provided, the display name will be computed. */ diff --git a/src/Resources/UnmanagedDevice.php b/src/Resources/UnmanagedDevice.php index 915b3af7..1df447af 100644 --- a/src/Resources/UnmanagedDevice.php +++ b/src/Resources/UnmanagedDevice.php @@ -350,7 +350,6 @@ public static function from_json(mixed $json): Location|null location_name: $json->location_name ?? null, room_name: $json->room_name ?? null, time_zone: $json->time_zone ?? null, - timezone: $json->timezone ?? null, ); } @@ -367,12 +366,6 @@ public function __construct( * Time zone of the device location. */ public string|null $time_zone = null, - /** - * Time zone of the device location. - * - * @deprecated Use `time_zone` instead. - */ - public string|null $timezone = null, ) {} } @@ -408,10 +401,6 @@ public static function from_json(mixed $json): Properties|null image_alt_text: $json->image_alt_text ?? null, image_url: $json->image_url ?? null, manufacturer: $json->manufacturer ?? null, - offline_access_codes_enabled: $json->offline_access_codes_enabled ?? - null, - online_access_codes_enabled: $json->online_access_codes_enabled ?? - null, ); } @@ -454,18 +443,6 @@ public function __construct( * Manufacturer of the device. When a device, such as a smart lock, is connected through a smart hub, the manufacturer of the device might be different from that of the smart hub. */ public string|null $manufacturer = null, - /** - * Indicates whether it is currently possible to use offline access codes for the device. - * - * @deprecated use device.can_program_offline_access_codes - */ - public bool|null $offline_access_codes_enabled = null, - /** - * Indicates whether it is currently possible to use online access codes for the device. - * - * @deprecated use device.can_program_online_access_codes - */ - public bool|null $online_access_codes_enabled = null, ) {} } @@ -574,6 +551,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\UnmanagedDevice\Warnings\HubRequiredForAdditionalCapabilities::from_json( $json, ), + \Seam\Resources\UnmanagedDevice\Warnings\WarningCode::SERVICE_MODE + => \Seam\Resources\UnmanagedDevice\Warnings\ServiceMode::from_json( + $json, + ), \Seam\Resources\UnmanagedDevice\Warnings\WarningCode::PROVIDER_ISSUE => \Seam\Resources\UnmanagedDevice\Warnings\ProviderIssue::from_json( $json, @@ -598,6 +579,10 @@ public static function from_json(mixed $json): Warnings|null => \Seam\Resources\UnmanagedDevice\Warnings\MaxAccessCodesReached::from_json( $json, ), + \Seam\Resources\UnmanagedDevice\Warnings\WarningCode::SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES + => \Seam\Resources\UnmanagedDevice\Warnings\SubscriptionRequiredForAdditionalCapabilities::from_json( + $json, + ), \Seam\Resources\UnmanagedDevice\Warnings\WarningCode::CLOUD_RECORDING_NOT_ENABLED => \Seam\Resources\UnmanagedDevice\Warnings\CloudRecordingNotEnabled::from_json( $json, @@ -664,6 +649,7 @@ enum DeviceType: string case OMNITEC_LOCK = "omnitec_lock"; case KISI_LOCK = "kisi_lock"; case AQARA_LOCK = "aqara_lock"; + case TUYA_LOCK = "tuya_lock"; case EUFY_LOCK = "eufy_lock"; case KEYNEST_KEY = "keynest_key"; case NOISEAWARE_ACTIVITY_ZONE = "noiseaware_activity_zone"; @@ -673,6 +659,7 @@ enum DeviceType: string case HONEYWELL_RESIDEO_THERMOSTAT = "honeywell_resideo_thermostat"; case TADO_THERMOSTAT = "tado_thermostat"; case SENSI_THERMOSTAT = "sensi_thermostat"; + case SENSIBO_THERMOSTAT = "sensibo_thermostat"; case SMARTTHINGS_THERMOSTAT = "smartthings_thermostat"; case IOS_PHONE = "ios_phone"; case ANDROID_PHONE = "android_phone"; @@ -683,6 +670,8 @@ enum DeviceType: string case UNIFI_PROTECT_CAMERA = "unifi_protect_camera"; case SONOS_SPEAKER = "sonos_speaker"; case ALERTIFY_SENSOR = "alertify_sensor"; + case HAYWARD_POOL_SYSTEM = "hayward_pool_system"; + case HAYWARD_POOL = "hayward_pool"; } } @@ -1474,15 +1463,9 @@ public static function from_json(mixed $json): Model|null display_name: $json->display_name ?? null, manufacturer_display_name: $json->manufacturer_display_name ?? null, - accessory_keypad_supported: $json->accessory_keypad_supported ?? - null, can_connect_accessory_keypad: $json->can_connect_accessory_keypad ?? null, has_built_in_keypad: $json->has_built_in_keypad ?? null, - offline_access_codes_supported: $json->offline_access_codes_supported ?? - null, - online_access_codes_supported: $json->online_access_codes_supported ?? - null, ); } @@ -1495,10 +1478,6 @@ public function __construct( * Display name that corresponds to the manufacturer-specific terminology for the device. */ public string|null $manufacturer_display_name, - /** - * @deprecated use device.properties.model.can_connect_accessory_keypad - */ - public bool|null $accessory_keypad_supported = null, /** * Indicates whether the device can connect a accessory keypad. */ @@ -1507,14 +1486,6 @@ public function __construct( * Indicates whether the device has a built in accessory keypad. */ public bool|null $has_built_in_keypad = null, - /** - * @deprecated use device.can_program_offline_access_codes. - */ - public bool|null $offline_access_codes_supported = null, - /** - * @deprecated use device.can_program_online_access_codes. - */ - public bool|null $online_access_codes_supported = null, ) {} } } @@ -2485,6 +2456,47 @@ public function __construct( } } + /** + * Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + */ + final class ServiceMode extends \Seam\Resources\UnmanagedDevice\Warnings + { + public static function from_json(mixed $json): ServiceMode|null + { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\UnmanagedDevice\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates a provider-specific issue that may affect device functionality. */ @@ -2753,6 +2765,49 @@ public function __construct( } } + /** + * Indicates that a third-party subscription is required to enable additional device capabilities. + */ + final class SubscriptionRequiredForAdditionalCapabilities extends + \Seam\Resources\UnmanagedDevice\Warnings + { + public static function from_json( + mixed $json, + ): SubscriptionRequiredForAdditionalCapabilities|null { + if (!$json) { + return null; + } + return new self( + created_at: $json->created_at ?? null, + message: $json->message ?? null, + warning_code: $json->warning_code ?? null, + ); + } + + public function __construct( + /** + * Date and time at which Seam created the warning. + */ + string|null $created_at, + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + string|null $message, + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + * + * @var value-of<\Seam\Resources\UnmanagedDevice\Warnings\WarningCode>|string|null + */ + string|null $warning_code, + ) { + parent::__construct( + created_at: $created_at, + message: $message, + warning_code: $warning_code, + ); + } + } + /** * Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. */ @@ -2820,12 +2875,14 @@ enum WarningCode: string case TIME_ZONE_MISMATCH = "time_zone_mismatch"; case TWO_N_DEVICE_MISSING_TIMEZONE = "two_n_device_missing_timezone"; case HUB_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "hub_required_for_additional_capabilities"; + case SERVICE_MODE = "service_mode"; case PROVIDER_ISSUE = "provider_issue"; case KEYNEST_UNSUPPORTED_LOCKER = "keynest_unsupported_locker"; case ACCESSORY_KEYPAD_SETUP_REQUIRED = "accessory_keypad_setup_required"; case ACCESSORY_KEYPAD_LOW_BATTERY = "accessory_keypad_low_battery"; case UNRELIABLE_ONLINE_STATUS = "unreliable_online_status"; case MAX_ACCESS_CODES_REACHED = "max_access_codes_reached"; + case SUBSCRIPTION_REQUIRED_FOR_ADDITIONAL_CAPABILITIES = "subscription_required_for_additional_capabilities"; case CLOUD_RECORDING_NOT_ENABLED = "cloud_recording_not_enabled"; } } diff --git a/src/Resources/Workspace.php b/src/Resources/Workspace.php index bd66af9c..94937275 100644 --- a/src/Resources/Workspace.php +++ b/src/Resources/Workspace.php @@ -12,7 +12,6 @@ public static function from_json(mixed $json): Workspace|null return null; } return new self( - company_name: $json->company_name ?? null, connect_partner_name: $json->connect_partner_name ?? null, connect_webview_customization: isset( $json->connect_webview_customization, @@ -33,12 +32,6 @@ public static function from_json(mixed $json): Workspace|null } public function __construct( - /** - * Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). - * - * @deprecated Use `connect_partner_name` instead. - */ - public string|null $company_name, /** * Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ diff --git a/src/Routes/AccessCodesClient.php b/src/Routes/AccessCodesClient.php index 37938097..0cbb6b6d 100644 --- a/src/Routes/AccessCodesClient.php +++ b/src/Routes/AccessCodesClient.php @@ -52,7 +52,6 @@ public function __construct(ClientInterface $client, array $defaults) * @param float $preferred_code_length Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length. * @param string $starts_at Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * @param bool $use_backup_access_code_pool Indicates whether to use a [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://www.seam.co/docs/api/access_codes/pull_backup_access_code). - * @param bool $use_offline_access_code * @return AccessCode OK */ public function create( @@ -71,7 +70,6 @@ public function create( ?float $preferred_code_length = null, ?string $starts_at = null, ?bool $use_backup_access_code_pool = null, - ?bool $use_offline_access_code = null, ): AccessCode { $request_payload = []; @@ -130,11 +128,6 @@ public function create( "use_backup_access_code_pool" ] = $use_backup_access_code_pool; } - if ($use_offline_access_code !== null) { - $request_payload[ - "use_offline_access_code" - ] = $use_offline_access_code; - } $res = Body::decode( $this->client->request("POST", "/access_codes/create", [ diff --git a/src/Routes/AccessGrantsClient.php b/src/Routes/AccessGrantsClient.php index 40b48ac9..ba6de9f4 100644 --- a/src/Routes/AccessGrantsClient.php +++ b/src/Routes/AccessGrantsClient.php @@ -36,8 +36,6 @@ public function __construct(ClientInterface $client, array $defaults) * @param string $customization_profile_id ID of the customization profile to apply to the Access Grant and its access methods. * @param list $device_ids Set of IDs of the [devices](https://www.seam.co/docs/api/devices/list) to which access is being granted. * @param string|NullValue $ends_at Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. - * @param mixed $location - * @param list $location_ids * @param string|NullValue $name Name for the access grant. * @param string $reservation_key Reservation key for the access grant. * @param list $space_ids Set of IDs of existing spaces to which access is being granted. @@ -54,8 +52,6 @@ public function create( ?string $customization_profile_id = null, ?array $device_ids = null, string|NullValue|null $ends_at = null, - mixed $location = null, - ?array $location_ids = null, string|NullValue|null $name = null, ?string $reservation_key = null, ?array $space_ids = null, @@ -86,12 +82,6 @@ public function create( if ($ends_at !== null) { $request_payload["ends_at"] = $ends_at; } - if ($location !== null) { - $request_payload["location"] = $location; - } - if ($location_ids !== null) { - $request_payload["location_ids"] = $location_ids; - } if ($name !== null) { $request_payload["name"] = $name; } @@ -235,7 +225,6 @@ public function get_related( * @param string $customer_key Customer key for which you want to list access grants. * @param string $device_id ID of the device by which you want to filter the list of Access Grants. * @param float $limit Numerical limit on the number of access grants to return. - * @param string $location_id * @param string|NullValue $page_cursor Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. * @param string $reservation_key Filter Access Grants by reservation_key. * @param string $search 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`. @@ -253,7 +242,6 @@ public function list( ?string $customer_key = null, ?string $device_id = null, ?float $limit = null, - ?string $location_id = null, string|NullValue|null $page_cursor = null, ?string $reservation_key = null, ?string $search = null, @@ -287,9 +275,6 @@ public function list( if ($limit !== null) { $request_payload["limit"] = $limit; } - if ($location_id !== null) { - $request_payload["location_id"] = $location_id; - } if ($page_cursor !== null) { $request_payload["page_cursor"] = $page_cursor; } diff --git a/src/Routes/AcsEntrancesClient.php b/src/Routes/AcsEntrancesClient.php index 3bfb4d4a..31c1e3a0 100644 --- a/src/Routes/AcsEntrancesClient.php +++ b/src/Routes/AcsEntrancesClient.php @@ -89,7 +89,6 @@ public function grant_access( * @param string $connected_account_id ID of the connected account for which you want to retrieve all entrances. * @param string $customer_key Customer key for which you want to list entrances. * @param int $limit Maximum number of records to return per page. - * @param string|NullValue $location_id * @param string|NullValue $page_cursor Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. * @param string $search String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`. * @param string $space_id ID of the space for which you want to list entrances. @@ -104,7 +103,6 @@ public function list( ?string $connected_account_id = null, ?string $customer_key = null, ?int $limit = null, - string|NullValue|null $location_id = null, string|NullValue|null $page_cursor = null, ?string $search = null, ?string $space_id = null, @@ -133,9 +131,6 @@ public function list( if ($limit !== null) { $request_payload["limit"] = $limit; } - if ($location_id !== null) { - $request_payload["location_id"] = $location_id; - } if ($page_cursor !== null) { $request_payload["page_cursor"] = $page_cursor; } diff --git a/src/Routes/AcsUsersClient.php b/src/Routes/AcsUsersClient.php index a0f17b7e..40dd5c11 100644 --- a/src/Routes/AcsUsersClient.php +++ b/src/Routes/AcsUsersClient.php @@ -54,7 +54,6 @@ public function add_to_access_group( * @param string $full_name Full name of the new access system user. * @param mixed $access_schedule `starts_at` and `ends_at` timestamps for the new access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`. * @param list $acs_access_group_ids Array of access group IDs to indicate the access groups to which you want to add the new access system user. - * @param string $email * @param string $email_address Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). * @param string $phone_number Phone number of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`). * @param string $user_identity_id ID of the user identity with which you want to associate the new access system user. @@ -65,7 +64,6 @@ public function create( string $full_name, mixed $access_schedule = null, ?array $acs_access_group_ids = null, - ?string $email = null, ?string $email_address = null, ?string $phone_number = null, ?string $user_identity_id = null, @@ -80,9 +78,6 @@ public function create( if ($acs_access_group_ids !== null) { $request_payload["acs_access_group_ids"] = $acs_access_group_ids; } - if ($email !== null) { - $request_payload["email"] = $email; - } if ($email_address !== null) { $request_payload["email_address"] = $email_address; } @@ -443,7 +438,6 @@ public function unsuspend( * @param mixed $access_schedule `starts_at` and `ends_at` timestamps for the access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`. * @param string $acs_system_id ID of the access system that you want to update. You can only provide acs_system_id with user_identity_id. * @param string $acs_user_id ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. - * @param string $email * @param string $email_address Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). * @param string $full_name Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). * @param string $hid_acs_system_id ID of the HID access control system associated with the user. @@ -455,7 +449,6 @@ public function update( mixed $access_schedule = null, ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $email = null, ?string $email_address = null, ?string $full_name = null, ?string $hid_acs_system_id = null, @@ -473,9 +466,6 @@ public function update( if ($acs_user_id !== null) { $request_payload["acs_user_id"] = $acs_user_id; } - if ($email !== null) { - $request_payload["email"] = $email; - } if ($email_address !== null) { $request_payload["email_address"] = $email_address; } @@ -498,7 +488,6 @@ public function update( "access_schedule", "acs_system_id", "acs_user_id", - "email", "email_address", "full_name", "hid_acs_system_id", diff --git a/src/Routes/ClientSessionsClient.php b/src/Routes/ClientSessionsClient.php index f681240d..af19f684 100644 --- a/src/Routes/ClientSessionsClient.php +++ b/src/Routes/ClientSessionsClient.php @@ -35,7 +35,6 @@ public function __construct(ClientInterface $client, array $defaults) * @param string $expires_at Date and time at which the client session should expire, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. * @param string $user_identifier_key Your user ID for the user for whom you want to create a client session. When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. * @param string $user_identity_id ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session. - * @param list $user_identity_ids IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. * @return ClientSession OK */ public function create( @@ -46,7 +45,6 @@ public function create( ?string $expires_at = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null, ): ClientSession { $request_payload = []; @@ -71,9 +69,6 @@ public function create( if ($user_identity_id !== null) { $request_payload["user_identity_id"] = $user_identity_id; } - if ($user_identity_ids !== null) { - $request_payload["user_identity_ids"] = $user_identity_ids; - } $res = Body::decode( $this->client->request("PUT", "/client_sessions/create", [ @@ -142,7 +137,6 @@ public function get( * @param string $expires_at Date and time at which the client session should expire in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. If the client session already exists, this will update the expiration before returning it. * @param string $user_identifier_key Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. * @param string $user_identity_id ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session). - * @param list $user_identity_ids IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. * @return ClientSession OK */ public function get_or_create( @@ -151,7 +145,6 @@ public function get_or_create( ?string $expires_at = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null, ): ClientSession { $request_payload = []; @@ -170,9 +163,6 @@ public function get_or_create( if ($user_identity_id !== null) { $request_payload["user_identity_id"] = $user_identity_id; } - if ($user_identity_ids !== null) { - $request_payload["user_identity_ids"] = $user_identity_ids; - } $res = Body::decode( $this->client->request("POST", "/client_sessions/get_or_create", [ @@ -197,7 +187,6 @@ public function get_or_create( * @param list $connected_account_ids IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) that you want to associate with the client session. * @param string $user_identifier_key Your user ID for the user that you want to associate with the client session. * @param string $user_identity_id ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. - * @param list $user_identity_ids IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. * @return void OK */ public function grant_access( @@ -206,7 +195,6 @@ public function grant_access( ?array $connected_account_ids = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null, ): void { $request_payload = []; @@ -225,9 +213,6 @@ public function grant_access( if ($user_identity_id !== null) { $request_payload["user_identity_id"] = $user_identity_id; } - if ($user_identity_ids !== null) { - $request_payload["user_identity_ids"] = $user_identity_ids; - } \Seam\Http\RequestParameters::requireAtLeastOne( "/client_sessions/grant_access", $request_payload, @@ -237,7 +222,6 @@ public function grant_access( "connected_account_ids", "user_identifier_key", "user_identity_id", - "user_identity_ids", ], ); diff --git a/src/Routes/CustomersClient.php b/src/Routes/CustomersClient.php index 8633329e..0215e630 100644 --- a/src/Routes/CustomersClient.php +++ b/src/Routes/CustomersClient.php @@ -31,7 +31,6 @@ public function __construct(ClientInterface $client, array $defaults) * @param mixed $customer_data * @param list|\stdClass> $customer_resources_filters Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata. * @param string $customization_profile_id The ID of the customization profile to use for the portal. - * @param mixed $deep_link Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. * @param bool $exclude_locale_picker Whether to exclude the option to select a locale within the portal UI. * @param mixed $features 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. * @param bool $is_embedded Whether the portal is embedded in another application. @@ -45,7 +44,6 @@ public function create_portal( mixed $customer_data = null, ?array $customer_resources_filters = null, ?string $customization_profile_id = null, - mixed $deep_link = null, ?bool $exclude_locale_picker = null, mixed $features = null, ?bool $is_embedded = null, @@ -69,9 +67,6 @@ public function create_portal( "customization_profile_id" ] = $customization_profile_id; } - if ($deep_link !== null) { - $request_payload["deep_link"] = $deep_link; - } if ($exclude_locale_picker !== null) { $request_payload["exclude_locale_picker"] = $exclude_locale_picker; } diff --git a/src/Routes/DevicesClient.php b/src/Routes/DevicesClient.php index 82967dc3..aedbfe73 100644 --- a/src/Routes/DevicesClient.php +++ b/src/Routes/DevicesClient.php @@ -80,7 +80,6 @@ public function get(?string $device_id = null, ?string $name = null): Device * @param string|NullValue $page_cursor Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. * @param string $search String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. * @param string $space_id ID of the space for which you want to list devices. - * @param string|NullValue $unstable_location_id * @param string $user_identifier_key Your own internal user ID for the user for which you want to list devices. * @param callable|null $on_response Called with the raw response envelope, used by the paginator to read the pagination metadata. * @return array OK @@ -100,7 +99,6 @@ public function list( string|NullValue|null $page_cursor = null, ?string $search = null, ?string $space_id = null, - string|NullValue|null $unstable_location_id = null, ?string $user_identifier_key = null, ?callable $on_response = null, ): array { @@ -148,9 +146,6 @@ public function list( if ($space_id !== null) { $request_payload["space_id"] = $space_id; } - if ($unstable_location_id !== null) { - $request_payload["unstable_location_id"] = $unstable_location_id; - } if ($user_identifier_key !== null) { $request_payload["user_identifier_key"] = $user_identifier_key; } diff --git a/src/Routes/SpacesClient.php b/src/Routes/SpacesClient.php index 8c877423..fbe8a767 100644 --- a/src/Routes/SpacesClient.php +++ b/src/Routes/SpacesClient.php @@ -356,6 +356,7 @@ public function remove_devices(array $device_ids, string $space_id): void * @param list $acs_entrance_ids IDs of the entrances that you want to set for the space. If specified, this will replace all existing entrances. * @param mixed $customer_data Reservation/stay-related defaults for the space. Only the keys you provide are updated; omit a key to leave it unchanged. Pass null on a key to clear it. * @param list $device_ids IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. + * @param mixed $geolocation Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. * @param string $name Name of the space. * @param string $space_id ID of the space that you want to update. * @param string $space_key Unique key of the space that you want to update. @@ -365,6 +366,7 @@ public function update( ?array $acs_entrance_ids = null, mixed $customer_data = null, ?array $device_ids = null, + mixed $geolocation = null, ?string $name = null, ?string $space_id = null, ?string $space_key = null, @@ -380,6 +382,9 @@ public function update( if ($device_ids !== null) { $request_payload["device_ids"] = $device_ids; } + if ($geolocation !== null) { + $request_payload["geolocation"] = $geolocation; + } if ($name !== null) { $request_payload["name"] = $name; } diff --git a/src/Routes/ThermostatsClient.php b/src/Routes/ThermostatsClient.php index 17d8a978..9de710eb 100644 --- a/src/Routes/ThermostatsClient.php +++ b/src/Routes/ThermostatsClient.php @@ -170,7 +170,6 @@ public function cool( * @param float $heating_set_point_celsius Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). * @param float $heating_set_point_fahrenheit Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). * @param string $hvac_mode_setting Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. - * @param bool $manual_override_allowed Indicates whether a person at the thermostat or using the API can change the thermostat's settings. * @param string|NullValue $name User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). * @return void OK */ @@ -185,7 +184,6 @@ public function create_climate_preset( ?float $heating_set_point_celsius = null, ?float $heating_set_point_fahrenheit = null, ?string $hvac_mode_setting = null, - ?bool $manual_override_allowed = null, string|NullValue|null $name = null, ): void { $request_payload = []; @@ -224,11 +222,6 @@ public function create_climate_preset( if ($hvac_mode_setting !== null) { $request_payload["hvac_mode_setting"] = $hvac_mode_setting; } - if ($manual_override_allowed !== null) { - $request_payload[ - "manual_override_allowed" - ] = $manual_override_allowed; - } if ($name !== null) { $request_payload["name"] = $name; } @@ -633,7 +626,6 @@ public function set_temperature_threshold( * @param float $heating_set_point_celsius Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). * @param float $heating_set_point_fahrenheit Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). * @param string $hvac_mode_setting Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. - * @param bool $manual_override_allowed Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). * @param string|NullValue $name User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). * @return void OK */ @@ -648,7 +640,6 @@ public function update_climate_preset( ?float $heating_set_point_celsius = null, ?float $heating_set_point_fahrenheit = null, ?string $hvac_mode_setting = null, - ?bool $manual_override_allowed = null, string|NullValue|null $name = null, ): void { $request_payload = []; @@ -687,11 +678,6 @@ public function update_climate_preset( if ($hvac_mode_setting !== null) { $request_payload["hvac_mode_setting"] = $hvac_mode_setting; } - if ($manual_override_allowed !== null) { - $request_payload[ - "manual_override_allowed" - ] = $manual_override_allowed; - } if ($name !== null) { $request_payload["name"] = $name; } diff --git a/src/Routes/WorkspacesClient.php b/src/Routes/WorkspacesClient.php index 8e9e84be..cab37201 100644 --- a/src/Routes/WorkspacesClient.php +++ b/src/Routes/WorkspacesClient.php @@ -31,35 +31,22 @@ public function __construct(ClientInterface $client, array $defaults) * Creates a new [workspace](https://www.seam.co/docs/core-concepts/workspaces). * * @param string $name Name of the new workspace. - * @param string $company_name Company name for the new workspace. * @param string|NullValue $connect_partner_name Connect partner name for the new workspace. * @param mixed $connect_webview_customization [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) customizations for the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). * @param bool $is_sandbox Indicates whether the new workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). * @param string $organization_id 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 string $webview_logo_shape - * @param string $webview_primary_button_color - * @param string $webview_primary_button_text_color - * @param string $webview_success_message * @return Workspace OK */ public function create( string $name, - ?string $company_name = null, string|NullValue|null $connect_partner_name = null, mixed $connect_webview_customization = null, ?bool $is_sandbox = null, ?string $organization_id = null, - ?string $webview_logo_shape = null, - ?string $webview_primary_button_color = null, - ?string $webview_primary_button_text_color = null, - ?string $webview_success_message = null, ): Workspace { $request_payload = []; $request_payload["name"] = $name; - if ($company_name !== null) { - $request_payload["company_name"] = $company_name; - } if ($connect_partner_name !== null) { $request_payload["connect_partner_name"] = $connect_partner_name; } @@ -74,24 +61,6 @@ public function create( if ($organization_id !== null) { $request_payload["organization_id"] = $organization_id; } - if ($webview_logo_shape !== null) { - $request_payload["webview_logo_shape"] = $webview_logo_shape; - } - if ($webview_primary_button_color !== null) { - $request_payload[ - "webview_primary_button_color" - ] = $webview_primary_button_color; - } - if ($webview_primary_button_text_color !== null) { - $request_payload[ - "webview_primary_button_text_color" - ] = $webview_primary_button_text_color; - } - if ($webview_success_message !== null) { - $request_payload[ - "webview_success_message" - ] = $webview_success_message; - } $res = Body::decode( $this->client->request("POST", "/workspaces/create", [