From 5df34465ca0bd9d31484f34261f992ff5d9f86a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:55:40 +0000 Subject: [PATCH 1/2] 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.292.0 to 1.292.2 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.292.0...v1.292.2) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8b7fd78..b787970 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.72.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.0", + "@seamapi/types": "1.292.2", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -473,9 +473,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.292.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.292.0.tgz", - "integrity": "sha512-fWWsddGkpJHfea7Idz9kaShazegnESuu1gXEdUkCQGuM6Pebvva4GfcuZiDH8iSHBvVOV72g8TrAfxCOEZunVQ==", + "version": "1.292.2", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.292.2.tgz", + "integrity": "sha512-mOCFatzYy89uzu4IEV3kFoPz5SCVd3w2TMC0G3hVrzxL3PYFRnuUa4LNKMsd583prDgoh6rmEHhKEAICqibXFQ==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 9b71692..75e9286 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.72.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.0", + "@seamapi/types": "1.292.2", "del": "^7.1.0", "prettier": "^3.2.5" } From 8010c89ee7c740276262e38950fa1abce3d09b3f Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 11 Nov 2024 09:56:15 +0000 Subject: [PATCH 2/2] ci: Generate code --- seam/routes/acs_encoders.py | 26 +++++++++++++------------- seam/routes/models.py | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/seam/routes/acs_encoders.py b/seam/routes/acs_encoders.py index 99dc4cc..93506fc 100644 --- a/seam/routes/acs_encoders.py +++ b/seam/routes/acs_encoders.py @@ -1,6 +1,6 @@ from typing import Optional, Any, List, Dict, Union from ..client import SeamHttpClient -from .models import AbstractAcsEncoders, ActionAttempt, Device +from .models import AbstractAcsEncoders, ActionAttempt from ..modules.action_attempts import resolve_action_attempt @@ -14,15 +14,15 @@ def encode_credential( self, *, acs_credential_id: str, - device_id: str, + acs_encoder_id: str, wait_for_action_attempt: Optional[Union[bool, Dict[str, float]]] = None ) -> ActionAttempt: json_payload = {} if acs_credential_id is not None: json_payload["acs_credential_id"] = acs_credential_id - if device_id is not None: - json_payload["device_id"] = device_id + if acs_encoder_id is not None: + json_payload["acs_encoder_id"] = acs_encoder_id res = self.client.post("/acs/encoders/encode_credential", json=json_payload) @@ -41,36 +41,36 @@ def encode_credential( def list( self, *, + acs_encoder_ids: Optional[List[str]] = None, acs_system_ids: Optional[List[str]] = None, - device_ids: Optional[List[str]] = None, limit: Optional[float] = None - ) -> List[Device]: + ) -> None: json_payload = {} + if acs_encoder_ids is not None: + json_payload["acs_encoder_ids"] = acs_encoder_ids if acs_system_ids is not None: json_payload["acs_system_ids"] = acs_system_ids - if device_ids is not None: - json_payload["device_ids"] = device_ids if limit is not None: json_payload["limit"] = limit - res = self.client.post("/acs/encoders/list", json=json_payload) + self.client.post("/acs/encoders/list", json=json_payload) - return [Device.from_dict(item) for item in res["devices"]] + return None def scan_credential( self, *, + acs_encoder_id: str, acs_system_id: str, - device_id: str, wait_for_action_attempt: Optional[Union[bool, Dict[str, float]]] = None ) -> ActionAttempt: json_payload = {} + if acs_encoder_id is not None: + json_payload["acs_encoder_id"] = acs_encoder_id if acs_system_id is not None: json_payload["acs_system_id"] = acs_system_id - if device_id is not None: - json_payload["device_id"] = device_id res = self.client.post("/acs/encoders/scan_credential", json=json_payload) diff --git a/seam/routes/models.py b/seam/routes/models.py index 93e964c..f3a1cb5 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -1162,7 +1162,7 @@ def encode_credential( self, *, acs_credential_id: str, - device_id: str, + acs_encoder_id: str, wait_for_action_attempt: Optional[Union[bool, Dict[str, float]]] = None ) -> ActionAttempt: raise NotImplementedError() @@ -1171,18 +1171,18 @@ def encode_credential( def list( self, *, + acs_encoder_ids: Optional[List[str]] = None, acs_system_ids: Optional[List[str]] = None, - device_ids: Optional[List[str]] = None, limit: Optional[float] = None - ) -> List[Device]: + ) -> None: raise NotImplementedError() @abc.abstractmethod def scan_credential( self, *, + acs_encoder_id: str, acs_system_id: str, - device_id: str, wait_for_action_attempt: Optional[Union[bool, Dict[str, float]]] = None ) -> ActionAttempt: raise NotImplementedError()