From 97755f31fd679164a32eb385b2bb91f10c979fa3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 03:10:37 +0000 Subject: [PATCH 1/5] feat(deps-dev): Bump @seamapi/types in the seam group Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.587.0 to 1.591.0 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.587.0...v1.591.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.591.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 46b5af0..953cbfa 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.587.0", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.587.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.587.0.tgz", - "integrity": "sha512-5p5KOjoUUZVdwP0XDS0BYzeR3PU8Hiw6yQwkSaIoYfPhkZWqWiac9DjAmJysKqSOefECPUk/0BT8rpMenJ8puQ==", + "version": "1.591.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.591.0.tgz", + "integrity": "sha512-9r1414GHNbTX85XpEl9tvbiPDvw/TDghWMJk5TSz0CXkwafhOpvY08Wfl16KAPHdN5qVClDlLO9eG4ZS8z8BUQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 088504a..eb4e670 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.587.0", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" } From 03c8162f65edeb728800afd1e5b2c43f970c600c Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 26 Sep 2025 03:11:00 +0000 Subject: [PATCH 2/5] ci: Generate code --- src/Objects/Space.php | 4 +++ src/SeamClient.php | 69 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/src/Objects/Space.php b/src/Objects/Space.php index b980acc..5477401 100644 --- a/src/Objects/Space.php +++ b/src/Objects/Space.php @@ -17,6 +17,8 @@ public static function from_json(mixed $json): Space|null name: $json->name, space_id: $json->space_id, workspace_id: $json->workspace_id, + parent_space_id: $json->parent_space_id ?? null, + parent_space_key: $json->parent_space_key ?? null, space_key: $json->space_key ?? null, ); } @@ -29,6 +31,8 @@ public function __construct( public string $name, public string $space_id, public string $workspace_id, + public string|null $parent_space_id, + public string|null $parent_space_key, public string|null $space_key, ) {} } diff --git a/src/SeamClient.php b/src/SeamClient.php index 5e0b982..640f60e 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -71,6 +71,7 @@ class SeamClient public LocksClient $locks; public NoiseSensorsClient $noise_sensors; public PhonesClient $phones; + public SeamClient $seam; public SpacesClient $spaces; public ThermostatsClient $thermostats; public UserIdentitiesClient $user_identities; @@ -115,6 +116,7 @@ public function __construct( $this->locks = new LocksClient($this); $this->noise_sensors = new NoiseSensorsClient($this); $this->phones = new PhonesClient($this); + $this->seam = new SeamClient($this); $this->spaces = new SpacesClient($this); $this->thermostats = new ThermostatsClient($this); $this->user_identities = new UserIdentitiesClient($this); @@ -3111,6 +3113,7 @@ public function update( ?array $accepted_capabilities = null, ?bool $automatically_manage_new_devices = null, mixed $custom_metadata = null, + ?string $customer_key = null, ): void { $request_payload = []; @@ -3128,6 +3131,9 @@ public function update( if ($custom_metadata !== null) { $request_payload["custom_metadata"] = $custom_metadata; } + if ($customer_key !== null) { + $request_payload["customer_key"] = $customer_key; + } $this->seam->request( "POST", @@ -3274,6 +3280,7 @@ public function push_data( ?array $reservations = null, ?array $residents = null, ?array $rooms = null, + ?array $sites = null, ?array $spaces = null, ?array $tenants = null, ?array $units = null, @@ -3321,6 +3328,9 @@ public function push_data( if ($rooms !== null) { $request_payload["rooms"] = $rooms; } + if ($sites !== null) { + $request_payload["sites"] = $sites; + } if ($spaces !== null) { $request_payload["spaces"] = $spaces; } @@ -4610,6 +4620,65 @@ public function create_sandbox_phone( } } +class SeamCustomerV1SpacesClient +{ + private SeamClient $seam; + + public function __construct(SeamClient $seam) + { + $this->seam = $seam; + } + + public function create( + string $name, + ?array $acs_entrance_ids = null, + ?array $device_ids = null, + ?string $parent_space_key = null, + ?string $parent_space_name = null, + ?string $space_key = null, + ): Space { + $request_payload = []; + + if ($name !== null) { + $request_payload["name"] = $name; + } + if ($acs_entrance_ids !== null) { + $request_payload["acs_entrance_ids"] = $acs_entrance_ids; + } + if ($device_ids !== null) { + $request_payload["device_ids"] = $device_ids; + } + if ($parent_space_key !== null) { + $request_payload["parent_space_key"] = $parent_space_key; + } + if ($parent_space_name !== null) { + $request_payload["parent_space_name"] = $parent_space_name; + } + if ($space_key !== null) { + $request_payload["space_key"] = $space_key; + } + + $res = $this->seam->request( + "POST", + "/seam/customer/v1/spaces/create", + json: (object) $request_payload, + ); + + return Space::from_json($res->space); + } +} + +class SeamClient +{ + private SeamClient $seam; + public SeamCustomerClient $customer; + public function __construct(SeamClient $seam) + { + $this->seam = $seam; + $this->customer = new SeamCustomerClient($seam); + } +} + class SpacesClient { private SeamClient $seam; From 75dc908927625c677c6c46970d98654116d3c26c Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Tue, 21 Oct 2025 14:12:55 +0200 Subject: [PATCH 3/5] Test workflow actions/checkout@v4 update --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 996d9db..44d8fe4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: From 378894346a4c68996584a24c99c44d36d8793f29 Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Tue, 21 Oct 2025 20:45:57 +0200 Subject: [PATCH 4/5] Generator 1.19.4 update --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 953cbfa..521a47a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@prettier/plugin-php": "^0.24.0", - "@seamapi/nextlove-sdk-generator": "^1.19.1", + "@seamapi/nextlove-sdk-generator": "^1.19.4", "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" @@ -434,9 +434,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.1.tgz", - "integrity": "sha512-6uh6LBthvJ8y4uAOC54NZLixtOacY/+K+rEK2O94TnWdr/GFfCT+x2vMxt7sp2D73+EV7yYjvmDM5AIiKH10lQ==", + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.4.tgz", + "integrity": "sha512-zzYiomcX1Swe+Bxg6PCQM+AY+XtRQCC2osbCAwSJ0cEcIkQTIiCCOy6SFBFsUXBUE8IwGStig2zdSqK6f83bww==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index eb4e670..c2fbeb9 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@prettier/plugin-php": "^0.24.0", - "@seamapi/nextlove-sdk-generator": "^1.19.1", + "@seamapi/nextlove-sdk-generator": "^1.19.4", "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" From eda02f38cf622d333f059e37450271f643f23339 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 21 Oct 2025 18:46:55 +0000 Subject: [PATCH 5/5] ci: Generate code --- src/SeamClient.php | 61 ---------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/src/SeamClient.php b/src/SeamClient.php index 640f60e..7ce9f4d 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -71,7 +71,6 @@ class SeamClient public LocksClient $locks; public NoiseSensorsClient $noise_sensors; public PhonesClient $phones; - public SeamClient $seam; public SpacesClient $spaces; public ThermostatsClient $thermostats; public UserIdentitiesClient $user_identities; @@ -116,7 +115,6 @@ public function __construct( $this->locks = new LocksClient($this); $this->noise_sensors = new NoiseSensorsClient($this); $this->phones = new PhonesClient($this); - $this->seam = new SeamClient($this); $this->spaces = new SpacesClient($this); $this->thermostats = new ThermostatsClient($this); $this->user_identities = new UserIdentitiesClient($this); @@ -4620,65 +4618,6 @@ public function create_sandbox_phone( } } -class SeamCustomerV1SpacesClient -{ - private SeamClient $seam; - - public function __construct(SeamClient $seam) - { - $this->seam = $seam; - } - - public function create( - string $name, - ?array $acs_entrance_ids = null, - ?array $device_ids = null, - ?string $parent_space_key = null, - ?string $parent_space_name = null, - ?string $space_key = null, - ): Space { - $request_payload = []; - - if ($name !== null) { - $request_payload["name"] = $name; - } - if ($acs_entrance_ids !== null) { - $request_payload["acs_entrance_ids"] = $acs_entrance_ids; - } - if ($device_ids !== null) { - $request_payload["device_ids"] = $device_ids; - } - if ($parent_space_key !== null) { - $request_payload["parent_space_key"] = $parent_space_key; - } - if ($parent_space_name !== null) { - $request_payload["parent_space_name"] = $parent_space_name; - } - if ($space_key !== null) { - $request_payload["space_key"] = $space_key; - } - - $res = $this->seam->request( - "POST", - "/seam/customer/v1/spaces/create", - json: (object) $request_payload, - ); - - return Space::from_json($res->space); - } -} - -class SeamClient -{ - private SeamClient $seam; - public SeamCustomerClient $customer; - public function __construct(SeamClient $seam) - { - $this->seam = $seam; - $this->customer = new SeamCustomerClient($seam); - } -} - class SpacesClient { private SeamClient $seam;