diff --git a/package-lock.json b/package-lock.json index 7582642..e0790ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.8", - "@seamapi/types": "1.752.0", + "@seamapi/types": "1.757.0", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -535,9 +535,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.752.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.752.0.tgz", - "integrity": "sha512-xlnEGoW5Zz+dkZ0JPJXUEb8l1vtgagmzREF1uOPGvYu8bBss3sd7rKd4j8cAmxj8LkBiVW3vnByr3pMl0gWcIA==", + "version": "1.757.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.757.0.tgz", + "integrity": "sha512-RbD8OMCThGt4uG04dW/xWSoiGxtvj9p02mOAviihYSiJ4AbTdlfW9A2KoeDgZelHVnwH6OLTLIcmiZBJFfkPww==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 067976a..c60fb39 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.8", - "@seamapi/types": "1.752.0", + "@seamapi/types": "1.757.0", "del": "^7.1.0", "prettier": "^3.2.5" } diff --git a/seam/routes/access_codes.py b/seam/routes/access_codes.py index d62946f..6066a70 100644 --- a/seam/routes/access_codes.py +++ b/seam/routes/access_codes.py @@ -212,6 +212,7 @@ def list( self, *, access_code_ids: Optional[List[str]] = None, + access_method_id: Optional[str] = None, customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None, @@ -223,6 +224,8 @@ def list( if access_code_ids is not None: json_payload["access_code_ids"] = access_code_ids + if access_method_id is not None: + json_payload["access_method_id"] = access_method_id if customer_key is not None: json_payload["customer_key"] = customer_key if device_id is not None: diff --git a/seam/routes/access_methods.py b/seam/routes/access_methods.py index 463a2e5..6731f2f 100644 --- a/seam/routes/access_methods.py +++ b/seam/routes/access_methods.py @@ -96,7 +96,8 @@ def get_related( def list( self, *, - access_grant_id: str, + access_grant_id: Optional[str] = None, + access_grant_key: Optional[str] = None, acs_entrance_id: Optional[str] = None, device_id: Optional[str] = None, space_id: Optional[str] = None @@ -105,6 +106,8 @@ def list( if access_grant_id is not None: json_payload["access_grant_id"] = access_grant_id + if access_grant_key is not None: + json_payload["access_grant_key"] = access_grant_key if acs_entrance_id is not None: json_payload["acs_entrance_id"] = acs_entrance_id if device_id is not None: diff --git a/seam/routes/models.py b/seam/routes/models.py index 773e99e..b14c155 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -128,6 +128,7 @@ class AccessMethod: instant_key_url: str is_encoding_required: bool is_issued: bool + is_ready_for_encoding: bool issued_at: str mode: str pending_mutations: List[Dict[str, Any]] @@ -146,6 +147,7 @@ def from_dict(d: Dict[str, Any]): instant_key_url=d.get("instant_key_url", None), is_encoding_required=d.get("is_encoding_required", None), is_issued=d.get("is_issued", None), + is_ready_for_encoding=d.get("is_ready_for_encoding", None), issued_at=d.get("issued_at", None), mode=d.get("mode", None), pending_mutations=d.get("pending_mutations", None), @@ -3123,7 +3125,8 @@ def get_related( def list( self, *, - access_grant_id: str, + access_grant_id: Optional[str] = None, + access_grant_key: Optional[str] = None, acs_entrance_id: Optional[str] = None, device_id: Optional[str] = None, space_id: Optional[str] = None @@ -3538,6 +3541,7 @@ def list( self, *, access_code_ids: Optional[List[str]] = None, + access_method_id: Optional[str] = None, customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None,