From 00b4abe026ea865ad3a5ae0c9d5d0982b7c20e7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 03:43:05 +0000 Subject: [PATCH 1/2] 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.749.0 to 1.751.0 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](https://github.com/seamapi/types/compare/v1.749.0...v1.751.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.751.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 874a333..29a3896 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.8", - "@seamapi/types": "1.749.0", + "@seamapi/types": "1.751.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -533,9 +533,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.749.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.749.0.tgz", - "integrity": "sha512-KA8mwwNJRW7+4L+sFgoLsVywCzlq0G0E/84+RA0UQUv+2PdSaJcy6q5xlYjTY0TXUMJ+7cWnqvOc65iUviTgaQ==", + "version": "1.751.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.751.0.tgz", + "integrity": "sha512-PrQ403/KK3+2Pnpg0/FXT4wuC0C17BAk9sZw1M73j60L6Ck4g4dbtCx7JlSfIuU3PGG4aasN7trnXq2y12VfvQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 1eeb2eb..c21e860 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.8", - "@seamapi/types": "1.749.0", + "@seamapi/types": "1.751.0", "del": "^7.1.0", "prettier": "^3.0.0" } From 5a8bd42024cc926702c372619c3df0959010c8ad Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 17 Mar 2026 03:43:21 +0000 Subject: [PATCH 2/2] ci: Generate code --- src/Objects/AcsEntrance.php | 2 ++ src/Objects/PhoneSessionAcsEntrances.php | 2 ++ src/SeamClient.php | 31 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/src/Objects/AcsEntrance.php b/src/Objects/AcsEntrance.php index eb99884..ef6ea6c 100644 --- a/src/Objects/AcsEntrance.php +++ b/src/Objects/AcsEntrance.php @@ -30,6 +30,7 @@ public static function from_json(mixed $json): AcsEntrance|null : null, can_belong_to_reservation: $json->can_belong_to_reservation ?? null, can_unlock_with_card: $json->can_unlock_with_card ?? null, + can_unlock_with_cloud_key: $json->can_unlock_with_cloud_key ?? null, can_unlock_with_code: $json->can_unlock_with_code ?? null, can_unlock_with_mobile_key: $json->can_unlock_with_mobile_key ?? null, @@ -83,6 +84,7 @@ public function __construct( public AcsEntranceBrivoMetadata|null $brivo_metadata, public bool|null $can_belong_to_reservation, public bool|null $can_unlock_with_card, + public bool|null $can_unlock_with_cloud_key, public bool|null $can_unlock_with_code, public bool|null $can_unlock_with_mobile_key, public AcsEntranceDormakabaAmbianceMetadata|null $dormakaba_ambiance_metadata, diff --git a/src/Objects/PhoneSessionAcsEntrances.php b/src/Objects/PhoneSessionAcsEntrances.php index 7d4f080..45adc94 100644 --- a/src/Objects/PhoneSessionAcsEntrances.php +++ b/src/Objects/PhoneSessionAcsEntrances.php @@ -30,6 +30,7 @@ public static function from_json(mixed $json): PhoneSessionAcsEntrances|null : null, can_belong_to_reservation: $json->can_belong_to_reservation ?? null, can_unlock_with_card: $json->can_unlock_with_card ?? null, + can_unlock_with_cloud_key: $json->can_unlock_with_cloud_key ?? null, can_unlock_with_code: $json->can_unlock_with_code ?? null, can_unlock_with_mobile_key: $json->can_unlock_with_mobile_key ?? null, @@ -83,6 +84,7 @@ public function __construct( public PhoneSessionBrivoMetadata|null $brivo_metadata, public bool|null $can_belong_to_reservation, public bool|null $can_unlock_with_card, + public bool|null $can_unlock_with_cloud_key, public bool|null $can_unlock_with_code, public bool|null $can_unlock_with_mobile_key, public PhoneSessionDormakabaAmbianceMetadata|null $dormakaba_ambiance_metadata, diff --git a/src/SeamClient.php b/src/SeamClient.php index db0e7a5..75eb0ca 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -2259,6 +2259,37 @@ public function list_credentials_with_access( $res->acs_credentials, ); } + + public function unlock( + string $acs_credential_id, + string $acs_entrance_id, + bool $wait_for_action_attempt = true, + ): ActionAttempt { + $request_payload = []; + + if ($acs_credential_id !== null) { + $request_payload["acs_credential_id"] = $acs_credential_id; + } + if ($acs_entrance_id !== null) { + $request_payload["acs_entrance_id"] = $acs_entrance_id; + } + + $res = $this->seam->request( + "POST", + "/acs/entrances/unlock", + json: (object) $request_payload, + ); + + if (!$wait_for_action_attempt) { + return ActionAttempt::from_json($res->action_attempt); + } + + $action_attempt = $this->seam->action_attempts->poll_until_ready( + $res->action_attempt->action_attempt_id, + ); + + return $action_attempt; + } } class AcsSystemsClient