From 6a76dd1c9e4e895f49f3e98fe366822ce84055db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 09:56:26 +0000 Subject: [PATCH 1/2] feat(deps-dev): bump the seam group with 3 updates Bumps the seam group with 3 updates: [@seamapi/blueprint](https://github.com/seamapi/blueprint), [@seamapi/fake-seam-connect](https://github.com/seamapi/fake-seam-connect) and [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/blueprint` from 1.13.2 to 1.13.3 - [Release notes](https://github.com/seamapi/blueprint/releases) - [Commits](https://github.com/seamapi/blueprint/compare/v1.13.2...v1.13.3) Updates `@seamapi/fake-seam-connect` from 2.0.6 to 2.0.8 - [Release notes](https://github.com/seamapi/fake-seam-connect/releases) - [Commits](https://github.com/seamapi/fake-seam-connect/compare/v2.0.6...v2.0.8) Updates `@seamapi/types` from 1.1187.0 to 1.1202.0 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](https://github.com/seamapi/types/compare/v1.1187.0...v1.1202.0) --- updated-dependencies: - dependency-name: "@seamapi/blueprint" dependency-version: 1.13.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: seam - dependency-name: "@seamapi/fake-seam-connect" dependency-version: 2.0.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: seam - dependency-name: "@seamapi/types" dependency-version: 1.1202.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 24 ++++++++++++------------ package.json | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2b0ade77..b33caa4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,10 +6,10 @@ "": { "name": "@seamapi/python", "devDependencies": { - "@seamapi/blueprint": "^1.13.2", - "@seamapi/fake-seam-connect": "2.0.6", + "@seamapi/blueprint": "^1.13.3", + "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1187.0", + "@seamapi/types": "1.1202.0", "change-case": "^5.4.4", "prettier": "^3.2.5" }, @@ -787,9 +787,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.2.tgz", - "integrity": "sha512-FS8zYX01P/eCXcZDUp+dOY3b34tjDmKj6TR1gE8P7IE8Fc7Q9Sr57yUBDv+OKhPIpMifDkr6+0G+A/ej/nIDTw==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.3.tgz", + "integrity": "sha512-OuYxF4b8r5cEjgsfNyfAucfbaDlTwiWbXSxhh4Fjic04KhcYhiPxGc9PplNVkWLyFJTXi1yOmZJgO/koJuOK4w==", "dev": true, "license": "MIT", "dependencies": { @@ -802,9 +802,9 @@ } }, "node_modules/@seamapi/fake-seam-connect": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-2.0.6.tgz", - "integrity": "sha512-lwesSVm0AhQ57QuV52iGTI2qkK++phcY0K/xkalsUWdbwyPK4cj2VfJuW3yes32HuTaXkwPWlT9lrIhLJzZOnQ==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-2.0.8.tgz", + "integrity": "sha512-6/yvddZfoTQKoB90uSLINY9pdYdTLlVAhtiUhf3AyRUwgk3bTwAvfs8dowtyk2q8LjO+3LlHw38YS1BifHck8Q==", "dev": true, "license": "MIT", "bin": { @@ -853,9 +853,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1187.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1187.0.tgz", - "integrity": "sha512-QTLGjfOyXxRMw5Mz9HcIadTQLyFCUNBsvDjeUgDgB9hfbw/cB3x07RyZnxc90QzIz0yz0o0auORXmqPM7vF+4w==", + "version": "1.1202.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1202.0.tgz", + "integrity": "sha512-bGleWcL4I7s36sn6TjrCRd6c0P7C0Ikt0dA9IJ6M8mBQn/IihUDigWggBkDfk8Yx8Dqilx1WN5JBMF1cd1pUrQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index caf7f998..ddc4dba8 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,10 @@ }, "packageManager": "npm@11.19.0", "devDependencies": { - "@seamapi/blueprint": "^1.13.2", - "@seamapi/fake-seam-connect": "2.0.6", + "@seamapi/blueprint": "^1.13.3", + "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1187.0", + "@seamapi/types": "1.1202.0", "change-case": "^5.4.4", "prettier": "^3.2.5" } From b7848d62ab488dbf9616b61b589933b7254ff917 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 16 Nov 2026 09:57:52 +0000 Subject: [PATCH 2/2] ci: Generate code --- seam/resources/__init__.py | 1 - seam/resources/access_grant.py | 4 - seam/resources/acs_access_group.py | 21 - seam/resources/acs_system.py | 63 ++- seam/resources/acs_user.py | 4 - seam/resources/client_session.py | 4 - seam/resources/connect_webview.py | 8 +- seam/resources/connected_account.py | 47 +-- seam/resources/device.py | 511 ++++++++--------------- seam/resources/device_provider.py | 3 + seam/resources/phone.py | 50 +++ seam/resources/seam_event.py | 66 +-- seam/resources/unmanaged_access_grant.py | 4 - seam/resources/unmanaged_device.py | 100 +++-- seam/resources/workspace.py | 4 - seam/routes/access_codes.py | 16 - seam/routes/access_grants.py | 48 --- seam/routes/acs_entrances.py | 16 - seam/routes/acs_users.py | 34 -- seam/routes/client_sessions.py | 50 --- seam/routes/connect_webviews.py | 16 + seam/routes/connected_accounts.py | 4 + seam/routes/customers.py | 16 - seam/routes/devices.py | 60 ++- seam/routes/devices_unmanaged.py | 44 ++ seam/routes/locks.py | 12 + seam/routes/spaces.py | 16 + seam/routes/thermostats.py | 72 ++-- seam/routes/workspaces.py | 84 ---- 29 files changed, 501 insertions(+), 877 deletions(-) diff --git a/seam/resources/__init__.py b/seam/resources/__init__.py index 612cadb1..76424651 100644 --- a/seam/resources/__init__.py +++ b/seam/resources/__init__.py @@ -174,7 +174,6 @@ ClientSessionDeletedEvent, ConnectedAccountConnectedEvent, ConnectedAccountCreatedEvent, - ConnectedAccountSuccessfulLoginEvent, ConnectedAccountDisconnectedEvent, ConnectedAccountCompletedFirstSyncEvent, ConnectedAccountDeletedEvent, diff --git a/seam/resources/access_grant.py b/seam/resources/access_grant.py index 3021003a..d34fe83a 100644 --- a/seam/resources/access_grant.py +++ b/seam/resources/access_grant.py @@ -37,8 +37,6 @@ class AccessGrant: :ivar instant_key_url: Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. - :ivar location_ids: Deprecated: Use ``space_ids``. - :ivar name: Name of the Access Grant. If not provided, the display name will be computed. :ivar pending_mutations: List of pending mutations for the access grant. This shows updates that are in progress. @@ -579,7 +577,6 @@ def from_dict(cls, d: Any): ends_at: Optional[str] errors: List[Errors] instant_key_url: Optional[str] - location_ids: List[str] name: Optional[str] pending_mutations: List[PendingMutations] requested_access_methods: List[RequestedAccessMethods] @@ -607,7 +604,6 @@ def from_dict(cls, d: Any): for i in d.get("errors") or [] ], instant_key_url=d.get("instant_key_url", None), - location_ids=d.get("location_ids", None), name=d.get("name", None), pending_mutations=[ _from_discriminated_dict( diff --git a/seam/resources/acs_access_group.py b/seam/resources/acs_access_group.py index 20ea9da5..7dafb57c 100644 --- a/seam/resources/acs_access_group.py +++ b/seam/resources/acs_access_group.py @@ -19,10 +19,6 @@ class AcsAccessGroup: To learn whether your access control system supports access groups, see the corresponding `system integration guide `_. - :ivar access_group_type: Deprecated: Use ``external_type``. - - :ivar access_group_type_display_name: Deprecated: Use ``external_type_display_name``. - :ivar access_schedule: ``starts_at`` and ``ends_at`` timestamps for the access group's access. :ivar acs_access_group_id: ID of the access group. @@ -498,19 +494,6 @@ def from_dict(cls, d: Any): "deferring_user_membership_update": DeferringUserMembershipUpdatePendingMutation, } - access_group_type: Literal[ - "pti_unit", - "pti_access_level", - "salto_ks_access_group", - "brivo_group", - "salto_space_group", - "dormakaba_community_access_group", - "dormakaba_ambiance_access_group", - "avigilon_alta_group", - "kisi_access_group", - "akiles_member_group", - ] - access_group_type_display_name: str access_schedule: Optional[AccessSchedule] acs_access_group_id: str acs_system_id: str @@ -540,10 +523,6 @@ def from_dict(cls, d: Any): @classmethod def from_dict(cls, d: Any): return cls( - access_group_type=d.get("access_group_type", None), - access_group_type_display_name=d.get( - "access_group_type_display_name", None - ), access_schedule=( cls.AccessSchedule.from_dict(d.get("access_schedule")) if d.get("access_schedule") is not None diff --git a/seam/resources/acs_system.py b/seam/resources/acs_system.py index 3af7551a..0115ebb5 100644 --- a/seam/resources/acs_system.py +++ b/seam/resources/acs_system.py @@ -27,8 +27,6 @@ class AcsSystem: :ivar connected_account_id: ID of the connected account associated with the `access control system `_. - :ivar connected_account_ids: Deprecated: Use ``connected_account_id``. IDs of the `connected accounts `_ associated with the `access control system `_. - :ivar created_at: Date and time at which the `access control system `_ was created. :ivar default_credential_manager_acs_system_id: ID of the default credential manager ``acs_system`` for this `access control system `_. @@ -49,10 +47,6 @@ class AcsSystem: :ivar name: Name of the `access control system `_. - :ivar system_type: Deprecated: Use ``external_type``. - - :ivar system_type_display_name: Deprecated: Use ``external_type_display_name``. - :ivar visionline_metadata: Visionline-specific metadata for the `access control system `_. :ivar warnings: Warnings associated with the `access control system `_. @@ -360,6 +354,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class SaltoKsCustomPinsNotSupportedWarning(ResourceMapping): + """Indicates that the Salto KS site does not accept custom PIN codes, either because its Salto subscription does not include the Custom PIN feature or because Custom PIN is turned off in the site's settings. Salto KS generates every PIN on the site, so a PIN code requested on an access grant or reservation is replaced with a Salto-generated one. The message says which of the two applies. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["salto_ks_custom_pins_not_supported"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class TimeZoneDoesNotMatchLocationWarning(ResourceMapping): """Indicates the `access control system `_ time zone could not be determined because the reported physical location does not match the time zone configured on the physical `ACS entrances `_. @@ -368,14 +385,11 @@ class TimeZoneDoesNotMatchLocationWarning(ResourceMapping): :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. - :ivar misconfigured_acs_entrance_ids: Deprecated: this field is deprecated. - :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. """ created_at: str message: str - misconfigured_acs_entrance_ids: Optional[List[str]] warning_code: Literal["time_zone_does_not_match_location"] @classmethod @@ -383,9 +397,6 @@ def from_dict(cls, d: Any): return cls( created_at=d.get("created_at", None), message=d.get("message", None), - misconfigured_acs_entrance_ids=d.get( - "misconfigured_acs_entrance_ids", None - ), warning_code=d.get("warning_code", None), ) @@ -462,12 +473,14 @@ def from_dict(cls, d: Any): Warnings = Union[ SaltoKsSubscriptionLimitAlmostReachedWarning, + SaltoKsCustomPinsNotSupportedWarning, TimeZoneDoesNotMatchLocationWarning, SetupRequiredWarning, UnknownIssueWithAcsSystemWarning, ] _WarningsVariants = { "salto_ks_subscription_limit_almost_reached": SaltoKsSubscriptionLimitAlmostReachedWarning, + "salto_ks_custom_pins_not_supported": SaltoKsCustomPinsNotSupportedWarning, "time_zone_does_not_match_location": TimeZoneDoesNotMatchLocationWarning, "setup_required": SetupRequiredWarning, "unknown_issue_with_acs_system": UnknownIssueWithAcsSystemWarning, @@ -477,7 +490,6 @@ def from_dict(cls, d: Any): acs_system_id: str acs_user_count: Optional[float] connected_account_id: str - connected_account_ids: List[str] created_at: str default_credential_manager_acs_system_id: Optional[str] errors: List[Errors] @@ -508,28 +520,6 @@ def from_dict(cls, d: Any): is_credential_manager: bool location: Optional[Location] name: str - system_type: Optional[ - Literal[ - "pti_site", - "avigilon_alta_org", - "salto_ks_site", - "salto_space_system", - "brivo_account", - "hid_credential_manager_organization", - "visionline_system", - "assa_abloy_credential_service", - "latch_building", - "dormakaba_community_site", - "dormakaba_ambiance_site", - "legic_connect_credential_service", - "assa_abloy_vostio", - "assa_abloy_vostio_credential_service", - "hotek_site", - "kisi_organization", - "akiles_organization", - ] - ] - system_type_display_name: Optional[str] visionline_metadata: Optional[VisionlineMetadata] warnings: List[Warnings] workspace_id: str @@ -541,7 +531,6 @@ def from_dict(cls, d: Any): acs_system_id=d.get("acs_system_id", None), acs_user_count=d.get("acs_user_count", None), connected_account_id=d.get("connected_account_id", None), - connected_account_ids=d.get("connected_account_ids", None), created_at=d.get("created_at", None), default_credential_manager_acs_system_id=d.get( "default_credential_manager_acs_system_id", None @@ -561,8 +550,6 @@ def from_dict(cls, d: Any): else None ), name=d.get("name", None), - system_type=d.get("system_type", None), - system_type_display_name=d.get("system_type_display_name", None), visionline_metadata=( cls.VisionlineMetadata.from_dict(d.get("visionline_metadata")) if d.get("visionline_metadata") is not None diff --git a/seam/resources/acs_user.py b/seam/resources/acs_user.py index 01917fd2..1730200a 100644 --- a/seam/resources/acs_user.py +++ b/seam/resources/acs_user.py @@ -31,8 +31,6 @@ class AcsUser: :ivar display_name: Display name for the `access system user `_. - :ivar email: Deprecated: use email_address. - :ivar email_address: Email address of the `access system user `_. :ivar errors: Errors associated with the `access system user `_. @@ -868,7 +866,6 @@ def from_dict(cls, d: Any): connected_account_id: str created_at: str display_name: str - email: Optional[str] email_address: Optional[str] errors: List[Errors] external_type: Optional[ @@ -913,7 +910,6 @@ def from_dict(cls, d: Any): connected_account_id=d.get("connected_account_id", None), created_at=d.get("created_at", None), display_name=d.get("display_name", None), - email=d.get("email", None), email_address=d.get("email_address", None), errors=[ _from_discriminated_dict(i, cls._ErrorsVariants, "error_code") diff --git a/seam/resources/client_session.py b/seam/resources/client_session.py index 1d95477d..ac4b8446 100644 --- a/seam/resources/client_session.py +++ b/seam/resources/client_session.py @@ -36,8 +36,6 @@ class ClientSession: :ivar user_identity_id: ID of the `user identity `_ associated with the client session. - :ivar user_identity_ids: Deprecated: Use ``user_identity_id`` instead. IDs of the `user identities `_ associated with the client session. - :ivar workspace_id: ID of the workspace associated with the client session.""" client_session_id: str @@ -50,7 +48,6 @@ class ClientSession: token: str user_identifier_key: Optional[str] user_identity_id: Optional[str] - user_identity_ids: List[str] workspace_id: str @classmethod @@ -66,6 +63,5 @@ def from_dict(cls, d: Any): token=d.get("token", None), user_identifier_key=d.get("user_identifier_key", None), user_identity_id=d.get("user_identity_id", None), - user_identity_ids=d.get("user_identity_ids", None), workspace_id=d.get("workspace_id", None), ) diff --git a/seam/resources/connect_webview.py b/seam/resources/connect_webview.py index 49dc8d17..25947661 100644 --- a/seam/resources/connect_webview.py +++ b/seam/resources/connect_webview.py @@ -58,7 +58,13 @@ class ConnectWebview: accepted_capabilities: List[ Literal[ - "lock", "thermostat", "noise_sensor", "access_control", "camera", "speaker" + "lock", + "thermostat", + "noise_sensor", + "access_control", + "camera", + "speaker", + "pool", ] ] accepted_providers: List[str] diff --git a/seam/resources/connected_account.py b/seam/resources/connected_account.py index d2243bb3..4d88bc22 100644 --- a/seam/resources/connected_account.py +++ b/seam/resources/connected_account.py @@ -47,8 +47,6 @@ class ConnectedAccount: :ivar time_zone: IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. - :ivar user_identifier: Deprecated: Use ``display_name`` instead. User identifier associated with the connected account. - :ivar warnings: Warnings associated with the connected account.""" @dataclass @@ -229,37 +227,6 @@ def from_dict(cls, d: Any): message=d.get("message", None), ) - @dataclass - class UserIdentifier(ResourceMapping): - """User identifier associated with the connected account. - - :ivar api_url: API URL for the user identifier associated with the connected account. - - :ivar email: Email address of the user identifier associated with the connected account. - - :ivar exclusive: Indicates whether the user identifier associated with the connected account is exclusive. - - :ivar phone: Phone number of the user identifier associated with the connected account. - - :ivar username: Username of the user identifier associated with the connected account. - """ - - api_url: Optional[str] - email: Optional[str] - exclusive: Optional[bool] - phone: Optional[str] - username: Optional[str] - - @classmethod - def from_dict(cls, d: Any): - return cls( - api_url=d.get("api_url", None), - email=d.get("email", None), - exclusive=d.get("exclusive", None), - phone=d.get("phone", None), - username=d.get("username", None), - ) - @dataclass class ScheduledMaintenanceWindowWarning(ResourceMapping): """Indicates that scheduled downtime is planned for the connected account. @@ -534,7 +501,13 @@ def from_dict(cls, d: Any): accepted_capabilities: List[ Literal[ - "lock", "thermostat", "noise_sensor", "access_control", "camera", "speaker" + "lock", + "thermostat", + "noise_sensor", + "access_control", + "camera", + "speaker", + "pool", ] ] account_type: Optional[str] @@ -552,7 +525,6 @@ def from_dict(cls, d: Any): ical_url: Optional[str] image_url: Optional[str] time_zone: Optional[str] - user_identifier: Optional[UserIdentifier] warnings: List[Warnings] @classmethod @@ -579,11 +551,6 @@ def from_dict(cls, d: Any): ical_url=d.get("ical_url", None), image_url=d.get("image_url", None), time_zone=d.get("time_zone", None), - user_identifier=( - cls.UserIdentifier.from_dict(d.get("user_identifier")) - if d.get("user_identifier") is not None - else None - ), warnings=[ _from_discriminated_dict(i, cls._WarningsVariants, "warning_code") for i in d.get("warnings") or [] diff --git a/seam/resources/device.py b/seam/resources/device.py index 3a886dbb..ec989f41 100644 --- a/seam/resources/device.py +++ b/seam/resources/device.py @@ -85,9 +85,11 @@ class Device: :ivar errors: Array of errors associated with the device. Each error object within the array contains two fields: ``error_code`` and ``message``. ``error_code`` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. ``message`` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. + :ivar estimated_occupant_count: Estimated number of occupants detected by the device. + :ivar is_managed: Indicates whether Seam manages the device. See also `Managed and Unmanaged Devices `_. - :ivar is_occupied: Indicates whether the device detects that the space is occupied, if the device measures occupancy. + :ivar is_occupancy_detected: Indicates whether the device detects occupancy. :ivar is_smoking_detected: Indicates whether the device detects smoking, if the device measures it. @@ -103,8 +105,6 @@ class Device: :ivar noise_level_nrs: Noise level as a Noise Risk Score (NRS), if the device reports one. - :ivar occupant_count: Number of occupants the device detects, if the device counts occupants. - :ivar properties: Properties of the device. :ivar relative_humidity: Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. @@ -576,15 +576,11 @@ class Location(ResourceMapping): :ivar room_name: Name of the room within the device location, when the provider reports one. - :ivar time_zone: Time zone of the device location. - - :ivar timezone: Deprecated: Use ``time_zone`` instead. Time zone of the device location. - """ + :ivar time_zone: Time zone of the device location.""" location_name: Optional[str] room_name: Optional[str] time_zone: Optional[str] - timezone: Optional[str] @classmethod def from_dict(cls, d: Any): @@ -592,7 +588,6 @@ def from_dict(cls, d: Any): location_name=d.get("location_name", None), room_name=d.get("room_name", None), time_zone=d.get("time_zone", None), - timezone=d.get("timezone", None), ) @dataclass @@ -607,7 +602,9 @@ class NamedSensors(ResourceMapping): :ivar display_name: Display name of the sensor. Defaults to ``sensor_name``. - :ivar is_occupied: Indicates whether the device detects that the space is occupied, if the device measures occupancy. + :ivar estimated_occupant_count: Estimated number of occupants detected by the device. + + :ivar is_occupancy_detected: Indicates whether the device detects occupancy. :ivar is_smoking_detected: Indicates whether the device detects smoking, if the device measures it. @@ -617,8 +614,6 @@ class NamedSensors(ResourceMapping): :ivar noise_level_nrs: Noise level as a Noise Risk Score (NRS), if the device reports one. - :ivar occupant_count: Number of occupants the device detects, if the device counts occupants. - :ivar relative_humidity: Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. :ivar sensor_name: Stable, hardware-defined name of the sensor, such as a port number. @@ -632,12 +627,12 @@ class NamedSensors(ResourceMapping): co2_ppm: Optional[float] co_ppm: Optional[float] display_name: str - is_occupied: Optional[bool] + estimated_occupant_count: Optional[float] + is_occupancy_detected: Optional[bool] is_smoking_detected: Optional[bool] mold_risk_level: Optional[str] noise_level_decibels: Optional[float] noise_level_nrs: Optional[float] - occupant_count: Optional[float] relative_humidity: Optional[float] sensor_name: str temperature_celsius: Optional[float] @@ -650,12 +645,12 @@ def from_dict(cls, d: Any): co2_ppm=d.get("co2_ppm", None), co_ppm=d.get("co_ppm", None), display_name=d.get("display_name", None), - is_occupied=d.get("is_occupied", None), + estimated_occupant_count=d.get("estimated_occupant_count", None), + is_occupancy_detected=d.get("is_occupancy_detected", None), is_smoking_detected=d.get("is_smoking_detected", None), mold_risk_level=d.get("mold_risk_level", None), noise_level_decibels=d.get("noise_level_decibels", None), noise_level_nrs=d.get("noise_level_nrs", None), - occupant_count=d.get("occupant_count", None), relative_humidity=d.get("relative_humidity", None), sensor_name=d.get("sensor_name", None), temperature_celsius=d.get("temperature_celsius", None), @@ -690,18 +685,10 @@ class Properties(ResourceMapping): :ivar noise_level_decibels: Indicates current noise level in decibels, if the device supports noise detection. - :ivar offline_access_codes_enabled: Deprecated: use device.can_program_offline_access_codes Indicates whether it is currently possible to use offline access codes for the device. - :ivar online: Indicates whether the device is online. - :ivar online_access_codes_enabled: Deprecated: use device.can_program_online_access_codes Indicates whether it is currently possible to use online access codes for the device. - :ivar serial_number: Serial number of the device. - :ivar supports_accessory_keypad: Deprecated: use device.properties.model.can_connect_accessory_keypad - - :ivar supports_offline_access_codes: Deprecated: use offline_access_codes_enabled - :ivar assa_abloy_credential_service_metadata: ASSA ABLOY Credential Service metadata for the phone. :ivar salto_space_credential_service_metadata: Salto Space credential service metadata for the phone. @@ -766,14 +753,14 @@ class Properties(ResourceMapping): :ivar salto_ks_metadata: Metadata for a Salto KS device. - :ivar salto_metadata: Deprecated: Use ``salto_ks_metadata`` instead. Metada for a Salto device. - :ivar schlage_metadata: Metadata for a Schlage device. :ivar seam_bridge_metadata: Metadata for Seam Bridge. :ivar sensi_metadata: Metadata for a Sensi device. + :ivar sensibo_metadata: Metadata for a Sensibo device. + :ivar smartthings_metadata: Metadata for a SmartThings device. :ivar tado_metadata: Metadata for a tado° device. @@ -784,6 +771,8 @@ class Properties(ResourceMapping): :ivar ttlock_metadata: Metadata for a TTLock device. + :ivar tuya_metadata: Metadata for a Tuya device. + :ivar two_n_metadata: Metadata for a 2N device. :ivar ultraloq_metadata: Metadata for an Ultraloq device. @@ -810,7 +799,7 @@ class Properties(ResourceMapping): :ivar has_native_entry_events: Indicates whether the device supports native entry events. - :ivar keypad_battery: Keypad battery status. + :ivar keypad_battery: Deprecated: Use ``accessory_keypad.battery`` instead. Keypad battery status. :ivar locked: Indicates whether the lock is locked. @@ -824,8 +813,6 @@ class Properties(ResourceMapping): :ivar supports_backup_access_code_pool: Indicates whether the device supports a `backup access code pool `_. - :ivar active_thermostat_schedule: Deprecated: Use ``active_thermostat_schedule_id`` with ``/thermostats/schedules/get`` instead. Active `thermostat schedule `_. - :ivar active_thermostat_schedule_id: ID of the active `thermostat schedule `_. :ivar available_climate_preset_modes: Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". @@ -838,12 +825,8 @@ class Properties(ResourceMapping): :ivar current_climate_setting: Current climate setting. - :ivar default_climate_setting: Deprecated: use fallback_climate_preset_key to specify a fallback climate preset instead. - :ivar fallback_climate_preset_key: Key of the `fallback climate preset `_ for the thermostat. - :ivar fan_mode_setting: Deprecated: Use ``current_climate_setting.fan_mode_setting`` instead. - :ivar is_cooling: Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. :ivar is_fan_running: Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. @@ -966,8 +949,6 @@ def from_dict(cls, d: Any): class Model(ResourceMapping): """Device model-related properties. - :ivar accessory_keypad_supported: Deprecated: use device.properties.model.can_connect_accessory_keypad - :ivar can_connect_accessory_keypad: Indicates whether the device can connect a accessory keypad. :ivar display_name: Display name of the device model. @@ -975,38 +956,22 @@ class Model(ResourceMapping): :ivar has_built_in_keypad: Indicates whether the device has a built in accessory keypad. :ivar manufacturer_display_name: Display name that corresponds to the manufacturer-specific terminology for the device. - - :ivar offline_access_codes_supported: Deprecated: use device.can_program_offline_access_codes. - - :ivar online_access_codes_supported: Deprecated: use device.can_program_online_access_codes. """ - accessory_keypad_supported: Optional[bool] can_connect_accessory_keypad: Optional[bool] display_name: str has_built_in_keypad: Optional[bool] manufacturer_display_name: str - offline_access_codes_supported: Optional[bool] - online_access_codes_supported: Optional[bool] @classmethod def from_dict(cls, d: Any): return cls( - accessory_keypad_supported=d.get( - "accessory_keypad_supported", None - ), can_connect_accessory_keypad=d.get( "can_connect_accessory_keypad", None ), display_name=d.get("display_name", None), has_built_in_keypad=d.get("has_built_in_keypad", None), manufacturer_display_name=d.get("manufacturer_display_name", None), - offline_access_codes_supported=d.get( - "offline_access_codes_supported", None - ), - online_access_codes_supported=d.get( - "online_access_codes_supported", None - ), ) @dataclass @@ -1366,8 +1331,6 @@ class DormakabaOracodeMetadata(ResourceMapping): :ivar predefined_time_slots: Predefined time slots for a dormakaba Oracode device. - :ivar site_id: Deprecated: Previously marked as "@DEPRECATED." Site ID for a dormakaba Oracode device. - :ivar site_name: Site name for a dormakaba Oracode device.""" @dataclass @@ -1430,7 +1393,6 @@ def from_dict(cls, d: Any): door_name: Optional[str] iana_timezone: Optional[str] predefined_time_slots: Optional[List[PredefinedTimeSlots]] - site_id: Optional[float] site_name: Optional[str] @classmethod @@ -1445,7 +1407,6 @@ def from_dict(cls, d: Any): cls.PredefinedTimeSlots.from_dict(i) for i in d.get("predefined_time_slots") or [] ], - site_id=d.get("site_id", None), site_name=d.get("site_name", None), ) @@ -2205,49 +2166,6 @@ def from_dict(cls, d: Any): site_name=d.get("site_name", None), ) - @dataclass - class SaltoMetadata(ResourceMapping): - """Metada for a Salto device. - - :ivar battery_level: Battery level for a Salto device. - - :ivar customer_reference: Customer reference for a Salto device. - - :ivar lock_id: Lock ID for a Salto device. - - :ivar lock_type: Lock type for a Salto device. - - :ivar locked_state: Locked state for a Salto device. - - :ivar model: Model for a Salto device. - - :ivar site_id: Site ID for the Salto KS site to which the device belongs. - - :ivar site_name: Site name for the Salto KS site to which the device belongs. - """ - - battery_level: Optional[str] - customer_reference: Optional[str] - lock_id: Optional[str] - lock_type: Optional[str] - locked_state: Optional[str] - model: Optional[str] - site_id: Optional[str] - site_name: Optional[str] - - @classmethod - def from_dict(cls, d: Any): - return cls( - battery_level=d.get("battery_level", None), - customer_reference=d.get("customer_reference", None), - lock_id=d.get("lock_id", None), - lock_type=d.get("lock_type", None), - locked_state=d.get("locked_state", None), - model=d.get("model", None), - site_id=d.get("site_id", None), - site_name=d.get("site_name", None), - ) - @dataclass class SchlageMetadata(ResourceMapping): """Metadata for a Schlage device. @@ -2300,13 +2218,10 @@ class SensiMetadata(ResourceMapping): :ivar device_name: Device name for a Sensi device. - :ivar dual_setpoints_not_supported: Deprecated. Seam no longer sets this field. - :ivar product_type: Product type for a Sensi device.""" device_id: Optional[str] device_name: Optional[str] - dual_setpoints_not_supported: Optional[bool] product_type: Optional[str] @classmethod @@ -2314,12 +2229,48 @@ def from_dict(cls, d: Any): return cls( device_id=d.get("device_id", None), device_name=d.get("device_name", None), - dual_setpoints_not_supported=d.get( - "dual_setpoints_not_supported", None - ), product_type=d.get("product_type", None), ) + @dataclass + class SensiboMetadata(ResourceMapping): + """Metadata for a Sensibo device. + + :ivar firmware_version: Firmware version of the Sensibo device. + + :ivar mac_address: MAC address of the Sensibo device. + + :ivar pod_id: ID of the Sensibo device, which Sensibo calls a pod. + + :ivar product_model: Product model of the Sensibo device, such as ``skyv2`` or ``air``. + + :ivar room_name: Name of the room that the Sensibo device is in. + + :ivar serial_number: Serial number of the Sensibo device. + + :ivar temperature_unit: Temperature unit that the Sensibo device displays: ``C`` or ``F``. + """ + + firmware_version: Optional[str] + mac_address: Optional[str] + pod_id: Optional[str] + product_model: Optional[str] + room_name: Optional[str] + serial_number: Optional[str] + temperature_unit: Optional[str] + + @classmethod + def from_dict(cls, d: Any): + return cls( + firmware_version=d.get("firmware_version", None), + mac_address=d.get("mac_address", None), + pod_id=d.get("pod_id", None), + product_model=d.get("product_model", None), + room_name=d.get("room_name", None), + serial_number=d.get("serial_number", None), + temperature_unit=d.get("temperature_unit", None), + ) + @dataclass class SmartthingsMetadata(ResourceMapping): """Metadata for a SmartThings device. @@ -2557,6 +2508,44 @@ def from_dict(cls, d: Any): ], ) + @dataclass + class TuyaMetadata(ResourceMapping): + """Metadata for a Tuya device. + + :ivar category: Tuya product category code for the device (e.g. ms). + + :ivar device_id: Device ID for a Tuya device. + + :ivar device_name: Device name for a Tuya device. + + :ivar model: Model reported for a Tuya device. + + :ivar product_id: Tuya product ID for the device. + + :ivar product_name: Tuya product name for the device. + + :ivar time_zone: Time zone reported for a Tuya device (e.g. +08:00).""" + + category: Optional[str] + device_id: Optional[str] + device_name: Optional[str] + model: Optional[str] + product_id: Optional[str] + product_name: Optional[str] + time_zone: Optional[str] + + @classmethod + def from_dict(cls, d: Any): + return cls( + category=d.get("category", None), + device_id=d.get("device_id", None), + device_name=d.get("device_name", None), + model=d.get("model", None), + product_id=d.get("product_id", None), + product_name=d.get("product_name", None), + time_zone=d.get("time_zone", None), + ) + @dataclass class TwoNMetadata(ResourceMapping): """Metadata for a 2N device. @@ -2944,86 +2933,6 @@ def from_dict(cls, d: Any): time_zone=d.get("time_zone", None), ) - @dataclass - class ActiveThermostatSchedule(ResourceMapping): - """Active `thermostat schedule `_. - - :ivar climate_preset_key: Key of the `climate preset `_ to use for the `thermostat schedule `_. - - :ivar created_at: Date and time at which the `thermostat schedule `_ was created. - - :ivar device_id: ID of the desired `thermostat `_ device. - - :ivar ends_at: Date and time at which the `thermostat schedule `_ ends, in `ISO 8601 `_ format. - - :ivar errors: Errors associated with the `thermostat schedule `_. - - :ivar is_override_allowed: Indicates whether a person at the thermostat can change the thermostat's settings after the `thermostat schedule `_ starts. - - :ivar max_override_period_minutes: Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled `climate preset `_. See also `Specifying Manual Override Permissions `_. - - :ivar name: User-friendly name to identify the `thermostat schedule `_. - - :ivar starts_at: Date and time at which the `thermostat schedule `_ starts, in `ISO 8601 `_ format. - - :ivar thermostat_schedule_id: ID of the `thermostat schedule `_. - - :ivar workspace_id: ID of the workspace that contains the thermostat schedule. - """ - - @dataclass - class Errors(ResourceMapping): - """Errors associated with the `thermostat schedule `_. - - :ivar created_at: Date and time at which Seam created the error. - - :ivar error_code: Unique identifier of the type of error. Enables quick recognition and categorization of the issue. - - :ivar message: Detailed description of the error. Provides insights into the issue and potentially how to rectify it. - """ - - created_at: str - error_code: str - message: str - - @classmethod - def from_dict(cls, d: Any): - return cls( - created_at=d.get("created_at", None), - error_code=d.get("error_code", None), - message=d.get("message", None), - ) - - climate_preset_key: str - created_at: str - device_id: str - ends_at: str - errors: List[Errors] - is_override_allowed: Optional[bool] - max_override_period_minutes: Optional[int] - name: Optional[str] - starts_at: str - thermostat_schedule_id: str - workspace_id: str - - @classmethod - def from_dict(cls, d: Any): - return cls( - climate_preset_key=d.get("climate_preset_key", None), - created_at=d.get("created_at", None), - device_id=d.get("device_id", None), - ends_at=d.get("ends_at", None), - errors=[cls.Errors.from_dict(i) for i in d.get("errors") or []], - is_override_allowed=d.get("is_override_allowed", None), - max_override_period_minutes=d.get( - "max_override_period_minutes", None - ), - name=d.get("name", None), - starts_at=d.get("starts_at", None), - thermostat_schedule_id=d.get("thermostat_schedule_id", None), - workspace_id=d.get("workspace_id", None), - ) - @dataclass class AvailableClimatePresets(ResourceMapping): """Available `climate presets `_ for the thermostat. @@ -3054,8 +2963,6 @@ class AvailableClimatePresets(ResourceMapping): :ivar hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :ivar manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :ivar name: User-friendly name to identify the `climate preset `_. """ @@ -3099,7 +3006,6 @@ def from_dict(cls, d: Any): hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] - manual_override_allowed: bool name: Optional[str] @classmethod @@ -3128,7 +3034,6 @@ def from_dict(cls, d: Any): "heating_set_point_fahrenheit", None ), hvac_mode_setting=d.get("hvac_mode_setting", None), - manual_override_allowed=d.get("manual_override_allowed", None), name=d.get("name", None), ) @@ -3162,116 +3067,6 @@ class CurrentClimateSetting(ResourceMapping): :ivar hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :ivar manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - - :ivar name: User-friendly name to identify the `climate preset `_. - """ - - @dataclass - class EcobeeMetadata(ResourceMapping): - """Metadata specific to the Ecobee climate, if applicable. - - :ivar climate_ref: Reference to the Ecobee climate, if applicable. - - :ivar is_optimized: Indicates if the climate preset is optimized by Ecobee. - - :ivar owner: Indicates whether the climate preset is owned by the user or the system. - """ - - climate_ref: Optional[str] - is_optimized: Optional[bool] - owner: Optional[Literal["user", "system"]] - - @classmethod - def from_dict(cls, d: Any): - return cls( - climate_ref=d.get("climate_ref", None), - is_optimized=d.get("is_optimized", None), - owner=d.get("owner", None), - ) - - can_delete: Optional[bool] - can_edit: Optional[bool] - can_use_with_thermostat_daily_programs: Optional[bool] - climate_preset_key: Optional[str] - climate_preset_mode: Optional[ - Literal["home", "away", "wake", "sleep", "occupied", "unoccupied"] - ] - cooling_set_point_celsius: Optional[float] - cooling_set_point_fahrenheit: Optional[float] - display_name: Optional[str] - ecobee_metadata: Optional[EcobeeMetadata] - fan_mode_setting: Optional[Literal["auto", "on", "circulate"]] - heating_set_point_celsius: Optional[float] - heating_set_point_fahrenheit: Optional[float] - hvac_mode_setting: Optional[ - Literal["off", "heat", "cool", "heat_cool", "eco"] - ] - manual_override_allowed: Optional[bool] - name: Optional[str] - - @classmethod - def from_dict(cls, d: Any): - return cls( - can_delete=d.get("can_delete", None), - can_edit=d.get("can_edit", None), - can_use_with_thermostat_daily_programs=d.get( - "can_use_with_thermostat_daily_programs", None - ), - climate_preset_key=d.get("climate_preset_key", None), - climate_preset_mode=d.get("climate_preset_mode", None), - cooling_set_point_celsius=d.get("cooling_set_point_celsius", None), - cooling_set_point_fahrenheit=d.get( - "cooling_set_point_fahrenheit", None - ), - display_name=d.get("display_name", None), - ecobee_metadata=( - cls.EcobeeMetadata.from_dict(d.get("ecobee_metadata")) - if d.get("ecobee_metadata") is not None - else None - ), - fan_mode_setting=d.get("fan_mode_setting", None), - heating_set_point_celsius=d.get("heating_set_point_celsius", None), - heating_set_point_fahrenheit=d.get( - "heating_set_point_fahrenheit", None - ), - hvac_mode_setting=d.get("hvac_mode_setting", None), - manual_override_allowed=d.get("manual_override_allowed", None), - name=d.get("name", None), - ) - - @dataclass - class DefaultClimateSetting(ResourceMapping): - """ - - :ivar can_delete: Indicates whether the `climate preset `_ key can be deleted. - - :ivar can_edit: Indicates whether the `climate preset `_ key can be edited. - - :ivar can_use_with_thermostat_daily_programs: Indicates whether the `climate preset `_ key can be programmed in a thermostat daily program. - - :ivar climate_preset_key: Unique key to identify the `climate preset `_. - - :ivar climate_preset_mode: The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. - - :ivar cooling_set_point_celsius: Temperature to which the thermostat should cool (in °C). See also `Set Points `_. - - :ivar cooling_set_point_fahrenheit: Temperature to which the thermostat should cool (in °F). See also `Set Points `_. - - :ivar display_name: Display name for the `climate preset `_. - - :ivar ecobee_metadata: Metadata specific to the Ecobee climate, if applicable. - - :ivar fan_mode_setting: Desired `fan mode setting `_, such as ``on``, ``auto``, or ``circulate``. - - :ivar heating_set_point_celsius: Temperature to which the thermostat should heat (in °C). See also `Set Points `_. - - :ivar heating_set_point_fahrenheit: Temperature to which the thermostat should heat (in °F). See also `Set Points `_. - - :ivar hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - - :ivar manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :ivar name: User-friendly name to identify the `climate preset `_. """ @@ -3315,7 +3110,6 @@ def from_dict(cls, d: Any): hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] - manual_override_allowed: Optional[bool] name: Optional[str] @classmethod @@ -3344,7 +3138,6 @@ def from_dict(cls, d: Any): "heating_set_point_fahrenheit", None ), hvac_mode_setting=d.get("hvac_mode_setting", None), - manual_override_allowed=d.get("manual_override_allowed", None), name=d.get("name", None), ) @@ -3486,12 +3279,8 @@ def from_dict(cls, d: Any): model: Optional[Model] name: str noise_level_decibels: Optional[float] - offline_access_codes_enabled: Optional[bool] online: bool - online_access_codes_enabled: Optional[bool] serial_number: Optional[str] - supports_accessory_keypad: Optional[bool] - supports_offline_access_codes: Optional[bool] assa_abloy_credential_service_metadata: Optional[ AssaAbloyCredentialServiceMetadata ] @@ -3528,15 +3317,16 @@ def from_dict(cls, d: Any): reolink_metadata: Optional[ReolinkMetadata] ring_metadata: Optional[RingMetadata] salto_ks_metadata: Optional[SaltoKsMetadata] - salto_metadata: Optional[SaltoMetadata] schlage_metadata: Optional[SchlageMetadata] seam_bridge_metadata: Optional[SeamBridgeMetadata] sensi_metadata: Optional[SensiMetadata] + sensibo_metadata: Optional[SensiboMetadata] smartthings_metadata: Optional[SmartthingsMetadata] tado_metadata: Optional[TadoMetadata] tapo_metadata: Optional[TapoMetadata] tedee_metadata: Optional[TedeeMetadata] ttlock_metadata: Optional[TtlockMetadata] + tuya_metadata: Optional[TuyaMetadata] two_n_metadata: Optional[TwoNMetadata] ultraloq_metadata: Optional[UltraloqMetadata] unifi_protect_metadata: Optional[UnifiProtectMetadata] @@ -3557,7 +3347,6 @@ def from_dict(cls, d: Any): online_time_frame_options: Optional[List[OnlineTimeFrameOptions]] supported_code_lengths: Optional[List[float]] supports_backup_access_code_pool: Optional[bool] - active_thermostat_schedule: Optional[ActiveThermostatSchedule] active_thermostat_schedule_id: Optional[str] available_climate_preset_modes: Optional[ List[Literal["home", "away", "wake", "sleep", "occupied", "unoccupied"]] @@ -3568,9 +3357,7 @@ def from_dict(cls, d: Any): List[Literal["off", "heat", "cool", "heat_cool", "eco"]] ] current_climate_setting: Optional[CurrentClimateSetting] - default_climate_setting: Optional[DefaultClimateSetting] fallback_climate_preset_key: Optional[str] - fan_mode_setting: Optional[Literal["auto", "on", "circulate"]] is_cooling: Optional[bool] is_fan_running: Optional[bool] is_heating: Optional[bool] @@ -3628,16 +3415,8 @@ def from_dict(cls, d: Any): ), name=d.get("name", None), noise_level_decibels=d.get("noise_level_decibels", None), - offline_access_codes_enabled=d.get( - "offline_access_codes_enabled", None - ), online=d.get("online", None), - online_access_codes_enabled=d.get("online_access_codes_enabled", None), serial_number=d.get("serial_number", None), - supports_accessory_keypad=d.get("supports_accessory_keypad", None), - supports_offline_access_codes=d.get( - "supports_offline_access_codes", None - ), assa_abloy_credential_service_metadata=( cls.AssaAbloyCredentialServiceMetadata.from_dict( d.get("assa_abloy_credential_service_metadata") @@ -3810,11 +3589,6 @@ def from_dict(cls, d: Any): if d.get("salto_ks_metadata") is not None else None ), - salto_metadata=( - cls.SaltoMetadata.from_dict(d.get("salto_metadata")) - if d.get("salto_metadata") is not None - else None - ), schlage_metadata=( cls.SchlageMetadata.from_dict(d.get("schlage_metadata")) if d.get("schlage_metadata") is not None @@ -3830,6 +3604,11 @@ def from_dict(cls, d: Any): if d.get("sensi_metadata") is not None else None ), + sensibo_metadata=( + cls.SensiboMetadata.from_dict(d.get("sensibo_metadata")) + if d.get("sensibo_metadata") is not None + else None + ), smartthings_metadata=( cls.SmartthingsMetadata.from_dict(d.get("smartthings_metadata")) if d.get("smartthings_metadata") is not None @@ -3855,6 +3634,11 @@ def from_dict(cls, d: Any): if d.get("ttlock_metadata") is not None else None ), + tuya_metadata=( + cls.TuyaMetadata.from_dict(d.get("tuya_metadata")) + if d.get("tuya_metadata") is not None + else None + ), two_n_metadata=( cls.TwoNMetadata.from_dict(d.get("two_n_metadata")) if d.get("two_n_metadata") is not None @@ -3920,13 +3704,6 @@ def from_dict(cls, d: Any): supports_backup_access_code_pool=d.get( "supports_backup_access_code_pool", None ), - active_thermostat_schedule=( - cls.ActiveThermostatSchedule.from_dict( - d.get("active_thermostat_schedule") - ) - if d.get("active_thermostat_schedule") is not None - else None - ), active_thermostat_schedule_id=d.get( "active_thermostat_schedule_id", None ), @@ -3948,15 +3725,7 @@ def from_dict(cls, d: Any): if d.get("current_climate_setting") is not None else None ), - default_climate_setting=( - cls.DefaultClimateSetting.from_dict( - d.get("default_climate_setting") - ) - if d.get("default_climate_setting") is not None - else None - ), fallback_climate_preset_key=d.get("fallback_climate_preset_key", None), - fan_mode_setting=d.get("fan_mode_setting", None), is_cooling=d.get("is_cooling", None), is_fan_running=d.get("is_fan_running", None), is_heating=d.get("is_heating", None), @@ -4529,6 +4298,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class ServiceModeWarning(ResourceMapping): + """Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["service_mode"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class ProviderIssueWarning(ResourceMapping): """Indicates a provider-specific issue that may affect device functionality. @@ -4677,6 +4469,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class SubscriptionRequiredForAdditionalCapabilitiesWarning(ResourceMapping): + """Indicates that a third-party subscription is required to enable additional device capabilities. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["subscription_required_for_additional_capabilities"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class CloudRecordingNotEnabledWarning(ResourceMapping): """Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. @@ -4756,12 +4571,14 @@ def from_dict(cls, d: Any): TimeZoneMismatchWarning, TwoNDeviceMissingTimezoneWarning, HubRequiredForAdditionalCapabilitiesWarning, + ServiceModeWarning, ProviderIssueWarning, KeynestUnsupportedLockerWarning, AccessoryKeypadSetupRequiredWarning, AccessoryKeypadLowBatteryWarning, UnreliableOnlineStatusWarning, MaxAccessCodesReachedWarning, + SubscriptionRequiredForAdditionalCapabilitiesWarning, CloudRecordingNotEnabledWarning, ] _WarningsVariants = { @@ -4787,12 +4604,14 @@ def from_dict(cls, d: Any): "time_zone_mismatch": TimeZoneMismatchWarning, "two_n_device_missing_timezone": TwoNDeviceMissingTimezoneWarning, "hub_required_for_additional_capabilities": HubRequiredForAdditionalCapabilitiesWarning, + "service_mode": ServiceModeWarning, "provider_issue": ProviderIssueWarning, "keynest_unsupported_locker": KeynestUnsupportedLockerWarning, "accessory_keypad_setup_required": AccessoryKeypadSetupRequiredWarning, "accessory_keypad_low_battery": AccessoryKeypadLowBatteryWarning, "unreliable_online_status": UnreliableOnlineStatusWarning, "max_access_codes_reached": MaxAccessCodesReachedWarning, + "subscription_required_for_additional_capabilities": SubscriptionRequiredForAdditionalCapabilitiesWarning, "cloud_recording_not_enabled": CloudRecordingNotEnabledWarning, } @@ -4821,7 +4640,13 @@ def from_dict(cls, d: Any): can_unlock_with_code: Optional[bool] capabilities_supported: List[ Literal[ - "access_code", "lock", "noise_detection", "thermostat", "battery", "phone" + "access_code", + "lock", + "noise_detection", + "thermostat", + "battery", + "phone", + "pool", ] ] co2_ppm: Optional[float] @@ -4867,6 +4692,7 @@ def from_dict(cls, d: Any): "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -4876,6 +4702,7 @@ def from_dict(cls, d: Any): "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -4886,11 +4713,14 @@ def from_dict(cls, d: Any): "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] display_name: str errors: List[Errors] + estimated_occupant_count: Optional[float] is_managed: Literal[True] - is_occupied: Optional[bool] + is_occupancy_detected: Optional[bool] is_smoking_detected: Optional[bool] location: Optional[Location] mold_risk_level: Optional[str] @@ -4898,7 +4728,6 @@ def from_dict(cls, d: Any): nickname: Optional[str] noise_level_decibels: Optional[float] noise_level_nrs: Optional[float] - occupant_count: Optional[float] properties: Optional[Properties] relative_humidity: Optional[float] space_ids: List[str] @@ -4970,8 +4799,9 @@ def from_dict(cls, d: Any): _from_discriminated_dict(i, cls._ErrorsVariants, "error_code") for i in d.get("errors") or [] ], + estimated_occupant_count=d.get("estimated_occupant_count", None), is_managed=d.get("is_managed", None), - is_occupied=d.get("is_occupied", None), + is_occupancy_detected=d.get("is_occupancy_detected", None), is_smoking_detected=d.get("is_smoking_detected", None), location=( cls.Location.from_dict(d.get("location")) @@ -4985,7 +4815,6 @@ def from_dict(cls, d: Any): nickname=d.get("nickname", None), noise_level_decibels=d.get("noise_level_decibels", None), noise_level_nrs=d.get("noise_level_nrs", None), - occupant_count=d.get("occupant_count", None), properties=( cls.Properties.from_dict(d.get("properties")) if d.get("properties") is not None diff --git a/seam/resources/device_provider.py b/seam/resources/device_provider.py index 4e3f26a6..6083f231 100644 --- a/seam/resources/device_provider.py +++ b/seam/resources/device_provider.py @@ -133,6 +133,7 @@ class DeviceProvider: "tado", "salto_space", "sensi", + "sensibo", "keynest", "korelock", "keyincode", @@ -159,6 +160,8 @@ class DeviceProvider: "aqara", "eufy", "sonos", + "hayward_omnilogic", + "tuya", ] display_name: str image_url: str diff --git a/seam/resources/phone.py b/seam/resources/phone.py index b9b773dd..092fd896 100644 --- a/seam/resources/phone.py +++ b/seam/resources/phone.py @@ -1028,6 +1028,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class ServiceModeWarning(ResourceMapping): + """Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["service_mode"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class ProviderIssueWarning(ResourceMapping): """Indicates a provider-specific issue that may affect device functionality. @@ -1176,6 +1199,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class SubscriptionRequiredForAdditionalCapabilitiesWarning(ResourceMapping): + """Indicates that a third-party subscription is required to enable additional device capabilities. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["subscription_required_for_additional_capabilities"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class CloudRecordingNotEnabledWarning(ResourceMapping): """Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. @@ -1255,12 +1301,14 @@ def from_dict(cls, d: Any): TimeZoneMismatchWarning, TwoNDeviceMissingTimezoneWarning, HubRequiredForAdditionalCapabilitiesWarning, + ServiceModeWarning, ProviderIssueWarning, KeynestUnsupportedLockerWarning, AccessoryKeypadSetupRequiredWarning, AccessoryKeypadLowBatteryWarning, UnreliableOnlineStatusWarning, MaxAccessCodesReachedWarning, + SubscriptionRequiredForAdditionalCapabilitiesWarning, CloudRecordingNotEnabledWarning, ] _WarningsVariants = { @@ -1286,12 +1334,14 @@ def from_dict(cls, d: Any): "time_zone_mismatch": TimeZoneMismatchWarning, "two_n_device_missing_timezone": TwoNDeviceMissingTimezoneWarning, "hub_required_for_additional_capabilities": HubRequiredForAdditionalCapabilitiesWarning, + "service_mode": ServiceModeWarning, "provider_issue": ProviderIssueWarning, "keynest_unsupported_locker": KeynestUnsupportedLockerWarning, "accessory_keypad_setup_required": AccessoryKeypadSetupRequiredWarning, "accessory_keypad_low_battery": AccessoryKeypadLowBatteryWarning, "unreliable_online_status": UnreliableOnlineStatusWarning, "max_access_codes_reached": MaxAccessCodesReachedWarning, + "subscription_required_for_additional_capabilities": SubscriptionRequiredForAdditionalCapabilitiesWarning, "cloud_recording_not_enabled": CloudRecordingNotEnabledWarning, } diff --git a/seam/resources/seam_event.py b/seam/resources/seam_event.py index 613669b5..07b339b5 100644 --- a/seam/resources/seam_event.py +++ b/seam/resources/seam_event.py @@ -3915,58 +3915,6 @@ def from_dict(cls, d: Any): ) -@dataclass -class ConnectedAccountSuccessfulLoginEvent: - """A connected account had a successful login using a Connect Webview. - - :ivar connect_webview_id: ID of the Connect Webview associated with the event. - - :ivar connected_account_custom_metadata: Custom metadata of the connected account, present when connected_account_id is provided. - - :ivar connected_account_id: ID of the affected connected account. - - :ivar created_at: Date and time at which the event was created. - - :ivar event_description: Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. - - :ivar event_id: ID of the event. - - :ivar event_type: - - :ivar occurred_at: Date and time at which the event occurred. - - :ivar workspace_id: ID of the workspace associated with the event. - - .. deprecated:: - Use ``connect_webview.login_succeeded``.""" - - connect_webview_id: str - connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] - connected_account_id: str - created_at: str - event_description: Optional[str] - event_id: str - event_type: Literal["connected_account.successful_login"] - occurred_at: str - workspace_id: str - - @classmethod - def from_dict(cls, d: Any): - return cls( - connect_webview_id=d.get("connect_webview_id", None), - connected_account_custom_metadata=DeepAttrDict( - d.get("connected_account_custom_metadata", None) - ), - connected_account_id=d.get("connected_account_id", None), - created_at=d.get("created_at", None), - event_description=d.get("event_description", None), - event_id=d.get("event_id", None), - event_type=d.get("event_type", None), - occurred_at=d.get("occurred_at", None), - workspace_id=d.get("workspace_id", None), - ) - - @dataclass class ConnectedAccountDisconnectedEvent: """A connected account was disconnected. @@ -5558,8 +5506,6 @@ class DeviceLowBatteryEvent: :ivar accessory_keypad_battery_level: Number in the range 0 to 1.0 indicating the battery level of the affected device's paired accessory keypad, when the device has one and its level is known. - :ivar battery_level: Deprecated: Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery. Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. - :ivar connected_account_custom_metadata: Custom metadata of the connected account, present when connected_account_id is provided. :ivar connected_account_id: ID of the connected account associated with the event. @@ -5585,7 +5531,6 @@ class DeviceLowBatteryEvent: :ivar workspace_id: ID of the workspace associated with the event.""" accessory_keypad_battery_level: Optional[float] - battery_level: float connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] connected_account_id: str created_at: str @@ -5605,7 +5550,6 @@ def from_dict(cls, d: Any): accessory_keypad_battery_level=d.get( "accessory_keypad_battery_level", None ), - battery_level=d.get("battery_level", None), connected_account_custom_metadata=DeepAttrDict( d.get("connected_account_custom_metadata", None) ), @@ -7773,8 +7717,6 @@ def from_dict(cls, d: Any): class CameraActivatedEvent: """A camera was activated, for example, by motion detection. For Ring cameras, this event is available only in the Seam Console, not through the API or webhooks. - :ivar activation_reason: The reason the camera was activated. - :ivar connected_account_custom_metadata: Custom metadata of the connected account, present when connected_account_id is provided. :ivar connected_account_id: ID of the connected account associated with the event. @@ -7795,6 +7737,8 @@ class CameraActivatedEvent: :ivar image_url: URL to a thumbnail image captured at the time of activation. + :ivar is_motion_detected: Whether motion detection activated the camera, if known. + :ivar media_ids: IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use ``/media/get`` to retrieve each one. :ivar motion_sub_type: Sub-type of motion detected, if available. @@ -7805,7 +7749,6 @@ class CameraActivatedEvent: :ivar workspace_id: ID of the workspace associated with the event.""" - activation_reason: Literal["motion_detected"] connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] connected_account_id: str created_at: str @@ -7816,6 +7759,7 @@ class CameraActivatedEvent: event_id: str event_type: Literal["camera.activated"] image_url: Optional[str] + is_motion_detected: Optional[bool] media_ids: Optional[List[str]] motion_sub_type: Optional[Literal["human", "vehicle", "package", "other"]] occurred_at: str @@ -7825,7 +7769,6 @@ class CameraActivatedEvent: @classmethod def from_dict(cls, d: Any): return cls( - activation_reason=d.get("activation_reason", None), connected_account_custom_metadata=DeepAttrDict( d.get("connected_account_custom_metadata", None) ), @@ -7838,6 +7781,7 @@ def from_dict(cls, d: Any): event_id=d.get("event_id", None), event_type=d.get("event_type", None), image_url=d.get("image_url", None), + is_motion_detected=d.get("is_motion_detected", None), media_ids=d.get("media_ids", None), motion_sub_type=d.get("motion_sub_type", None), occurred_at=d.get("occurred_at", None), @@ -8165,7 +8109,6 @@ def from_dict(cls, d: Any): ClientSessionDeletedEvent, ConnectedAccountConnectedEvent, ConnectedAccountCreatedEvent, - ConnectedAccountSuccessfulLoginEvent, ConnectedAccountDisconnectedEvent, ConnectedAccountCompletedFirstSyncEvent, ConnectedAccountDeletedEvent, @@ -8279,7 +8222,6 @@ def from_dict(cls, d: Any): "client_session.deleted": ClientSessionDeletedEvent, "connected_account.connected": ConnectedAccountConnectedEvent, "connected_account.created": ConnectedAccountCreatedEvent, - "connected_account.successful_login": ConnectedAccountSuccessfulLoginEvent, "connected_account.disconnected": ConnectedAccountDisconnectedEvent, "connected_account.completed_first_sync": ConnectedAccountCompletedFirstSyncEvent, "connected_account.deleted": ConnectedAccountDeletedEvent, diff --git a/seam/resources/unmanaged_access_grant.py b/seam/resources/unmanaged_access_grant.py index a880aa44..2fb52035 100644 --- a/seam/resources/unmanaged_access_grant.py +++ b/seam/resources/unmanaged_access_grant.py @@ -27,8 +27,6 @@ class UnmanagedAccessGrant: :ivar errors: Errors associated with the `access grant `_. - :ivar location_ids: Deprecated: Use ``space_ids``. - :ivar name: Name of the Access Grant. If not provided, the display name will be computed. :ivar pending_mutations: List of pending mutations for the access grant. This shows updates that are in progress. @@ -564,7 +562,6 @@ def from_dict(cls, d: Any): display_name: str ends_at: Optional[str] errors: List[Errors] - location_ids: List[str] name: Optional[str] pending_mutations: List[PendingMutations] requested_access_methods: List[RequestedAccessMethods] @@ -587,7 +584,6 @@ def from_dict(cls, d: Any): _from_discriminated_dict(i, cls._ErrorsVariants, "error_code") for i in d.get("errors") or [] ], - location_ids=d.get("location_ids", None), name=d.get("name", None), pending_mutations=[ _from_discriminated_dict( diff --git a/seam/resources/unmanaged_device.py b/seam/resources/unmanaged_device.py index 39568ea6..7296fbea 100644 --- a/seam/resources/unmanaged_device.py +++ b/seam/resources/unmanaged_device.py @@ -492,15 +492,11 @@ class Location(ResourceMapping): :ivar room_name: Name of the room within the device location, when the provider reports one. - :ivar time_zone: Time zone of the device location. - - :ivar timezone: Deprecated: Use ``time_zone`` instead. Time zone of the device location. - """ + :ivar time_zone: Time zone of the device location.""" location_name: Optional[str] room_name: Optional[str] time_zone: Optional[str] - timezone: Optional[str] @classmethod def from_dict(cls, d: Any): @@ -508,7 +504,6 @@ def from_dict(cls, d: Any): location_name=d.get("location_name", None), room_name=d.get("room_name", None), time_zone=d.get("time_zone", None), - timezone=d.get("timezone", None), ) @dataclass @@ -531,12 +526,7 @@ class Properties(ResourceMapping): :ivar name: Deprecated: use device.display_name instead Name of the device. - :ivar offline_access_codes_enabled: Deprecated: use device.can_program_offline_access_codes Indicates whether it is currently possible to use offline access codes for the device. - - :ivar online: Indicates whether the device is online. - - :ivar online_access_codes_enabled: Deprecated: use device.can_program_online_access_codes Indicates whether it is currently possible to use online access codes for the device. - """ + :ivar online: Indicates whether the device is online.""" @dataclass class AccessoryKeypad(ResourceMapping): @@ -598,8 +588,6 @@ def from_dict(cls, d: Any): class Model(ResourceMapping): """Device model-related properties. - :ivar accessory_keypad_supported: Deprecated: use device.properties.model.can_connect_accessory_keypad - :ivar can_connect_accessory_keypad: Indicates whether the device can connect a accessory keypad. :ivar display_name: Display name of the device model. @@ -607,38 +595,22 @@ class Model(ResourceMapping): :ivar has_built_in_keypad: Indicates whether the device has a built in accessory keypad. :ivar manufacturer_display_name: Display name that corresponds to the manufacturer-specific terminology for the device. - - :ivar offline_access_codes_supported: Deprecated: use device.can_program_offline_access_codes. - - :ivar online_access_codes_supported: Deprecated: use device.can_program_online_access_codes. """ - accessory_keypad_supported: Optional[bool] can_connect_accessory_keypad: Optional[bool] display_name: str has_built_in_keypad: Optional[bool] manufacturer_display_name: str - offline_access_codes_supported: Optional[bool] - online_access_codes_supported: Optional[bool] @classmethod def from_dict(cls, d: Any): return cls( - accessory_keypad_supported=d.get( - "accessory_keypad_supported", None - ), can_connect_accessory_keypad=d.get( "can_connect_accessory_keypad", None ), display_name=d.get("display_name", None), has_built_in_keypad=d.get("has_built_in_keypad", None), manufacturer_display_name=d.get("manufacturer_display_name", None), - offline_access_codes_supported=d.get( - "offline_access_codes_supported", None - ), - online_access_codes_supported=d.get( - "online_access_codes_supported", None - ), ) accessory_keypad: Optional[AccessoryKeypad] @@ -649,9 +621,7 @@ def from_dict(cls, d: Any): manufacturer: Optional[str] model: Optional[Model] name: str - offline_access_codes_enabled: Optional[bool] online: bool - online_access_codes_enabled: Optional[bool] @classmethod def from_dict(cls, d: Any): @@ -676,11 +646,7 @@ def from_dict(cls, d: Any): else None ), name=d.get("name", None), - offline_access_codes_enabled=d.get( - "offline_access_codes_enabled", None - ), online=d.get("online", None), - online_access_codes_enabled=d.get("online_access_codes_enabled", None), ) @dataclass @@ -1189,6 +1155,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class ServiceModeWarning(ResourceMapping): + """Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["service_mode"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class ProviderIssueWarning(ResourceMapping): """Indicates a provider-specific issue that may affect device functionality. @@ -1337,6 +1326,29 @@ def from_dict(cls, d: Any): warning_code=d.get("warning_code", None), ) + @dataclass + class SubscriptionRequiredForAdditionalCapabilitiesWarning(ResourceMapping): + """Indicates that a third-party subscription is required to enable additional device capabilities. + + :ivar created_at: Date and time at which Seam created the warning. + + :ivar message: Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + + :ivar warning_code: Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + """ + + created_at: str + message: str + warning_code: Literal["subscription_required_for_additional_capabilities"] + + @classmethod + def from_dict(cls, d: Any): + return cls( + created_at=d.get("created_at", None), + message=d.get("message", None), + warning_code=d.get("warning_code", None), + ) + @dataclass class CloudRecordingNotEnabledWarning(ResourceMapping): """Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable. @@ -1416,12 +1428,14 @@ def from_dict(cls, d: Any): TimeZoneMismatchWarning, TwoNDeviceMissingTimezoneWarning, HubRequiredForAdditionalCapabilitiesWarning, + ServiceModeWarning, ProviderIssueWarning, KeynestUnsupportedLockerWarning, AccessoryKeypadSetupRequiredWarning, AccessoryKeypadLowBatteryWarning, UnreliableOnlineStatusWarning, MaxAccessCodesReachedWarning, + SubscriptionRequiredForAdditionalCapabilitiesWarning, CloudRecordingNotEnabledWarning, ] _WarningsVariants = { @@ -1447,12 +1461,14 @@ def from_dict(cls, d: Any): "time_zone_mismatch": TimeZoneMismatchWarning, "two_n_device_missing_timezone": TwoNDeviceMissingTimezoneWarning, "hub_required_for_additional_capabilities": HubRequiredForAdditionalCapabilitiesWarning, + "service_mode": ServiceModeWarning, "provider_issue": ProviderIssueWarning, "keynest_unsupported_locker": KeynestUnsupportedLockerWarning, "accessory_keypad_setup_required": AccessoryKeypadSetupRequiredWarning, "accessory_keypad_low_battery": AccessoryKeypadLowBatteryWarning, "unreliable_online_status": UnreliableOnlineStatusWarning, "max_access_codes_reached": MaxAccessCodesReachedWarning, + "subscription_required_for_additional_capabilities": SubscriptionRequiredForAdditionalCapabilitiesWarning, "cloud_recording_not_enabled": CloudRecordingNotEnabledWarning, } @@ -1480,7 +1496,13 @@ def from_dict(cls, d: Any): can_unlock_with_code: Optional[bool] capabilities_supported: List[ Literal[ - "access_code", "lock", "noise_detection", "thermostat", "battery", "phone" + "access_code", + "lock", + "noise_detection", + "thermostat", + "battery", + "phone", + "pool", ] ] connected_account_id: str @@ -1522,6 +1544,7 @@ def from_dict(cls, d: Any): "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -1531,6 +1554,7 @@ def from_dict(cls, d: Any): "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -1541,6 +1565,8 @@ def from_dict(cls, d: Any): "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] display_name: str errors: List[Errors] diff --git a/seam/resources/workspace.py b/seam/resources/workspace.py index c09f2079..5e674e6b 100644 --- a/seam/resources/workspace.py +++ b/seam/resources/workspace.py @@ -8,8 +8,6 @@ class Workspace: """Represents a Seam `workspace `_. A workspace is a top-level entity that encompasses all other resources below it, such as devices, connected accounts, and Connect Webviews. Seam provides two types of workspaces. A `sandbox workspace `_ is a special type of workspace designed for testing code. Sandbox workspaces offer test device accounts and virtual devices that you can connect and control. This ability to work with virtual devices is quite handy because it removes the need to own physical devices from multiple brands. To connect real devices and systems to Seam, use a `production workspace `_. - :ivar company_name: Deprecated: Use ``connect_partner_name`` instead. Company name associated with the `workspace `_. - :ivar connect_partner_name: Seam Connect partner name associated with the `workspace `_. :ivar connect_webview_customization: @@ -59,7 +57,6 @@ def from_dict(cls, d: Any): success_message=d.get("success_message", None), ) - company_name: str connect_partner_name: Optional[str] connect_webview_customization: Optional[ConnectWebviewCustomization] is_publishable_key_auth_enabled: bool @@ -73,7 +70,6 @@ def from_dict(cls, d: Any): @classmethod def from_dict(cls, d: Any): return cls( - company_name=d.get("company_name", None), connect_partner_name=d.get("connect_partner_name", None), connect_webview_customization=( cls.ConnectWebviewCustomization.from_dict( diff --git a/seam/routes/access_codes.py b/seam/routes/access_codes.py index 05e2dd05..dc0c056f 100644 --- a/seam/routes/access_codes.py +++ b/seam/routes/access_codes.py @@ -52,7 +52,6 @@ def create( preferred_code_length: Optional[float] = None, starts_at: Optional[str] = None, use_backup_access_code_pool: Optional[bool] = None, - use_offline_access_code: Optional[bool] = None, ) -> AccessCode: """Creates a new `access code `_. For granting access, we recommend `Access Grants `_ instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value. @@ -92,8 +91,6 @@ def create( :param use_backup_access_code_pool: Indicates whether to use a `backup access code pool `_ provided by Seam. If ``true``, you can use ```/access_codes/pull_backup_access_code`` `_. - :param use_offline_access_code: Deprecated: Use ``is_offline_access_code`` instead. - :returns: OK""" raise NotImplementedError() @@ -398,7 +395,6 @@ async def create( preferred_code_length: Optional[float] = None, starts_at: Optional[str] = None, use_backup_access_code_pool: Optional[bool] = None, - use_offline_access_code: Optional[bool] = None, ) -> AccessCode: """Creates a new `access code `_. For granting access, we recommend `Access Grants `_ instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value. @@ -438,8 +434,6 @@ async def create( :param use_backup_access_code_pool: Indicates whether to use a `backup access code pool `_ provided by Seam. If ``true``, you can use ```/access_codes/pull_backup_access_code`` `_. - :param use_offline_access_code: Deprecated: Use ``is_offline_access_code`` instead. - :returns: OK""" raise NotImplementedError() @@ -753,7 +747,6 @@ def create( preferred_code_length: Optional[float] = None, starts_at: Optional[str] = None, use_backup_access_code_pool: Optional[bool] = None, - use_offline_access_code: Optional[bool] = None, ) -> AccessCode: """Creates a new `access code `_. For granting access, we recommend `Access Grants `_ instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value. @@ -793,8 +786,6 @@ def create( :param use_backup_access_code_pool: Indicates whether to use a `backup access code pool `_ provided by Seam. If ``true``, you can use ```/access_codes/pull_backup_access_code`` `_. - :param use_offline_access_code: Deprecated: Use ``is_offline_access_code`` instead. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -830,8 +821,6 @@ def create( json_payload["starts_at"] = starts_at if use_backup_access_code_pool is not None: json_payload["use_backup_access_code_pool"] = use_backup_access_code_pool - if use_offline_access_code is not None: - json_payload["use_offline_access_code"] = use_offline_access_code res = self.client.post("/access_codes/create", json=json_payload) return AccessCode.from_dict(unwrap(res, "access_code", "/access_codes/create")) @@ -1337,7 +1326,6 @@ async def create( preferred_code_length: Optional[float] = None, starts_at: Optional[str] = None, use_backup_access_code_pool: Optional[bool] = None, - use_offline_access_code: Optional[bool] = None, ) -> AccessCode: """Creates a new `access code `_. For granting access, we recommend `Access Grants `_ instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value. @@ -1377,8 +1365,6 @@ async def create( :param use_backup_access_code_pool: Indicates whether to use a `backup access code pool `_ provided by Seam. If ``true``, you can use ```/access_codes/pull_backup_access_code`` `_. - :param use_offline_access_code: Deprecated: Use ``is_offline_access_code`` instead. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -1414,8 +1400,6 @@ async def create( json_payload["starts_at"] = starts_at if use_backup_access_code_pool is not None: json_payload["use_backup_access_code_pool"] = use_backup_access_code_pool - if use_offline_access_code is not None: - json_payload["use_offline_access_code"] = use_offline_access_code res = await self.client.post("/access_codes/create", json=json_payload) return AccessCode.from_dict(unwrap(res, "access_code", "/access_codes/create")) diff --git a/seam/routes/access_grants.py b/seam/routes/access_grants.py index 5f1208a0..56adb198 100644 --- a/seam/routes/access_grants.py +++ b/seam/routes/access_grants.py @@ -32,8 +32,6 @@ def create( customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[Union[str, Null]] = None, - location: Optional[Dict[str, Any]] = None, - location_ids: Optional[List[str]] = None, name: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, space_ids: Optional[List[str]] = None, @@ -56,10 +54,6 @@ def create( :param ends_at: Date and time at which the validity of the new grant ends, in `ISO 8601 `_ format. Must be a time in the future and after ``starts_at``. - :param location: Deprecated: Create a space first, then reference it using ``space_ids``. - - :param location_ids: Deprecated: Use ``space_ids``. - :param name: Name for the access grant. :param reservation_key: Reservation key for the access grant. @@ -164,7 +158,6 @@ def list( customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None, - location_id: Optional[str] = None, page_cursor: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, search: Optional[str] = None, @@ -189,8 +182,6 @@ def list( :param limit: Numerical limit on the number of access grants to return. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param reservation_key: Filter Access Grants by reservation_key. @@ -260,8 +251,6 @@ async def create( customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[Union[str, Null]] = None, - location: Optional[Dict[str, Any]] = None, - location_ids: Optional[List[str]] = None, name: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, space_ids: Optional[List[str]] = None, @@ -284,10 +273,6 @@ async def create( :param ends_at: Date and time at which the validity of the new grant ends, in `ISO 8601 `_ format. Must be a time in the future and after ``starts_at``. - :param location: Deprecated: Create a space first, then reference it using ``space_ids``. - - :param location_ids: Deprecated: Use ``space_ids``. - :param name: Name for the access grant. :param reservation_key: Reservation key for the access grant. @@ -392,7 +377,6 @@ async def list( customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None, - location_id: Optional[str] = None, page_cursor: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, search: Optional[str] = None, @@ -417,8 +401,6 @@ async def list( :param limit: Numerical limit on the number of access grants to return. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param reservation_key: Filter Access Grants by reservation_key. @@ -495,8 +477,6 @@ def create( customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[Union[str, Null]] = None, - location: Optional[Dict[str, Any]] = None, - location_ids: Optional[List[str]] = None, name: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, space_ids: Optional[List[str]] = None, @@ -519,10 +499,6 @@ def create( :param ends_at: Date and time at which the validity of the new grant ends, in `ISO 8601 `_ format. Must be a time in the future and after ``starts_at``. - :param location: Deprecated: Create a space first, then reference it using ``space_ids``. - - :param location_ids: Deprecated: Use ``space_ids``. - :param name: Name for the access grant. :param reservation_key: Reservation key for the access grant. @@ -552,10 +528,6 @@ def create( json_payload["device_ids"] = device_ids if ends_at is not None: json_payload["ends_at"] = ends_at - if location is not None: - json_payload["location"] = location - if location_ids is not None: - json_payload["location_ids"] = location_ids if name is not None: json_payload["name"] = name if reservation_key is not None: @@ -711,7 +683,6 @@ def list( customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None, - location_id: Optional[str] = None, page_cursor: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, search: Optional[str] = None, @@ -736,8 +707,6 @@ def list( :param limit: Numerical limit on the number of access grants to return. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param reservation_key: Filter Access Grants by reservation_key. @@ -767,8 +736,6 @@ def list( params["device_id"] = device_id if limit is not None: params["limit"] = limit - if location_id is not None: - params["location_id"] = location_id if page_cursor is not None: params["page_cursor"] = page_cursor if reservation_key is not None: @@ -892,8 +859,6 @@ async def create( customization_profile_id: Optional[str] = None, device_ids: Optional[List[str]] = None, ends_at: Optional[Union[str, Null]] = None, - location: Optional[Dict[str, Any]] = None, - location_ids: Optional[List[str]] = None, name: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, space_ids: Optional[List[str]] = None, @@ -916,10 +881,6 @@ async def create( :param ends_at: Date and time at which the validity of the new grant ends, in `ISO 8601 `_ format. Must be a time in the future and after ``starts_at``. - :param location: Deprecated: Create a space first, then reference it using ``space_ids``. - - :param location_ids: Deprecated: Use ``space_ids``. - :param name: Name for the access grant. :param reservation_key: Reservation key for the access grant. @@ -949,10 +910,6 @@ async def create( json_payload["device_ids"] = device_ids if ends_at is not None: json_payload["ends_at"] = ends_at - if location is not None: - json_payload["location"] = location - if location_ids is not None: - json_payload["location_ids"] = location_ids if name is not None: json_payload["name"] = name if reservation_key is not None: @@ -1108,7 +1065,6 @@ async def list( customer_key: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[float] = None, - location_id: Optional[str] = None, page_cursor: Optional[Union[str, Null]] = None, reservation_key: Optional[str] = None, search: Optional[str] = None, @@ -1133,8 +1089,6 @@ async def list( :param limit: Numerical limit on the number of access grants to return. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param reservation_key: Filter Access Grants by reservation_key. @@ -1164,8 +1118,6 @@ async def list( params["device_id"] = device_id if limit is not None: params["limit"] = limit - if location_id is not None: - params["location_id"] = location_id if page_cursor is not None: params["page_cursor"] = page_cursor if reservation_key is not None: diff --git a/seam/routes/acs_entrances.py b/seam/routes/acs_entrances.py index 059589bd..e0c0188c 100644 --- a/seam/routes/acs_entrances.py +++ b/seam/routes/acs_entrances.py @@ -58,7 +58,6 @@ def list( connected_account_id: Optional[str] = None, customer_key: Optional[str] = None, limit: Optional[int] = None, - location_id: Optional[Union[str, Null]] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, @@ -79,8 +78,6 @@ def list( :param limit: Maximum number of records to return per page. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param search: String for which to search. Filters returned entrances to include all records that satisfy a partial match using ``display_name``. @@ -166,7 +163,6 @@ async def list( connected_account_id: Optional[str] = None, customer_key: Optional[str] = None, limit: Optional[int] = None, - location_id: Optional[Union[str, Null]] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, @@ -187,8 +183,6 @@ async def list( :param limit: Maximum number of records to return per page. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param search: String for which to search. Filters returned entrances to include all records that satisfy a partial match using ``display_name``. @@ -301,7 +295,6 @@ def list( connected_account_id: Optional[str] = None, customer_key: Optional[str] = None, limit: Optional[int] = None, - location_id: Optional[Union[str, Null]] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, @@ -322,8 +315,6 @@ def list( :param limit: Maximum number of records to return per page. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param search: String for which to search. Filters returned entrances to include all records that satisfy a partial match using ``display_name``. @@ -347,8 +338,6 @@ def list( params["customer_key"] = customer_key if limit is not None: params["limit"] = limit - if location_id is not None: - params["location_id"] = location_id if page_cursor is not None: params["page_cursor"] = page_cursor if search is not None: @@ -511,7 +500,6 @@ async def list( connected_account_id: Optional[str] = None, customer_key: Optional[str] = None, limit: Optional[int] = None, - location_id: Optional[Union[str, Null]] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, @@ -532,8 +520,6 @@ async def list( :param limit: Maximum number of records to return per page. - :param location_id: Deprecated: Use ``space_id``. - :param page_cursor: Identifies the specific page of results to return, obtained from the previous page's ``next_page_cursor``. :param search: String for which to search. Filters returned entrances to include all records that satisfy a partial match using ``display_name``. @@ -557,8 +543,6 @@ async def list( params["customer_key"] = customer_key if limit is not None: params["limit"] = limit - if location_id is not None: - params["location_id"] = location_id if page_cursor is not None: params["page_cursor"] = page_cursor if search is not None: diff --git a/seam/routes/acs_users.py b/seam/routes/acs_users.py index aa9f27b1..1d141c9a 100644 --- a/seam/routes/acs_users.py +++ b/seam/routes/acs_users.py @@ -31,7 +31,6 @@ def create( full_name: str, access_schedule: Optional[Dict[str, Any]] = None, acs_access_group_ids: Optional[List[str]] = None, - email: Optional[str] = None, email_address: Optional[str] = None, phone_number: Optional[str] = None, user_identity_id: Optional[str] = None, @@ -46,8 +45,6 @@ def create( :param acs_access_group_ids: Array of access group IDs to indicate the access groups to which you want to add the new access system user. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param phone_number: Phone number of the `access system user `_ in E.164 format (for example, ``+15555550100``). @@ -234,7 +231,6 @@ def update( access_schedule: Optional[Union[Dict[str, Any], Null]] = None, acs_system_id: Optional[str] = None, acs_user_id: Optional[str] = None, - email: Optional[str] = None, email_address: Optional[str] = None, full_name: Optional[str] = None, hid_acs_system_id: Optional[str] = None, @@ -249,8 +245,6 @@ def update( :param acs_user_id: ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param full_name: Full name of the `access system user `_. @@ -287,7 +281,6 @@ async def create( full_name: str, access_schedule: Optional[Dict[str, Any]] = None, acs_access_group_ids: Optional[List[str]] = None, - email: Optional[str] = None, email_address: Optional[str] = None, phone_number: Optional[str] = None, user_identity_id: Optional[str] = None, @@ -302,8 +295,6 @@ async def create( :param acs_access_group_ids: Array of access group IDs to indicate the access groups to which you want to add the new access system user. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param phone_number: Phone number of the `access system user `_ in E.164 format (for example, ``+15555550100``). @@ -490,7 +481,6 @@ async def update( access_schedule: Optional[Union[Dict[str, Any], Null]] = None, acs_system_id: Optional[str] = None, acs_user_id: Optional[str] = None, - email: Optional[str] = None, email_address: Optional[str] = None, full_name: Optional[str] = None, hid_acs_system_id: Optional[str] = None, @@ -505,8 +495,6 @@ async def update( :param acs_user_id: ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param full_name: Full name of the `access system user `_. @@ -560,7 +548,6 @@ def create( full_name: str, access_schedule: Optional[Dict[str, Any]] = None, acs_access_group_ids: Optional[List[str]] = None, - email: Optional[str] = None, email_address: Optional[str] = None, phone_number: Optional[str] = None, user_identity_id: Optional[str] = None, @@ -575,8 +562,6 @@ def create( :param acs_access_group_ids: Array of access group IDs to indicate the access groups to which you want to add the new access system user. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param phone_number: Phone number of the `access system user `_ in E.164 format (for example, ``+15555550100``). @@ -594,8 +579,6 @@ def create( json_payload["access_schedule"] = access_schedule if acs_access_group_ids is not None: json_payload["acs_access_group_ids"] = acs_access_group_ids - if email is not None: - json_payload["email"] = email if email_address is not None: json_payload["email_address"] = email_address if phone_number is not None: @@ -937,7 +920,6 @@ def unsuspend( "access_schedule", "acs_system_id", "acs_user_id", - "email", "email_address", "full_name", "hid_acs_system_id", @@ -952,7 +934,6 @@ def update( access_schedule: Optional[Union[Dict[str, Any], Null]] = None, acs_system_id: Optional[str] = None, acs_user_id: Optional[str] = None, - email: Optional[str] = None, email_address: Optional[str] = None, full_name: Optional[str] = None, hid_acs_system_id: Optional[str] = None, @@ -967,8 +948,6 @@ def update( :param acs_user_id: ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param full_name: Full name of the `access system user `_. @@ -988,8 +967,6 @@ def update( json_payload["acs_system_id"] = acs_system_id if acs_user_id is not None: json_payload["acs_user_id"] = acs_user_id - if email is not None: - json_payload["email"] = email if email_address is not None: json_payload["email_address"] = email_address if full_name is not None: @@ -1044,7 +1021,6 @@ async def create( full_name: str, access_schedule: Optional[Dict[str, Any]] = None, acs_access_group_ids: Optional[List[str]] = None, - email: Optional[str] = None, email_address: Optional[str] = None, phone_number: Optional[str] = None, user_identity_id: Optional[str] = None, @@ -1059,8 +1035,6 @@ async def create( :param acs_access_group_ids: Array of access group IDs to indicate the access groups to which you want to add the new access system user. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param phone_number: Phone number of the `access system user `_ in E.164 format (for example, ``+15555550100``). @@ -1078,8 +1052,6 @@ async def create( json_payload["access_schedule"] = access_schedule if acs_access_group_ids is not None: json_payload["acs_access_group_ids"] = acs_access_group_ids - if email is not None: - json_payload["email"] = email if email_address is not None: json_payload["email_address"] = email_address if phone_number is not None: @@ -1425,7 +1397,6 @@ async def unsuspend( "access_schedule", "acs_system_id", "acs_user_id", - "email", "email_address", "full_name", "hid_acs_system_id", @@ -1440,7 +1411,6 @@ async def update( access_schedule: Optional[Union[Dict[str, Any], Null]] = None, acs_system_id: Optional[str] = None, acs_user_id: Optional[str] = None, - email: Optional[str] = None, email_address: Optional[str] = None, full_name: Optional[str] = None, hid_acs_system_id: Optional[str] = None, @@ -1455,8 +1425,6 @@ async def update( :param acs_user_id: ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. - :param email: Deprecated: use email_address. - :param email_address: Email address of the `access system user `_. :param full_name: Full name of the `access system user `_. @@ -1476,8 +1444,6 @@ async def update( json_payload["acs_system_id"] = acs_system_id if acs_user_id is not None: json_payload["acs_user_id"] = acs_user_id - if email is not None: - json_payload["email"] = email if email_address is not None: json_payload["email_address"] = email_address if full_name is not None: diff --git a/seam/routes/client_sessions.py b/seam/routes/client_sessions.py index 918047a0..15aaa8b8 100644 --- a/seam/routes/client_sessions.py +++ b/seam/routes/client_sessions.py @@ -22,7 +22,6 @@ def create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Creates a new `client session `_. @@ -40,8 +39,6 @@ def create( :param user_identity_id: ID of the `user identity `_ for which you want to create a client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id`` instead. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" raise NotImplementedError() @@ -77,7 +74,6 @@ def get_or_create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Returns a `client session `_ with specific characteristics or creates a new client session with these characteristics if it does not yet exist. @@ -91,8 +87,6 @@ def get_or_create( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session (or that are already associated with the existing client session). - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" raise NotImplementedError() @@ -105,7 +99,6 @@ def grant_access( connected_account_ids: Optional[List[str]] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> None: """Grants a `client session `_ access to one or more resources, such as `Connect Webviews `_, `user identities `_, and so on. @@ -119,8 +112,6 @@ def grant_access( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :raises ValueError: At least one parameter must be provided.""" raise NotImplementedError() @@ -181,7 +172,6 @@ async def create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Creates a new `client session `_. @@ -199,8 +189,6 @@ async def create( :param user_identity_id: ID of the `user identity `_ for which you want to create a client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id`` instead. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" raise NotImplementedError() @@ -236,7 +224,6 @@ async def get_or_create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Returns a `client session `_ with specific characteristics or creates a new client session with these characteristics if it does not yet exist. @@ -250,8 +237,6 @@ async def get_or_create( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session (or that are already associated with the existing client session). - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" raise NotImplementedError() @@ -264,7 +249,6 @@ async def grant_access( connected_account_ids: Optional[List[str]] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> None: """Grants a `client session `_ access to one or more resources, such as `Connect Webviews `_, `user identities `_, and so on. @@ -278,8 +262,6 @@ async def grant_access( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :raises ValueError: At least one parameter must be provided.""" raise NotImplementedError() @@ -347,7 +329,6 @@ def create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Creates a new `client session `_. @@ -365,8 +346,6 @@ def create( :param user_identity_id: ID of the `user identity `_ for which you want to create a client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id`` instead. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -384,8 +363,6 @@ def create( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids res = self.client.put("/client_sessions/create", json=json_payload) return ClientSession.from_dict( @@ -452,7 +429,6 @@ def get_or_create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Returns a `client session `_ with specific characteristics or creates a new client session with these characteristics if it does not yet exist. @@ -466,8 +442,6 @@ def get_or_create( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session (or that are already associated with the existing client session). - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -481,8 +455,6 @@ def get_or_create( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids res = self.client.post("/client_sessions/get_or_create", json=json_payload) return ClientSession.from_dict( @@ -497,7 +469,6 @@ def get_or_create( "connected_account_ids", "user_identifier_key", "user_identity_id", - "user_identity_ids", ), has_pagination=False, ) @@ -509,7 +480,6 @@ def grant_access( connected_account_ids: Optional[List[str]] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> None: """Grants a `client session `_ access to one or more resources, such as `Connect Webviews `_, `user identities `_, and so on. @@ -523,8 +493,6 @@ def grant_access( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :raises ValueError: At least one parameter must be provided.""" json_payload: Dict[str, Any] = {} @@ -538,8 +506,6 @@ def grant_access( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids self.client.patch("/client_sessions/grant_access", json=json_payload) return None @@ -648,7 +614,6 @@ async def create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Creates a new `client session `_. @@ -666,8 +631,6 @@ async def create( :param user_identity_id: ID of the `user identity `_ for which you want to create a client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id`` instead. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -685,8 +648,6 @@ async def create( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids res = await self.client.put("/client_sessions/create", json=json_payload) return ClientSession.from_dict( @@ -753,7 +714,6 @@ async def get_or_create( expires_at: Optional[str] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> ClientSession: """Returns a `client session `_ with specific characteristics or creates a new client session with these characteristics if it does not yet exist. @@ -767,8 +727,6 @@ async def get_or_create( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session (or that are already associated with the existing client session). - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :returns: OK""" json_payload: Dict[str, Any] = {} @@ -782,8 +740,6 @@ async def get_or_create( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids res = await self.client.post( "/client_sessions/get_or_create", json=json_payload ) @@ -800,7 +756,6 @@ async def get_or_create( "connected_account_ids", "user_identifier_key", "user_identity_id", - "user_identity_ids", ), has_pagination=False, ) @@ -812,7 +767,6 @@ async def grant_access( connected_account_ids: Optional[List[str]] = None, user_identifier_key: Optional[str] = None, user_identity_id: Optional[str] = None, - user_identity_ids: Optional[List[str]] = None, ) -> None: """Grants a `client session `_ access to one or more resources, such as `Connect Webviews `_, `user identities `_, and so on. @@ -826,8 +780,6 @@ async def grant_access( :param user_identity_id: ID of the `user identity `_ that you want to associate with the client session. - :param user_identity_ids: Deprecated: Use ``user_identity_id``. IDs of the `user identities `_ that you want to associate with the client session. - :raises ValueError: At least one parameter must be provided.""" json_payload: Dict[str, Any] = {} @@ -841,8 +793,6 @@ async def grant_access( json_payload["user_identifier_key"] = user_identifier_key if user_identity_id is not None: json_payload["user_identity_id"] = user_identity_id - if user_identity_ids is not None: - json_payload["user_identity_ids"] = user_identity_ids await self.client.patch("/client_sessions/grant_access", json=json_payload) return None diff --git a/seam/routes/connect_webviews.py b/seam/routes/connect_webviews.py index c2c162ff..0226bd82 100644 --- a/seam/routes/connect_webviews.py +++ b/seam/routes/connect_webviews.py @@ -24,6 +24,7 @@ def create( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -79,6 +80,7 @@ def create( "tado", "salto_space", "sensi", + "sensibo", "keynest", "korelock", "keyincode", @@ -105,6 +107,8 @@ def create( "aqara", "eufy", "sonos", + "hayward_omnilogic", + "tuya", "hid_cm", "google_nest", "slack", @@ -227,6 +231,7 @@ async def create( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -282,6 +287,7 @@ async def create( "tado", "salto_space", "sensi", + "sensibo", "keynest", "korelock", "keyincode", @@ -308,6 +314,8 @@ async def create( "aqara", "eufy", "sonos", + "hayward_omnilogic", + "tuya", "hid_cm", "google_nest", "slack", @@ -437,6 +445,7 @@ def create( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -492,6 +501,7 @@ def create( "tado", "salto_space", "sensi", + "sensibo", "keynest", "korelock", "keyincode", @@ -518,6 +528,8 @@ def create( "aqara", "eufy", "sonos", + "hayward_omnilogic", + "tuya", "hid_cm", "google_nest", "slack", @@ -725,6 +737,7 @@ async def create( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -780,6 +793,7 @@ async def create( "tado", "salto_space", "sensi", + "sensibo", "keynest", "korelock", "keyincode", @@ -806,6 +820,8 @@ async def create( "aqara", "eufy", "sonos", + "hayward_omnilogic", + "tuya", "hid_cm", "google_nest", "slack", diff --git a/seam/routes/connected_accounts.py b/seam/routes/connected_accounts.py index 92db85a7..561ef231 100644 --- a/seam/routes/connected_accounts.py +++ b/seam/routes/connected_accounts.py @@ -102,6 +102,7 @@ def update( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -214,6 +215,7 @@ async def update( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -400,6 +402,7 @@ def update( "access_control", "camera", "speaker", + "pool", ] ] ] = None, @@ -606,6 +609,7 @@ async def update( "access_control", "camera", "speaker", + "pool", ] ] ] = None, diff --git a/seam/routes/customers.py b/seam/routes/customers.py index e9d9b7a5..3a961b12 100644 --- a/seam/routes/customers.py +++ b/seam/routes/customers.py @@ -16,7 +16,6 @@ def create_portal( customer_data: Optional[Dict[str, Any]] = None, customer_resources_filters: Optional[List[Dict[str, Any]]] = None, customization_profile_id: Optional[str] = None, - deep_link: Optional[Dict[str, Any]] = None, exclude_locale_picker: Optional[bool] = None, features: Optional[Dict[str, Any]] = None, is_embedded: Optional[bool] = None, @@ -46,8 +45,6 @@ def create_portal( :param customization_profile_id: The ID of the customization profile to use for the portal. - :param deep_link: Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. - :param exclude_locale_picker: Whether to exclude the option to select a locale within the portal UI. :param features: Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them. @@ -216,7 +213,6 @@ async def create_portal( customer_data: Optional[Dict[str, Any]] = None, customer_resources_filters: Optional[List[Dict[str, Any]]] = None, customization_profile_id: Optional[str] = None, - deep_link: Optional[Dict[str, Any]] = None, exclude_locale_picker: Optional[bool] = None, features: Optional[Dict[str, Any]] = None, is_embedded: Optional[bool] = None, @@ -246,8 +242,6 @@ async def create_portal( :param customization_profile_id: The ID of the customization profile to use for the portal. - :param deep_link: Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. - :param exclude_locale_picker: Whether to exclude the option to select a locale within the portal UI. :param features: Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them. @@ -423,7 +417,6 @@ def create_portal( customer_data: Optional[Dict[str, Any]] = None, customer_resources_filters: Optional[List[Dict[str, Any]]] = None, customization_profile_id: Optional[str] = None, - deep_link: Optional[Dict[str, Any]] = None, exclude_locale_picker: Optional[bool] = None, features: Optional[Dict[str, Any]] = None, is_embedded: Optional[bool] = None, @@ -453,8 +446,6 @@ def create_portal( :param customization_profile_id: The ID of the customization profile to use for the portal. - :param deep_link: Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. - :param exclude_locale_picker: Whether to exclude the option to select a locale within the portal UI. :param features: Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them. @@ -478,8 +469,6 @@ def create_portal( json_payload["customer_resources_filters"] = customer_resources_filters if customization_profile_id is not None: json_payload["customization_profile_id"] = customization_profile_id - if deep_link is not None: - json_payload["deep_link"] = deep_link if exclude_locale_picker is not None: json_payload["exclude_locale_picker"] = exclude_locale_picker if features is not None: @@ -756,7 +745,6 @@ async def create_portal( customer_data: Optional[Dict[str, Any]] = None, customer_resources_filters: Optional[List[Dict[str, Any]]] = None, customization_profile_id: Optional[str] = None, - deep_link: Optional[Dict[str, Any]] = None, exclude_locale_picker: Optional[bool] = None, features: Optional[Dict[str, Any]] = None, is_embedded: Optional[bool] = None, @@ -786,8 +774,6 @@ async def create_portal( :param customization_profile_id: The ID of the customization profile to use for the portal. - :param deep_link: Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. - :param exclude_locale_picker: Whether to exclude the option to select a locale within the portal UI. :param features: Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them. @@ -811,8 +797,6 @@ async def create_portal( json_payload["customer_resources_filters"] = customer_resources_filters if customization_profile_id is not None: json_payload["customization_profile_id"] = customization_profile_id - if deep_link is not None: - json_payload["deep_link"] = deep_link if exclude_locale_picker is not None: json_payload["exclude_locale_picker"] = exclude_locale_picker if features is not None: diff --git a/seam/routes/devices.py b/seam/routes/devices.py index 9e03802d..dc74162c 100644 --- a/seam/routes/devices.py +++ b/seam/routes/devices.py @@ -97,6 +97,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -106,6 +107,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -116,6 +118,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -155,6 +159,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -164,6 +169,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -174,6 +180,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -222,6 +230,7 @@ def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -242,12 +251,13 @@ def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, - unstable_location_id: Optional[Union[str, Null]] = None, user_identifier_key: Optional[str] = None, ) -> List[Device]: """Returns a list of all `devices `_. @@ -280,8 +290,6 @@ def list( :param space_id: ID of the space for which you want to list devices. - :param unstable_location_id: Deprecated: Use ``space_id``. - :param user_identifier_key: Your own internal user ID for the user for which you want to list devices. :returns: OK""" @@ -427,6 +435,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -436,6 +445,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -446,6 +456,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -485,6 +497,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -494,6 +507,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -504,6 +518,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -552,6 +568,7 @@ async def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -572,12 +589,13 @@ async def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, - unstable_location_id: Optional[Union[str, Null]] = None, user_identifier_key: Optional[str] = None, ) -> List[Device]: """Returns a list of all `devices `_. @@ -610,8 +628,6 @@ async def list( :param space_id: ID of the space for which you want to list devices. - :param unstable_location_id: Deprecated: Use ``space_id``. - :param user_identifier_key: Your own internal user ID for the user for which you want to list devices. :returns: OK""" @@ -777,6 +793,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -786,6 +803,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -796,6 +814,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -835,6 +855,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -844,6 +865,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -854,6 +876,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -902,6 +926,7 @@ def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -922,12 +947,13 @@ def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, - unstable_location_id: Optional[Union[str, Null]] = None, user_identifier_key: Optional[str] = None, ) -> List[Device]: """Returns a list of all `devices `_. @@ -960,8 +986,6 @@ def list( :param space_id: ID of the space for which you want to list devices. - :param unstable_location_id: Deprecated: Use ``space_id``. - :param user_identifier_key: Your own internal user ID for the user for which you want to list devices. :returns: OK""" @@ -995,8 +1019,6 @@ def list( params["search"] = search if space_id is not None: params["space_id"] = space_id - if unstable_location_id is not None: - params["unstable_location_id"] = unstable_location_id if user_identifier_key is not None: params["user_identifier_key"] = user_identifier_key res = self.client.get("/devices/list", params=params) @@ -1214,6 +1236,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -1223,6 +1246,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -1233,6 +1257,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -1272,6 +1298,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -1281,6 +1308,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -1291,6 +1319,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -1339,6 +1369,7 @@ async def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -1359,12 +1390,13 @@ async def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, search: Optional[str] = None, space_id: Optional[str] = None, - unstable_location_id: Optional[Union[str, Null]] = None, user_identifier_key: Optional[str] = None, ) -> List[Device]: """Returns a list of all `devices `_. @@ -1397,8 +1429,6 @@ async def list( :param space_id: ID of the space for which you want to list devices. - :param unstable_location_id: Deprecated: Use ``space_id``. - :param user_identifier_key: Your own internal user ID for the user for which you want to list devices. :returns: OK""" @@ -1432,8 +1462,6 @@ async def list( params["search"] = search if space_id is not None: params["space_id"] = space_id - if unstable_location_id is not None: - params["unstable_location_id"] = unstable_location_id if user_identifier_key is not None: params["user_identifier_key"] = user_identifier_key res = await self.client.get("/devices/list", params=params) diff --git a/seam/routes/devices_unmanaged.py b/seam/routes/devices_unmanaged.py index 965ebf15..cbbfd134 100644 --- a/seam/routes/devices_unmanaged.py +++ b/seam/routes/devices_unmanaged.py @@ -76,6 +76,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -85,6 +86,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -95,6 +97,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -134,6 +138,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -143,6 +148,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -153,6 +159,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -201,6 +209,7 @@ def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -221,6 +230,8 @@ def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, @@ -345,6 +356,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -354,6 +366,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -364,6 +377,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -403,6 +418,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -412,6 +428,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -422,6 +439,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -470,6 +489,7 @@ async def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -490,6 +510,8 @@ async def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, @@ -638,6 +660,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -647,6 +670,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -657,6 +681,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -696,6 +722,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -705,6 +732,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -715,6 +743,8 @@ def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -763,6 +793,7 @@ def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -783,6 +814,8 @@ def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, @@ -979,6 +1012,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -988,6 +1022,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -998,6 +1033,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] = None, device_types: Optional[ @@ -1037,6 +1074,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", "keynest_key", "noiseaware_activity_zone", @@ -1046,6 +1084,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", "ios_phone", "android_phone", @@ -1056,6 +1095,8 @@ async def list( "unifi_protect_camera", "sonos_speaker", "alertify_sensor", + "hayward_pool_system", + "hayward_pool", ] ] ] = None, @@ -1104,6 +1145,7 @@ async def list( "nest", "noiseaware", "sensi", + "sensibo", "smartthings", "tado", "ultraloq", @@ -1124,6 +1166,8 @@ async def list( "slack", "yacan", "sonos", + "hayward_omnilogic", + "tuya", ] ] = None, page_cursor: Optional[Union[str, Null]] = None, diff --git a/seam/routes/locks.py b/seam/routes/locks.py index a9d9d78b..2f3098b1 100644 --- a/seam/routes/locks.py +++ b/seam/routes/locks.py @@ -107,6 +107,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] = None, @@ -147,6 +148,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] @@ -189,6 +191,7 @@ def list( "omnitec", "kisi", "yacan", + "tuya", ] ] = None, ) -> List[Device]: @@ -332,6 +335,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] = None, @@ -372,6 +376,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] @@ -414,6 +419,7 @@ async def list( "omnitec", "kisi", "yacan", + "tuya", ] ] = None, ) -> List[Device]: @@ -603,6 +609,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] = None, @@ -643,6 +650,7 @@ def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] @@ -685,6 +693,7 @@ def list( "omnitec", "kisi", "yacan", + "tuya", ] ] = None, ) -> List[Device]: @@ -933,6 +942,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] = None, @@ -973,6 +983,7 @@ async def list( "omnitec_lock", "kisi_lock", "aqara_lock", + "tuya_lock", "eufy_lock", ] ] @@ -1015,6 +1026,7 @@ async def list( "omnitec", "kisi", "yacan", + "tuya", ] ] = None, ) -> List[Device]: diff --git a/seam/routes/spaces.py b/seam/routes/spaces.py index 638b1c57..36858155 100644 --- a/seam/routes/spaces.py +++ b/seam/routes/spaces.py @@ -204,6 +204,7 @@ def update( acs_entrance_ids: Optional[List[str]] = None, customer_data: Optional[Dict[str, Any]] = None, device_ids: Optional[List[str]] = None, + geolocation: Optional[Union[Dict[str, Any], Null]] = None, name: Optional[str] = None, space_id: Optional[str] = None, space_key: Optional[str] = None, @@ -216,6 +217,8 @@ def update( :param device_ids: IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. + :param geolocation: Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. + :param name: Name of the space. :param space_id: ID of the space that you want to update. @@ -423,6 +426,7 @@ async def update( acs_entrance_ids: Optional[List[str]] = None, customer_data: Optional[Dict[str, Any]] = None, device_ids: Optional[List[str]] = None, + geolocation: Optional[Union[Dict[str, Any], Null]] = None, name: Optional[str] = None, space_id: Optional[str] = None, space_key: Optional[str] = None, @@ -435,6 +439,8 @@ async def update( :param device_ids: IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. + :param geolocation: Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. + :param name: Name of the space. :param space_id: ID of the space that you want to update. @@ -803,6 +809,7 @@ def update( acs_entrance_ids: Optional[List[str]] = None, customer_data: Optional[Dict[str, Any]] = None, device_ids: Optional[List[str]] = None, + geolocation: Optional[Union[Dict[str, Any], Null]] = None, name: Optional[str] = None, space_id: Optional[str] = None, space_key: Optional[str] = None, @@ -815,6 +822,8 @@ def update( :param device_ids: IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. + :param geolocation: Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. + :param name: Name of the space. :param space_id: ID of the space that you want to update. @@ -830,6 +839,8 @@ def update( json_payload["customer_data"] = customer_data if device_ids is not None: json_payload["device_ids"] = device_ids + if geolocation is not None: + json_payload["geolocation"] = geolocation if name is not None: json_payload["name"] = name if space_id is not None: @@ -1201,6 +1212,7 @@ async def update( acs_entrance_ids: Optional[List[str]] = None, customer_data: Optional[Dict[str, Any]] = None, device_ids: Optional[List[str]] = None, + geolocation: Optional[Union[Dict[str, Any], Null]] = None, name: Optional[str] = None, space_id: Optional[str] = None, space_key: Optional[str] = None, @@ -1213,6 +1225,8 @@ async def update( :param device_ids: IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. + :param geolocation: Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. + :param name: Name of the space. :param space_id: ID of the space that you want to update. @@ -1228,6 +1242,8 @@ async def update( json_payload["customer_data"] = customer_data if device_ids is not None: json_payload["device_ids"] = device_ids + if geolocation is not None: + json_payload["geolocation"] = geolocation if name is not None: json_payload["name"] = name if space_id is not None: diff --git a/seam/routes/thermostats.py b/seam/routes/thermostats.py index 37c0bd20..e96734d6 100644 --- a/seam/routes/thermostats.py +++ b/seam/routes/thermostats.py @@ -122,7 +122,6 @@ def create_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Creates a `climate preset `_ for a specified `thermostat `_. @@ -147,8 +146,6 @@ def create_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat or using the API can change the thermostat's settings. - :param name: User-friendly name to identify the `climate preset `_. """ raise NotImplementedError() @@ -227,6 +224,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] = None, @@ -238,13 +236,20 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] ] = None, manufacturer: Optional[ Literal[ - "ecobee", "honeywell_resideo", "nest", "sensi", "smartthings", "tado" + "ecobee", + "honeywell_resideo", + "nest", + "sensi", + "sensibo", + "smartthings", + "tado", ] ] = None, ) -> List[Device]: @@ -388,7 +393,6 @@ def update_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Updates a specified `climate preset `_ for a specified `thermostat `_. @@ -413,8 +417,6 @@ def update_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :param name: User-friendly name to identify the `climate preset `_. """ raise NotImplementedError() @@ -549,7 +551,6 @@ async def create_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Creates a `climate preset `_ for a specified `thermostat `_. @@ -574,8 +575,6 @@ async def create_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat or using the API can change the thermostat's settings. - :param name: User-friendly name to identify the `climate preset `_. """ raise NotImplementedError() @@ -656,6 +655,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] = None, @@ -667,13 +667,20 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] ] = None, manufacturer: Optional[ Literal[ - "ecobee", "honeywell_resideo", "nest", "sensi", "smartthings", "tado" + "ecobee", + "honeywell_resideo", + "nest", + "sensi", + "sensibo", + "smartthings", + "tado", ] ] = None, ) -> List[Device]: @@ -817,7 +824,6 @@ async def update_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Updates a specified `climate preset `_ for a specified `thermostat `_. @@ -842,8 +848,6 @@ async def update_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :param name: User-friendly name to identify the `climate preset `_. """ raise NotImplementedError() @@ -1061,7 +1065,6 @@ def create_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Creates a `climate preset `_ for a specified `thermostat `_. @@ -1086,8 +1089,6 @@ def create_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat or using the API can change the thermostat's settings. - :param name: User-friendly name to identify the `climate preset `_. """ json_payload: Dict[str, Any] = {} @@ -1112,8 +1113,6 @@ def create_climate_preset( json_payload["heating_set_point_fahrenheit"] = heating_set_point_fahrenheit if hvac_mode_setting is not None: json_payload["hvac_mode_setting"] = hvac_mode_setting - if manual_override_allowed is not None: - json_payload["manual_override_allowed"] = manual_override_allowed if name is not None: json_payload["name"] = name self.client.post("/thermostats/create_climate_preset", json=json_payload) @@ -1262,6 +1261,7 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] = None, @@ -1273,13 +1273,20 @@ def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] ] = None, manufacturer: Optional[ Literal[ - "ecobee", "honeywell_resideo", "nest", "sensi", "smartthings", "tado" + "ecobee", + "honeywell_resideo", + "nest", + "sensi", + "sensibo", + "smartthings", + "tado", ] ] = None, ) -> List[Device]: @@ -1554,7 +1561,6 @@ def update_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Updates a specified `climate preset `_ for a specified `thermostat `_. @@ -1579,8 +1585,6 @@ def update_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :param name: User-friendly name to identify the `climate preset `_. """ json_payload: Dict[str, Any] = {} @@ -1605,8 +1609,6 @@ def update_climate_preset( json_payload["heating_set_point_fahrenheit"] = heating_set_point_fahrenheit if hvac_mode_setting is not None: json_payload["hvac_mode_setting"] = hvac_mode_setting - if manual_override_allowed is not None: - json_payload["manual_override_allowed"] = manual_override_allowed if name is not None: json_payload["name"] = name self.client.patch("/thermostats/update_climate_preset", json=json_payload) @@ -1862,7 +1864,6 @@ async def create_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Creates a `climate preset `_ for a specified `thermostat `_. @@ -1887,8 +1888,6 @@ async def create_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat or using the API can change the thermostat's settings. - :param name: User-friendly name to identify the `climate preset `_. """ json_payload: Dict[str, Any] = {} @@ -1913,8 +1912,6 @@ async def create_climate_preset( json_payload["heating_set_point_fahrenheit"] = heating_set_point_fahrenheit if hvac_mode_setting is not None: json_payload["hvac_mode_setting"] = hvac_mode_setting - if manual_override_allowed is not None: - json_payload["manual_override_allowed"] = manual_override_allowed if name is not None: json_payload["name"] = name await self.client.post("/thermostats/create_climate_preset", json=json_payload) @@ -2065,6 +2062,7 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] = None, @@ -2076,13 +2074,20 @@ async def list( "honeywell_resideo_thermostat", "tado_thermostat", "sensi_thermostat", + "sensibo_thermostat", "smartthings_thermostat", ] ] ] = None, manufacturer: Optional[ Literal[ - "ecobee", "honeywell_resideo", "nest", "sensi", "smartthings", "tado" + "ecobee", + "honeywell_resideo", + "nest", + "sensi", + "sensibo", + "smartthings", + "tado", ] ] = None, ) -> List[Device]: @@ -2361,7 +2366,6 @@ async def update_climate_preset( hvac_mode_setting: Optional[ Literal["off", "heat", "cool", "heat_cool", "eco"] ] = None, - manual_override_allowed: Optional[bool] = None, name: Optional[Union[str, Null]] = None, ) -> None: """Updates a specified `climate preset `_ for a specified `thermostat `_. @@ -2386,8 +2390,6 @@ async def update_climate_preset( :param hvac_mode_setting: Desired `HVAC mode `_ setting, such as ``heat``, ``cool``, ``heat_cool``, or ``off``. - :param manual_override_allowed: Deprecated: Use 'thermostat_schedule.is_override_allowed' Indicates whether a person at the thermostat can change the thermostat's settings. See `Specifying Manual Override Permissions `_. - :param name: User-friendly name to identify the `climate preset `_. """ json_payload: Dict[str, Any] = {} @@ -2412,8 +2414,6 @@ async def update_climate_preset( json_payload["heating_set_point_fahrenheit"] = heating_set_point_fahrenheit if hvac_mode_setting is not None: json_payload["hvac_mode_setting"] = hvac_mode_setting - if manual_override_allowed is not None: - json_payload["manual_override_allowed"] = manual_override_allowed if name is not None: json_payload["name"] = name await self.client.patch("/thermostats/update_climate_preset", json=json_payload) diff --git a/seam/routes/workspaces.py b/seam/routes/workspaces.py index 29eb7409..54ace4d3 100644 --- a/seam/routes/workspaces.py +++ b/seam/routes/workspaces.py @@ -19,22 +19,15 @@ def create( self, *, name: str, - company_name: Optional[str] = None, connect_partner_name: Optional[Union[str, Null]] = None, connect_webview_customization: Optional[Dict[str, Any]] = None, is_sandbox: Optional[bool] = None, organization_id: Optional[str] = None, - webview_logo_shape: Optional[Literal["circle", "square"]] = None, - webview_primary_button_color: Optional[str] = None, - webview_primary_button_text_color: Optional[str] = None, - webview_success_message: Optional[str] = None, ) -> Workspace: """Creates a new `workspace `_. :param name: Name of the new workspace. - :param company_name: Deprecated: Use ``connect_partner_name`` instead. Company name for the new workspace. - :param connect_partner_name: Connect partner name for the new workspace. :param connect_webview_customization: `Connect Webview `_ customizations for the new workspace. See also `Customize the Look and Feel of Your Connect Webviews `_. @@ -43,14 +36,6 @@ def create( :param organization_id: ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it. - :param webview_logo_shape: Deprecated: Use ``connect_webview_customization.webview_logo_shape`` instead. - - :param webview_primary_button_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_color`` instead. - - :param webview_primary_button_text_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_text_color`` instead. - - :param webview_success_message: Deprecated: Use ``connect_webview_customization.webview_success_message`` instead. - :returns: OK""" raise NotImplementedError() @@ -114,22 +99,15 @@ async def create( self, *, name: str, - company_name: Optional[str] = None, connect_partner_name: Optional[Union[str, Null]] = None, connect_webview_customization: Optional[Dict[str, Any]] = None, is_sandbox: Optional[bool] = None, organization_id: Optional[str] = None, - webview_logo_shape: Optional[Literal["circle", "square"]] = None, - webview_primary_button_color: Optional[str] = None, - webview_primary_button_text_color: Optional[str] = None, - webview_success_message: Optional[str] = None, ) -> Workspace: """Creates a new `workspace `_. :param name: Name of the new workspace. - :param company_name: Deprecated: Use ``connect_partner_name`` instead. Company name for the new workspace. - :param connect_partner_name: Connect partner name for the new workspace. :param connect_webview_customization: `Connect Webview `_ customizations for the new workspace. See also `Customize the Look and Feel of Your Connect Webviews `_. @@ -138,14 +116,6 @@ async def create( :param organization_id: ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it. - :param webview_logo_shape: Deprecated: Use ``connect_webview_customization.webview_logo_shape`` instead. - - :param webview_primary_button_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_color`` instead. - - :param webview_primary_button_text_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_text_color`` instead. - - :param webview_success_message: Deprecated: Use ``connect_webview_customization.webview_success_message`` instead. - :returns: OK""" raise NotImplementedError() @@ -214,22 +184,15 @@ def create( self, *, name: str, - company_name: Optional[str] = None, connect_partner_name: Optional[Union[str, Null]] = None, connect_webview_customization: Optional[Dict[str, Any]] = None, is_sandbox: Optional[bool] = None, organization_id: Optional[str] = None, - webview_logo_shape: Optional[Literal["circle", "square"]] = None, - webview_primary_button_color: Optional[str] = None, - webview_primary_button_text_color: Optional[str] = None, - webview_success_message: Optional[str] = None, ) -> Workspace: """Creates a new `workspace `_. :param name: Name of the new workspace. - :param company_name: Deprecated: Use ``connect_partner_name`` instead. Company name for the new workspace. - :param connect_partner_name: Connect partner name for the new workspace. :param connect_webview_customization: `Connect Webview `_ customizations for the new workspace. See also `Customize the Look and Feel of Your Connect Webviews `_. @@ -238,21 +201,11 @@ def create( :param organization_id: ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it. - :param webview_logo_shape: Deprecated: Use ``connect_webview_customization.webview_logo_shape`` instead. - - :param webview_primary_button_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_color`` instead. - - :param webview_primary_button_text_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_text_color`` instead. - - :param webview_success_message: Deprecated: Use ``connect_webview_customization.webview_success_message`` instead. - :returns: OK""" json_payload: Dict[str, Any] = {} if name is not None: json_payload["name"] = name - if company_name is not None: - json_payload["company_name"] = company_name if connect_partner_name is not None: json_payload["connect_partner_name"] = connect_partner_name if connect_webview_customization is not None: @@ -263,16 +216,6 @@ def create( json_payload["is_sandbox"] = is_sandbox if organization_id is not None: json_payload["organization_id"] = organization_id - if webview_logo_shape is not None: - json_payload["webview_logo_shape"] = webview_logo_shape - if webview_primary_button_color is not None: - json_payload["webview_primary_button_color"] = webview_primary_button_color - if webview_primary_button_text_color is not None: - json_payload["webview_primary_button_text_color"] = ( - webview_primary_button_text_color - ) - if webview_success_message is not None: - json_payload["webview_success_message"] = webview_success_message res = self.client.post("/workspaces/create", json=json_payload) return Workspace.from_dict(unwrap(res, "workspace", "/workspaces/create")) @@ -399,22 +342,15 @@ async def create( self, *, name: str, - company_name: Optional[str] = None, connect_partner_name: Optional[Union[str, Null]] = None, connect_webview_customization: Optional[Dict[str, Any]] = None, is_sandbox: Optional[bool] = None, organization_id: Optional[str] = None, - webview_logo_shape: Optional[Literal["circle", "square"]] = None, - webview_primary_button_color: Optional[str] = None, - webview_primary_button_text_color: Optional[str] = None, - webview_success_message: Optional[str] = None, ) -> Workspace: """Creates a new `workspace `_. :param name: Name of the new workspace. - :param company_name: Deprecated: Use ``connect_partner_name`` instead. Company name for the new workspace. - :param connect_partner_name: Connect partner name for the new workspace. :param connect_webview_customization: `Connect Webview `_ customizations for the new workspace. See also `Customize the Look and Feel of Your Connect Webviews `_. @@ -423,21 +359,11 @@ async def create( :param organization_id: ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it. - :param webview_logo_shape: Deprecated: Use ``connect_webview_customization.webview_logo_shape`` instead. - - :param webview_primary_button_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_color`` instead. - - :param webview_primary_button_text_color: Deprecated: Use ``connect_webview_customization.webview_primary_button_text_color`` instead. - - :param webview_success_message: Deprecated: Use ``connect_webview_customization.webview_success_message`` instead. - :returns: OK""" json_payload: Dict[str, Any] = {} if name is not None: json_payload["name"] = name - if company_name is not None: - json_payload["company_name"] = company_name if connect_partner_name is not None: json_payload["connect_partner_name"] = connect_partner_name if connect_webview_customization is not None: @@ -448,16 +374,6 @@ async def create( json_payload["is_sandbox"] = is_sandbox if organization_id is not None: json_payload["organization_id"] = organization_id - if webview_logo_shape is not None: - json_payload["webview_logo_shape"] = webview_logo_shape - if webview_primary_button_color is not None: - json_payload["webview_primary_button_color"] = webview_primary_button_color - if webview_primary_button_text_color is not None: - json_payload["webview_primary_button_text_color"] = ( - webview_primary_button_text_color - ) - if webview_success_message is not None: - json_payload["webview_success_message"] = webview_success_message res = await self.client.post("/workspaces/create", json=json_payload) return Workspace.from_dict(unwrap(res, "workspace", "/workspaces/create"))