Skip to content

Commit 986ffe1

Browse files
feat(deps-dev): bump @seamapi/types from 1.673.0 to 1.677.0 in the seam group (#363)
* 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.673.0 to 1.677.0 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](seamapi/types@v1.673.0...v1.677.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.677.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 545bef1 commit 986ffe1

3 files changed

Lines changed: 37 additions & 7 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.6",
16-
"@seamapi/types": "1.673.0",
16+
"@seamapi/types": "1.677.0",
1717
"del": "^7.1.0",
1818
"prettier": "^3.0.0"
1919
}

src/SeamClient.php

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,20 +2668,38 @@ public function get(string $action_attempt_id): ActionAttempt
26682668
return ActionAttempt::from_json($res->action_attempt);
26692669
}
26702670

2671-
public function list(array $action_attempt_ids): array
2672-
{
2671+
public function list(
2672+
?array $action_attempt_ids = null,
2673+
?string $device_id = null,
2674+
mixed $limit = null,
2675+
?string $page_cursor = null,
2676+
?callable $on_response = null,
2677+
): array {
26732678
$request_payload = [];
26742679

26752680
if ($action_attempt_ids !== null) {
26762681
$request_payload["action_attempt_ids"] = $action_attempt_ids;
26772682
}
2683+
if ($device_id !== null) {
2684+
$request_payload["device_id"] = $device_id;
2685+
}
2686+
if ($limit !== null) {
2687+
$request_payload["limit"] = $limit;
2688+
}
2689+
if ($page_cursor !== null) {
2690+
$request_payload["page_cursor"] = $page_cursor;
2691+
}
26782692

26792693
$res = $this->seam->request(
26802694
"POST",
26812695
"/action_attempts/list",
26822696
json: (object) $request_payload,
26832697
);
26842698

2699+
if ($on_response !== null) {
2700+
$on_response($res);
2701+
}
2702+
26852703
return array_map(
26862704
fn($r) => ActionAttempt::from_json($r),
26872705
$res->action_attempts,
@@ -3955,8 +3973,10 @@ public function get(
39553973
public function list(
39563974
?string $access_code_id = null,
39573975
?array $access_code_ids = null,
3976+
?string $acs_entrance_id = null,
39583977
?string $acs_system_id = null,
39593978
?array $acs_system_ids = null,
3979+
?string $acs_user_id = null,
39603980
?array $between = null,
39613981
?string $connect_webview_id = null,
39623982
?string $connected_account_id = null,
@@ -3969,6 +3989,7 @@ public function list(
39693989
?float $limit = null,
39703990
?string $since = null,
39713991
?float $unstable_offset = null,
3992+
?string $user_identity_id = null,
39723993
): array {
39733994
$request_payload = [];
39743995

@@ -3978,12 +3999,18 @@ public function list(
39783999
if ($access_code_ids !== null) {
39794000
$request_payload["access_code_ids"] = $access_code_ids;
39804001
}
4002+
if ($acs_entrance_id !== null) {
4003+
$request_payload["acs_entrance_id"] = $acs_entrance_id;
4004+
}
39814005
if ($acs_system_id !== null) {
39824006
$request_payload["acs_system_id"] = $acs_system_id;
39834007
}
39844008
if ($acs_system_ids !== null) {
39854009
$request_payload["acs_system_ids"] = $acs_system_ids;
39864010
}
4011+
if ($acs_user_id !== null) {
4012+
$request_payload["acs_user_id"] = $acs_user_id;
4013+
}
39874014
if ($between !== null) {
39884015
$request_payload["between"] = $between;
39894016
}
@@ -4020,6 +4047,9 @@ public function list(
40204047
if ($unstable_offset !== null) {
40214048
$request_payload["unstable_offset"] = $unstable_offset;
40224049
}
4050+
if ($user_identity_id !== null) {
4051+
$request_payload["user_identity_id"] = $user_identity_id;
4052+
}
40234053

40244054
$res = $this->seam->request(
40254055
"POST",

0 commit comments

Comments
 (0)