diff --git a/package-lock.json b/package-lock.json index c44695c..ae5cc13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.586.0", + "@seamapi/types": "1.587.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.586.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.586.0.tgz", - "integrity": "sha512-ItYTH1tJF9Q+ZI+toTJnMFl6QHldoeZ5cF3gRtn7+8AM1eRs6p3V1tXVJXoQ8MtDNjBT4cdmSB2L7bXyS03Sjg==", + "version": "1.587.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.587.0.tgz", + "integrity": "sha512-5p5KOjoUUZVdwP0XDS0BYzeR3PU8Hiw6yQwkSaIoYfPhkZWqWiac9DjAmJysKqSOefECPUk/0BT8rpMenJ8puQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 5c99eef..b608d78 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.586.0", + "@seamapi/types": "1.587.0", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/SeamClient.php b/src/SeamClient.php index 4595e4b..5e0b982 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -4660,6 +4660,7 @@ public function add_devices(array $device_ids, string $space_id): void public function create( string $name, ?array $acs_entrance_ids = null, + ?string $customer_key = null, ?array $device_ids = null, ?string $space_key = null, ): Space { @@ -4671,6 +4672,9 @@ public function create( if ($acs_entrance_ids !== null) { $request_payload["acs_entrance_ids"] = $acs_entrance_ids; } + if ($customer_key !== null) { + $request_payload["customer_key"] = $customer_key; + } if ($device_ids !== null) { $request_payload["device_ids"] = $device_ids; } @@ -4822,6 +4826,7 @@ public function remove_devices(array $device_ids, string $space_id): void public function update( ?array $acs_entrance_ids = null, + ?string $customer_key = null, ?array $device_ids = null, ?string $name = null, ?string $space_id = null, @@ -4832,6 +4837,9 @@ public function update( if ($acs_entrance_ids !== null) { $request_payload["acs_entrance_ids"] = $acs_entrance_ids; } + if ($customer_key !== null) { + $request_payload["customer_key"] = $customer_key; + } if ($device_ids !== null) { $request_payload["device_ids"] = $device_ids; }