Skip to content

Commit e61bffb

Browse files
feat(deps-dev): Bump @seamapi/types from 1.582.0 to 1.586.0 in the seam group (#327)
* 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.582.0 to 1.586.0 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](seamapi/types@v1.582.0...v1.586.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.586.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 8e91d3e commit e61bffb

File tree

3 files changed

+153
-8
lines changed

3 files changed

+153
-8
lines changed

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.1",
16-
"@seamapi/types": "1.582.0",
16+
"@seamapi/types": "1.586.0",
1717
"del": "^7.1.0",
1818
"prettier": "^3.0.0"
1919
}

src/SeamClient.php

Lines changed: 148 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,10 +876,11 @@ public function update(
876876
class AccessGrantsClient
877877
{
878878
private SeamClient $seam;
879-
879+
public AccessGrantsUnmanagedClient $unmanaged;
880880
public function __construct(SeamClient $seam)
881881
{
882882
$this->seam = $seam;
883+
$this->unmanaged = new AccessGrantsUnmanagedClient($seam);
883884
}
884885

885886
public function create(
@@ -1091,7 +1092,7 @@ public function update(
10911092
}
10921093
}
10931094

1094-
class AccessMethodsClient
1095+
class AccessGrantsUnmanagedClient
10951096
{
10961097
private SeamClient $seam;
10971098

@@ -1100,6 +1101,56 @@ public function __construct(SeamClient $seam)
11001101
$this->seam = $seam;
11011102
}
11021103

1104+
public function get(string $access_grant_id): void
1105+
{
1106+
$request_payload = [];
1107+
1108+
if ($access_grant_id !== null) {
1109+
$request_payload["access_grant_id"] = $access_grant_id;
1110+
}
1111+
1112+
$this->seam->request(
1113+
"POST",
1114+
"/access_grants/unmanaged/get",
1115+
json: (object) $request_payload,
1116+
);
1117+
}
1118+
1119+
public function list(
1120+
?string $acs_entrance_id = null,
1121+
?string $acs_system_id = null,
1122+
?string $user_identity_id = null,
1123+
): void {
1124+
$request_payload = [];
1125+
1126+
if ($acs_entrance_id !== null) {
1127+
$request_payload["acs_entrance_id"] = $acs_entrance_id;
1128+
}
1129+
if ($acs_system_id !== null) {
1130+
$request_payload["acs_system_id"] = $acs_system_id;
1131+
}
1132+
if ($user_identity_id !== null) {
1133+
$request_payload["user_identity_id"] = $user_identity_id;
1134+
}
1135+
1136+
$this->seam->request(
1137+
"POST",
1138+
"/access_grants/unmanaged/list",
1139+
json: (object) $request_payload,
1140+
);
1141+
}
1142+
}
1143+
1144+
class AccessMethodsClient
1145+
{
1146+
private SeamClient $seam;
1147+
public AccessMethodsUnmanagedClient $unmanaged;
1148+
public function __construct(SeamClient $seam)
1149+
{
1150+
$this->seam = $seam;
1151+
$this->unmanaged = new AccessMethodsUnmanagedClient($seam);
1152+
}
1153+
11031154
public function delete(string $access_method_id): void
11041155
{
11051156
$request_payload = [];
@@ -1221,6 +1272,59 @@ public function list(
12211272
}
12221273
}
12231274

1275+
class AccessMethodsUnmanagedClient
1276+
{
1277+
private SeamClient $seam;
1278+
1279+
public function __construct(SeamClient $seam)
1280+
{
1281+
$this->seam = $seam;
1282+
}
1283+
1284+
public function get(string $access_method_id): void
1285+
{
1286+
$request_payload = [];
1287+
1288+
if ($access_method_id !== null) {
1289+
$request_payload["access_method_id"] = $access_method_id;
1290+
}
1291+
1292+
$this->seam->request(
1293+
"POST",
1294+
"/access_methods/unmanaged/get",
1295+
json: (object) $request_payload,
1296+
);
1297+
}
1298+
1299+
public function list(
1300+
string $access_grant_id,
1301+
?string $acs_entrance_id = null,
1302+
?string $device_id = null,
1303+
?string $space_id = null,
1304+
): void {
1305+
$request_payload = [];
1306+
1307+
if ($access_grant_id !== null) {
1308+
$request_payload["access_grant_id"] = $access_grant_id;
1309+
}
1310+
if ($acs_entrance_id !== null) {
1311+
$request_payload["acs_entrance_id"] = $acs_entrance_id;
1312+
}
1313+
if ($device_id !== null) {
1314+
$request_payload["device_id"] = $device_id;
1315+
}
1316+
if ($space_id !== null) {
1317+
$request_payload["space_id"] = $space_id;
1318+
}
1319+
1320+
$this->seam->request(
1321+
"POST",
1322+
"/access_methods/unmanaged/list",
1323+
json: (object) $request_payload,
1324+
);
1325+
}
1326+
}
1327+
12241328
class AcsAccessGroupsClient
12251329
{
12261330
private SeamClient $seam;
@@ -5759,10 +5863,11 @@ public function temperature_reached(
57595863
class UserIdentitiesClient
57605864
{
57615865
private SeamClient $seam;
5762-
5866+
public UserIdentitiesUnmanagedClient $unmanaged;
57635867
public function __construct(SeamClient $seam)
57645868
{
57655869
$this->seam = $seam;
5870+
$this->unmanaged = new UserIdentitiesUnmanagedClient($seam);
57665871
}
57675872

57685873
public function add_acs_user(
@@ -6059,6 +6164,46 @@ public function update(
60596164
}
60606165
}
60616166

6167+
class UserIdentitiesUnmanagedClient
6168+
{
6169+
private SeamClient $seam;
6170+
6171+
public function __construct(SeamClient $seam)
6172+
{
6173+
$this->seam = $seam;
6174+
}
6175+
6176+
public function get(string $user_identity_id): void
6177+
{
6178+
$request_payload = [];
6179+
6180+
if ($user_identity_id !== null) {
6181+
$request_payload["user_identity_id"] = $user_identity_id;
6182+
}
6183+
6184+
$this->seam->request(
6185+
"POST",
6186+
"/user_identities/unmanaged/get",
6187+
json: (object) $request_payload,
6188+
);
6189+
}
6190+
6191+
public function list(?string $search = null): void
6192+
{
6193+
$request_payload = [];
6194+
6195+
if ($search !== null) {
6196+
$request_payload["search"] = $search;
6197+
}
6198+
6199+
$this->seam->request(
6200+
"POST",
6201+
"/user_identities/unmanaged/list",
6202+
json: (object) $request_payload,
6203+
);
6204+
}
6205+
}
6206+
60626207
class WebhooksClient
60636208
{
60646209
private SeamClient $seam;

0 commit comments

Comments
 (0)