diff --git a/package-lock.json b/package-lock.json index 4218bfd..efa063b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.6", - "@seamapi/types": "1.673.0", + "@seamapi/types": "1.677.0", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -535,9 +535,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.673.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.673.0.tgz", - "integrity": "sha512-OnqrVBIr1qgw1s7ZA9jQNbt/tV21fUmFx6aOZ2bjI6byUE0vJm7xDDLB4MTCAAUZRefXXi8xyhq2K5zs+8oXgQ==", + "version": "1.677.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.677.0.tgz", + "integrity": "sha512-TbYg+vUgphu8jNNgksjWOHvc1HXEx3vHyx7eTzDaECvjp+RlCsdES0EFgGJ535CsVUxlxfhg+fMlqiQPupPYDw==", "dev": true, "license": "MIT", "engines": { @@ -1388,9 +1388,9 @@ ] }, "node_modules/react": { - "version": "19.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz", - "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==", + "version": "19.2.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.1.tgz", + "integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==", "dev": true, "license": "MIT", "optional": true, diff --git a/package.json b/package.json index ee867cb..e049df5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.6", - "@seamapi/types": "1.673.0", + "@seamapi/types": "1.677.0", "del": "^7.1.0", "prettier": "^3.2.5" } diff --git a/seam/routes/action_attempts.py b/seam/routes/action_attempts.py index e6f36fd..9be0575 100644 --- a/seam/routes/action_attempts.py +++ b/seam/routes/action_attempts.py @@ -35,11 +35,24 @@ def get( wait_for_action_attempt=wait_for_action_attempt, ) - def list(self, *, action_attempt_ids: List[str]) -> List[ActionAttempt]: + def list( + self, + *, + action_attempt_ids: Optional[List[str]] = None, + device_id: Optional[str] = None, + limit: Optional[int] = None, + page_cursor: Optional[str] = None + ) -> List[ActionAttempt]: json_payload = {} if action_attempt_ids is not None: json_payload["action_attempt_ids"] = action_attempt_ids + if device_id is not None: + json_payload["device_id"] = device_id + if limit is not None: + json_payload["limit"] = limit + if page_cursor is not None: + json_payload["page_cursor"] = page_cursor res = self.client.post("/action_attempts/list", json=json_payload) diff --git a/seam/routes/events.py b/seam/routes/events.py index 3f21258..1f78db3 100644 --- a/seam/routes/events.py +++ b/seam/routes/events.py @@ -33,8 +33,10 @@ def list( *, access_code_id: Optional[str] = None, access_code_ids: Optional[List[str]] = None, + acs_entrance_id: Optional[str] = None, acs_system_id: Optional[str] = None, acs_system_ids: Optional[List[str]] = None, + acs_user_id: Optional[str] = None, between: Optional[List[str]] = None, connect_webview_id: Optional[str] = None, connected_account_id: Optional[str] = None, @@ -46,7 +48,8 @@ def list( event_types: Optional[List[str]] = None, limit: Optional[float] = None, since: Optional[str] = None, - unstable_offset: Optional[float] = None + unstable_offset: Optional[float] = None, + user_identity_id: Optional[str] = None ) -> List[SeamEvent]: json_payload = {} @@ -54,10 +57,14 @@ def list( json_payload["access_code_id"] = access_code_id if access_code_ids is not None: json_payload["access_code_ids"] = access_code_ids + if acs_entrance_id is not None: + json_payload["acs_entrance_id"] = acs_entrance_id if acs_system_id is not None: json_payload["acs_system_id"] = acs_system_id if acs_system_ids is not None: json_payload["acs_system_ids"] = acs_system_ids + if acs_user_id is not None: + json_payload["acs_user_id"] = acs_user_id if between is not None: json_payload["between"] = between if connect_webview_id is not None: @@ -82,6 +89,8 @@ def list( json_payload["since"] = since if unstable_offset is not None: json_payload["unstable_offset"] = unstable_offset + if user_identity_id is not None: + json_payload["user_identity_id"] = user_identity_id res = self.client.post("/events/list", json=json_payload) diff --git a/seam/routes/models.py b/seam/routes/models.py index 17e5837..2354874 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -2261,7 +2261,14 @@ def get( raise NotImplementedError() @abc.abstractmethod - def list(self, *, action_attempt_ids: List[str]) -> List[ActionAttempt]: + def list( + self, + *, + action_attempt_ids: Optional[List[str]] = None, + device_id: Optional[str] = None, + limit: Optional[int] = None, + page_cursor: Optional[str] = None + ) -> List[ActionAttempt]: raise NotImplementedError() @@ -2544,8 +2551,10 @@ def list( *, access_code_id: Optional[str] = None, access_code_ids: Optional[List[str]] = None, + acs_entrance_id: Optional[str] = None, acs_system_id: Optional[str] = None, acs_system_ids: Optional[List[str]] = None, + acs_user_id: Optional[str] = None, between: Optional[List[str]] = None, connect_webview_id: Optional[str] = None, connected_account_id: Optional[str] = None, @@ -2557,7 +2566,8 @@ def list( event_types: Optional[List[str]] = None, limit: Optional[float] = None, since: Optional[str] = None, - unstable_offset: Optional[float] = None + unstable_offset: Optional[float] = None, + user_identity_id: Optional[str] = None ) -> List[SeamEvent]: raise NotImplementedError()