diff --git a/package-lock.json b/package-lock.json index 28eef98..1b927a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.9", "@seamapi/smith": "^1.2.1", - "@seamapi/types": "1.1209.2", + "@seamapi/types": "1.1231.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", @@ -862,9 +862,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1209.2", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1209.2.tgz", - "integrity": "sha512-O0bDpAsnNHHOcpjyLw5GGfjs96AdJnLfn/vLxP1OIuYFUBhd7n452W19xJQ0rpTkilnv7EgvtXKeeGPKQSLzaA==", + "version": "1.1231.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1231.0.tgz", + "integrity": "sha512-TLJY/435QDNZzGVg5ALdUkV3Xs77SpnyGP1oHBES+EXW1PYaep1TxwmYFzaow4kEjPAmupuXgq9Pr4h++S/d8Q==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index ceab096..440aea1 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.9", "@seamapi/smith": "^1.2.1", - "@seamapi/types": "1.1209.2", + "@seamapi/types": "1.1231.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", diff --git a/src/Seam/Models/AccessCode.cs b/src/Seam/Models/AccessCode.cs index fea065d..20264ef 100644 --- a/src/Seam/Models/AccessCode.cs +++ b/src/Seam/Models/AccessCode.cs @@ -75,6 +75,7 @@ public sealed record AccessCode "august_lock_not_authorized", typeof(AccessCodeErrorsAugustLockNotAuthorized) )] + [SeamUnionVariant("low_battery", typeof(AccessCodeErrorsLowBattery))] [SeamUnionVariant( "missing_device_credentials", typeof(AccessCodeErrorsMissingDeviceCredentials) @@ -558,6 +559,24 @@ public sealed record AccessCodeErrorsAugustLockNotAuthorized : AccessCodeErrors public bool IsDeviceError { get; init; } = default!; } + public sealed record AccessCodeErrorsLowBattery : AccessCodeErrors + { + [JsonPropertyName("error_code")] + public override string ErrorCode { get; } = "low_battery"; + + /// + /// Date and time at which Seam created the error. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Indicates that the error is a device error. + /// + [JsonPropertyName("is_device_error")] + public bool IsDeviceError { get; init; } = default!; + } + public sealed record AccessCodeErrorsMissingDeviceCredentials : AccessCodeErrors { [JsonPropertyName("error_code")] @@ -704,6 +723,12 @@ public sealed record AccessCodePendingMutationsDeleting : AccessCodePendingMutat { [JsonPropertyName("mutation_code")] public override string MutationCode { get; } = "deleting"; + + /// + /// Indicates whether the access code may still unlock the device while Seam removes it, based on the last state Seam observed. `false` means the device has already stopped accepting the code, for example, because a natively scheduled code passed its `ends_at`, and only cleanup remains. + /// + [JsonPropertyName("is_code_usable")] + public bool IsCodeUsable { get; init; } = default!; } public sealed record AccessCodePendingMutationsUpdatingCode : AccessCodePendingMutations diff --git a/src/Seam/Models/AccessGrant.cs b/src/Seam/Models/AccessGrant.cs index 0255b82..0524971 100644 --- a/src/Seam/Models/AccessGrant.cs +++ b/src/Seam/Models/AccessGrant.cs @@ -231,6 +231,7 @@ public sealed record AccessGrantPendingMutationsUnrecognized typeof(AccessGrantWarningsDeviceTimeConstraintsViolated) )] [SeamUnionVariant("access_revoked", typeof(AccessGrantWarningsAccessRevoked))] + [SeamUnionVariant("mobile_key_withheld", typeof(AccessGrantWarningsMobileKeyWithheld))] [SeamUnionFallback(typeof(AccessGrantWarningsUnrecognized))] public abstract record AccessGrantWarnings { @@ -414,6 +415,12 @@ public sealed record AccessGrantWarningsAccessRevoked : AccessGrantWarnings public string AccessMethodId { get; init; } = default!; } + public sealed record AccessGrantWarningsMobileKeyWithheld : AccessGrantWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "mobile_key_withheld"; + } + public sealed record AccessGrantWarningsUnrecognized : AccessGrantWarnings, ISeamUnrecognizedVariant diff --git a/src/Seam/Models/Batch.cs b/src/Seam/Models/Batch.cs index b66377d..ebe0f50 100644 --- a/src/Seam/Models/Batch.cs +++ b/src/Seam/Models/Batch.cs @@ -172,7 +172,7 @@ public sealed record Batch /// /// Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app. /// - /// There’s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. + /// There’s no account to create. Your user just taps a link and gets a lightweight, native-feeling experience. On iOS, the key opens in an App Clip, so there’s no app to install. On Android, Google has discontinued Google Play Instant, so the first time your user opens an Instant Key they must install the Seam Instant Key app from the Google Play Store. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. /// [JsonPropertyName("instant_keys")] public object? InstantKeys { get; init; } diff --git a/src/Seam/Models/Device.cs b/src/Seam/Models/Device.cs index cb47cae..c5244b4 100644 --- a/src/Seam/Models/Device.cs +++ b/src/Seam/Models/Device.cs @@ -189,41 +189,44 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } [JsonConverter(typeof(SeamUnionConverter))] @@ -250,6 +253,7 @@ public enum DeviceTypeEnum "august_lock_not_authorized", typeof(DeviceErrorsAugustLockNotAuthorized) )] + [SeamUnionVariant("low_battery", typeof(DeviceErrorsLowBattery))] [SeamUnionVariant( "missing_device_credentials", typeof(DeviceErrorsMissingDeviceCredentials) @@ -420,6 +424,18 @@ public sealed record DeviceErrorsAugustLockNotAuthorized : DeviceErrors public bool IsDeviceError { get; init; } = default!; } + public sealed record DeviceErrorsLowBattery : DeviceErrors + { + [JsonPropertyName("error_code")] + public override string ErrorCode { get; } = "low_battery"; + + /// + /// Indicates that the error is a device error. + /// + [JsonPropertyName("is_device_error")] + public bool IsDeviceError { get; init; } = default!; + } + public sealed record DeviceErrorsMissingDeviceCredentials : DeviceErrors { [JsonPropertyName("error_code")] @@ -564,6 +580,10 @@ public sealed record DeviceErrorsUnrecognized : DeviceErrors, ISeamUnrecognizedV "accessory_keypad_low_battery", typeof(DeviceWarningsAccessoryKeypadLowBattery) )] + [SeamUnionVariant( + "battery_replacement_recommended", + typeof(DeviceWarningsBatteryReplacementRecommended) + )] [SeamUnionVariant("unreliable_online_status", typeof(DeviceWarningsUnreliableOnlineStatus))] [SeamUnionVariant("max_access_codes_reached", typeof(DeviceWarningsMaxAccessCodesReached))] [SeamUnionVariant( @@ -759,6 +779,12 @@ public sealed record DeviceWarningsAccessoryKeypadLowBattery : DeviceWarnings public override string WarningCode { get; } = "accessory_keypad_low_battery"; } + public sealed record DeviceWarningsBatteryReplacementRecommended : DeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "battery_replacement_recommended"; + } + public sealed record DeviceWarningsUnreliableOnlineStatus : DeviceWarnings { [JsonPropertyName("warning_code")] @@ -1024,6 +1050,18 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni [JsonPropertyName("estimated_occupant_count")] public float? EstimatedOccupantCount { get; init; } + /// + /// Indicates whether the device was last reported as having its casing opened or tampered with. Omitted when the provider reports no casing state, including when the device does not support casing tamper detection. This is independent of `is_detached_from_mounting_plate`. + /// + [JsonPropertyName("is_casing_tampered_with")] + public bool? IsCasingTamperedWith { get; init; } + + /// + /// Indicates whether the device was last reported as detached from its mounting plate. Omitted when Seam has no accepted observation, including when the device does not support mounting plate detection, reports an unknown status, or is offline. This is the last accepted provider observation, not a guarantee of current hardware state; check `is_online` before acting on it. + /// + [JsonPropertyName("is_detached_from_mounting_plate")] + public bool? IsDetachedFromMountingPlate { get; init; } + /// /// Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). /// @@ -1036,6 +1074,12 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni [JsonPropertyName("is_occupancy_detected")] public bool? IsOccupancyDetected { get; init; } + /// + /// Indicates whether the device is online. + /// + [JsonPropertyName("is_online")] + public bool IsOnline { get; init; } = default!; + /// /// Indicates whether the device detects smoking, if the device measures it. /// @@ -1490,6 +1534,12 @@ public enum AvailableHvacModeSettingsEnum [JsonPropertyName("brivo_metadata")] public DevicePropertiesBrivoMetadata? BrivoMetadata { get; init; } + /// + /// Metadata for a Cielo device. + /// + [JsonPropertyName("cielo_metadata")] + public DevicePropertiesCieloMetadata? CieloMetadata { get; init; } + /// /// Metadata for a ControlByWeb device. /// @@ -2342,6 +2392,39 @@ public sealed record DevicePropertiesBrivoMetadata public string? DeviceName { get; init; } } + public sealed record DevicePropertiesCieloMetadata + { + /// + /// ID of the air conditioner or heat pump model that the Cielo device is set up to control. + /// + [JsonPropertyName("appliance_id")] + public string? ApplianceId { get; init; } + + /// + /// Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. + /// + [JsonPropertyName("cielo_device_type")] + public string? CieloDeviceType { get; init; } + + /// + /// Name of the device in the Cielo Home app. + /// + [JsonPropertyName("device_name")] + public string? DeviceName { get; init; } + + /// + /// MAC address of the Cielo device. + /// + [JsonPropertyName("mac_address")] + public string? MacAddress { get; init; } + + /// + /// Temperature unit that the Cielo device displays: `C` or `F`. + /// + [JsonPropertyName("temperature_unit")] + public string? TemperatureUnit { get; init; } + } + public sealed record DevicePropertiesControlbywebMetadata { /// diff --git a/src/Seam/Models/DeviceProvider.cs b/src/Seam/Models/DeviceProvider.cs index 5f7d6d1..18f266a 100644 --- a/src/Seam/Models/DeviceProvider.cs +++ b/src/Seam/Models/DeviceProvider.cs @@ -170,89 +170,92 @@ public enum DeviceProviderNameEnum [EnumMember(Value = "sensibo")] Sensibo = 50, + [EnumMember(Value = "cielo")] + Cielo = 51, + [EnumMember(Value = "keynest")] - Keynest = 51, + Keynest = 52, [EnumMember(Value = "korelock")] - Korelock = 52, + Korelock = 53, [EnumMember(Value = "keyincode")] - Keyincode = 53, + Keyincode = 54, [EnumMember(Value = "dormakaba_ambiance")] - DormakabaAmbiance = 54, + DormakabaAmbiance = 55, [EnumMember(Value = "ultraloq")] - Ultraloq = 55, + Ultraloq = 56, [EnumMember(Value = "yacan")] - Yacan = 56, + Yacan = 57, [EnumMember(Value = "dusaw")] - Dusaw = 57, + Dusaw = 58, [EnumMember(Value = "sifely")] - Sifely = 58, + Sifely = 59, [EnumMember(Value = "thirty_three_lock")] - ThirtyThreeLock = 59, + ThirtyThreeLock = 60, [EnumMember(Value = "ring")] - Ring = 60, + Ring = 61, [EnumMember(Value = "tapo")] - Tapo = 61, + Tapo = 62, [EnumMember(Value = "arlo")] - Arlo = 62, + Arlo = 63, [EnumMember(Value = "reolink")] - Reolink = 63, + Reolink = 64, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 64, + UnifiProtect = 65, [EnumMember(Value = "yale_connect")] - YaleConnect = 65, + YaleConnect = 66, [EnumMember(Value = "alertify")] - Alertify = 66, + Alertify = 67, [EnumMember(Value = "ical")] - Ical = 67, + Ical = 68, [EnumMember(Value = "lodgify")] - Lodgify = 68, + Lodgify = 69, [EnumMember(Value = "hostaway")] - Hostaway = 69, + Hostaway = 70, [EnumMember(Value = "guesty")] - Guesty = 70, + Guesty = 71, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 71, + AcuityScheduling = 72, [EnumMember(Value = "omnitec")] - Omnitec = 72, + Omnitec = 73, [EnumMember(Value = "kisi")] - Kisi = 73, + Kisi = 74, [EnumMember(Value = "aqara")] - Aqara = 74, + Aqara = 75, [EnumMember(Value = "eufy")] - Eufy = 75, + Eufy = 76, [EnumMember(Value = "sonos")] - Sonos = 76, + Sonos = 77, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 77, + HaywardOmnilogic = 78, [EnumMember(Value = "tuya")] - Tuya = 78, + Tuya = 79, } /// diff --git a/src/Seam/Models/Event.cs b/src/Seam/Models/Event.cs index 8971845..f131384 100644 --- a/src/Seam/Models/Event.cs +++ b/src/Seam/Models/Event.cs @@ -28,6 +28,7 @@ namespace Seam.Models "access_code.failed_to_set_on_device", typeof(EventAccessCodeFailedToSetOnDevice) )] + [SeamUnionVariant("access_code.failed_to_delete", typeof(EventAccessCodeFailedToDelete))] [SeamUnionVariant("access_code.deleted", typeof(EventAccessCodeDeleted))] [SeamUnionVariant( "access_code.delay_in_removing_from_device", @@ -251,7 +252,7 @@ public abstract record Event /// 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. /// [JsonPropertyName("event_description")] - public string? EventDescription { get; init; } + public string EventDescription { get; init; } = default!; /// /// ID of the event. @@ -1259,6 +1260,213 @@ public sealed record EventAccessCodeFailedToSetOnDeviceDeviceWarnings public string WarningCode { get; init; } = default!; } + /// + /// Seam was unable to remove an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and the accompanying `failed_to_delete` error clears automatically once the access code is no longer usable on the device. + /// + public sealed record EventAccessCodeFailedToDelete : Event + { + [JsonPropertyName("event_type")] + public override string EventType { get; } = "access_code.failed_to_delete"; + + /// + /// Errors associated with the access code. + /// + [JsonPropertyName("access_code_errors")] + public List AccessCodeErrors { get; init; } = + default!; + + /// + /// ID of the affected access code. + /// + [JsonPropertyName("access_code_id")] + public string AccessCodeId { get; init; } = default!; + + /// + /// Warnings associated with the access code. + /// + [JsonPropertyName("access_code_warnings")] + public List AccessCodeWarnings { get; init; } = + default!; + + /// + /// Custom metadata of the connected account, present when connected_account_id is provided. + /// + [JsonPropertyName("connected_account_custom_metadata")] + public object? ConnectedAccountCustomMetadata { get; init; } + + /// + /// Errors associated with the connected account. + /// + [JsonPropertyName("connected_account_errors")] + public List ConnectedAccountErrors { get; init; } = + default!; + + /// + /// ID of the connected account associated with the affected access code. + /// + [JsonPropertyName("connected_account_id")] + public string ConnectedAccountId { get; init; } = default!; + + /// + /// Warnings associated with the connected account. + /// + [JsonPropertyName("connected_account_warnings")] + public List ConnectedAccountWarnings { get; init; } = + default!; + + /// + /// Custom metadata of the device, present when device_id is provided. + /// + [JsonPropertyName("device_custom_metadata")] + public object? DeviceCustomMetadata { get; init; } + + /// + /// Errors associated with the device. + /// + [JsonPropertyName("device_errors")] + public List DeviceErrors { get; init; } = + default!; + + /// + /// ID of the device associated with the affected access code. + /// + [JsonPropertyName("device_id")] + public string DeviceId { get; init; } = default!; + + /// + /// Warnings associated with the device. + /// + [JsonPropertyName("device_warnings")] + public List DeviceWarnings { get; init; } = + default!; + } + + public sealed record EventAccessCodeFailedToDeleteAccessCodeErrors + { + /// + /// Date and time at which Seam created the error. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("error_code")] + public string ErrorCode { get; init; } = default!; + + /// + /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + } + + public sealed record EventAccessCodeFailedToDeleteAccessCodeWarnings + { + /// + /// Date and time at which Seam created the warning. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + + /// + /// Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("warning_code")] + public string WarningCode { get; init; } = default!; + } + + public sealed record EventAccessCodeFailedToDeleteConnectedAccountErrors + { + /// + /// Date and time at which Seam created the error. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("error_code")] + public string ErrorCode { get; init; } = default!; + + /// + /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + } + + public sealed record EventAccessCodeFailedToDeleteConnectedAccountWarnings + { + /// + /// Date and time at which Seam created the warning. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + + /// + /// Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("warning_code")] + public string WarningCode { get; init; } = default!; + } + + public sealed record EventAccessCodeFailedToDeleteDeviceErrors + { + /// + /// Date and time at which Seam created the error. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("error_code")] + public string ErrorCode { get; init; } = default!; + + /// + /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + } + + public sealed record EventAccessCodeFailedToDeleteDeviceWarnings + { + /// + /// Date and time at which Seam created the warning. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + /// + [JsonPropertyName("message")] + public string Message { get; init; } = default!; + + /// + /// Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + /// + [JsonPropertyName("warning_code")] + public string WarningCode { get; init; } = default!; + } + /// /// An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was deleted. /// @@ -3909,6 +4117,9 @@ public enum ErrorCodeEnum [EnumMember(Value = "device_disconnected")] DeviceDisconnected = 3, + + [EnumMember(Value = "bridge_disconnected")] + BridgeDisconnected = 4, } [JsonPropertyName("event_type")] @@ -4083,6 +4294,9 @@ public enum ErrorCodeEnum [EnumMember(Value = "device_disconnected")] DeviceDisconnected = 3, + + [EnumMember(Value = "bridge_disconnected")] + BridgeDisconnected = 4, } [JsonPropertyName("event_type")] @@ -4274,6 +4488,18 @@ public sealed record EventDeviceTampered : Event /// [JsonPropertyName("device_id")] public string DeviceId { get; init; } = default!; + + /// + /// Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. + /// + [JsonPropertyName("is_casing_tampered_with")] + public bool? IsCasingTamperedWith { get; init; } + + /// + /// Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. + /// + [JsonPropertyName("is_detached_from_mounting_plate")] + public bool? IsDetachedFromMountingPlate { get; init; } } /// diff --git a/src/Seam/Models/InstantKey.cs b/src/Seam/Models/InstantKey.cs index 30832c9..7974ce0 100644 --- a/src/Seam/Models/InstantKey.cs +++ b/src/Seam/Models/InstantKey.cs @@ -12,7 +12,7 @@ namespace Seam.Models /// /// Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app. /// - /// There’s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. + /// There’s no account to create. Your user just taps a link and gets a lightweight, native-feeling experience. On iOS, the key opens in an App Clip, so there’s no app to install. On Android, Google has discontinued Google Play Instant, so the first time your user opens an Instant Key they must install the Seam Instant Key app from the Google Play Store. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. /// public sealed record InstantKey { diff --git a/src/Seam/Models/Phone.cs b/src/Seam/Models/Phone.cs index 489fb5e..b78a02b 100644 --- a/src/Seam/Models/Phone.cs +++ b/src/Seam/Models/Phone.cs @@ -51,6 +51,7 @@ public enum DeviceTypeEnum typeof(PhoneErrorsEmptyBackupAccessCodePool) )] [SeamUnionVariant("august_lock_not_authorized", typeof(PhoneErrorsAugustLockNotAuthorized))] + [SeamUnionVariant("low_battery", typeof(PhoneErrorsLowBattery))] [SeamUnionVariant( "missing_device_credentials", typeof(PhoneErrorsMissingDeviceCredentials) @@ -221,6 +222,18 @@ public sealed record PhoneErrorsAugustLockNotAuthorized : PhoneErrors public bool IsDeviceError { get; init; } = default!; } + public sealed record PhoneErrorsLowBattery : PhoneErrors + { + [JsonPropertyName("error_code")] + public override string ErrorCode { get; } = "low_battery"; + + /// + /// Indicates that the error is a device error. + /// + [JsonPropertyName("is_device_error")] + public bool IsDeviceError { get; init; } = default!; + } + public sealed record PhoneErrorsMissingDeviceCredentials : PhoneErrors { [JsonPropertyName("error_code")] @@ -365,6 +378,10 @@ public sealed record PhoneErrorsUnrecognized : PhoneErrors, ISeamUnrecognizedVar "accessory_keypad_low_battery", typeof(PhoneWarningsAccessoryKeypadLowBattery) )] + [SeamUnionVariant( + "battery_replacement_recommended", + typeof(PhoneWarningsBatteryReplacementRecommended) + )] [SeamUnionVariant("unreliable_online_status", typeof(PhoneWarningsUnreliableOnlineStatus))] [SeamUnionVariant("max_access_codes_reached", typeof(PhoneWarningsMaxAccessCodesReached))] [SeamUnionVariant( @@ -560,6 +577,12 @@ public sealed record PhoneWarningsAccessoryKeypadLowBattery : PhoneWarnings public override string WarningCode { get; } = "accessory_keypad_low_battery"; } + public sealed record PhoneWarningsBatteryReplacementRecommended : PhoneWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "battery_replacement_recommended"; + } + public sealed record PhoneWarningsUnreliableOnlineStatus : PhoneWarnings { [JsonPropertyName("warning_code")] diff --git a/src/Seam/Models/UnmanagedAccessCode.cs b/src/Seam/Models/UnmanagedAccessCode.cs index ab60ea0..133e0c1 100644 --- a/src/Seam/Models/UnmanagedAccessCode.cs +++ b/src/Seam/Models/UnmanagedAccessCode.cs @@ -89,6 +89,7 @@ public sealed record UnmanagedAccessCode "august_lock_not_authorized", typeof(UnmanagedAccessCodeErrorsAugustLockNotAuthorized) )] + [SeamUnionVariant("low_battery", typeof(UnmanagedAccessCodeErrorsLowBattery))] [SeamUnionVariant( "missing_device_credentials", typeof(UnmanagedAccessCodeErrorsMissingDeviceCredentials) @@ -593,6 +594,24 @@ public sealed record UnmanagedAccessCodeErrorsAugustLockNotAuthorized public bool IsDeviceError { get; init; } = default!; } + public sealed record UnmanagedAccessCodeErrorsLowBattery : UnmanagedAccessCodeErrors + { + [JsonPropertyName("error_code")] + public override string ErrorCode { get; } = "low_battery"; + + /// + /// Date and time at which Seam created the error. + /// + [JsonPropertyName("created_at")] + public string CreatedAt { get; init; } = default!; + + /// + /// Indicates that the error is a device error. + /// + [JsonPropertyName("is_device_error")] + public bool IsDeviceError { get; init; } = default!; + } + public sealed record UnmanagedAccessCodeErrorsMissingDeviceCredentials : UnmanagedAccessCodeErrors { diff --git a/src/Seam/Models/UnmanagedAccessGrant.cs b/src/Seam/Models/UnmanagedAccessGrant.cs index 4e9c9f2..5064033 100644 --- a/src/Seam/Models/UnmanagedAccessGrant.cs +++ b/src/Seam/Models/UnmanagedAccessGrant.cs @@ -246,6 +246,10 @@ public sealed record UnmanagedAccessGrantPendingMutationsUnrecognized typeof(UnmanagedAccessGrantWarningsDeviceTimeConstraintsViolated) )] [SeamUnionVariant("access_revoked", typeof(UnmanagedAccessGrantWarningsAccessRevoked))] + [SeamUnionVariant( + "mobile_key_withheld", + typeof(UnmanagedAccessGrantWarningsMobileKeyWithheld) + )] [SeamUnionFallback(typeof(UnmanagedAccessGrantWarningsUnrecognized))] public abstract record UnmanagedAccessGrantWarnings { @@ -435,6 +439,13 @@ public sealed record UnmanagedAccessGrantWarningsAccessRevoked public string AccessMethodId { get; init; } = default!; } + public sealed record UnmanagedAccessGrantWarningsMobileKeyWithheld + : UnmanagedAccessGrantWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "mobile_key_withheld"; + } + public sealed record UnmanagedAccessGrantWarningsUnrecognized : UnmanagedAccessGrantWarnings, ISeamUnrecognizedVariant diff --git a/src/Seam/Models/UnmanagedDevice.cs b/src/Seam/Models/UnmanagedDevice.cs index 1966af0..987a9a1 100644 --- a/src/Seam/Models/UnmanagedDevice.cs +++ b/src/Seam/Models/UnmanagedDevice.cs @@ -189,41 +189,44 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } [JsonConverter(typeof(SeamUnionConverter))] @@ -253,6 +256,7 @@ public enum DeviceTypeEnum "august_lock_not_authorized", typeof(UnmanagedDeviceErrorsAugustLockNotAuthorized) )] + [SeamUnionVariant("low_battery", typeof(UnmanagedDeviceErrorsLowBattery))] [SeamUnionVariant( "missing_device_credentials", typeof(UnmanagedDeviceErrorsMissingDeviceCredentials) @@ -430,6 +434,18 @@ public sealed record UnmanagedDeviceErrorsAugustLockNotAuthorized : UnmanagedDev public bool IsDeviceError { get; init; } = default!; } + public sealed record UnmanagedDeviceErrorsLowBattery : UnmanagedDeviceErrors + { + [JsonPropertyName("error_code")] + public override string ErrorCode { get; } = "low_battery"; + + /// + /// Indicates that the error is a device error. + /// + [JsonPropertyName("is_device_error")] + public bool IsDeviceError { get; init; } = default!; + } + public sealed record UnmanagedDeviceErrorsMissingDeviceCredentials : UnmanagedDeviceErrors { [JsonPropertyName("error_code")] @@ -585,6 +601,10 @@ public sealed record UnmanagedDeviceErrorsUnrecognized "accessory_keypad_low_battery", typeof(UnmanagedDeviceWarningsAccessoryKeypadLowBattery) )] + [SeamUnionVariant( + "battery_replacement_recommended", + typeof(UnmanagedDeviceWarningsBatteryReplacementRecommended) + )] [SeamUnionVariant( "unreliable_online_status", typeof(UnmanagedDeviceWarningsUnreliableOnlineStatus) @@ -803,6 +823,13 @@ public sealed record UnmanagedDeviceWarningsAccessoryKeypadLowBattery public override string WarningCode { get; } = "accessory_keypad_low_battery"; } + public sealed record UnmanagedDeviceWarningsBatteryReplacementRecommended + : UnmanagedDeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "battery_replacement_recommended"; + } + public sealed record UnmanagedDeviceWarningsUnreliableOnlineStatus : UnmanagedDeviceWarnings { [JsonPropertyName("warning_code")] @@ -1041,6 +1068,12 @@ public sealed record UnmanagedDeviceWarningsUnrecognized [JsonPropertyName("is_managed")] public bool IsManaged { get; init; } = default!; + /// + /// Indicates whether the device is online. + /// + [JsonPropertyName("is_online")] + public bool IsOnline { get; init; } = default!; + /// /// Location information for the device. /// diff --git a/src/Seam/Routes/AccessMethods.cs b/src/Seam/Routes/AccessMethods.cs index 37885b7..8374863 100644 --- a/src/Seam/Routes/AccessMethods.cs +++ b/src/Seam/Routes/AccessMethods.cs @@ -87,6 +87,9 @@ public async Task AssignCardAsync( /// /// Request parameters for Delete an Access Method. /// + [Obsolete( + "Access methods are managed by their access grant. Some workflows still need this endpoint today; access grant routes will replace it for them soon." + )] public sealed record DeleteRequest { /// @@ -119,6 +122,9 @@ internal void Validate() /// /// Deletes an access method. /// + [Obsolete( + "Access methods are managed by their access grant. Some workflows still need this endpoint today; access grant routes will replace it for them soon." + )] public async Task DeleteAsync( DeleteRequest request, CancellationToken cancellationToken = default diff --git a/src/Seam/Routes/ConnectWebviews.cs b/src/Seam/Routes/ConnectWebviews.cs index f1fddc2..0270019 100644 --- a/src/Seam/Routes/ConnectWebviews.cs +++ b/src/Seam/Routes/ConnectWebviews.cs @@ -220,98 +220,101 @@ public enum AcceptedProvidersEnum [EnumMember(Value = "sensibo")] Sensibo = 50, + [EnumMember(Value = "cielo")] + Cielo = 51, + [EnumMember(Value = "keynest")] - Keynest = 51, + Keynest = 52, [EnumMember(Value = "korelock")] - Korelock = 52, + Korelock = 53, [EnumMember(Value = "keyincode")] - Keyincode = 53, + Keyincode = 54, [EnumMember(Value = "dormakaba_ambiance")] - DormakabaAmbiance = 54, + DormakabaAmbiance = 55, [EnumMember(Value = "ultraloq")] - Ultraloq = 55, + Ultraloq = 56, [EnumMember(Value = "yacan")] - Yacan = 56, + Yacan = 57, [EnumMember(Value = "dusaw")] - Dusaw = 57, + Dusaw = 58, [EnumMember(Value = "sifely")] - Sifely = 58, + Sifely = 59, [EnumMember(Value = "thirty_three_lock")] - ThirtyThreeLock = 59, + ThirtyThreeLock = 60, [EnumMember(Value = "ring")] - Ring = 60, + Ring = 61, [EnumMember(Value = "tapo")] - Tapo = 61, + Tapo = 62, [EnumMember(Value = "arlo")] - Arlo = 62, + Arlo = 63, [EnumMember(Value = "reolink")] - Reolink = 63, + Reolink = 64, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 64, + UnifiProtect = 65, [EnumMember(Value = "yale_connect")] - YaleConnect = 65, + YaleConnect = 66, [EnumMember(Value = "alertify")] - Alertify = 66, + Alertify = 67, [EnumMember(Value = "ical")] - Ical = 67, + Ical = 68, [EnumMember(Value = "lodgify")] - Lodgify = 68, + Lodgify = 69, [EnumMember(Value = "hostaway")] - Hostaway = 69, + Hostaway = 70, [EnumMember(Value = "guesty")] - Guesty = 70, + Guesty = 71, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 71, + AcuityScheduling = 72, [EnumMember(Value = "omnitec")] - Omnitec = 72, + Omnitec = 73, [EnumMember(Value = "kisi")] - Kisi = 73, + Kisi = 74, [EnumMember(Value = "aqara")] - Aqara = 74, + Aqara = 75, [EnumMember(Value = "eufy")] - Eufy = 75, + Eufy = 76, [EnumMember(Value = "sonos")] - Sonos = 76, + Sonos = 77, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 77, + HaywardOmnilogic = 78, [EnumMember(Value = "tuya")] - Tuya = 78, + Tuya = 79, [EnumMember(Value = "hid_cm")] - HidCm = 79, + HidCm = 80, [EnumMember(Value = "google_nest")] - GoogleNest = 80, + GoogleNest = 81, [EnumMember(Value = "slack")] - Slack = 81, + Slack = 82, } /// diff --git a/src/Seam/Routes/Customers.cs b/src/Seam/Routes/Customers.cs index bf361c1..68afd4d 100644 --- a/src/Seam/Routes/Customers.cs +++ b/src/Seam/Routes/Customers.cs @@ -1302,6 +1302,12 @@ public sealed record CreatePortalRequestFeaturesConfigure [JsonPropertyName("allow_notification_customization")] public bool? AllowNotificationCustomization { get; init; } + /// + /// Indicates whether the customer can customize the pool heating automation rules for their properties. + /// + [JsonPropertyName("allow_pool_automation_rule_customization")] + public bool? AllowPoolAutomationRuleCustomization { get; init; } + /// /// Indicates whether the customer can customize the sensor automation rules for their properties. /// diff --git a/src/Seam/Routes/Devices.cs b/src/Seam/Routes/Devices.cs index 279309c..8f18c9d 100644 --- a/src/Seam/Routes/Devices.cs +++ b/src/Seam/Routes/Devices.cs @@ -235,41 +235,44 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } /// @@ -416,41 +419,44 @@ public enum DeviceTypesEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } /// @@ -579,83 +585,86 @@ public enum ManufacturerEnum [EnumMember(Value = "minut")] Minut = 39, + [EnumMember(Value = "cielo")] + Cielo = 40, + [EnumMember(Value = "nest")] - Nest = 40, + Nest = 41, [EnumMember(Value = "noiseaware")] - Noiseaware = 41, + Noiseaware = 42, [EnumMember(Value = "sensi")] - Sensi = 42, + Sensi = 43, [EnumMember(Value = "sensibo")] - Sensibo = 43, + Sensibo = 44, [EnumMember(Value = "smartthings")] - Smartthings = 44, + Smartthings = 45, [EnumMember(Value = "tado")] - Tado = 45, + Tado = 46, [EnumMember(Value = "ultraloq")] - Ultraloq = 46, + Ultraloq = 47, [EnumMember(Value = "ring")] - Ring = 47, + Ring = 48, [EnumMember(Value = "tapo")] - Tapo = 48, + Tapo = 49, [EnumMember(Value = "arlo")] - Arlo = 49, + Arlo = 50, [EnumMember(Value = "reolink")] - Reolink = 50, + Reolink = 51, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 51, + UnifiProtect = 52, [EnumMember(Value = "yale_connect")] - YaleConnect = 52, + YaleConnect = 53, [EnumMember(Value = "alertify")] - Alertify = 53, + Alertify = 54, [EnumMember(Value = "ical")] - Ical = 54, + Ical = 55, [EnumMember(Value = "lodgify")] - Lodgify = 55, + Lodgify = 56, [EnumMember(Value = "hostaway")] - Hostaway = 56, + Hostaway = 57, [EnumMember(Value = "guesty")] - Guesty = 57, + Guesty = 58, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 58, + AcuityScheduling = 59, [EnumMember(Value = "omnitec")] - Omnitec = 59, + Omnitec = 60, [EnumMember(Value = "kisi")] - Kisi = 60, + Kisi = 61, [EnumMember(Value = "slack")] - Slack = 61, + Slack = 62, [EnumMember(Value = "yacan")] - Yacan = 62, + Yacan = 63, [EnumMember(Value = "sonos")] - Sonos = 63, + Sonos = 64, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 64, + HaywardOmnilogic = 65, [EnumMember(Value = "tuya")] - Tuya = 65, + Tuya = 66, } /// diff --git a/src/Seam/Routes/DevicesUnmanaged.cs b/src/Seam/Routes/DevicesUnmanaged.cs index a7d0958..0eee827 100644 --- a/src/Seam/Routes/DevicesUnmanaged.cs +++ b/src/Seam/Routes/DevicesUnmanaged.cs @@ -234,41 +234,44 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } /// @@ -415,41 +418,44 @@ public enum DeviceTypesEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 45, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 46, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 46, + SmartthingsThermostat = 47, [EnumMember(Value = "ios_phone")] - IosPhone = 47, + IosPhone = 48, [EnumMember(Value = "android_phone")] - AndroidPhone = 48, + AndroidPhone = 49, [EnumMember(Value = "ring_camera")] - RingCamera = 49, + RingCamera = 50, [EnumMember(Value = "tapo_camera")] - TapoCamera = 50, + TapoCamera = 51, [EnumMember(Value = "arlo_camera")] - ArloCamera = 51, + ArloCamera = 52, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 52, + ReolinkCamera = 53, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 53, + UnifiProtectCamera = 54, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 54, + SonosSpeaker = 55, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 55, + AlertifySensor = 56, [EnumMember(Value = "hayward_pool_controller")] - HaywardPoolController = 56, + HaywardPoolController = 57, [EnumMember(Value = "hayward_pool")] - HaywardPool = 57, + HaywardPool = 58, } /// @@ -578,83 +584,86 @@ public enum ManufacturerEnum [EnumMember(Value = "minut")] Minut = 39, + [EnumMember(Value = "cielo")] + Cielo = 40, + [EnumMember(Value = "nest")] - Nest = 40, + Nest = 41, [EnumMember(Value = "noiseaware")] - Noiseaware = 41, + Noiseaware = 42, [EnumMember(Value = "sensi")] - Sensi = 42, + Sensi = 43, [EnumMember(Value = "sensibo")] - Sensibo = 43, + Sensibo = 44, [EnumMember(Value = "smartthings")] - Smartthings = 44, + Smartthings = 45, [EnumMember(Value = "tado")] - Tado = 45, + Tado = 46, [EnumMember(Value = "ultraloq")] - Ultraloq = 46, + Ultraloq = 47, [EnumMember(Value = "ring")] - Ring = 47, + Ring = 48, [EnumMember(Value = "tapo")] - Tapo = 48, + Tapo = 49, [EnumMember(Value = "arlo")] - Arlo = 49, + Arlo = 50, [EnumMember(Value = "reolink")] - Reolink = 50, + Reolink = 51, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 51, + UnifiProtect = 52, [EnumMember(Value = "yale_connect")] - YaleConnect = 52, + YaleConnect = 53, [EnumMember(Value = "alertify")] - Alertify = 53, + Alertify = 54, [EnumMember(Value = "ical")] - Ical = 54, + Ical = 55, [EnumMember(Value = "lodgify")] - Lodgify = 55, + Lodgify = 56, [EnumMember(Value = "hostaway")] - Hostaway = 56, + Hostaway = 57, [EnumMember(Value = "guesty")] - Guesty = 57, + Guesty = 58, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 58, + AcuityScheduling = 59, [EnumMember(Value = "omnitec")] - Omnitec = 59, + Omnitec = 60, [EnumMember(Value = "kisi")] - Kisi = 60, + Kisi = 61, [EnumMember(Value = "slack")] - Slack = 61, + Slack = 62, [EnumMember(Value = "yacan")] - Yacan = 62, + Yacan = 63, [EnumMember(Value = "sonos")] - Sonos = 63, + Sonos = 64, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 64, + HaywardOmnilogic = 65, [EnumMember(Value = "tuya")] - Tuya = 65, + Tuya = 66, } /// diff --git a/src/Seam/Routes/Events.cs b/src/Seam/Routes/Events.cs index 3faef6f..358b1d1 100644 --- a/src/Seam/Routes/Events.cs +++ b/src/Seam/Routes/Events.cs @@ -425,29 +425,38 @@ public enum EventTypeEnum [EnumMember(Value = "thermostat.temperature_changed")] ThermostatTemperatureChanged = 109, + [EnumMember(Value = "pool.temperature_changed")] + PoolTemperatureChanged = 110, + + [EnumMember(Value = "pool.temperature_reached_set_point")] + PoolTemperatureReachedSetPoint = 111, + + [EnumMember(Value = "pool.manually_adjusted")] + PoolManuallyAdjusted = 112, + [EnumMember(Value = "device.name_changed")] - DeviceNameChanged = 110, + DeviceNameChanged = 113, [EnumMember(Value = "camera.activated")] - CameraActivated = 111, + CameraActivated = 114, [EnumMember(Value = "device.doorbell_rang")] - DeviceDoorbellRang = 112, + DeviceDoorbellRang = 115, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 113, + EnrollmentAutomationDeleted = 116, [EnumMember(Value = "phone.deactivated")] - PhoneDeactivated = 114, + PhoneDeactivated = 117, [EnumMember(Value = "space.device_membership_changed")] - SpaceDeviceMembershipChanged = 115, + SpaceDeviceMembershipChanged = 118, [EnumMember(Value = "space.created")] - SpaceCreated = 116, + SpaceCreated = 119, [EnumMember(Value = "space.deleted")] - SpaceDeleted = 117, + SpaceDeleted = 120, } /// @@ -786,29 +795,38 @@ public enum EventTypesEnum [EnumMember(Value = "thermostat.temperature_changed")] ThermostatTemperatureChanged = 109, + [EnumMember(Value = "pool.temperature_changed")] + PoolTemperatureChanged = 110, + + [EnumMember(Value = "pool.temperature_reached_set_point")] + PoolTemperatureReachedSetPoint = 111, + + [EnumMember(Value = "pool.manually_adjusted")] + PoolManuallyAdjusted = 112, + [EnumMember(Value = "device.name_changed")] - DeviceNameChanged = 110, + DeviceNameChanged = 113, [EnumMember(Value = "camera.activated")] - CameraActivated = 111, + CameraActivated = 114, [EnumMember(Value = "device.doorbell_rang")] - DeviceDoorbellRang = 112, + DeviceDoorbellRang = 115, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 113, + EnrollmentAutomationDeleted = 116, [EnumMember(Value = "phone.deactivated")] - PhoneDeactivated = 114, + PhoneDeactivated = 117, [EnumMember(Value = "space.device_membership_changed")] - SpaceDeviceMembershipChanged = 115, + SpaceDeviceMembershipChanged = 118, [EnumMember(Value = "space.created")] - SpaceCreated = 116, + SpaceCreated = 119, [EnumMember(Value = "space.deleted")] - SpaceDeleted = 117, + SpaceDeleted = 120, } /// diff --git a/src/Seam/Routes/NoiseSensorsNoiseThresholds.cs b/src/Seam/Routes/NoiseSensorsNoiseThresholds.cs index 45f5c67..057e9be 100644 --- a/src/Seam/Routes/NoiseSensorsNoiseThresholds.cs +++ b/src/Seam/Routes/NoiseSensorsNoiseThresholds.cs @@ -78,6 +78,8 @@ public sealed record CreateResponse /// /// Creates a new [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them. + /// + /// For Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the request fails with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the request fails with a `noise_profile_assignment_unverified` error and nothing is changed; try again. /// public async Task CreateAsync( CreateRequest request, @@ -116,6 +118,8 @@ public sealed record DeleteRequest /// /// Deletes a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) from a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors). + /// + /// For Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the action attempt ends with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the action attempt ends with a `noise_profile_assignment_unverified` error and nothing is changed; try again. /// public async Task DeleteAsync( DeleteRequest request, @@ -264,6 +268,8 @@ public sealed record UpdateRequest /// /// Updates a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors). + /// + /// For Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the action attempt ends with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the action attempt ends with a `noise_profile_assignment_unverified` error and nothing is changed; try again. /// public async Task UpdateAsync( UpdateRequest request, diff --git a/src/Seam/Routes/Thermostats.cs b/src/Seam/Routes/Thermostats.cs index d28f54b..5a1d4e6 100644 --- a/src/Seam/Routes/Thermostats.cs +++ b/src/Seam/Routes/Thermostats.cs @@ -605,8 +605,11 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 6, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 7, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 7, + SmartthingsThermostat = 8, } /// @@ -636,8 +639,11 @@ public enum DeviceTypesEnum [EnumMember(Value = "sensibo_thermostat")] SensiboThermostat = 6, + [EnumMember(Value = "cielo_thermostat")] + CieloThermostat = 7, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 7, + SmartthingsThermostat = 8, } /// @@ -655,20 +661,23 @@ public enum ManufacturerEnum [EnumMember(Value = "honeywell_resideo")] HoneywellResideo = 2, + [EnumMember(Value = "cielo")] + Cielo = 3, + [EnumMember(Value = "nest")] - Nest = 3, + Nest = 4, [EnumMember(Value = "sensi")] - Sensi = 4, + Sensi = 5, [EnumMember(Value = "sensibo")] - Sensibo = 5, + Sensibo = 6, [EnumMember(Value = "smartthings")] - Smartthings = 6, + Smartthings = 7, [EnumMember(Value = "tado")] - Tado = 7, + Tado = 8, } ///