diff --git a/package-lock.json b/package-lock.json index 75601cc7..9bc3830c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.19.0", - "@seamapi/types": "1.506.0", + "@seamapi/types": "1.512.0", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -475,9 +475,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.506.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.506.0.tgz", - "integrity": "sha512-8T8ABLdtcx8I7xjjvf92E1L6K6keafYDXUgyzJDQfb6/S8GCEckKTl+Jz0FKqwkq9DdEybmO0UM1L7VJHpRsMw==", + "version": "1.512.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.512.0.tgz", + "integrity": "sha512-37botkIBD5Vd4FHIpFojWVILnI5XB9q7mtWrZ5ARb5rK0WYRF6+C6qLF3eJWxnoTEXZfAOTNs20K03tkx73DKQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 9b643f08..66cdf997 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.19.0", - "@seamapi/types": "1.506.0", + "@seamapi/types": "1.512.0", "del": "^7.1.0", "prettier": "^3.2.5" } diff --git a/seam/routes/access_grants.py b/seam/routes/access_grants.py index f524617e..7126ffae 100644 --- a/seam/routes/access_grants.py +++ b/seam/routes/access_grants.py @@ -16,6 +16,7 @@ def create( user_identity: Optional[Dict[str, Any]] = None, access_grant_key: Optional[str] = None, acs_entrance_ids: Optional[List[str]] = None, + customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[str] = None, location: Optional[Dict[str, Any]] = None, @@ -37,6 +38,8 @@ def create( json_payload["access_grant_key"] = access_grant_key if acs_entrance_ids is not None: json_payload["acs_entrance_ids"] = acs_entrance_ids + if customization_profile_id is not None: + json_payload["customization_profile_id"] = customization_profile_id if device_ids is not None: json_payload["device_ids"] = device_ids if ends_at is not None: diff --git a/seam/routes/acs_entrances.py b/seam/routes/acs_entrances.py index fe4ac8e7..b341e5f5 100644 --- a/seam/routes/acs_entrances.py +++ b/seam/routes/acs_entrances.py @@ -47,6 +47,7 @@ def list( acs_entrance_ids: Optional[List[str]] = None, acs_system_id: Optional[str] = None, connected_account_id: Optional[str] = None, + customer_key: Optional[str] = None, limit: Optional[int] = None, location_id: Optional[str] = None, page_cursor: Optional[str] = None, @@ -67,6 +68,8 @@ def list( json_payload["acs_system_id"] = acs_system_id if connected_account_id is not None: json_payload["connected_account_id"] = connected_account_id + if customer_key is not None: + json_payload["customer_key"] = customer_key if limit is not None: json_payload["limit"] = limit if location_id is not None: diff --git a/seam/routes/acs_systems.py b/seam/routes/acs_systems.py index 3d450517..43364e7a 100644 --- a/seam/routes/acs_systems.py +++ b/seam/routes/acs_systems.py @@ -18,11 +18,18 @@ def get(self, *, acs_system_id: str) -> AcsSystem: return AcsSystem.from_dict(res["acs_system"]) - def list(self, *, connected_account_id: Optional[str] = None) -> List[AcsSystem]: + def list( + self, + *, + connected_account_id: Optional[str] = None, + customer_key: Optional[str] = None + ) -> List[AcsSystem]: json_payload = {} if connected_account_id is not None: json_payload["connected_account_id"] = connected_account_id + if customer_key is not None: + json_payload["customer_key"] = customer_key res = self.client.post("/acs/systems/list", json=json_payload) diff --git a/seam/routes/connect_webviews.py b/seam/routes/connect_webviews.py index b3040eac..0a142d1a 100644 --- a/seam/routes/connect_webviews.py +++ b/seam/routes/connect_webviews.py @@ -75,6 +75,7 @@ def list( self, *, custom_metadata_has: Optional[Dict[str, Any]] = None, + customer_key: Optional[str] = None, limit: Optional[float] = None, page_cursor: Optional[str] = None, user_identifier_key: Optional[str] = None @@ -83,6 +84,8 @@ def list( if custom_metadata_has is not None: json_payload["custom_metadata_has"] = custom_metadata_has + if customer_key is not None: + json_payload["customer_key"] = customer_key if limit is not None: json_payload["limit"] = limit if page_cursor is not None: diff --git a/seam/routes/devices.py b/seam/routes/devices.py index c593d021..49673b46 100644 --- a/seam/routes/devices.py +++ b/seam/routes/devices.py @@ -44,6 +44,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -73,6 +74,8 @@ def list( json_payload["custom_metadata_has"] = custom_metadata_has if customer_ids is not None: json_payload["customer_ids"] = customer_ids + if customer_key is not None: + json_payload["customer_key"] = customer_key if device_ids is not None: json_payload["device_ids"] = device_ids if device_type is not None: diff --git a/seam/routes/devices_unmanaged.py b/seam/routes/devices_unmanaged.py index 18ea48d3..1db25a51 100644 --- a/seam/routes/devices_unmanaged.py +++ b/seam/routes/devices_unmanaged.py @@ -32,6 +32,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -61,6 +62,8 @@ def list( json_payload["custom_metadata_has"] = custom_metadata_has if customer_ids is not None: json_payload["customer_ids"] = customer_ids + if customer_key is not None: + json_payload["customer_key"] = customer_key if device_ids is not None: json_payload["device_ids"] = device_ids if device_type is not None: diff --git a/seam/routes/instant_keys.py b/seam/routes/instant_keys.py index 1685138c..79db12cf 100644 --- a/seam/routes/instant_keys.py +++ b/seam/routes/instant_keys.py @@ -18,11 +18,18 @@ def delete(self, *, instant_key_id: str) -> None: return None - def get(self, *, instant_key_id: str) -> InstantKey: + def get( + self, + *, + instant_key_id: Optional[str] = None, + instant_key_url: Optional[str] = None + ) -> InstantKey: json_payload = {} if instant_key_id is not None: json_payload["instant_key_id"] = instant_key_id + if instant_key_url is not None: + json_payload["instant_key_url"] = instant_key_url res = self.client.post("/instant_keys/get", json=json_payload) diff --git a/seam/routes/locks.py b/seam/routes/locks.py index 73696270..e668f371 100644 --- a/seam/routes/locks.py +++ b/seam/routes/locks.py @@ -39,6 +39,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -68,6 +69,8 @@ def list( json_payload["custom_metadata_has"] = custom_metadata_has if customer_ids is not None: json_payload["customer_ids"] = customer_ids + if customer_key is not None: + json_payload["customer_key"] = customer_key if device_ids is not None: json_payload["device_ids"] = device_ids if device_type is not None: diff --git a/seam/routes/models.py b/seam/routes/models.py index 301a1413..e9bbe762 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -71,6 +71,7 @@ class AccessGrant: access_method_ids: List[str] client_session_token: str created_at: str + customization_profile_id: str display_name: str ends_at: str instant_key_url: str @@ -90,6 +91,7 @@ def from_dict(d: Dict[str, Any]): access_method_ids=d.get("access_method_ids", None), client_session_token=d.get("client_session_token", None), created_at=d.get("created_at", None), + customization_profile_id=d.get("customization_profile_id", None), display_name=d.get("display_name", None), ends_at=d.get("ends_at", None), instant_key_url=d.get("instant_key_url", None), @@ -109,6 +111,7 @@ class AccessMethod: client_session_token: str code: str created_at: str + customization_profile_id: str display_name: str instant_key_url: str is_encoding_required: bool @@ -124,6 +127,7 @@ def from_dict(d: Dict[str, Any]): client_session_token=d.get("client_session_token", None), code=d.get("code", None), created_at=d.get("created_at", None), + customization_profile_id=d.get("customization_profile_id", None), display_name=d.get("display_name", None), instant_key_url=d.get("instant_key_url", None), is_encoding_required=d.get("is_encoding_required", None), @@ -1599,6 +1603,7 @@ def create( user_identity: Optional[Dict[str, Any]] = None, access_grant_key: Optional[str] = None, acs_entrance_ids: Optional[List[str]] = None, + customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[str] = None, location: Optional[Dict[str, Any]] = None, @@ -1929,6 +1934,7 @@ def list( acs_entrance_ids: Optional[List[str]] = None, acs_system_id: Optional[str] = None, connected_account_id: Optional[str] = None, + customer_key: Optional[str] = None, limit: Optional[int] = None, location_id: Optional[str] = None, page_cursor: Optional[str] = None, @@ -1951,7 +1957,12 @@ def get(self, *, acs_system_id: str) -> AcsSystem: raise NotImplementedError() @abc.abstractmethod - def list(self, *, connected_account_id: Optional[str] = None) -> List[AcsSystem]: + def list( + self, + *, + connected_account_id: Optional[str] = None, + customer_key: Optional[str] = None + ) -> List[AcsSystem]: raise NotImplementedError() @abc.abstractmethod @@ -2207,6 +2218,7 @@ def list( self, *, custom_metadata_has: Optional[Dict[str, Any]] = None, + customer_key: Optional[str] = None, limit: Optional[float] = None, page_cursor: Optional[str] = None, user_identifier_key: Optional[str] = None @@ -2359,6 +2371,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -2422,7 +2435,12 @@ def delete(self, *, instant_key_id: str) -> None: raise NotImplementedError() @abc.abstractmethod - def get(self, *, instant_key_id: str) -> InstantKey: + def get( + self, + *, + instant_key_id: Optional[str] = None, + instant_key_url: Optional[str] = None + ) -> InstantKey: raise NotImplementedError() @abc.abstractmethod @@ -2864,6 +2882,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -3103,6 +3122,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -3160,6 +3180,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -3275,6 +3296,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, diff --git a/seam/routes/noise_sensors.py b/seam/routes/noise_sensors.py index fd50a4fb..6427695d 100644 --- a/seam/routes/noise_sensors.py +++ b/seam/routes/noise_sensors.py @@ -32,6 +32,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -61,6 +62,8 @@ def list( json_payload["custom_metadata_has"] = custom_metadata_has if customer_ids is not None: json_payload["customer_ids"] = customer_ids + if customer_key is not None: + json_payload["customer_key"] = customer_key if device_ids is not None: json_payload["device_ids"] = device_ids if device_type is not None: diff --git a/seam/routes/thermostats.py b/seam/routes/thermostats.py index 97e090f6..c48229f1 100644 --- a/seam/routes/thermostats.py +++ b/seam/routes/thermostats.py @@ -236,6 +236,7 @@ def list( created_before: Optional[str] = None, custom_metadata_has: Optional[Dict[str, Any]] = None, customer_ids: Optional[List[str]] = None, + customer_key: Optional[str] = None, device_ids: Optional[List[str]] = None, device_type: Optional[str] = None, device_types: Optional[List[str]] = None, @@ -265,6 +266,8 @@ def list( json_payload["custom_metadata_has"] = custom_metadata_has if customer_ids is not None: json_payload["customer_ids"] = customer_ids + if customer_key is not None: + json_payload["customer_key"] = customer_key if device_ids is not None: json_payload["device_ids"] = device_ids if device_type is not None: