Skip to content

Commit 5a8bd42

Browse files
committed
ci: Generate code
1 parent 00b4abe commit 5a8bd42

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

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)