diff --git a/package-lock.json b/package-lock.json index b50f47b..bdc5227 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@prettier/plugin-php": "^0.22.1", - "@seamapi/nextlove-sdk-generator": "^1.5.2", + "@seamapi/nextlove-sdk-generator": "^1.5.3", "@seamapi/types": "^1.75.0", "prettier": "^3.0.0" } @@ -433,9 +433,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.5.2.tgz", - "integrity": "sha512-9jmVO76wB1fi4iYHz8FZTshyzudmgoNxuiOYTCuD/JMUuPSi3LzPh40t4pYXhQzMEP0YbewC4MSThK31F+447w==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.5.3.tgz", + "integrity": "sha512-aRSHbCH27ggOaZ42gKzaxJ+Hy4S3nxALr4DC+PWkZmbcInqUi0eNBdNZ8wayZYKm5ibkcFfyLrE3FMbC+3lm/w==", "dev": true, "dependencies": { "@nodelib/fs.walk": "^2.0.0", diff --git a/package.json b/package.json index 0762935..7df5bd5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@prettier/plugin-php": "^0.22.1", - "@seamapi/nextlove-sdk-generator": "^1.5.2", + "@seamapi/nextlove-sdk-generator": "^1.5.3", "@seamapi/types": "^1.75.0", "prettier": "^3.0.0" } diff --git a/src/Objects/ClientSession.php b/src/Objects/ClientSession.php index 920ccad..1b863c2 100644 --- a/src/Objects/ClientSession.php +++ b/src/Objects/ClientSession.php @@ -30,7 +30,7 @@ public function __construct( public string | null $user_identifier_key, public string $created_at, public string $token, - public float $device_count, + public int $device_count, public array $connected_account_ids, public array $connect_webview_ids, public array $user_identity_ids, diff --git a/src/Objects/ClimateSettingSchedule.php b/src/Objects/ClimateSettingSchedule.php index a2b0330..4eaefd7 100644 --- a/src/Objects/ClimateSettingSchedule.php +++ b/src/Objects/ClimateSettingSchedule.php @@ -44,10 +44,10 @@ public function __construct( public bool | null $automatic_heating_enabled, public bool | null $automatic_cooling_enabled, public string | null $hvac_mode_setting, - public float | null $cooling_set_point_celsius, - public float | null $heating_set_point_celsius, - public float | null $cooling_set_point_fahrenheit, - public float | null $heating_set_point_fahrenheit, + public int | null $cooling_set_point_celsius, + public int | null $heating_set_point_celsius, + public int | null $cooling_set_point_fahrenheit, + public int | null $heating_set_point_fahrenheit, public bool | null $manual_override_allowed, ) { } diff --git a/src/Objects/DeviceAccelerometerZ.php b/src/Objects/DeviceAccelerometerZ.php index d5952c9..0bec93e 100644 --- a/src/Objects/DeviceAccelerometerZ.php +++ b/src/Objects/DeviceAccelerometerZ.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceAccelerometerZ|null public function __construct( public string $time, - public float $value, + public int $value, ) { } diff --git a/src/Objects/DeviceActiveClimateSettingSchedule.php b/src/Objects/DeviceActiveClimateSettingSchedule.php index 8c94fec..43182c6 100644 --- a/src/Objects/DeviceActiveClimateSettingSchedule.php +++ b/src/Objects/DeviceActiveClimateSettingSchedule.php @@ -44,10 +44,10 @@ public function __construct( public bool | null $automatic_heating_enabled, public bool | null $automatic_cooling_enabled, public string | null $hvac_mode_setting, - public float | null $cooling_set_point_celsius, - public float | null $heating_set_point_celsius, - public float | null $cooling_set_point_fahrenheit, - public float | null $heating_set_point_fahrenheit, + public int | null $cooling_set_point_celsius, + public int | null $heating_set_point_celsius, + public int | null $cooling_set_point_fahrenheit, + public int | null $heating_set_point_fahrenheit, public bool | null $manual_override_allowed, ) { } diff --git a/src/Objects/DeviceAvigilonAltaMetadata.php b/src/Objects/DeviceAvigilonAltaMetadata.php index 20c4fa4..79db219 100644 --- a/src/Objects/DeviceAvigilonAltaMetadata.php +++ b/src/Objects/DeviceAvigilonAltaMetadata.php @@ -25,9 +25,9 @@ public static function from_json(mixed $json): DeviceAvigilonAltaMetadata|null public function __construct( public string $entry_name, public string $org_name, - public float $zone_id, + public int $zone_id, public string $zone_name, - public float $site_id, + public int $site_id, public string $site_name, ) { } diff --git a/src/Objects/DeviceBattery.php b/src/Objects/DeviceBattery.php index 9b86da3..91f14c7 100644 --- a/src/Objects/DeviceBattery.php +++ b/src/Objects/DeviceBattery.php @@ -19,7 +19,7 @@ public static function from_json(mixed $json): DeviceBattery|null public function __construct( - public float $level, + public int $level, public string $status, ) { } diff --git a/src/Objects/DeviceCodeConstraints.php b/src/Objects/DeviceCodeConstraints.php index f075e5b..737404f 100644 --- a/src/Objects/DeviceCodeConstraints.php +++ b/src/Objects/DeviceCodeConstraints.php @@ -21,8 +21,8 @@ public static function from_json(mixed $json): DeviceCodeConstraints|null public function __construct( public string $constraint_type, - public float | null $min_length, - public float | null $max_length, + public int | null $min_length, + public int | null $max_length, ) { } diff --git a/src/Objects/DeviceCurrentClimateSetting.php b/src/Objects/DeviceCurrentClimateSetting.php index b3c1b6e..be6edea 100644 --- a/src/Objects/DeviceCurrentClimateSetting.php +++ b/src/Objects/DeviceCurrentClimateSetting.php @@ -28,10 +28,10 @@ public function __construct( public bool $automatic_heating_enabled, public bool $automatic_cooling_enabled, public string $hvac_mode_setting, - public float | null $cooling_set_point_celsius, - public float | null $heating_set_point_celsius, - public float | null $cooling_set_point_fahrenheit, - public float | null $heating_set_point_fahrenheit, + public int | null $cooling_set_point_celsius, + public int | null $heating_set_point_celsius, + public int | null $cooling_set_point_fahrenheit, + public int | null $heating_set_point_fahrenheit, public bool $manual_override_allowed, ) { } diff --git a/src/Objects/DeviceDefaultClimateSetting.php b/src/Objects/DeviceDefaultClimateSetting.php index 31a529f..35af97f 100644 --- a/src/Objects/DeviceDefaultClimateSetting.php +++ b/src/Objects/DeviceDefaultClimateSetting.php @@ -28,10 +28,10 @@ public function __construct( public bool $automatic_heating_enabled, public bool $automatic_cooling_enabled, public string $hvac_mode_setting, - public float | null $cooling_set_point_celsius, - public float | null $heating_set_point_celsius, - public float | null $cooling_set_point_fahrenheit, - public float | null $heating_set_point_fahrenheit, + public int | null $cooling_set_point_celsius, + public int | null $heating_set_point_celsius, + public int | null $cooling_set_point_fahrenheit, + public int | null $heating_set_point_fahrenheit, public bool $manual_override_allowed, ) { } diff --git a/src/Objects/DeviceDormakabaOracodeMetadata.php b/src/Objects/DeviceDormakabaOracodeMetadata.php index 164406d..e27dd21 100644 --- a/src/Objects/DeviceDormakabaOracodeMetadata.php +++ b/src/Objects/DeviceDormakabaOracodeMetadata.php @@ -27,10 +27,10 @@ public static function from_json(mixed $json): DeviceDormakabaOracodeMetadata|nu public function __construct( - public float $door_id, + public int $door_id, public string $door_name, - public float | null $device_id, - public float $site_id, + public int | null $device_id, + public int $site_id, public string $site_name, public string | null $iana_timezone, public array | null $predefined_time_slots, diff --git a/src/Objects/DeviceErrors.php b/src/Objects/DeviceErrors.php index 28389f2..b3322de 100644 --- a/src/Objects/DeviceErrors.php +++ b/src/Objects/DeviceErrors.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): DeviceErrors|null return new self( error_code: $json->error_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): DeviceErrors|null public function __construct( public string $error_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/Objects/DeviceFourSuitesMetadata.php b/src/Objects/DeviceFourSuitesMetadata.php index 46d34cc..d47fa3d 100644 --- a/src/Objects/DeviceFourSuitesMetadata.php +++ b/src/Objects/DeviceFourSuitesMetadata.php @@ -20,9 +20,9 @@ public static function from_json(mixed $json): DeviceFourSuitesMetadata|null public function __construct( - public float $device_id, + public int $device_id, public string $device_name, - public float $reclose_delay_in_seconds, + public int $reclose_delay_in_seconds, ) { } diff --git a/src/Objects/DeviceHumidity.php b/src/Objects/DeviceHumidity.php index ef401cd..afc93ee 100644 --- a/src/Objects/DeviceHumidity.php +++ b/src/Objects/DeviceHumidity.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceHumidity|null public function __construct( public string $time, - public float $value, + public int $value, ) { } diff --git a/src/Objects/DeviceKeypadBattery.php b/src/Objects/DeviceKeypadBattery.php index 347e975..2189d4e 100644 --- a/src/Objects/DeviceKeypadBattery.php +++ b/src/Objects/DeviceKeypadBattery.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): DeviceKeypadBattery|null public function __construct( - public float $level, + public int $level, ) { } diff --git a/src/Objects/DeviceNoiseawareMetadata.php b/src/Objects/DeviceNoiseawareMetadata.php index 5664d7f..5e480a4 100644 --- a/src/Objects/DeviceNoiseawareMetadata.php +++ b/src/Objects/DeviceNoiseawareMetadata.php @@ -23,8 +23,8 @@ public static function from_json(mixed $json): DeviceNoiseawareMetadata|null public function __construct( public string $device_model, - public float $noise_level_nrs, - public float $noise_level_decibel, + public int $noise_level_nrs, + public int $noise_level_decibel, public string $device_name, public string $device_id, ) { diff --git a/src/Objects/DevicePredefinedTimeSlots.php b/src/Objects/DevicePredefinedTimeSlots.php index 8856e6c..285673c 100644 --- a/src/Objects/DevicePredefinedTimeSlots.php +++ b/src/Objects/DevicePredefinedTimeSlots.php @@ -28,14 +28,14 @@ public static function from_json(mixed $json): DevicePredefinedTimeSlots|null public function __construct( public string $name, - public float $prefix, + public int $prefix, public string $check_in_time, public string $check_out_time, public bool $is_24_hour, public bool $is_biweekly_mode, public bool $is_one_shot, public bool $is_master, - public float $ext_dormakaba_oracode_user_level_prefix, + public int $ext_dormakaba_oracode_user_level_prefix, public string $dormakaba_oracode_user_level_id, ) { } diff --git a/src/Objects/DevicePressure.php b/src/Objects/DevicePressure.php index d7e89e8..97eb23c 100644 --- a/src/Objects/DevicePressure.php +++ b/src/Objects/DevicePressure.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DevicePressure|null public function __construct( public string $time, - public float $value, + public int $value, ) { } diff --git a/src/Objects/DeviceProperties.php b/src/Objects/DeviceProperties.php index e22409e..c95443e 100644 --- a/src/Objects/DeviceProperties.php +++ b/src/Objects/DeviceProperties.php @@ -50,6 +50,7 @@ public static function from_json(mixed $json): DeviceProperties|null hubitat_metadata: isset($json->hubitat_metadata) ? DeviceHubitatMetadata::from_json($json->hubitat_metadata) : null, dormakaba_oracode_metadata: isset($json->dormakaba_oracode_metadata) ? DeviceDormakabaOracodeMetadata::from_json($json->dormakaba_oracode_metadata) : null, wyze_metadata: isset($json->wyze_metadata) ? DeviceWyzeMetadata::from_json($json->wyze_metadata) : null, + tedee_metadata: isset($json->tedee_metadata) ? DeviceTedeeMetadata::from_json($json->tedee_metadata) : null, _experimental_supported_code_from_access_codes_lengths: $json->_experimental_supported_code_from_access_codes_lengths ?? null, code_constraints: array_map( fn ($c) => DeviceCodeConstraints::from_json($c), @@ -99,7 +100,7 @@ public function __construct( public string $name, public DeviceModel $model, public bool | null $has_direct_power, - public float | null $battery_level, + public int | null $battery_level, public DeviceBattery | null $battery, public string | null $manufacturer, public string | null $image_url, @@ -134,18 +135,19 @@ public function __construct( public DeviceHubitatMetadata | null $hubitat_metadata, public DeviceDormakabaOracodeMetadata | null $dormakaba_oracode_metadata, public DeviceWyzeMetadata | null $wyze_metadata, + public DeviceTedeeMetadata | null $tedee_metadata, public array | null $_experimental_supported_code_from_access_codes_lengths, public array | null $code_constraints, public array | null $supported_code_lengths, - public float | null $max_active_codes_supported, + public int | null $max_active_codes_supported, public bool | null $supports_backup_access_code_pool, public bool | null $has_native_entry_events, public bool | null $locked, public DeviceKeypadBattery | null $keypad_battery, public bool | null $door_open, - public float | null $temperature_fahrenheit, - public float | null $temperature_celsius, - public float | null $relative_humidity, + public int | null $temperature_fahrenheit, + public int | null $temperature_celsius, + public int | null $relative_humidity, public bool | null $can_enable_automatic_heating, public bool | null $can_enable_automatic_cooling, public array | null $available_hvac_mode_settings, @@ -160,16 +162,16 @@ public function __construct( public DeviceDefaultClimateSetting | null $default_climate_setting, public bool | null $is_climate_setting_schedule_active, public DeviceActiveClimateSettingSchedule | null $active_climate_setting_schedule, - public float | null $min_cooling_set_point_celsius, - public float | null $min_cooling_set_point_fahrenheit, - public float | null $max_cooling_set_point_celsius, - public float | null $max_cooling_set_point_fahrenheit, - public float | null $min_heating_set_point_celsius, - public float | null $min_heating_set_point_fahrenheit, - public float | null $max_heating_set_point_celsius, - public float | null $max_heating_set_point_fahrenheit, - public float | null $min_heating_cooling_delta_celsius, - public float | null $min_heating_cooling_delta_fahrenheit, + public int | null $min_cooling_set_point_celsius, + public int | null $min_cooling_set_point_fahrenheit, + public int | null $max_cooling_set_point_celsius, + public int | null $max_cooling_set_point_fahrenheit, + public int | null $min_heating_set_point_celsius, + public int | null $min_heating_set_point_fahrenheit, + public int | null $max_heating_set_point_celsius, + public int | null $max_heating_set_point_fahrenheit, + public int | null $min_heating_cooling_delta_celsius, + public int | null $min_heating_cooling_delta_fahrenheit, ) { } diff --git a/src/Objects/DeviceSchlageMetadata.php b/src/Objects/DeviceSchlageMetadata.php index 4aecd54..54ec590 100644 --- a/src/Objects/DeviceSchlageMetadata.php +++ b/src/Objects/DeviceSchlageMetadata.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): DeviceSchlageMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - access_code_length: $json->access_code_length, + access_code_length: $json->access_code_length ?? null, model: $json->model ?? null, ); } @@ -23,7 +23,7 @@ public static function from_json(mixed $json): DeviceSchlageMetadata|null public function __construct( public string $device_id, public string $device_name, - public float $access_code_length, + public int | null $access_code_length, public string | null $model, ) { } diff --git a/src/Objects/DeviceSeamBridgeMetadata.php b/src/Objects/DeviceSeamBridgeMetadata.php index 3a5123b..3fa8ff4 100644 --- a/src/Objects/DeviceSeamBridgeMetadata.php +++ b/src/Objects/DeviceSeamBridgeMetadata.php @@ -21,7 +21,7 @@ public static function from_json(mixed $json): DeviceSeamBridgeMetadata|null public function __construct( public string | null $unlock_method, - public float $device_num, + public int $device_num, public string $name, ) { } diff --git a/src/Objects/DeviceSound.php b/src/Objects/DeviceSound.php index a72f645..cb071f5 100644 --- a/src/Objects/DeviceSound.php +++ b/src/Objects/DeviceSound.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceSound|null public function __construct( public string $time, - public float $value, + public int $value, ) { } diff --git a/src/Objects/DeviceTedeeMetadata.php b/src/Objects/DeviceTedeeMetadata.php new file mode 100644 index 0000000..be8f730 --- /dev/null +++ b/src/Objects/DeviceTedeeMetadata.php @@ -0,0 +1,35 @@ +device_id, + serial_number: $json->serial_number, + device_name: $json->device_name, + device_model: $json->device_model, + bridge_id: $json->bridge_id, + bridge_name: $json->bridge_name, + ); + } + + + + public function __construct( + public int $device_id, + public string $serial_number, + public string $device_name, + public string $device_model, + public int $bridge_id, + public string $bridge_name, + ) { + } + +} diff --git a/src/Objects/DeviceTemperature.php b/src/Objects/DeviceTemperature.php index 0b59a8d..797ab01 100644 --- a/src/Objects/DeviceTemperature.php +++ b/src/Objects/DeviceTemperature.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceTemperature|null public function __construct( public string $time, - public float $value, + public int $value, ) { } diff --git a/src/Objects/DeviceTtlockMetadata.php b/src/Objects/DeviceTtlockMetadata.php index 3b895ba..4fa95f8 100644 --- a/src/Objects/DeviceTtlockMetadata.php +++ b/src/Objects/DeviceTtlockMetadata.php @@ -19,7 +19,7 @@ public static function from_json(mixed $json): DeviceTtlockMetadata|null public function __construct( - public float $lock_id, + public int $lock_id, public string $lock_alias, ) { } diff --git a/src/Objects/DeviceTwoNMetadata.php b/src/Objects/DeviceTwoNMetadata.php index 45c3875..491c777 100644 --- a/src/Objects/DeviceTwoNMetadata.php +++ b/src/Objects/DeviceTwoNMetadata.php @@ -19,7 +19,7 @@ public static function from_json(mixed $json): DeviceTwoNMetadata|null public function __construct( - public float $device_id, + public int $device_id, public string $device_name, ) { } diff --git a/src/Objects/DeviceWarnings.php b/src/Objects/DeviceWarnings.php index 3ea367d..a39c076 100644 --- a/src/Objects/DeviceWarnings.php +++ b/src/Objects/DeviceWarnings.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): DeviceWarnings|null return new self( warning_code: $json->warning_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): DeviceWarnings|null public function __construct( public string $warning_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/Objects/NoiseThreshold.php b/src/Objects/NoiseThreshold.php index 2dfc6f7..5447cbf 100644 --- a/src/Objects/NoiseThreshold.php +++ b/src/Objects/NoiseThreshold.php @@ -27,10 +27,10 @@ public function __construct( public string $noise_threshold_id, public string $device_id, public string $name, - public float | null $noise_threshold_nrs, + public int | null $noise_threshold_nrs, public string $starts_daily_at, public string $ends_daily_at, - public float $noise_threshold_decibels, + public int $noise_threshold_decibels, ) { } diff --git a/src/Objects/PhoneErrors.php b/src/Objects/PhoneErrors.php index 88d3c48..00396ce 100644 --- a/src/Objects/PhoneErrors.php +++ b/src/Objects/PhoneErrors.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): PhoneErrors|null return new self( error_code: $json->error_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): PhoneErrors|null public function __construct( public string $error_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/Objects/PhoneWarnings.php b/src/Objects/PhoneWarnings.php index b5b1b00..45ef34b 100644 --- a/src/Objects/PhoneWarnings.php +++ b/src/Objects/PhoneWarnings.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): PhoneWarnings|null return new self( warning_code: $json->warning_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): PhoneWarnings|null public function __construct( public string $warning_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/Objects/UnmanagedDeviceBattery.php b/src/Objects/UnmanagedDeviceBattery.php index f93e7a9..3e4c6d8 100644 --- a/src/Objects/UnmanagedDeviceBattery.php +++ b/src/Objects/UnmanagedDeviceBattery.php @@ -19,7 +19,7 @@ public static function from_json(mixed $json): UnmanagedDeviceBattery|null public function __construct( - public float $level, + public int $level, public string $status, ) { } diff --git a/src/Objects/UnmanagedDeviceErrors.php b/src/Objects/UnmanagedDeviceErrors.php index 31fa12b..005e3bd 100644 --- a/src/Objects/UnmanagedDeviceErrors.php +++ b/src/Objects/UnmanagedDeviceErrors.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): UnmanagedDeviceErrors|null return new self( error_code: $json->error_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): UnmanagedDeviceErrors|null public function __construct( public string $error_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/Objects/UnmanagedDeviceProperties.php b/src/Objects/UnmanagedDeviceProperties.php index 7f27273..5a2321d 100644 --- a/src/Objects/UnmanagedDeviceProperties.php +++ b/src/Objects/UnmanagedDeviceProperties.php @@ -32,7 +32,7 @@ public function __construct( public string | null $manufacturer, public string | null $image_url, public string | null $image_alt_text, - public float | null $battery_level, + public int | null $battery_level, public UnmanagedDeviceBattery | null $battery, public bool | null $online_access_codes_enabled, public bool | null $offline_access_codes_enabled, diff --git a/src/Objects/UnmanagedDeviceWarnings.php b/src/Objects/UnmanagedDeviceWarnings.php index 9baa712..db80a1a 100644 --- a/src/Objects/UnmanagedDeviceWarnings.php +++ b/src/Objects/UnmanagedDeviceWarnings.php @@ -13,6 +13,7 @@ public static function from_json(mixed $json): UnmanagedDeviceWarnings|null return new self( warning_code: $json->warning_code, message: $json->message, + created_at: $json->created_at ?? null, ); } @@ -21,6 +22,7 @@ public static function from_json(mixed $json): UnmanagedDeviceWarnings|null public function __construct( public string $warning_code, public string $message, + public string | null $created_at, ) { } diff --git a/src/SeamClient.php b/src/SeamClient.php index 8326e3b..a7480ac 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -243,6 +243,7 @@ public function create( public function create_multiple( array $device_ids, string $behavior_when_code_cannot_be_shared = null, + int $preferred_code_length = null, string $name = null, string $starts_at = null, string $ends_at = null, @@ -265,6 +266,9 @@ public function create_multiple( if ($behavior_when_code_cannot_be_shared !== null) { $request_payload["behavior_when_code_cannot_be_shared"] = $behavior_when_code_cannot_be_shared; } + if ($preferred_code_length !== null) { + $request_payload["preferred_code_length"] = $preferred_code_length; + } if ($name !== null) { $request_payload["name"] = $name; } @@ -1213,7 +1217,7 @@ public function list( array $device_types = null, string $manufacturer = null, array $device_ids = null, - float $limit = null, + int $limit = null, string $created_before = null, string $user_identifier_key = null, mixed $custom_metadata_has = null @@ -1534,7 +1538,7 @@ public function list( array $device_types = null, string $manufacturer = null, array $device_ids = null, - float $limit = null, + int $limit = null, string $created_before = null, string $user_identifier_key = null, mixed $custom_metadata_has = null @@ -1727,6 +1731,29 @@ public function __construct(SeamClient $seam) } + public function deactivate( + string $device_id + ): void { + $request_payload = []; + + if ($device_id !== null) { + $request_payload["device_id"] = $device_id; + } + + $this->seam->request( + "POST", + "/phones/deactivate", + json: $request_payload, + + ); + + + + + + + } + public function list( string $owner_user_identity_id = null ): array { @@ -1765,8 +1792,8 @@ public function __construct(SeamClient $seam) public function cool( string $device_id, - float $cooling_set_point_celsius = null, - float $cooling_set_point_fahrenheit = null, + int $cooling_set_point_celsius = null, + int $cooling_set_point_fahrenheit = null, bool $sync = null ): void { $request_payload = []; @@ -1827,8 +1854,8 @@ public function get( public function heat( string $device_id, - float $heating_set_point_celsius = null, - float $heating_set_point_fahrenheit = null, + int $heating_set_point_celsius = null, + int $heating_set_point_fahrenheit = null, bool $sync = null ): void { $request_payload = []; @@ -1862,10 +1889,10 @@ public function heat( public function heat_cool( string $device_id, - float $heating_set_point_celsius = null, - float $heating_set_point_fahrenheit = null, - float $cooling_set_point_celsius = null, - float $cooling_set_point_fahrenheit = null, + int $heating_set_point_celsius = null, + int $heating_set_point_fahrenheit = null, + int $cooling_set_point_celsius = null, + int $cooling_set_point_fahrenheit = null, bool $sync = null ): void { $request_payload = []; @@ -1911,7 +1938,7 @@ public function list( array $device_types = null, string $manufacturer = null, array $device_ids = null, - float $limit = null, + int $limit = null, string $created_before = null, string $user_identifier_key = null, mixed $custom_metadata_has = null @@ -2456,6 +2483,33 @@ public function list( return array_map(fn ($r) => Webhook::from_json($r), $res); + } + + public function update( + string $webhook_id, + array $event_types + ): void { + $request_payload = []; + + if ($webhook_id !== null) { + $request_payload["webhook_id"] = $webhook_id; + } + if ($event_types !== null) { + $request_payload["event_types"] = $event_types; + } + + $this->seam->request( + "POST", + "/webhooks/update", + json: $request_payload, + + ); + + + + + + } } @@ -3098,10 +3152,8 @@ public function create( string $access_method, string $code = null, bool $is_multi_phone_sync_credential = null, - string $assa_abloy_credential_service_mobile_endpoint_id = null, string $external_type = null, - string $card_format = null, - bool $is_override_key = null, + mixed $visionline_metadata = null, string $starts_at = null, string $ends_at = null ): void { @@ -3119,17 +3171,11 @@ public function create( if ($is_multi_phone_sync_credential !== null) { $request_payload["is_multi_phone_sync_credential"] = $is_multi_phone_sync_credential; } - if ($assa_abloy_credential_service_mobile_endpoint_id !== null) { - $request_payload["assa_abloy_credential_service_mobile_endpoint_id"] = $assa_abloy_credential_service_mobile_endpoint_id; - } if ($external_type !== null) { $request_payload["external_type"] = $external_type; } - if ($card_format !== null) { - $request_payload["card_format"] = $card_format; - } - if ($is_override_key !== null) { - $request_payload["is_override_key"] = $is_override_key; + if ($visionline_metadata !== null) { + $request_payload["visionline_metadata"] = $visionline_metadata; } if ($starts_at !== null) { $request_payload["starts_at"] = $starts_at; @@ -3374,8 +3420,7 @@ public function list( } public function list_credentials_with_access( - string $acs_entrance_id = null, - array $acs_entrance_ids = null, + string $acs_entrance_id, array $include_if = null ): void { $request_payload = []; @@ -3383,9 +3428,6 @@ public function list_credentials_with_access( if ($acs_entrance_id !== null) { $request_payload["acs_entrance_id"] = $acs_entrance_id; } - if ($acs_entrance_ids !== null) { - $request_payload["acs_entrance_ids"] = $acs_entrance_ids; - } if ($include_if !== null) { $request_payload["include_if"] = $include_if; } @@ -3629,6 +3671,29 @@ public function list_accessible_entrances( + } + + public function revoke_access_to_all_entrances( + string $acs_user_id + ): void { + $request_payload = []; + + if ($acs_user_id !== null) { + $request_payload["acs_user_id"] = $acs_user_id; + } + + $this->seam->request( + "POST", + "/acs/users/revoke_access_to_all_entrances", + json: $request_payload, + + ); + + + + + + } public function suspend( @@ -3772,7 +3837,7 @@ public function list( array $device_types = null, string $manufacturer = null, array $device_ids = null, - float $limit = null, + int $limit = null, string $created_before = null, string $user_identifier_key = null, mixed $custom_metadata_has = null @@ -3909,8 +3974,8 @@ public function create( string $ends_daily_at, bool $sync = null, string $name = null, - float $noise_threshold_decibels = null, - float $noise_threshold_nrs = null + int $noise_threshold_decibels = null, + int $noise_threshold_nrs = null ): NoiseThreshold { $request_payload = []; @@ -4045,8 +4110,8 @@ public function update( string $name = null, string $starts_daily_at = null, string $ends_daily_at = null, - float $noise_threshold_decibels = null, - float $noise_threshold_nrs = null, + int $noise_threshold_decibels = null, + int $noise_threshold_nrs = null, bool $wait_for_action_attempt = true ): ActionAttempt { $request_payload = []; @@ -4221,10 +4286,10 @@ public function create( bool $automatic_heating_enabled = null, bool $automatic_cooling_enabled = null, string $hvac_mode_setting = null, - float $cooling_set_point_celsius = null, - float $heating_set_point_celsius = null, - float $cooling_set_point_fahrenheit = null, - float $heating_set_point_fahrenheit = null, + int $cooling_set_point_celsius = null, + int $heating_set_point_celsius = null, + int $cooling_set_point_fahrenheit = null, + int $heating_set_point_fahrenheit = null, bool $manual_override_allowed = null ): ClimateSettingSchedule { $request_payload = []; @@ -4369,10 +4434,10 @@ public function update( bool $automatic_heating_enabled = null, bool $automatic_cooling_enabled = null, string $hvac_mode_setting = null, - float $cooling_set_point_celsius = null, - float $heating_set_point_celsius = null, - float $cooling_set_point_fahrenheit = null, - float $heating_set_point_fahrenheit = null, + int $cooling_set_point_celsius = null, + int $heating_set_point_celsius = null, + int $cooling_set_point_fahrenheit = null, + int $heating_set_point_fahrenheit = null, bool $manual_override_allowed = null ): ClimateSettingSchedule { $request_payload = [];