From 67ecfeabb24cb7f66867350733d7685de152596c Mon Sep 17 00:00:00 2001 From: Sy Bohy Date: Wed, 25 Nov 2026 17:33:07 -0800 Subject: [PATCH 1/2] feat: Update to @seamapi/types@1.1246.0 Co-Authored-By: Claude Fable 5.1 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f44067df..22b3ef1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.10", "@seamapi/smith": "^1.2.1", - "@seamapi/types": "1.1231.0", + "@seamapi/types": "1.1246.0", "change-case": "^5.4.4", "prettier": "^3.2.5" }, @@ -860,9 +860,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1231.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1231.0.tgz", - "integrity": "sha512-TLJY/435QDNZzGVg5ALdUkV3Xs77SpnyGP1oHBES+EXW1PYaep1TxwmYFzaow4kEjPAmupuXgq9Pr4h++S/d8Q==", + "version": "1.1246.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1246.0.tgz", + "integrity": "sha512-M8bkKbd7Vky61iFSMn9zbs1z+D7U06wjO2a82xg0mrqoCI84WI5f8mxZfbZhxzU5ZpcLqDqpK7DDFApiiBA3TA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index fd50c1bf..7f8cee38 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.10", "@seamapi/smith": "^1.2.1", - "@seamapi/types": "1.1231.0", + "@seamapi/types": "1.1246.0", "change-case": "^5.4.4", "prettier": "^3.2.5" } From 82ef588ff08b0e066caceed8f8165dbc0447d403 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 26 Nov 2026 01:34:13 +0000 Subject: [PATCH 2/2] ci: Generate code --- seam/resources/__init__.py | 2 + seam/resources/access_code.py | 8 +- seam/resources/action_attempt.py | 276 ++++++++++++++++++++++++ seam/resources/device.py | 22 +- seam/resources/device_provider.py | 1 + seam/resources/seam_event.py | 258 ++++++++++++++++++++++ seam/resources/thermostat_schedule.py | 42 ++++ seam/resources/unmanaged_access_code.py | 8 +- seam/resources/unmanaged_device.py | 2 + seam/routes/action_attempts.py | 168 ++++++++++++++- seam/routes/connect_webviews.py | 4 + seam/routes/devices.py | 256 ++++++++++++++++++++++ seam/routes/devices_unmanaged.py | 20 ++ seam/routes/events.py | 16 ++ 14 files changed, 1065 insertions(+), 18 deletions(-) diff --git a/seam/resources/__init__.py b/seam/resources/__init__.py index b85a253d..3386f5e5 100644 --- a/seam/resources/__init__.py +++ b/seam/resources/__init__.py @@ -198,6 +198,7 @@ DeviceDisconnectedEvent, DeviceUnmanagedDisconnectedEvent, DeviceTamperedEvent, + SensorSmokingDetectedEvent, DeviceLowBatteryEvent, DeviceBatteryStatusChangedEvent, DeviceRemovedEvent, @@ -221,6 +222,7 @@ LockDoorClosedEvent, ThermostatClimatePresetActivatedEvent, ThermostatManuallyAdjustedEvent, + ThermostatScheduleClimatePresetActivationMayFailEvent, ThermostatTemperatureThresholdExceededEvent, ThermostatTemperatureThresholdNoLongerExceededEvent, ThermostatTemperatureReachedSetPointEvent, diff --git a/seam/resources/access_code.py b/seam/resources/access_code.py index bebccfe2..dd338921 100644 --- a/seam/resources/access_code.py +++ b/seam/resources/access_code.py @@ -264,7 +264,7 @@ def from_dict(cls, d: Any): class ConflictingExternalModificationError(ResourceMapping): """Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again. - :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. + :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. ``deactivated`` means the code is still on the device but was disabled or suspended. :ivar created_at: Date and time at which Seam created the error. @@ -299,7 +299,7 @@ def from_dict(cls, d: Any): to=d.get("to", None), ) - change_type: Optional[Literal["modified", "removed"]] + change_type: Optional[Literal["modified", "removed", "deactivated"]] created_at: Optional[str] error_code: Literal["conflicting_external_modification"] is_access_code_error: Literal[True] @@ -1201,7 +1201,7 @@ def from_dict(cls, d: Any): class ExternalModificationInEffectWarning(ResourceMapping): """Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored. - :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. + :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. ``deactivated`` means the code is still on the device but was disabled or suspended. :ivar created_at: Date and time at which Seam created the warning. @@ -1234,7 +1234,7 @@ def from_dict(cls, d: Any): to=d.get("to", None), ) - change_type: Optional[Literal["modified", "removed"]] + change_type: Optional[Literal["modified", "removed", "deactivated"]] created_at: Optional[str] message: str modified_fields: Optional[List[ModifiedFields]] diff --git a/seam/resources/action_attempt.py b/seam/resources/action_attempt.py index 3ff3b96c..fc2742c4 100644 --- a/seam/resources/action_attempt.py +++ b/seam/resources/action_attempt.py @@ -12,6 +12,8 @@ class LockDoorSuccessActionAttempt: :ivar action_type: Action attempt to track the status of locking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -35,6 +37,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["LOCK_DOOR"] + created_at: str error: None result: Result status: Literal["success"] @@ -44,6 +47,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -58,6 +62,8 @@ class LockDoorPendingActionAttempt: :ivar action_type: Action attempt to track the status of locking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -66,6 +72,7 @@ class LockDoorPendingActionAttempt: action_attempt_id: str action_type: Literal["LOCK_DOOR"] + created_at: str error: None result: None status: Literal["pending"] @@ -75,6 +82,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -89,6 +97,8 @@ class LockDoorErrorActionAttempt: :ivar action_type: Action attempt to track the status of locking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -115,6 +125,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["LOCK_DOOR"] + created_at: str error: Error result: None status: Literal["error"] @@ -124,6 +135,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -138,6 +150,8 @@ class UnlockDoorSuccessActionAttempt: :ivar action_type: Action attempt to track the status of unlocking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -161,6 +175,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UNLOCK_DOOR"] + created_at: str error: None result: Result status: Literal["success"] @@ -170,6 +185,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -184,6 +200,8 @@ class UnlockDoorPendingActionAttempt: :ivar action_type: Action attempt to track the status of unlocking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -192,6 +210,7 @@ class UnlockDoorPendingActionAttempt: action_attempt_id: str action_type: Literal["UNLOCK_DOOR"] + created_at: str error: None result: None status: Literal["pending"] @@ -201,6 +220,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -215,6 +235,8 @@ class UnlockDoorErrorActionAttempt: :ivar action_type: Action attempt to track the status of unlocking a door. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -241,6 +263,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UNLOCK_DOOR"] + created_at: str error: Error result: None status: Literal["error"] @@ -250,6 +273,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -264,6 +288,8 @@ class ScanCredentialSuccessActionAttempt: :ivar action_type: Action attempt to track the status of scanning a credential. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings. @@ -751,6 +777,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SCAN_CREDENTIAL"] + created_at: str error: None result: Result status: Literal["success"] @@ -760,6 +787,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -774,6 +802,8 @@ class ScanCredentialPendingActionAttempt: :ivar action_type: Action attempt to track the status of scanning a credential. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings. @@ -782,6 +812,7 @@ class ScanCredentialPendingActionAttempt: action_attempt_id: str action_type: Literal["SCAN_CREDENTIAL"] + created_at: str error: None result: None status: Literal["pending"] @@ -791,6 +822,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -805,6 +837,8 @@ class ScanCredentialErrorActionAttempt: :ivar action_type: Action attempt to track the status of scanning a credential. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings. @@ -839,6 +873,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SCAN_CREDENTIAL"] + created_at: str error: Error result: None status: Literal["error"] @@ -848,6 +883,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -862,6 +898,8 @@ class EncodeCredentialSuccessActionAttempt: :ivar action_type: Action attempt to track the status of encoding credential data from the physical encoder onto a card. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. @@ -1190,6 +1228,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ENCODE_CREDENTIAL"] + created_at: str error: None result: Result status: Literal["success"] @@ -1199,6 +1238,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -1213,6 +1253,8 @@ class EncodeCredentialPendingActionAttempt: :ivar action_type: Action attempt to track the status of encoding credential data from the physical encoder onto a card. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. @@ -1221,6 +1263,7 @@ class EncodeCredentialPendingActionAttempt: action_attempt_id: str action_type: Literal["ENCODE_CREDENTIAL"] + created_at: str error: None result: None status: Literal["pending"] @@ -1230,6 +1273,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -1244,6 +1288,8 @@ class EncodeCredentialErrorActionAttempt: :ivar action_type: Action attempt to track the status of encoding credential data from the physical encoder onto a card. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. @@ -1282,6 +1328,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ENCODE_CREDENTIAL"] + created_at: str error: Error result: None status: Literal["error"] @@ -1291,6 +1338,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -1305,6 +1353,8 @@ class ScanToAssignCredentialSuccessActionAttempt: :ivar action_type: Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. @@ -1633,6 +1683,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SCAN_TO_ASSIGN_CREDENTIAL"] + created_at: str error: None result: Result status: Literal["success"] @@ -1642,6 +1693,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -1656,6 +1708,8 @@ class ScanToAssignCredentialPendingActionAttempt: :ivar action_type: Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. @@ -1664,6 +1718,7 @@ class ScanToAssignCredentialPendingActionAttempt: action_attempt_id: str action_type: Literal["SCAN_TO_ASSIGN_CREDENTIAL"] + created_at: str error: None result: None status: Literal["pending"] @@ -1673,6 +1728,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -1687,6 +1743,8 @@ class ScanToAssignCredentialErrorActionAttempt: :ivar action_type: Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. @@ -1716,6 +1774,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SCAN_TO_ASSIGN_CREDENTIAL"] + created_at: str error: Error result: None status: Literal["error"] @@ -1725,6 +1784,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -1739,6 +1799,8 @@ class AssignCredentialSuccessActionAttempt: :ivar action_type: Action attempt to track the status of assigning a pre-registered card credential to an access method. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of assigning a credential. If successful, includes the updated access method with the assigned credential. @@ -1983,6 +2045,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ASSIGN_CREDENTIAL"] + created_at: str error: None result: Result status: Literal["success"] @@ -1992,6 +2055,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2006,6 +2070,8 @@ class AssignCredentialPendingActionAttempt: :ivar action_type: Action attempt to track the status of assigning a pre-registered card credential to an access method. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of assigning a credential. If successful, includes the updated access method with the assigned credential. @@ -2014,6 +2080,7 @@ class AssignCredentialPendingActionAttempt: action_attempt_id: str action_type: Literal["ASSIGN_CREDENTIAL"] + created_at: str error: None result: None status: Literal["pending"] @@ -2023,6 +2090,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2037,6 +2105,8 @@ class AssignCredentialErrorActionAttempt: :ivar action_type: Action attempt to track the status of assigning a pre-registered card credential to an access method. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: :ivar result: Result of assigning a credential. If successful, includes the updated access method with the assigned credential. @@ -2065,6 +2135,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ASSIGN_CREDENTIAL"] + created_at: str error: Error result: None status: Literal["error"] @@ -2074,6 +2145,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2088,6 +2160,8 @@ class ResetSandboxWorkspaceSuccessActionAttempt: :ivar action_type: Action attempt to track the status of resetting a sandbox workspace. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2105,6 +2179,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["RESET_SANDBOX_WORKSPACE"] + created_at: str error: None result: Result status: Literal["success"] @@ -2114,6 +2189,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2128,6 +2204,8 @@ class ResetSandboxWorkspacePendingActionAttempt: :ivar action_type: Action attempt to track the status of resetting a sandbox workspace. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2136,6 +2214,7 @@ class ResetSandboxWorkspacePendingActionAttempt: action_attempt_id: str action_type: Literal["RESET_SANDBOX_WORKSPACE"] + created_at: str error: None result: None status: Literal["pending"] @@ -2145,6 +2224,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2159,6 +2239,8 @@ class ResetSandboxWorkspaceErrorActionAttempt: :ivar action_type: Action attempt to track the status of resetting a sandbox workspace. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2185,6 +2267,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["RESET_SANDBOX_WORKSPACE"] + created_at: str error: Error result: None status: Literal["error"] @@ -2194,6 +2277,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2208,6 +2292,8 @@ class SetFanModeSuccessActionAttempt: :ivar action_type: Action attempt to track the status of setting the fan mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2225,6 +2311,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SET_FAN_MODE"] + created_at: str error: None result: Result status: Literal["success"] @@ -2234,6 +2321,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2248,6 +2336,8 @@ class SetFanModePendingActionAttempt: :ivar action_type: Action attempt to track the status of setting the fan mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2256,6 +2346,7 @@ class SetFanModePendingActionAttempt: action_attempt_id: str action_type: Literal["SET_FAN_MODE"] + created_at: str error: None result: None status: Literal["pending"] @@ -2265,6 +2356,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2279,6 +2371,8 @@ class SetFanModeErrorActionAttempt: :ivar action_type: Action attempt to track the status of setting the fan mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2305,6 +2399,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SET_FAN_MODE"] + created_at: str error: Error result: None status: Literal["error"] @@ -2314,6 +2409,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2328,6 +2424,8 @@ class SetHvacModeSuccessActionAttempt: :ivar action_type: Action attempt to track the status of setting the HVAC mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2345,6 +2443,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SET_HVAC_MODE"] + created_at: str error: None result: Result status: Literal["success"] @@ -2354,6 +2453,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2368,6 +2468,8 @@ class SetHvacModePendingActionAttempt: :ivar action_type: Action attempt to track the status of setting the HVAC mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2376,6 +2478,7 @@ class SetHvacModePendingActionAttempt: action_attempt_id: str action_type: Literal["SET_HVAC_MODE"] + created_at: str error: None result: None status: Literal["pending"] @@ -2385,6 +2488,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2399,6 +2503,8 @@ class SetHvacModeErrorActionAttempt: :ivar action_type: Action attempt to track the status of setting the HVAC mode on a thermostat. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2425,6 +2531,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SET_HVAC_MODE"] + created_at: str error: Error result: None status: Literal["error"] @@ -2434,6 +2541,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2448,6 +2556,8 @@ class ActivateClimatePresetSuccessActionAttempt: :ivar action_type: Action attempt to track the status of a climate preset activation. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2465,6 +2575,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ACTIVATE_CLIMATE_PRESET"] + created_at: str error: None result: Result status: Literal["success"] @@ -2474,6 +2585,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2488,6 +2600,8 @@ class ActivateClimatePresetPendingActionAttempt: :ivar action_type: Action attempt to track the status of a climate preset activation. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2496,6 +2610,7 @@ class ActivateClimatePresetPendingActionAttempt: action_attempt_id: str action_type: Literal["ACTIVATE_CLIMATE_PRESET"] + created_at: str error: None result: None status: Literal["pending"] @@ -2505,6 +2620,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2519,6 +2635,8 @@ class ActivateClimatePresetErrorActionAttempt: :ivar action_type: Action attempt to track the status of a climate preset activation. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2545,6 +2663,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ACTIVATE_CLIMATE_PRESET"] + created_at: str error: Error result: None status: Literal["error"] @@ -2554,6 +2673,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2568,6 +2688,8 @@ class ActivateWeeklyProgramSuccessActionAttempt: :ivar action_type: Action attempt to track the status of returning a thermostat to its weekly program. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2585,6 +2707,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ACTIVATE_WEEKLY_PROGRAM"] + created_at: str error: None result: Result status: Literal["success"] @@ -2594,6 +2717,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2608,6 +2732,8 @@ class ActivateWeeklyProgramPendingActionAttempt: :ivar action_type: Action attempt to track the status of returning a thermostat to its weekly program. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2616,6 +2742,7 @@ class ActivateWeeklyProgramPendingActionAttempt: action_attempt_id: str action_type: Literal["ACTIVATE_WEEKLY_PROGRAM"] + created_at: str error: None result: None status: Literal["pending"] @@ -2625,6 +2752,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2639,6 +2767,8 @@ class ActivateWeeklyProgramErrorActionAttempt: :ivar action_type: Action attempt to track the status of returning a thermostat to its weekly program. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2665,6 +2795,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["ACTIVATE_WEEKLY_PROGRAM"] + created_at: str error: Error result: None status: Literal["error"] @@ -2674,6 +2805,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2688,6 +2820,8 @@ class SimulateKeypadCodeEntrySuccessActionAttempt: :ivar action_type: Action attempt to track the status of simulating a keypad code entry. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2705,6 +2839,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SIMULATE_KEYPAD_CODE_ENTRY"] + created_at: str error: None result: Result status: Literal["success"] @@ -2714,6 +2849,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2728,6 +2864,8 @@ class SimulateKeypadCodeEntryPendingActionAttempt: :ivar action_type: Action attempt to track the status of simulating a keypad code entry. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2736,6 +2874,7 @@ class SimulateKeypadCodeEntryPendingActionAttempt: action_attempt_id: str action_type: Literal["SIMULATE_KEYPAD_CODE_ENTRY"] + created_at: str error: None result: None status: Literal["pending"] @@ -2745,6 +2884,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2759,6 +2899,8 @@ class SimulateKeypadCodeEntryErrorActionAttempt: :ivar action_type: Action attempt to track the status of simulating a keypad code entry. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2785,6 +2927,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SIMULATE_KEYPAD_CODE_ENTRY"] + created_at: str error: Error result: None status: Literal["error"] @@ -2794,6 +2937,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2808,6 +2952,8 @@ class SimulateManualLockViaKeypadSuccessActionAttempt: :ivar action_type: Action attempt to track the status of simulating a manual lock action using a keypad. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2825,6 +2971,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"] + created_at: str error: None result: Result status: Literal["success"] @@ -2834,6 +2981,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2848,6 +2996,8 @@ class SimulateManualLockViaKeypadPendingActionAttempt: :ivar action_type: Action attempt to track the status of simulating a manual lock action using a keypad. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2856,6 +3006,7 @@ class SimulateManualLockViaKeypadPendingActionAttempt: action_attempt_id: str action_type: Literal["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"] + created_at: str error: None result: None status: Literal["pending"] @@ -2865,6 +3016,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2879,6 +3031,8 @@ class SimulateManualLockViaKeypadErrorActionAttempt: :ivar action_type: Action attempt to track the status of simulating a manual lock action using a keypad. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2905,6 +3059,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"] + created_at: str error: Error result: None status: Literal["error"] @@ -2914,6 +3069,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -2928,6 +3084,8 @@ class PushThermostatProgramsSuccessActionAttempt: :ivar action_type: Action attempt to track the status of pushing thermostat programs. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2945,6 +3103,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["PUSH_THERMOSTAT_PROGRAMS"] + created_at: str error: None result: Result status: Literal["success"] @@ -2954,6 +3113,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -2968,6 +3128,8 @@ class PushThermostatProgramsPendingActionAttempt: :ivar action_type: Action attempt to track the status of pushing thermostat programs. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -2976,6 +3138,7 @@ class PushThermostatProgramsPendingActionAttempt: action_attempt_id: str action_type: Literal["PUSH_THERMOSTAT_PROGRAMS"] + created_at: str error: None result: None status: Literal["pending"] @@ -2985,6 +3148,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -2999,6 +3163,8 @@ class PushThermostatProgramsErrorActionAttempt: :ivar action_type: Action attempt to track the status of pushing thermostat programs. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3025,6 +3191,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["PUSH_THERMOSTAT_PROGRAMS"] + created_at: str error: Error result: None status: Literal["error"] @@ -3034,6 +3201,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3048,6 +3216,8 @@ class ConfigureAutoLockSuccessActionAttempt: :ivar action_type: Action attempt to track the status of configuring the auto-lock on a lock. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3065,6 +3235,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CONFIGURE_AUTO_LOCK"] + created_at: str error: None result: Result status: Literal["success"] @@ -3074,6 +3245,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3088,6 +3260,8 @@ class ConfigureAutoLockPendingActionAttempt: :ivar action_type: Action attempt to track the status of configuring the auto-lock on a lock. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3096,6 +3270,7 @@ class ConfigureAutoLockPendingActionAttempt: action_attempt_id: str action_type: Literal["CONFIGURE_AUTO_LOCK"] + created_at: str error: None result: None status: Literal["pending"] @@ -3105,6 +3280,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3119,6 +3295,8 @@ class ConfigureAutoLockErrorActionAttempt: :ivar action_type: Action attempt to track the status of configuring the auto-lock on a lock. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3145,6 +3323,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CONFIGURE_AUTO_LOCK"] + created_at: str error: Error result: None status: Literal["error"] @@ -3154,6 +3333,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3168,6 +3348,8 @@ class ConvertAccessCodeToManagedSuccessActionAttempt: :ivar action_type: Action attempt to track the status of converting an unmanaged access code to a managed access code. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3185,6 +3367,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CONVERT_ACCESS_CODE_TO_MANAGED"] + created_at: str error: None result: Result status: Literal["success"] @@ -3194,6 +3377,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3208,6 +3392,8 @@ class ConvertAccessCodeToManagedPendingActionAttempt: :ivar action_type: Action attempt to track the status of converting an unmanaged access code to a managed access code. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3216,6 +3402,7 @@ class ConvertAccessCodeToManagedPendingActionAttempt: action_attempt_id: str action_type: Literal["CONVERT_ACCESS_CODE_TO_MANAGED"] + created_at: str error: None result: None status: Literal["pending"] @@ -3225,6 +3412,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3239,6 +3427,8 @@ class ConvertAccessCodeToManagedErrorActionAttempt: :ivar action_type: Action attempt to track the status of converting an unmanaged access code to a managed access code. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3265,6 +3455,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CONVERT_ACCESS_CODE_TO_MANAGED"] + created_at: str error: Error result: None status: Literal["error"] @@ -3274,6 +3465,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3288,6 +3480,8 @@ class SyncAccessCodesSuccessActionAttempt: :ivar action_type: Syncing access codes is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3305,6 +3499,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SYNC_ACCESS_CODES"] + created_at: str error: None result: Result status: Literal["success"] @@ -3314,6 +3509,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3328,6 +3524,8 @@ class SyncAccessCodesPendingActionAttempt: :ivar action_type: Syncing access codes is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3336,6 +3534,7 @@ class SyncAccessCodesPendingActionAttempt: action_attempt_id: str action_type: Literal["SYNC_ACCESS_CODES"] + created_at: str error: None result: None status: Literal["pending"] @@ -3345,6 +3544,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3359,6 +3559,8 @@ class SyncAccessCodesErrorActionAttempt: :ivar action_type: Syncing access codes is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3385,6 +3587,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["SYNC_ACCESS_CODES"] + created_at: str error: Error result: None status: Literal["error"] @@ -3394,6 +3597,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3408,6 +3612,8 @@ class CreateAccessCodeSuccessActionAttempt: :ivar action_type: Creating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3430,6 +3636,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CREATE_ACCESS_CODE"] + created_at: str error: None result: Result status: Literal["success"] @@ -3439,6 +3646,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3453,6 +3661,8 @@ class CreateAccessCodePendingActionAttempt: :ivar action_type: Creating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3461,6 +3671,7 @@ class CreateAccessCodePendingActionAttempt: action_attempt_id: str action_type: Literal["CREATE_ACCESS_CODE"] + created_at: str error: None result: None status: Literal["pending"] @@ -3470,6 +3681,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3484,6 +3696,8 @@ class CreateAccessCodeErrorActionAttempt: :ivar action_type: Creating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3510,6 +3724,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CREATE_ACCESS_CODE"] + created_at: str error: Error result: None status: Literal["error"] @@ -3519,6 +3734,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3533,6 +3749,8 @@ class DeleteAccessCodeSuccessActionAttempt: :ivar action_type: Deleting an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3550,6 +3768,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["DELETE_ACCESS_CODE"] + created_at: str error: None result: Result status: Literal["success"] @@ -3559,6 +3778,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3573,6 +3793,8 @@ class DeleteAccessCodePendingActionAttempt: :ivar action_type: Deleting an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3581,6 +3803,7 @@ class DeleteAccessCodePendingActionAttempt: action_attempt_id: str action_type: Literal["DELETE_ACCESS_CODE"] + created_at: str error: None result: None status: Literal["pending"] @@ -3590,6 +3813,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3604,6 +3828,8 @@ class DeleteAccessCodeErrorActionAttempt: :ivar action_type: Deleting an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3630,6 +3856,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["DELETE_ACCESS_CODE"] + created_at: str error: Error result: None status: Literal["error"] @@ -3639,6 +3866,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3653,6 +3881,8 @@ class UpdateAccessCodeSuccessActionAttempt: :ivar action_type: Updating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3675,6 +3905,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UPDATE_ACCESS_CODE"] + created_at: str error: None result: Result status: Literal["success"] @@ -3684,6 +3915,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3698,6 +3930,8 @@ class UpdateAccessCodePendingActionAttempt: :ivar action_type: Updating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3706,6 +3940,7 @@ class UpdateAccessCodePendingActionAttempt: action_attempt_id: str action_type: Literal["UPDATE_ACCESS_CODE"] + created_at: str error: None result: None status: Literal["pending"] @@ -3715,6 +3950,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3729,6 +3965,8 @@ class UpdateAccessCodeErrorActionAttempt: :ivar action_type: Updating an access code is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3755,6 +3993,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UPDATE_ACCESS_CODE"] + created_at: str error: Error result: None status: Literal["error"] @@ -3764,6 +4003,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3778,6 +4018,8 @@ class CreateNoiseThresholdSuccessActionAttempt: :ivar action_type: Creating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3800,6 +4042,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CREATE_NOISE_THRESHOLD"] + created_at: str error: None result: Result status: Literal["success"] @@ -3809,6 +4052,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3823,6 +4067,8 @@ class CreateNoiseThresholdPendingActionAttempt: :ivar action_type: Creating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3831,6 +4077,7 @@ class CreateNoiseThresholdPendingActionAttempt: action_attempt_id: str action_type: Literal["CREATE_NOISE_THRESHOLD"] + created_at: str error: None result: None status: Literal["pending"] @@ -3840,6 +4087,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3854,6 +4102,8 @@ class CreateNoiseThresholdErrorActionAttempt: :ivar action_type: Creating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3880,6 +4130,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["CREATE_NOISE_THRESHOLD"] + created_at: str error: Error result: None status: Literal["error"] @@ -3889,6 +4140,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -3903,6 +4155,8 @@ class DeleteNoiseThresholdSuccessActionAttempt: :ivar action_type: Deleting a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3920,6 +4174,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["DELETE_NOISE_THRESHOLD"] + created_at: str error: None result: Result status: Literal["success"] @@ -3929,6 +4184,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -3943,6 +4199,8 @@ class DeleteNoiseThresholdPendingActionAttempt: :ivar action_type: Deleting a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -3951,6 +4209,7 @@ class DeleteNoiseThresholdPendingActionAttempt: action_attempt_id: str action_type: Literal["DELETE_NOISE_THRESHOLD"] + created_at: str error: None result: None status: Literal["pending"] @@ -3960,6 +4219,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -3974,6 +4234,8 @@ class DeleteNoiseThresholdErrorActionAttempt: :ivar action_type: Deleting a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -4000,6 +4262,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["DELETE_NOISE_THRESHOLD"] + created_at: str error: Error result: None status: Literal["error"] @@ -4009,6 +4272,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), @@ -4023,6 +4287,8 @@ class UpdateNoiseThresholdSuccessActionAttempt: :ivar action_type: Updating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -4045,6 +4311,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UPDATE_NOISE_THRESHOLD"] + created_at: str error: None result: Result status: Literal["success"] @@ -4054,6 +4321,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=cls.Result.from_dict(d.get("result") or {}), status=d.get("status", None), @@ -4068,6 +4336,8 @@ class UpdateNoiseThresholdPendingActionAttempt: :ivar action_type: Updating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -4076,6 +4346,7 @@ class UpdateNoiseThresholdPendingActionAttempt: action_attempt_id: str action_type: Literal["UPDATE_NOISE_THRESHOLD"] + created_at: str error: None result: None status: Literal["pending"] @@ -4085,6 +4356,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=d.get("error", None), result=d.get("result", None), status=d.get("status", None), @@ -4099,6 +4371,8 @@ class UpdateNoiseThresholdErrorActionAttempt: :ivar action_type: Updating a noise threshold is pending. + :ivar created_at: Date and time at which the action attempt was created. + :ivar error: Error associated with the action. :ivar result: Result of the action. @@ -4125,6 +4399,7 @@ def from_dict(cls, d: Any): action_attempt_id: str action_type: Literal["UPDATE_NOISE_THRESHOLD"] + created_at: str error: Error result: None status: Literal["error"] @@ -4134,6 +4409,7 @@ def from_dict(cls, d: Any): return cls( action_attempt_id=d.get("action_attempt_id", None), action_type=d.get("action_type", None), + created_at=d.get("created_at", None), error=cls.Error.from_dict(d.get("error") or {}), result=d.get("result", None), status=d.get("status", None), diff --git a/seam/resources/device.py b/seam/resources/device.py index 24e0ae3f..2269a3f3 100644 --- a/seam/resources/device.py +++ b/seam/resources/device.py @@ -101,7 +101,9 @@ class Device: :ivar location: Location information for the device. - :ivar mold_risk_level: Mold risk level as reported by the device, if the device measures it. + :ivar mold_display_risk: Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic. + + :ivar mold_risk_index: Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels. :ivar named_sensors: Additional sensors of the same kind on the device, each with a stable ``sensor_name``. Present only when the device has more than one sensor of a kind or no single main sensor. @@ -641,7 +643,9 @@ class NamedSensors(ResourceMapping): :ivar is_smoking_detected: Indicates whether the device detects smoking, if the device measures it. - :ivar mold_risk_level: Mold risk level as reported by the device, if the device measures it. + :ivar mold_display_risk: Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic. + + :ivar mold_risk_index: Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels. :ivar noise_level_decibels: Noise level in decibels, if the device measures noise. @@ -663,7 +667,8 @@ class NamedSensors(ResourceMapping): estimated_occupant_count: Optional[float] is_occupancy_detected: Optional[bool] is_smoking_detected: Optional[bool] - mold_risk_level: Optional[str] + mold_display_risk: Optional[str] + mold_risk_index: Optional[float] noise_level_decibels: Optional[float] noise_level_nrs: Optional[float] relative_humidity: Optional[float] @@ -681,7 +686,8 @@ def from_dict(cls, d: Any): 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), + mold_display_risk=d.get("mold_display_risk", None), + mold_risk_index=d.get("mold_risk_index", None), noise_level_decibels=d.get("noise_level_decibels", None), noise_level_nrs=d.get("noise_level_nrs", None), relative_humidity=d.get("relative_humidity", None), @@ -4818,7 +4824,9 @@ def from_dict(cls, d: Any): "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] display_name: str errors: List[Errors] @@ -4830,7 +4838,8 @@ def from_dict(cls, d: Any): is_online: bool is_smoking_detected: Optional[bool] location: Optional[Location] - mold_risk_level: Optional[str] + mold_display_risk: Optional[str] + mold_risk_index: Optional[float] named_sensors: Optional[List[NamedSensors]] nickname: Optional[str] noise_level_decibels: Optional[float] @@ -4920,7 +4929,8 @@ def from_dict(cls, d: Any): if d.get("location") is not None else None ), - mold_risk_level=d.get("mold_risk_level", None), + mold_display_risk=d.get("mold_display_risk", None), + mold_risk_index=d.get("mold_risk_index", None), named_sensors=[ cls.NamedSensors.from_dict(i) for i in d.get("named_sensors") or [] ], diff --git a/seam/resources/device_provider.py b/seam/resources/device_provider.py index f3d595cd..2e89725a 100644 --- a/seam/resources/device_provider.py +++ b/seam/resources/device_provider.py @@ -162,6 +162,7 @@ class DeviceProvider: "eufy", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] display_name: str diff --git a/seam/resources/seam_event.py b/seam/resources/seam_event.py index 35ad0a75..84c94b81 100644 --- a/seam/resources/seam_event.py +++ b/seam/resources/seam_event.py @@ -1448,6 +1448,8 @@ class AccessCodeDeletedEvent: :ivar created_at: Date and time at which the event was created. + :ivar description: Human-readable description of the deletion and its source. + :ivar device_custom_metadata: Custom metadata of the device, present when device_id is provided. :ivar device_id: ID of the device associated with the affected access code. @@ -1467,6 +1469,7 @@ class AccessCodeDeletedEvent: connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] connected_account_id: str created_at: str + description: Optional[str] device_custom_metadata: Optional[Dict[str, Union[str, bool]]] device_id: str event_description: str @@ -1485,6 +1488,7 @@ def from_dict(cls, d: Any): ), connected_account_id=d.get("connected_account_id", None), created_at=d.get("created_at", None), + description=d.get("description", None), device_custom_metadata=DeepAttrDict(d.get("device_custom_metadata", None)), device_id=d.get("device_id", None), event_description=d.get("event_description", None), @@ -3018,6 +3022,8 @@ class AccessMethodDeletedEvent: :ivar event_type: + :ivar failed_to_delete_access_code_ids: IDs of the access codes that were still set on a device when the access method was deleted. Access may still be possible with these codes until Seam removes them from the device. Each access code keeps its own deletion lifecycle, so watch it for ``access_code.deleted`` or ``access_code.failed_to_delete``. Only present when at least one access code was still set on a device. + :ivar occurred_at: Date and time at which the event occurred. :ivar workspace_id: ID of the workspace associated with the event.""" @@ -3029,6 +3035,7 @@ class AccessMethodDeletedEvent: event_description: str event_id: str event_type: Literal["access_method.deleted"] + failed_to_delete_access_code_ids: Optional[List[str]] occurred_at: str workspace_id: str @@ -3042,6 +3049,9 @@ def from_dict(cls, d: Any): event_description=d.get("event_description", None), event_id=d.get("event_id", None), event_type=d.get("event_type", None), + failed_to_delete_access_code_ids=d.get( + "failed_to_delete_access_code_ids", None + ), occurred_at=d.get("occurred_at", None), workspace_id=d.get("workspace_id", None), ) @@ -5751,6 +5761,63 @@ def from_dict(cls, d: Any): ) +@dataclass +class SensorSmokingDetectedEvent: + """A sensor reported smoking. Emitted once when ``is_smoking_detected`` becomes true. No event is emitted when it returns to false; re-read the device for the current value. + + :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. + + :ivar created_at: Date and time at which the event was created. + + :ivar customer_key: The customer key associated with the device, if any. + + :ivar device_custom_metadata: Custom metadata of the device, present when device_id is provided. + + :ivar device_id: ID of the affected device. + + :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.""" + + connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] + connected_account_id: str + created_at: str + customer_key: Optional[str] + device_custom_metadata: Optional[Dict[str, Union[str, bool]]] + device_id: str + event_description: str + event_id: str + event_type: Literal["sensor.smoking_detected"] + occurred_at: str + workspace_id: str + + @classmethod + def from_dict(cls, d: Any): + return cls( + 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), + customer_key=d.get("customer_key", None), + device_custom_metadata=DeepAttrDict(d.get("device_custom_metadata", None)), + device_id=d.get("device_id", 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 DeviceLowBatteryEvent: """A device battery level dropped below the low threshold. @@ -7601,6 +7668,193 @@ def from_dict(cls, d: Any): ) +@dataclass +class ThermostatScheduleClimatePresetActivationMayFailEvent: + """A `thermostat `_ may fail to activate a `climate preset `_ when a `thermostat schedule `_ starts or ends, because the thermostat was offline shortly before the scheduled time. While the thermostat stays offline, the thermostat schedule carries a ``climate_preset_activation_may_fail`` warning until the scheduled time. + + :ivar connected_account_custom_metadata: Custom metadata of the connected account, present when connected_account_id is provided. + + :ivar connected_account_errors: Errors associated with the connected account. + + :ivar connected_account_id: ID of the connected account associated with the event. + + :ivar connected_account_warnings: Warnings associated with the connected account. + + :ivar created_at: Date and time at which the event was created. + + :ivar customer_key: The customer key associated with the device, if any. + + :ivar device_custom_metadata: Custom metadata of the device, present when device_id is provided. + + :ivar device_errors: Errors associated with the device. + + :ivar device_id: ID of the affected device. + + :ivar device_warnings: Warnings associated with the device. + + :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 thermostat_schedule_ends_at: Date and time at which the thermostat schedule ends, in `ISO 8601 `_ format. + + :ivar thermostat_schedule_id: ID of the thermostat schedule whose climate preset activation may fail. + + :ivar thermostat_schedule_starts_at: Date and time at which the thermostat schedule starts, in `ISO 8601 `_ format. + + :ivar workspace_id: ID of the workspace associated with the event.""" + + @dataclass + class ConnectedAccountErrors(ResourceMapping): + """Errors associated with the connected account. + + :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), + ) + + @dataclass + class ConnectedAccountWarnings(ResourceMapping): + """Warnings associated with the connected account. + + :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: str + + @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 DeviceErrors(ResourceMapping): + """Errors associated with the device. + + :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), + ) + + @dataclass + class DeviceWarnings(ResourceMapping): + """Warnings associated with the device. + + :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: str + + @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), + ) + + connected_account_custom_metadata: Optional[Dict[str, Union[str, bool]]] + connected_account_errors: List[ConnectedAccountErrors] + connected_account_id: str + connected_account_warnings: List[ConnectedAccountWarnings] + created_at: str + customer_key: Optional[str] + device_custom_metadata: Optional[Dict[str, Union[str, bool]]] + device_errors: List[DeviceErrors] + device_id: str + device_warnings: List[DeviceWarnings] + event_description: str + event_id: str + event_type: Literal["thermostat_schedule.climate_preset_activation_may_fail"] + occurred_at: str + thermostat_schedule_ends_at: str + thermostat_schedule_id: str + thermostat_schedule_starts_at: str + workspace_id: str + + @classmethod + def from_dict(cls, d: Any): + return cls( + connected_account_custom_metadata=DeepAttrDict( + d.get("connected_account_custom_metadata", None) + ), + connected_account_errors=[ + cls.ConnectedAccountErrors.from_dict(i) + for i in d.get("connected_account_errors") or [] + ], + connected_account_id=d.get("connected_account_id", None), + connected_account_warnings=[ + cls.ConnectedAccountWarnings.from_dict(i) + for i in d.get("connected_account_warnings") or [] + ], + created_at=d.get("created_at", None), + customer_key=d.get("customer_key", None), + device_custom_metadata=DeepAttrDict(d.get("device_custom_metadata", None)), + device_errors=[ + cls.DeviceErrors.from_dict(i) for i in d.get("device_errors") or [] + ], + device_id=d.get("device_id", None), + device_warnings=[ + cls.DeviceWarnings.from_dict(i) for i in d.get("device_warnings") or [] + ], + 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), + thermostat_schedule_ends_at=d.get("thermostat_schedule_ends_at", None), + thermostat_schedule_id=d.get("thermostat_schedule_id", None), + thermostat_schedule_starts_at=d.get("thermostat_schedule_starts_at", None), + workspace_id=d.get("workspace_id", None), + ) + + @dataclass class ThermostatTemperatureThresholdExceededEvent: """A `thermostat's `_ temperature reading exceeded the set `threshold `_. @@ -8384,6 +8638,7 @@ def from_dict(cls, d: Any): DeviceDisconnectedEvent, DeviceUnmanagedDisconnectedEvent, DeviceTamperedEvent, + SensorSmokingDetectedEvent, DeviceLowBatteryEvent, DeviceBatteryStatusChangedEvent, DeviceRemovedEvent, @@ -8407,6 +8662,7 @@ def from_dict(cls, d: Any): LockDoorClosedEvent, ThermostatClimatePresetActivatedEvent, ThermostatManuallyAdjustedEvent, + ThermostatScheduleClimatePresetActivationMayFailEvent, ThermostatTemperatureThresholdExceededEvent, ThermostatTemperatureThresholdNoLongerExceededEvent, ThermostatTemperatureReachedSetPointEvent, @@ -8498,6 +8754,7 @@ def from_dict(cls, d: Any): "device.disconnected": DeviceDisconnectedEvent, "device.unmanaged.disconnected": DeviceUnmanagedDisconnectedEvent, "device.tampered": DeviceTamperedEvent, + "sensor.smoking_detected": SensorSmokingDetectedEvent, "device.low_battery": DeviceLowBatteryEvent, "device.battery_status_changed": DeviceBatteryStatusChangedEvent, "device.removed": DeviceRemovedEvent, @@ -8521,6 +8778,7 @@ def from_dict(cls, d: Any): "lock.door_closed": LockDoorClosedEvent, "thermostat.climate_preset_activated": ThermostatClimatePresetActivatedEvent, "thermostat.manually_adjusted": ThermostatManuallyAdjustedEvent, + "thermostat_schedule.climate_preset_activation_may_fail": ThermostatScheduleClimatePresetActivationMayFailEvent, "thermostat.temperature_threshold_exceeded": ThermostatTemperatureThresholdExceededEvent, "thermostat.temperature_threshold_no_longer_exceeded": ThermostatTemperatureThresholdNoLongerExceededEvent, "thermostat.temperature_reached_set_point": ThermostatTemperatureReachedSetPointEvent, diff --git a/seam/resources/thermostat_schedule.py b/seam/resources/thermostat_schedule.py index cf4a54ec..f8287488 100644 --- a/seam/resources/thermostat_schedule.py +++ b/seam/resources/thermostat_schedule.py @@ -4,6 +4,13 @@ from ..resource_mapping import ResourceMapping +def _from_discriminated_dict( + d: Any, variants: Dict[str, Any], discriminator: str +) -> Any: + variant = variants.get(d.get(discriminator)) + return DeepAttrDict(d) if variant is None else variant.from_dict(d) + + @dataclass class ThermostatSchedule: """Represents a `thermostat schedule `_ that activates a configured `climate preset `_ on a `thermostat `_ at a specified starting time and deactivates the climate preset at a specified ending time. @@ -28,6 +35,8 @@ class ThermostatSchedule: :ivar thermostat_schedule_id: ID of the `thermostat schedule `_. + :ivar warnings: Warnings associated with the `thermostat schedule `_. + :ivar workspace_id: ID of the workspace that contains the thermostat schedule.""" @dataclass @@ -53,6 +62,34 @@ def from_dict(cls, d: Any): message=d.get("message", None), ) + @dataclass + class ClimatePresetActivationMayFailWarning(ResourceMapping): + """Indicates that the `thermostat `_ may fail to activate a climate preset when the `thermostat schedule `_ starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes. + + :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["climate_preset_activation_may_fail"] + + @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), + ) + + Warnings = Union[ClimatePresetActivationMayFailWarning] + _WarningsVariants = { + "climate_preset_activation_may_fail": ClimatePresetActivationMayFailWarning, + } + climate_preset_key: str created_at: str device_id: str @@ -63,6 +100,7 @@ def from_dict(cls, d: Any): name: Optional[str] starts_at: str thermostat_schedule_id: str + warnings: List[Warnings] workspace_id: str @classmethod @@ -78,5 +116,9 @@ def from_dict(cls, d: Any): name=d.get("name", None), starts_at=d.get("starts_at", None), thermostat_schedule_id=d.get("thermostat_schedule_id", None), + warnings=[ + _from_discriminated_dict(i, cls._WarningsVariants, "warning_code") + for i in d.get("warnings") or [] + ], workspace_id=d.get("workspace_id", None), ) diff --git a/seam/resources/unmanaged_access_code.py b/seam/resources/unmanaged_access_code.py index 4c67e6c3..8782e2f3 100644 --- a/seam/resources/unmanaged_access_code.py +++ b/seam/resources/unmanaged_access_code.py @@ -250,7 +250,7 @@ def from_dict(cls, d: Any): class ConflictingExternalModificationError(ResourceMapping): """Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again. - :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. + :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. ``deactivated`` means the code is still on the device but was disabled or suspended. :ivar created_at: Date and time at which Seam created the error. @@ -285,7 +285,7 @@ def from_dict(cls, d: Any): to=d.get("to", None), ) - change_type: Optional[Literal["modified", "removed"]] + change_type: Optional[Literal["modified", "removed", "deactivated"]] created_at: Optional[str] error_code: Literal["conflicting_external_modification"] is_access_code_error: Literal[True] @@ -916,7 +916,7 @@ def from_dict(cls, d: Any): class ExternalModificationInEffectWarning(ResourceMapping): """Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored. - :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. + :ivar change_type: Indicates the type of external modification. ``modified`` means the code's PIN or schedule was changed. ``removed`` means the code was deleted from the device. ``deactivated`` means the code is still on the device but was disabled or suspended. :ivar created_at: Date and time at which Seam created the warning. @@ -949,7 +949,7 @@ def from_dict(cls, d: Any): to=d.get("to", None), ) - change_type: Optional[Literal["modified", "removed"]] + change_type: Optional[Literal["modified", "removed", "deactivated"]] created_at: Optional[str] message: str modified_fields: Optional[List[ModifiedFields]] diff --git a/seam/resources/unmanaged_device.py b/seam/resources/unmanaged_device.py index 498c8830..2ab5b224 100644 --- a/seam/resources/unmanaged_device.py +++ b/seam/resources/unmanaged_device.py @@ -1623,7 +1623,9 @@ def from_dict(cls, d: Any): "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] display_name: str errors: List[Errors] diff --git a/seam/routes/action_attempts.py b/seam/routes/action_attempts.py index ffb6c136..7d70b994 100644 --- a/seam/routes/action_attempts.py +++ b/seam/routes/action_attempts.py @@ -36,14 +36,53 @@ def list( self, *, action_attempt_ids: Optional[List[str]] = None, + action_types: Optional[ + List[ + Literal[ + "LOCK_DOOR", + "UNLOCK_DOOR", + "SCAN_CREDENTIAL", + "ENCODE_CREDENTIAL", + "SCAN_TO_ASSIGN_CREDENTIAL", + "ASSIGN_CREDENTIAL", + "RESET_SANDBOX_WORKSPACE", + "SET_FAN_MODE", + "SET_HVAC_MODE", + "ACTIVATE_CLIMATE_PRESET", + "ACTIVATE_WEEKLY_PROGRAM", + "SIMULATE_KEYPAD_CODE_ENTRY", + "SIMULATE_MANUAL_LOCK_VIA_KEYPAD", + "PUSH_THERMOSTAT_PROGRAMS", + "CONFIGURE_AUTO_LOCK", + "CONVERT_ACCESS_CODE_TO_MANAGED", + "SET_SPEAKER_VOLUME", + "SET_SPEAKER_MUTE", + "PAUSE_SPEAKER_PLAYBACK", + "RESUME_SPEAKER_PLAYBACK", + "PLAY_SPEAKER_CHIME", + "PLAY_SPEAKER_FAVORITE", + "PLAY_SPEAKER_AUDIO_CLIP", + "SET_TEMPERATURE_CONTROLLER_MODE", + "SYNC_ACCESS_CODES", + "CREATE_ACCESS_CODE", + "DELETE_ACCESS_CODE", + "UPDATE_ACCESS_CODE", + "CREATE_NOISE_THRESHOLD", + "DELETE_NOISE_THRESHOLD", + "UPDATE_NOISE_THRESHOLD", + ] + ] + ] = None, device_id: Optional[str] = None, limit: Optional[int] = None, page_cursor: Optional[Union[str, Null]] = None, ) -> List[ActionAttempt]: - """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s. + """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s or by ``device_id``, newest first. :param action_attempt_ids: IDs of the action attempts that you want to retrieve. + :param action_types: Types of the action attempts that you want to list, such as ``LOCK_DOOR`` and ``UNLOCK_DOOR``. + :param device_id: ID of the device to filter action attempts by. :param limit: Maximum number of records to return per page. @@ -77,14 +116,53 @@ async def list( self, *, action_attempt_ids: Optional[List[str]] = None, + action_types: Optional[ + List[ + Literal[ + "LOCK_DOOR", + "UNLOCK_DOOR", + "SCAN_CREDENTIAL", + "ENCODE_CREDENTIAL", + "SCAN_TO_ASSIGN_CREDENTIAL", + "ASSIGN_CREDENTIAL", + "RESET_SANDBOX_WORKSPACE", + "SET_FAN_MODE", + "SET_HVAC_MODE", + "ACTIVATE_CLIMATE_PRESET", + "ACTIVATE_WEEKLY_PROGRAM", + "SIMULATE_KEYPAD_CODE_ENTRY", + "SIMULATE_MANUAL_LOCK_VIA_KEYPAD", + "PUSH_THERMOSTAT_PROGRAMS", + "CONFIGURE_AUTO_LOCK", + "CONVERT_ACCESS_CODE_TO_MANAGED", + "SET_SPEAKER_VOLUME", + "SET_SPEAKER_MUTE", + "PAUSE_SPEAKER_PLAYBACK", + "RESUME_SPEAKER_PLAYBACK", + "PLAY_SPEAKER_CHIME", + "PLAY_SPEAKER_FAVORITE", + "PLAY_SPEAKER_AUDIO_CLIP", + "SET_TEMPERATURE_CONTROLLER_MODE", + "SYNC_ACCESS_CODES", + "CREATE_ACCESS_CODE", + "DELETE_ACCESS_CODE", + "UPDATE_ACCESS_CODE", + "CREATE_NOISE_THRESHOLD", + "DELETE_NOISE_THRESHOLD", + "UPDATE_NOISE_THRESHOLD", + ] + ] + ] = None, device_id: Optional[str] = None, limit: Optional[int] = None, page_cursor: Optional[Union[str, Null]] = None, ) -> List[ActionAttempt]: - """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s. + """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s or by ``device_id``, newest first. :param action_attempt_ids: IDs of the action attempts that you want to retrieve. + :param action_types: Types of the action attempts that you want to list, such as ``LOCK_DOOR`` and ``UNLOCK_DOOR``. + :param device_id: ID of the device to filter action attempts by. :param limit: Maximum number of records to return per page. @@ -147,14 +225,53 @@ def list( self, *, action_attempt_ids: Optional[List[str]] = None, + action_types: Optional[ + List[ + Literal[ + "LOCK_DOOR", + "UNLOCK_DOOR", + "SCAN_CREDENTIAL", + "ENCODE_CREDENTIAL", + "SCAN_TO_ASSIGN_CREDENTIAL", + "ASSIGN_CREDENTIAL", + "RESET_SANDBOX_WORKSPACE", + "SET_FAN_MODE", + "SET_HVAC_MODE", + "ACTIVATE_CLIMATE_PRESET", + "ACTIVATE_WEEKLY_PROGRAM", + "SIMULATE_KEYPAD_CODE_ENTRY", + "SIMULATE_MANUAL_LOCK_VIA_KEYPAD", + "PUSH_THERMOSTAT_PROGRAMS", + "CONFIGURE_AUTO_LOCK", + "CONVERT_ACCESS_CODE_TO_MANAGED", + "SET_SPEAKER_VOLUME", + "SET_SPEAKER_MUTE", + "PAUSE_SPEAKER_PLAYBACK", + "RESUME_SPEAKER_PLAYBACK", + "PLAY_SPEAKER_CHIME", + "PLAY_SPEAKER_FAVORITE", + "PLAY_SPEAKER_AUDIO_CLIP", + "SET_TEMPERATURE_CONTROLLER_MODE", + "SYNC_ACCESS_CODES", + "CREATE_ACCESS_CODE", + "DELETE_ACCESS_CODE", + "UPDATE_ACCESS_CODE", + "CREATE_NOISE_THRESHOLD", + "DELETE_NOISE_THRESHOLD", + "UPDATE_NOISE_THRESHOLD", + ] + ] + ] = None, device_id: Optional[str] = None, limit: Optional[int] = None, page_cursor: Optional[Union[str, Null]] = None, ) -> List[ActionAttempt]: - """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s. + """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s or by ``device_id``, newest first. :param action_attempt_ids: IDs of the action attempts that you want to retrieve. + :param action_types: Types of the action attempts that you want to list, such as ``LOCK_DOOR`` and ``UNLOCK_DOOR``. + :param device_id: ID of the device to filter action attempts by. :param limit: Maximum number of records to return per page. @@ -166,6 +283,8 @@ def list( if action_attempt_ids is not None: params["action_attempt_ids"] = action_attempt_ids + if action_types is not None: + params["action_types"] = action_types if device_id is not None: params["device_id"] = device_id if limit is not None: @@ -235,14 +354,53 @@ async def list( self, *, action_attempt_ids: Optional[List[str]] = None, + action_types: Optional[ + List[ + Literal[ + "LOCK_DOOR", + "UNLOCK_DOOR", + "SCAN_CREDENTIAL", + "ENCODE_CREDENTIAL", + "SCAN_TO_ASSIGN_CREDENTIAL", + "ASSIGN_CREDENTIAL", + "RESET_SANDBOX_WORKSPACE", + "SET_FAN_MODE", + "SET_HVAC_MODE", + "ACTIVATE_CLIMATE_PRESET", + "ACTIVATE_WEEKLY_PROGRAM", + "SIMULATE_KEYPAD_CODE_ENTRY", + "SIMULATE_MANUAL_LOCK_VIA_KEYPAD", + "PUSH_THERMOSTAT_PROGRAMS", + "CONFIGURE_AUTO_LOCK", + "CONVERT_ACCESS_CODE_TO_MANAGED", + "SET_SPEAKER_VOLUME", + "SET_SPEAKER_MUTE", + "PAUSE_SPEAKER_PLAYBACK", + "RESUME_SPEAKER_PLAYBACK", + "PLAY_SPEAKER_CHIME", + "PLAY_SPEAKER_FAVORITE", + "PLAY_SPEAKER_AUDIO_CLIP", + "SET_TEMPERATURE_CONTROLLER_MODE", + "SYNC_ACCESS_CODES", + "CREATE_ACCESS_CODE", + "DELETE_ACCESS_CODE", + "UPDATE_ACCESS_CODE", + "CREATE_NOISE_THRESHOLD", + "DELETE_NOISE_THRESHOLD", + "UPDATE_NOISE_THRESHOLD", + ] + ] + ] = None, device_id: Optional[str] = None, limit: Optional[int] = None, page_cursor: Optional[Union[str, Null]] = None, ) -> List[ActionAttempt]: - """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s. + """Returns a list of the `action attempts `_ that you specify as an array of ``action_attempt_id``s or by ``device_id``, newest first. :param action_attempt_ids: IDs of the action attempts that you want to retrieve. + :param action_types: Types of the action attempts that you want to list, such as ``LOCK_DOOR`` and ``UNLOCK_DOOR``. + :param device_id: ID of the device to filter action attempts by. :param limit: Maximum number of records to return per page. @@ -254,6 +412,8 @@ async def list( if action_attempt_ids is not None: params["action_attempt_ids"] = action_attempt_ids + if action_types is not None: + params["action_types"] = action_types if device_id is not None: params["device_id"] = device_id if limit is not None: diff --git a/seam/routes/connect_webviews.py b/seam/routes/connect_webviews.py index 61806ae2..84a5b0f2 100644 --- a/seam/routes/connect_webviews.py +++ b/seam/routes/connect_webviews.py @@ -109,6 +109,7 @@ def create( "eufy", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", "hid_cm", "google_nest", @@ -317,6 +318,7 @@ async def create( "eufy", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", "hid_cm", "google_nest", @@ -532,6 +534,7 @@ def create( "eufy", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", "hid_cm", "google_nest", @@ -825,6 +828,7 @@ async def create( "eufy", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", "hid_cm", "google_nest", diff --git a/seam/routes/devices.py b/seam/routes/devices.py index a0825c0d..919106de 100644 --- a/seam/routes/devices.py +++ b/seam/routes/devices.py @@ -120,7 +120,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -183,10 +185,65 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, + has_error_or_warning_codes: Optional[ + List[ + Literal[ + "device_offline", + "device_removed", + "hub_disconnected", + "device_disconnected", + "account_disconnected", + "empty_backup_access_code_pool", + "august_lock_not_authorized", + "low_battery", + "salto_ks_subscription_limit_exceeded", + "insufficient_permissions", + "dormakaba_sites_disconnected", + "missing_device_credentials", + "auxiliary_heat_running", + "subscription_required", + "bridge_disconnected", + "partial_backup_access_code_pool", + "many_active_backup_codes", + "device_has_flaky_connection", + "third_party_integration_detected", + "ttlock_lock_gateway_unlocking_not_enabled", + "ttlock_weak_gateway_signal", + "power_saving_mode", + "temperature_threshold_exceeded", + "device_communication_degraded", + "scheduled_maintenance_window", + "salto_ks_office_mode", + "salto_ks_privacy_mode", + "privacy_mode", + "salto_ks_subscription_limit_almost_reached", + "salto_ks_lock_access_code_support_removed", + "unknown_issue_with_phone", + "lockly_time_zone_not_configured", + "ultraloq_time_zone_unknown", + "time_zone_unknown", + "time_zone_mismatch", + "two_n_device_missing_timezone", + "hub_required_for_additional_capabilities", + "service_mode", + "provider_issue", + "keynest_unsupported_locker", + "accessory_keypad_setup_required", + "accessory_keypad_low_battery", + "battery_replacement_recommended", + "unreliable_online_status", + "max_access_codes_reached", + "subscription_required_for_additional_capabilities", + ] + ] + ] = None, + has_errors_or_warnings: Optional[bool] = None, limit: Optional[float] = None, manufacturer: Optional[ Literal[ @@ -255,6 +312,7 @@ def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -283,6 +341,10 @@ def list( :param device_types: Array of device types for which you want to list devices. + :param has_error_or_warning_codes: Array of error and warning codes. Returns devices that have at least one error or warning with any of these codes. + + :param has_errors_or_warnings: Filters devices by whether they have any errors or warnings. Specify ``true`` to list only devices with at least one error or warning, or ``false`` to list only devices with none. + :param limit: Numerical limit on the number of devices to return. :param manufacturer: Manufacturer for which you want to list devices. @@ -461,7 +523,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -524,10 +588,65 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, + has_error_or_warning_codes: Optional[ + List[ + Literal[ + "device_offline", + "device_removed", + "hub_disconnected", + "device_disconnected", + "account_disconnected", + "empty_backup_access_code_pool", + "august_lock_not_authorized", + "low_battery", + "salto_ks_subscription_limit_exceeded", + "insufficient_permissions", + "dormakaba_sites_disconnected", + "missing_device_credentials", + "auxiliary_heat_running", + "subscription_required", + "bridge_disconnected", + "partial_backup_access_code_pool", + "many_active_backup_codes", + "device_has_flaky_connection", + "third_party_integration_detected", + "ttlock_lock_gateway_unlocking_not_enabled", + "ttlock_weak_gateway_signal", + "power_saving_mode", + "temperature_threshold_exceeded", + "device_communication_degraded", + "scheduled_maintenance_window", + "salto_ks_office_mode", + "salto_ks_privacy_mode", + "privacy_mode", + "salto_ks_subscription_limit_almost_reached", + "salto_ks_lock_access_code_support_removed", + "unknown_issue_with_phone", + "lockly_time_zone_not_configured", + "ultraloq_time_zone_unknown", + "time_zone_unknown", + "time_zone_mismatch", + "two_n_device_missing_timezone", + "hub_required_for_additional_capabilities", + "service_mode", + "provider_issue", + "keynest_unsupported_locker", + "accessory_keypad_setup_required", + "accessory_keypad_low_battery", + "battery_replacement_recommended", + "unreliable_online_status", + "max_access_codes_reached", + "subscription_required_for_additional_capabilities", + ] + ] + ] = None, + has_errors_or_warnings: Optional[bool] = None, limit: Optional[float] = None, manufacturer: Optional[ Literal[ @@ -596,6 +715,7 @@ async def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -624,6 +744,10 @@ async def list( :param device_types: Array of device types for which you want to list devices. + :param has_error_or_warning_codes: Array of error and warning codes. Returns devices that have at least one error or warning with any of these codes. + + :param has_errors_or_warnings: Filters devices by whether they have any errors or warnings. Specify ``true`` to list only devices with at least one error or warning, or ``false`` to list only devices with none. + :param limit: Numerical limit on the number of devices to return. :param manufacturer: Manufacturer for which you want to list devices. @@ -822,7 +946,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -885,10 +1011,65 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, + has_error_or_warning_codes: Optional[ + List[ + Literal[ + "device_offline", + "device_removed", + "hub_disconnected", + "device_disconnected", + "account_disconnected", + "empty_backup_access_code_pool", + "august_lock_not_authorized", + "low_battery", + "salto_ks_subscription_limit_exceeded", + "insufficient_permissions", + "dormakaba_sites_disconnected", + "missing_device_credentials", + "auxiliary_heat_running", + "subscription_required", + "bridge_disconnected", + "partial_backup_access_code_pool", + "many_active_backup_codes", + "device_has_flaky_connection", + "third_party_integration_detected", + "ttlock_lock_gateway_unlocking_not_enabled", + "ttlock_weak_gateway_signal", + "power_saving_mode", + "temperature_threshold_exceeded", + "device_communication_degraded", + "scheduled_maintenance_window", + "salto_ks_office_mode", + "salto_ks_privacy_mode", + "privacy_mode", + "salto_ks_subscription_limit_almost_reached", + "salto_ks_lock_access_code_support_removed", + "unknown_issue_with_phone", + "lockly_time_zone_not_configured", + "ultraloq_time_zone_unknown", + "time_zone_unknown", + "time_zone_mismatch", + "two_n_device_missing_timezone", + "hub_required_for_additional_capabilities", + "service_mode", + "provider_issue", + "keynest_unsupported_locker", + "accessory_keypad_setup_required", + "accessory_keypad_low_battery", + "battery_replacement_recommended", + "unreliable_online_status", + "max_access_codes_reached", + "subscription_required_for_additional_capabilities", + ] + ] + ] = None, + has_errors_or_warnings: Optional[bool] = None, limit: Optional[float] = None, manufacturer: Optional[ Literal[ @@ -957,6 +1138,7 @@ def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -985,6 +1167,10 @@ def list( :param device_types: Array of device types for which you want to list devices. + :param has_error_or_warning_codes: Array of error and warning codes. Returns devices that have at least one error or warning with any of these codes. + + :param has_errors_or_warnings: Filters devices by whether they have any errors or warnings. Specify ``true`` to list only devices with at least one error or warning, or ``false`` to list only devices with none. + :param limit: Numerical limit on the number of devices to return. :param manufacturer: Manufacturer for which you want to list devices. @@ -1018,6 +1204,10 @@ def list( params["device_type"] = device_type if device_types is not None: params["device_types"] = device_types + if has_error_or_warning_codes is not None: + params["has_error_or_warning_codes"] = has_error_or_warning_codes + if has_errors_or_warnings is not None: + params["has_errors_or_warnings"] = has_errors_or_warnings if limit is not None: params["limit"] = limit if manufacturer is not None: @@ -1268,7 +1458,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -1331,10 +1523,65 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, + has_error_or_warning_codes: Optional[ + List[ + Literal[ + "device_offline", + "device_removed", + "hub_disconnected", + "device_disconnected", + "account_disconnected", + "empty_backup_access_code_pool", + "august_lock_not_authorized", + "low_battery", + "salto_ks_subscription_limit_exceeded", + "insufficient_permissions", + "dormakaba_sites_disconnected", + "missing_device_credentials", + "auxiliary_heat_running", + "subscription_required", + "bridge_disconnected", + "partial_backup_access_code_pool", + "many_active_backup_codes", + "device_has_flaky_connection", + "third_party_integration_detected", + "ttlock_lock_gateway_unlocking_not_enabled", + "ttlock_weak_gateway_signal", + "power_saving_mode", + "temperature_threshold_exceeded", + "device_communication_degraded", + "scheduled_maintenance_window", + "salto_ks_office_mode", + "salto_ks_privacy_mode", + "privacy_mode", + "salto_ks_subscription_limit_almost_reached", + "salto_ks_lock_access_code_support_removed", + "unknown_issue_with_phone", + "lockly_time_zone_not_configured", + "ultraloq_time_zone_unknown", + "time_zone_unknown", + "time_zone_mismatch", + "two_n_device_missing_timezone", + "hub_required_for_additional_capabilities", + "service_mode", + "provider_issue", + "keynest_unsupported_locker", + "accessory_keypad_setup_required", + "accessory_keypad_low_battery", + "battery_replacement_recommended", + "unreliable_online_status", + "max_access_codes_reached", + "subscription_required_for_additional_capabilities", + ] + ] + ] = None, + has_errors_or_warnings: Optional[bool] = None, limit: Optional[float] = None, manufacturer: Optional[ Literal[ @@ -1403,6 +1650,7 @@ async def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -1431,6 +1679,10 @@ async def list( :param device_types: Array of device types for which you want to list devices. + :param has_error_or_warning_codes: Array of error and warning codes. Returns devices that have at least one error or warning with any of these codes. + + :param has_errors_or_warnings: Filters devices by whether they have any errors or warnings. Specify ``true`` to list only devices with at least one error or warning, or ``false`` to list only devices with none. + :param limit: Numerical limit on the number of devices to return. :param manufacturer: Manufacturer for which you want to list devices. @@ -1464,6 +1716,10 @@ async def list( params["device_type"] = device_type if device_types is not None: params["device_types"] = device_types + if has_error_or_warning_codes is not None: + params["has_error_or_warning_codes"] = has_error_or_warning_codes + if has_errors_or_warnings is not None: + params["has_errors_or_warnings"] = has_errors_or_warnings if limit is not None: params["limit"] = limit if manufacturer is not None: diff --git a/seam/routes/devices_unmanaged.py b/seam/routes/devices_unmanaged.py index 615d59f7..26698e18 100644 --- a/seam/routes/devices_unmanaged.py +++ b/seam/routes/devices_unmanaged.py @@ -99,7 +99,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -162,7 +164,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, @@ -234,6 +238,7 @@ def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -382,7 +387,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -445,7 +452,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, @@ -517,6 +526,7 @@ async def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -689,7 +699,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -752,7 +764,9 @@ def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, @@ -824,6 +838,7 @@ def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, @@ -1044,7 +1059,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] = None, device_types: Optional[ @@ -1107,7 +1124,9 @@ async def list( "sonos_speaker", "alertify_sensor", "hayward_pool_controller", + "jandy_pool_controller", "hayward_pool", + "jandy_pool", ] ] ] = None, @@ -1179,6 +1198,7 @@ async def list( "yacan", "sonos", "hayward_omnilogic", + "jandy_iaqualink", "tuya", ] ] = None, diff --git a/seam/routes/events.py b/seam/routes/events.py index cd483d72..05d77db8 100644 --- a/seam/routes/events.py +++ b/seam/routes/events.py @@ -138,6 +138,7 @@ def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -161,6 +162,7 @@ def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -263,6 +265,7 @@ def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -286,6 +289,7 @@ def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -506,6 +510,7 @@ async def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -529,6 +534,7 @@ async def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -631,6 +637,7 @@ async def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -654,6 +661,7 @@ async def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -927,6 +935,7 @@ def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -950,6 +959,7 @@ def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -1052,6 +1062,7 @@ def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -1075,6 +1086,7 @@ def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -1411,6 +1423,7 @@ async def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -1434,6 +1447,7 @@ async def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point", @@ -1536,6 +1550,7 @@ async def list( "device.disconnected", "device.unmanaged.disconnected", "device.tampered", + "sensor.smoking_detected", "device.low_battery", "device.battery_status_changed", "device.removed", @@ -1559,6 +1574,7 @@ async def list( "lock.door_closed", "thermostat.climate_preset_activated", "thermostat.manually_adjusted", + "thermostat_schedule.climate_preset_activation_may_fail", "thermostat.temperature_threshold_exceeded", "thermostat.temperature_threshold_no_longer_exceeded", "thermostat.temperature_reached_set_point",