Skip to content

feat(deps-dev): Bump @seamapi/types from 1.384.0 to 1.385.0 in the seam group #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@prettier/plugin-php": "^0.22.1",
"@seamapi/nextlove-sdk-generator": "1.18.1",
"@seamapi/types": "1.384.0",
"@seamapi/types": "1.385.0",
"del": "^7.1.0",
"prettier": "^3.0.0"
}
Expand Down
40 changes: 40 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class SeamClient
public NetworksClient $networks;
public NoiseSensorsClient $noise_sensors;
public PhonesClient $phones;
public SeamClient $seam;
public ThermostatsClient $thermostats;
public UserIdentitiesClient $user_identities;
public WebhooksClient $webhooks;
Expand Down Expand Up @@ -101,6 +102,7 @@ public function __construct(
$this->networks = new NetworksClient($this);
$this->noise_sensors = new NoiseSensorsClient($this);
$this->phones = new PhonesClient($this);
$this->seam = new SeamClient($this);
$this->thermostats = new ThermostatsClient($this);
$this->user_identities = new UserIdentitiesClient($this);
$this->webhooks = new WebhooksClient($this);
Expand Down Expand Up @@ -3417,6 +3419,44 @@ public function create_sandbox_phone(
}
}

class SeamInstantKeyV1ClientSessionsClient
{
private SeamClient $seam;

public function __construct(SeamClient $seam)
{
$this->seam = $seam;
}

public function exchange_short_code(string $short_code): ClientSession
{
$request_payload = [];

if ($short_code !== null) {
$request_payload["short_code"] = $short_code;
}

$res = $this->seam->request(
"POST",
"/seam/instant_key/v1/client_sessions/exchange_short_code",
json: (object) $request_payload
);

return ClientSession::from_json($res->client_session);
}
}

class SeamClient
{
private SeamClient $seam;
public SeamInstantKeyClient $instant_key;
public function __construct(SeamClient $seam)
{
$this->seam = $seam;
$this->instant_key = new SeamInstantKeyClient($seam);
}
}

class ThermostatsClient
{
private SeamClient $seam;
Expand Down
Loading