Skip to content

Commit d3b7ae1

Browse files
feat(deps-dev): bump @seamapi/types from 1.749.0 to 1.751.0 in the seam group (#404)
* 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](seamapi/types@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] <support@github.com> * ci: Generate code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <seambot@getseam.com>
1 parent cfabe7f commit d3b7ae1

5 files changed

Lines changed: 40 additions & 5 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"@prettier/plugin-php": "^0.24.0",
1515
"@seamapi/nextlove-sdk-generator": "^1.19.8",
16-
"@seamapi/types": "1.749.0",
16+
"@seamapi/types": "1.751.0",
1717
"del": "^7.1.0",
1818
"prettier": "^3.0.0"
1919
}

src/Objects/AcsEntrance.php

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Objects/PhoneSessionAcsEntrances.php

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/SeamClient.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,37 @@ public function list_credentials_with_access(
22592259
$res->acs_credentials,
22602260
);
22612261
}
2262+
2263+
public function unlock(
2264+
string $acs_credential_id,
2265+
string $acs_entrance_id,
2266+
bool $wait_for_action_attempt = true,
2267+
): ActionAttempt {
2268+
$request_payload = [];
2269+
2270+
if ($acs_credential_id !== null) {
2271+
$request_payload["acs_credential_id"] = $acs_credential_id;
2272+
}
2273+
if ($acs_entrance_id !== null) {
2274+
$request_payload["acs_entrance_id"] = $acs_entrance_id;
2275+
}
2276+
2277+
$res = $this->seam->request(
2278+
"POST",
2279+
"/acs/entrances/unlock",
2280+
json: (object) $request_payload,
2281+
);
2282+
2283+
if (!$wait_for_action_attempt) {
2284+
return ActionAttempt::from_json($res->action_attempt);
2285+
}
2286+
2287+
$action_attempt = $this->seam->action_attempts->poll_until_ready(
2288+
$res->action_attempt->action_attempt_id,
2289+
);
2290+
2291+
return $action_attempt;
2292+
}
22622293
}
22632294

22642295
class AcsSystemsClient

0 commit comments

Comments
 (0)