diff --git a/package-lock.json b/package-lock.json index e4c841b..50d43f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "2.2.0", "license": "MIT", "devDependencies": { - "@seamapi/blueprint": "^1.13.2", - "@seamapi/fake-seam-connect": "2.0.6", + "@seamapi/blueprint": "^1.13.3", + "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1181.0", + "@seamapi/types": "1.1198.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", @@ -789,9 +789,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.2.tgz", - "integrity": "sha512-FS8zYX01P/eCXcZDUp+dOY3b34tjDmKj6TR1gE8P7IE8Fc7Q9Sr57yUBDv+OKhPIpMifDkr6+0G+A/ej/nIDTw==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.3.tgz", + "integrity": "sha512-OuYxF4b8r5cEjgsfNyfAucfbaDlTwiWbXSxhh4Fjic04KhcYhiPxGc9PplNVkWLyFJTXi1yOmZJgO/koJuOK4w==", "dev": true, "license": "MIT", "dependencies": { @@ -804,9 +804,9 @@ } }, "node_modules/@seamapi/fake-seam-connect": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-2.0.6.tgz", - "integrity": "sha512-lwesSVm0AhQ57QuV52iGTI2qkK++phcY0K/xkalsUWdbwyPK4cj2VfJuW3yes32HuTaXkwPWlT9lrIhLJzZOnQ==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-2.0.8.tgz", + "integrity": "sha512-6/yvddZfoTQKoB90uSLINY9pdYdTLlVAhtiUhf3AyRUwgk3bTwAvfs8dowtyk2q8LjO+3LlHw38YS1BifHck8Q==", "dev": true, "license": "MIT", "bin": { @@ -855,9 +855,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1181.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1181.0.tgz", - "integrity": "sha512-Ba2I7kLW5RxN3CnCacEF+1nvLDwpS61vGSkPeB4IqeL4Ccy4NtTRQMlyCDQNNhT9y3A6WAQrz87u2XhSYu1XUw==", + "version": "1.1198.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1198.0.tgz", + "integrity": "sha512-kCxKIZaoCCUK4+6SY8sSQ9XDRUcBitvaDZ8lyQszTQ/CxMzh7Wen41DYjoHP0wV0a1lxGwjJD3YHS1nXIy96RQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 78c8af4..9482d1c 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ }, "packageManager": "npm@11.19.0", "devDependencies": { - "@seamapi/blueprint": "^1.13.2", - "@seamapi/fake-seam-connect": "2.0.6", + "@seamapi/blueprint": "^1.13.3", + "@seamapi/fake-seam-connect": "2.0.8", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1181.0", + "@seamapi/types": "1.1198.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", diff --git a/src/Seam/Models/AcsSystem.cs b/src/Seam/Models/AcsSystem.cs index 34ad874..0cede3b 100644 --- a/src/Seam/Models/AcsSystem.cs +++ b/src/Seam/Models/AcsSystem.cs @@ -271,6 +271,10 @@ public enum SystemTypeEnum "salto_ks_subscription_limit_almost_reached", typeof(AcsSystemWarningsSaltoKsSubscriptionLimitAlmostReached) )] + [SeamUnionVariant( + "salto_ks_custom_pins_not_supported", + typeof(AcsSystemWarningsSaltoKsCustomPinsNotSupported) + )] [SeamUnionVariant( "time_zone_does_not_match_location", typeof(AcsSystemWarningsTimeZoneDoesNotMatchLocation) @@ -307,6 +311,12 @@ public sealed record AcsSystemWarningsSaltoKsSubscriptionLimitAlmostReached "salto_ks_subscription_limit_almost_reached"; } + public sealed record AcsSystemWarningsSaltoKsCustomPinsNotSupported : AcsSystemWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "salto_ks_custom_pins_not_supported"; + } + public sealed record AcsSystemWarningsTimeZoneDoesNotMatchLocation : AcsSystemWarnings { [JsonPropertyName("warning_code")] diff --git a/src/Seam/Models/ConnectWebview.cs b/src/Seam/Models/ConnectWebview.cs index ffc4353..4b1acdf 100644 --- a/src/Seam/Models/ConnectWebview.cs +++ b/src/Seam/Models/ConnectWebview.cs @@ -50,6 +50,9 @@ public enum AcceptedCapabilitiesEnum [EnumMember(Value = "speaker")] Speaker = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } /// diff --git a/src/Seam/Models/ConnectedAccount.cs b/src/Seam/Models/ConnectedAccount.cs index 232da42..fdf27ff 100644 --- a/src/Seam/Models/ConnectedAccount.cs +++ b/src/Seam/Models/ConnectedAccount.cs @@ -40,6 +40,9 @@ public enum AcceptedCapabilitiesEnum [EnumMember(Value = "speaker")] Speaker = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } [JsonConverter(typeof(SeamUnionConverter))] diff --git a/src/Seam/Models/Device.cs b/src/Seam/Models/Device.cs index ccc7d67..95d216e 100644 --- a/src/Seam/Models/Device.cs +++ b/src/Seam/Models/Device.cs @@ -40,6 +40,9 @@ public enum CapabilitiesSupportedEnum [EnumMember(Value = "phone")] Phone = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } /// @@ -206,6 +209,15 @@ public enum DeviceTypeEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } [JsonConverter(typeof(SeamUnionConverter))] @@ -532,6 +544,7 @@ public sealed record DeviceErrorsUnrecognized : DeviceErrors, ISeamUnrecognizedV "hub_required_for_additional_capabilities", typeof(DeviceWarningsHubRequiredForAdditionalCapabilities) )] + [SeamUnionVariant("service_mode", typeof(DeviceWarningsServiceMode))] [SeamUnionVariant("provider_issue", typeof(DeviceWarningsProviderIssue))] [SeamUnionVariant( "keynest_unsupported_locker", @@ -547,6 +560,10 @@ public sealed record DeviceErrorsUnrecognized : DeviceErrors, ISeamUnrecognizedV )] [SeamUnionVariant("unreliable_online_status", typeof(DeviceWarningsUnreliableOnlineStatus))] [SeamUnionVariant("max_access_codes_reached", typeof(DeviceWarningsMaxAccessCodesReached))] + [SeamUnionVariant( + "subscription_required_for_additional_capabilities", + typeof(DeviceWarningsSubscriptionRequiredForAdditionalCapabilities) + )] [SeamUnionVariant( "cloud_recording_not_enabled", typeof(DeviceWarningsCloudRecordingNotEnabled) @@ -706,6 +723,12 @@ public sealed record DeviceWarningsHubRequiredForAdditionalCapabilities : Device "hub_required_for_additional_capabilities"; } + public sealed record DeviceWarningsServiceMode : DeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "service_mode"; + } + public sealed record DeviceWarningsProviderIssue : DeviceWarnings { [JsonPropertyName("warning_code")] @@ -754,6 +777,14 @@ public sealed record DeviceWarningsMaxAccessCodesReached : DeviceWarnings public int MaxActiveAccessCodeCount { get; init; } = default!; } + public sealed record DeviceWarningsSubscriptionRequiredForAdditionalCapabilities + : DeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = + "subscription_required_for_additional_capabilities"; + } + public sealed record DeviceWarningsCloudRecordingNotEnabled : DeviceWarnings { [JsonPropertyName("warning_code")] @@ -770,6 +801,12 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni public JsonElement RawJson { get; set; } } + /// + /// Air quality index, if the device measures it. + /// + [JsonPropertyName("air_quality_index")] + public float? AirQualityIndex { get; init; } + /// /// Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set. /// @@ -909,6 +946,18 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni public List CapabilitiesSupported { get; init; } = default!; + /// + /// Carbon dioxide concentration in parts per million, if the device measures it. + /// + [JsonPropertyName("co2_ppm")] + public float? Co2Ppm { get; init; } + + /// + /// Carbon monoxide concentration in parts per million, if the device measures it. + /// + [JsonPropertyName("co_ppm")] + public float? CoPpm { get; init; } + /// /// Unique identifier for the account associated with the device. /// @@ -963,29 +1012,77 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni [JsonPropertyName("errors")] public List Errors { get; init; } = default!; + /// + /// Estimated number of occupants detected by the device. + /// + [JsonPropertyName("estimated_occupant_count")] + public float? EstimatedOccupantCount { 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). /// [JsonPropertyName("is_managed")] public bool IsManaged { get; init; } = default!; + /// + /// Indicates whether the device detects occupancy. + /// + [JsonPropertyName("is_occupancy_detected")] + public bool? IsOccupancyDetected { get; init; } + + /// + /// Indicates whether the device detects smoking, if the device measures it. + /// + [JsonPropertyName("is_smoking_detected")] + public bool? IsSmokingDetected { get; init; } + /// /// Location information for the device. /// [JsonPropertyName("location")] public DeviceLocation? Location { get; init; } + /// + /// Mold risk level as reported by the device, if the device measures it. + /// + [JsonPropertyName("mold_risk_level")] + public string? MoldRiskLevel { get; init; } + + /// + /// 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. + /// + [JsonPropertyName("named_sensors")] + public List? NamedSensors { get; init; } + /// /// Optional nickname to describe the device, settable through Seam. /// [JsonPropertyName("nickname")] public string? Nickname { get; init; } + /// + /// Noise level in decibels, if the device measures noise. + /// + [JsonPropertyName("noise_level_decibels")] + public float? NoiseLevelDecibels { get; init; } + + /// + /// Noise level as a Noise Risk Score (NRS), if the device reports one. + /// + [JsonPropertyName("noise_level_nrs")] + public float? NoiseLevelNrs { get; init; } + /// /// Properties of the device. /// [JsonPropertyName("properties")] - public DeviceProperties Properties { get; init; } = default!; + public DeviceProperties? Properties { get; init; } + + /// + /// Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. + /// + [JsonPropertyName("relative_humidity")] + public float? RelativeHumidity { get; init; } /// /// IDs of the spaces the device is in. @@ -993,6 +1090,18 @@ public sealed record DeviceWarningsUnrecognized : DeviceWarnings, ISeamUnrecogni [JsonPropertyName("space_ids")] public List SpaceIds { get; init; } = default!; + /// + /// Temperature in °C, if the device measures temperature. + /// + [JsonPropertyName("temperature_celsius")] + public float? TemperatureCelsius { get; init; } + + /// + /// Temperature in °F, if the device measures temperature. + /// + [JsonPropertyName("temperature_fahrenheit")] + public float? TemperatureFahrenheit { get; init; } + /// /// Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. /// @@ -1082,6 +1191,93 @@ public sealed record DeviceLocation public string? Timezone { get; init; } } + public sealed record DeviceNamedSensors + { + /// + /// Air quality index, if the device measures it. + /// + [JsonPropertyName("air_quality_index")] + public float? AirQualityIndex { get; init; } + + /// + /// Carbon dioxide concentration in parts per million, if the device measures it. + /// + [JsonPropertyName("co2_ppm")] + public float? Co2Ppm { get; init; } + + /// + /// Carbon monoxide concentration in parts per million, if the device measures it. + /// + [JsonPropertyName("co_ppm")] + public float? CoPpm { get; init; } + + /// + /// Display name of the sensor. Defaults to `sensor_name`. + /// + [JsonPropertyName("display_name")] + public string DisplayName { get; init; } = default!; + + /// + /// Estimated number of occupants detected by the device. + /// + [JsonPropertyName("estimated_occupant_count")] + public float? EstimatedOccupantCount { get; init; } + + /// + /// Indicates whether the device detects occupancy. + /// + [JsonPropertyName("is_occupancy_detected")] + public bool? IsOccupancyDetected { get; init; } + + /// + /// Indicates whether the device detects smoking, if the device measures it. + /// + [JsonPropertyName("is_smoking_detected")] + public bool? IsSmokingDetected { get; init; } + + /// + /// Mold risk level as reported by the device, if the device measures it. + /// + [JsonPropertyName("mold_risk_level")] + public string? MoldRiskLevel { get; init; } + + /// + /// Noise level in decibels, if the device measures noise. + /// + [JsonPropertyName("noise_level_decibels")] + public float? NoiseLevelDecibels { get; init; } + + /// + /// Noise level as a Noise Risk Score (NRS), if the device reports one. + /// + [JsonPropertyName("noise_level_nrs")] + public float? NoiseLevelNrs { get; init; } + + /// + /// Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. + /// + [JsonPropertyName("relative_humidity")] + public float? RelativeHumidity { get; init; } + + /// + /// Stable, hardware-defined name of the sensor, such as a port number. + /// + [JsonPropertyName("sensor_name")] + public string SensorName { get; init; } = default!; + + /// + /// Temperature in °C, if the device measures temperature. + /// + [JsonPropertyName("temperature_celsius")] + public float? TemperatureCelsius { get; init; } + + /// + /// Temperature in °F, if the device measures temperature. + /// + [JsonPropertyName("temperature_fahrenheit")] + public float? TemperatureFahrenheit { get; init; } + } + public sealed record DeviceProperties { /// diff --git a/src/Seam/Models/DeviceProvider.cs b/src/Seam/Models/DeviceProvider.cs index 83d06b6..f019d39 100644 --- a/src/Seam/Models/DeviceProvider.cs +++ b/src/Seam/Models/DeviceProvider.cs @@ -212,35 +212,41 @@ public enum DeviceProviderNameEnum [EnumMember(Value = "yale_connect")] YaleConnect = 64, + [EnumMember(Value = "alertify")] + Alertify = 65, + [EnumMember(Value = "ical")] - Ical = 65, + Ical = 66, [EnumMember(Value = "lodgify")] - Lodgify = 66, + Lodgify = 67, [EnumMember(Value = "hostaway")] - Hostaway = 67, + Hostaway = 68, [EnumMember(Value = "guesty")] - Guesty = 68, + Guesty = 69, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 69, + AcuityScheduling = 70, [EnumMember(Value = "omnitec")] - Omnitec = 70, + Omnitec = 71, [EnumMember(Value = "kisi")] - Kisi = 71, + Kisi = 72, [EnumMember(Value = "aqara")] - Aqara = 72, + Aqara = 73, [EnumMember(Value = "eufy")] - Eufy = 73, + Eufy = 74, [EnumMember(Value = "sonos")] - Sonos = 74, + Sonos = 75, + + [EnumMember(Value = "hayward_omnilogic")] + HaywardOmnilogic = 76, } /// diff --git a/src/Seam/Models/Event.cs b/src/Seam/Models/Event.cs index 65e851c..9fbfed4 100644 --- a/src/Seam/Models/Event.cs +++ b/src/Seam/Models/Event.cs @@ -211,6 +211,9 @@ namespace Seam.Models [SeamUnionVariant("lock.locked", typeof(EventLockLocked))] [SeamUnionVariant("lock.unlocked", typeof(EventLockUnlocked))] [SeamUnionVariant("lock.access_denied", typeof(EventLockAccessDenied))] + [SeamUnionVariant("lock.jammed", typeof(EventLockJammed))] + [SeamUnionVariant("lock.door_opened", typeof(EventLockDoorOpened))] + [SeamUnionVariant("lock.door_closed", typeof(EventLockDoorClosed))] [SeamUnionVariant( "thermostat.climate_preset_activated", typeof(EventThermostatClimatePresetActivated) @@ -5646,6 +5649,123 @@ public enum ReasonCodeEnum public EventLockAccessDeniedReason.ReasonCodeEnum ReasonCode { get; init; } = default!; } + /// + /// The [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that its bolt is jammed. + /// + public sealed record EventLockJammed : Event + { + [JsonPropertyName("event_type")] + public override string EventType { get; } = "lock.jammed"; + + /// + /// Custom metadata of the connected account, present when connected_account_id is provided. + /// + [JsonPropertyName("connected_account_custom_metadata")] + public object? ConnectedAccountCustomMetadata { get; init; } + + /// + /// ID of the connected account associated with the event. + /// + [JsonPropertyName("connected_account_id")] + public string ConnectedAccountId { get; init; } = default!; + + /// + /// The customer key associated with the device, if any. + /// + [JsonPropertyName("customer_key")] + public string? CustomerKey { get; init; } + + /// + /// Custom metadata of the device, present when device_id is provided. + /// + [JsonPropertyName("device_custom_metadata")] + public object? DeviceCustomMetadata { get; init; } + + /// + /// ID of the affected device. + /// + [JsonPropertyName("device_id")] + public string DeviceId { get; init; } = default!; + } + + /// + /// The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was opened. + /// + public sealed record EventLockDoorOpened : Event + { + [JsonPropertyName("event_type")] + public override string EventType { get; } = "lock.door_opened"; + + /// + /// Custom metadata of the connected account, present when connected_account_id is provided. + /// + [JsonPropertyName("connected_account_custom_metadata")] + public object? ConnectedAccountCustomMetadata { get; init; } + + /// + /// ID of the connected account associated with the event. + /// + [JsonPropertyName("connected_account_id")] + public string ConnectedAccountId { get; init; } = default!; + + /// + /// The customer key associated with the device, if any. + /// + [JsonPropertyName("customer_key")] + public string? CustomerKey { get; init; } + + /// + /// Custom metadata of the device, present when device_id is provided. + /// + [JsonPropertyName("device_custom_metadata")] + public object? DeviceCustomMetadata { get; init; } + + /// + /// ID of the affected device. + /// + [JsonPropertyName("device_id")] + public string DeviceId { get; init; } = default!; + } + + /// + /// The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was closed. + /// + public sealed record EventLockDoorClosed : Event + { + [JsonPropertyName("event_type")] + public override string EventType { get; } = "lock.door_closed"; + + /// + /// Custom metadata of the connected account, present when connected_account_id is provided. + /// + [JsonPropertyName("connected_account_custom_metadata")] + public object? ConnectedAccountCustomMetadata { get; init; } + + /// + /// ID of the connected account associated with the event. + /// + [JsonPropertyName("connected_account_id")] + public string ConnectedAccountId { get; init; } = default!; + + /// + /// The customer key associated with the device, if any. + /// + [JsonPropertyName("customer_key")] + public string? CustomerKey { get; init; } + + /// + /// Custom metadata of the device, present when device_id is provided. + /// + [JsonPropertyName("device_custom_metadata")] + public object? DeviceCustomMetadata { get; init; } + + /// + /// ID of the affected device. + /// + [JsonPropertyName("device_id")] + public string DeviceId { get; init; } = default!; + } + /// /// A thermostat [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) was activated. /// @@ -6159,19 +6279,6 @@ public sealed record EventDeviceNameChanged : Event /// public sealed record EventCameraActivated : Event { - /// - /// The reason the camera was activated. - /// - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum ActivationReasonEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "motion_detected")] - MotionDetected = 1, - } - /// /// Sub-type of motion detected, if available. /// @@ -6197,12 +6304,6 @@ public enum MotionSubTypeEnum [JsonPropertyName("event_type")] public override string EventType { get; } = "camera.activated"; - /// - /// The reason the camera was activated. - /// - [JsonPropertyName("activation_reason")] - public EventCameraActivated.ActivationReasonEnum ActivationReason { get; init; } = default!; - /// /// Custom metadata of the connected account, present when connected_account_id is provided. /// @@ -6239,6 +6340,12 @@ public enum MotionSubTypeEnum [JsonPropertyName("image_url")] public string? ImageUrl { get; init; } + /// + /// Whether motion detection activated the camera, if known. + /// + [JsonPropertyName("is_motion_detected")] + public bool? IsMotionDetected { get; init; } + /// /// IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. /// diff --git a/src/Seam/Models/Phone.cs b/src/Seam/Models/Phone.cs index 6e4973a..489fb5e 100644 --- a/src/Seam/Models/Phone.cs +++ b/src/Seam/Models/Phone.cs @@ -351,6 +351,7 @@ public sealed record PhoneErrorsUnrecognized : PhoneErrors, ISeamUnrecognizedVar "hub_required_for_additional_capabilities", typeof(PhoneWarningsHubRequiredForAdditionalCapabilities) )] + [SeamUnionVariant("service_mode", typeof(PhoneWarningsServiceMode))] [SeamUnionVariant("provider_issue", typeof(PhoneWarningsProviderIssue))] [SeamUnionVariant( "keynest_unsupported_locker", @@ -366,6 +367,10 @@ public sealed record PhoneErrorsUnrecognized : PhoneErrors, ISeamUnrecognizedVar )] [SeamUnionVariant("unreliable_online_status", typeof(PhoneWarningsUnreliableOnlineStatus))] [SeamUnionVariant("max_access_codes_reached", typeof(PhoneWarningsMaxAccessCodesReached))] + [SeamUnionVariant( + "subscription_required_for_additional_capabilities", + typeof(PhoneWarningsSubscriptionRequiredForAdditionalCapabilities) + )] [SeamUnionVariant( "cloud_recording_not_enabled", typeof(PhoneWarningsCloudRecordingNotEnabled) @@ -525,6 +530,12 @@ public sealed record PhoneWarningsHubRequiredForAdditionalCapabilities : PhoneWa "hub_required_for_additional_capabilities"; } + public sealed record PhoneWarningsServiceMode : PhoneWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "service_mode"; + } + public sealed record PhoneWarningsProviderIssue : PhoneWarnings { [JsonPropertyName("warning_code")] @@ -573,6 +584,14 @@ public sealed record PhoneWarningsMaxAccessCodesReached : PhoneWarnings public int MaxActiveAccessCodeCount { get; init; } = default!; } + public sealed record PhoneWarningsSubscriptionRequiredForAdditionalCapabilities + : PhoneWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = + "subscription_required_for_additional_capabilities"; + } + public sealed record PhoneWarningsCloudRecordingNotEnabled : PhoneWarnings { [JsonPropertyName("warning_code")] diff --git a/src/Seam/Models/UnmanagedDevice.cs b/src/Seam/Models/UnmanagedDevice.cs index 1c911ae..90fdc23 100644 --- a/src/Seam/Models/UnmanagedDevice.cs +++ b/src/Seam/Models/UnmanagedDevice.cs @@ -40,6 +40,9 @@ public enum CapabilitiesSupportedEnum [EnumMember(Value = "phone")] Phone = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } /// @@ -206,6 +209,15 @@ public enum DeviceTypeEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } [JsonConverter(typeof(SeamUnionConverter))] @@ -553,6 +565,7 @@ public sealed record UnmanagedDeviceErrorsUnrecognized "hub_required_for_additional_capabilities", typeof(UnmanagedDeviceWarningsHubRequiredForAdditionalCapabilities) )] + [SeamUnionVariant("service_mode", typeof(UnmanagedDeviceWarningsServiceMode))] [SeamUnionVariant("provider_issue", typeof(UnmanagedDeviceWarningsProviderIssue))] [SeamUnionVariant( "keynest_unsupported_locker", @@ -574,6 +587,10 @@ public sealed record UnmanagedDeviceErrorsUnrecognized "max_access_codes_reached", typeof(UnmanagedDeviceWarningsMaxAccessCodesReached) )] + [SeamUnionVariant( + "subscription_required_for_additional_capabilities", + typeof(UnmanagedDeviceWarningsSubscriptionRequiredForAdditionalCapabilities) + )] [SeamUnionVariant( "cloud_recording_not_enabled", typeof(UnmanagedDeviceWarningsCloudRecordingNotEnabled) @@ -747,6 +764,12 @@ public sealed record UnmanagedDeviceWarningsHubRequiredForAdditionalCapabilities "hub_required_for_additional_capabilities"; } + public sealed record UnmanagedDeviceWarningsServiceMode : UnmanagedDeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = "service_mode"; + } + public sealed record UnmanagedDeviceWarningsProviderIssue : UnmanagedDeviceWarnings { [JsonPropertyName("warning_code")] @@ -798,6 +821,14 @@ public sealed record UnmanagedDeviceWarningsMaxAccessCodesReached : UnmanagedDev public int MaxActiveAccessCodeCount { get; init; } = default!; } + public sealed record UnmanagedDeviceWarningsSubscriptionRequiredForAdditionalCapabilities + : UnmanagedDeviceWarnings + { + [JsonPropertyName("warning_code")] + public override string WarningCode { get; } = + "subscription_required_for_additional_capabilities"; + } + public sealed record UnmanagedDeviceWarningsCloudRecordingNotEnabled : UnmanagedDeviceWarnings { @@ -1014,7 +1045,7 @@ public sealed record UnmanagedDeviceWarningsUnrecognized /// properties of the device. /// [JsonPropertyName("properties")] - public UnmanagedDeviceProperties Properties { get; init; } = default!; + public UnmanagedDeviceProperties? Properties { get; init; } /// /// Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. diff --git a/src/Seam/Routes/ConnectWebviews.cs b/src/Seam/Routes/ConnectWebviews.cs index c8e2015..8afe518 100644 --- a/src/Seam/Routes/ConnectWebviews.cs +++ b/src/Seam/Routes/ConnectWebviews.cs @@ -56,6 +56,9 @@ public enum AcceptedCapabilitiesEnum [EnumMember(Value = "speaker")] Speaker = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } /// @@ -259,44 +262,50 @@ public enum AcceptedProvidersEnum [EnumMember(Value = "yale_connect")] YaleConnect = 64, + [EnumMember(Value = "alertify")] + Alertify = 65, + [EnumMember(Value = "ical")] - Ical = 65, + Ical = 66, [EnumMember(Value = "lodgify")] - Lodgify = 66, + Lodgify = 67, [EnumMember(Value = "hostaway")] - Hostaway = 67, + Hostaway = 68, [EnumMember(Value = "guesty")] - Guesty = 68, + Guesty = 69, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 69, + AcuityScheduling = 70, [EnumMember(Value = "omnitec")] - Omnitec = 70, + Omnitec = 71, [EnumMember(Value = "kisi")] - Kisi = 71, + Kisi = 72, [EnumMember(Value = "aqara")] - Aqara = 72, + Aqara = 73, [EnumMember(Value = "eufy")] - Eufy = 73, + Eufy = 74, [EnumMember(Value = "sonos")] - Sonos = 74, + Sonos = 75, + + [EnumMember(Value = "hayward_omnilogic")] + HaywardOmnilogic = 76, [EnumMember(Value = "hid_cm")] - HidCm = 75, + HidCm = 77, [EnumMember(Value = "google_nest")] - GoogleNest = 76, + GoogleNest = 78, [EnumMember(Value = "slack")] - Slack = 77, + Slack = 79, } /// diff --git a/src/Seam/Routes/ConnectedAccounts.cs b/src/Seam/Routes/ConnectedAccounts.cs index 0feb984..e7847d1 100644 --- a/src/Seam/Routes/ConnectedAccounts.cs +++ b/src/Seam/Routes/ConnectedAccounts.cs @@ -295,6 +295,9 @@ public enum AcceptedCapabilitiesEnum [EnumMember(Value = "speaker")] Speaker = 6, + + [EnumMember(Value = "pool")] + Pool = 7, } /// diff --git a/src/Seam/Routes/Customers.cs b/src/Seam/Routes/Customers.cs index d549dfb..aa12366 100644 --- a/src/Seam/Routes/Customers.cs +++ b/src/Seam/Routes/Customers.cs @@ -101,12 +101,6 @@ public enum NavigationModeEnum [JsonPropertyName("customization_profile_id")] public string? CustomizationProfileId { get; init; } - /// - /// Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. - /// - [JsonPropertyName("deep_link")] - public CreatePortalRequestDeepLink? DeepLink { get; init; } - /// /// Whether to exclude the option to select a locale within the portal UI. /// @@ -1249,37 +1243,6 @@ public enum OperationEnum public string? Value { get; init; } } - public sealed record CreatePortalRequestDeepLink - { - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum ResourceTypeEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "reservation")] - Reservation = 1, - - [EnumMember(Value = "space")] - Space = 2, - - [EnumMember(Value = "device")] - Device = 3, - - [EnumMember(Value = "acs_entrance")] - AcsEntrance = 4, - } - - [JsonPropertyName("resource_id")] - public string? ResourceId { get; init; } - - [JsonPropertyName("resource_key")] - public string? ResourceKey { get; init; } - - [JsonPropertyName("resource_type")] - public CreatePortalRequestDeepLink.ResourceTypeEnum? ResourceType { get; init; } - } - public sealed record CreatePortalRequestFeatures { /// @@ -1324,6 +1287,12 @@ public sealed record CreatePortalRequestFeaturesConfigure [JsonPropertyName("allow_access_automation_rule_customization")] public bool? AllowAccessAutomationRuleCustomization { get; init; } + /// + /// Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. + /// + [JsonPropertyName("allow_bridge_replacement")] + public bool? AllowBridgeReplacement { get; init; } + /// /// Indicates whether the customer can customize the climate automation rules for their properties. /// diff --git a/src/Seam/Routes/Devices.cs b/src/Seam/Routes/Devices.cs index e0db08c..e86dd12 100644 --- a/src/Seam/Routes/Devices.cs +++ b/src/Seam/Routes/Devices.cs @@ -255,6 +255,15 @@ public enum DeviceTypeEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } /// @@ -421,6 +430,15 @@ public enum DeviceTypesEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } /// @@ -585,35 +603,41 @@ public enum ManufacturerEnum [EnumMember(Value = "yale_connect")] YaleConnect = 51, + [EnumMember(Value = "alertify")] + Alertify = 52, + [EnumMember(Value = "ical")] - Ical = 52, + Ical = 53, [EnumMember(Value = "lodgify")] - Lodgify = 53, + Lodgify = 54, [EnumMember(Value = "hostaway")] - Hostaway = 54, + Hostaway = 55, [EnumMember(Value = "guesty")] - Guesty = 55, + Guesty = 56, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 56, + AcuityScheduling = 57, [EnumMember(Value = "omnitec")] - Omnitec = 57, + Omnitec = 58, [EnumMember(Value = "kisi")] - Kisi = 58, + Kisi = 59, [EnumMember(Value = "slack")] - Slack = 59, + Slack = 60, [EnumMember(Value = "yacan")] - Yacan = 60, + Yacan = 61, [EnumMember(Value = "sonos")] - Sonos = 61, + Sonos = 62, + + [EnumMember(Value = "hayward_omnilogic")] + HaywardOmnilogic = 63, } /// diff --git a/src/Seam/Routes/DevicesUnmanaged.cs b/src/Seam/Routes/DevicesUnmanaged.cs index 2bc5c33..3b2b624 100644 --- a/src/Seam/Routes/DevicesUnmanaged.cs +++ b/src/Seam/Routes/DevicesUnmanaged.cs @@ -254,6 +254,15 @@ public enum DeviceTypeEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } /// @@ -420,6 +429,15 @@ public enum DeviceTypesEnum [EnumMember(Value = "sonos_speaker")] SonosSpeaker = 52, + + [EnumMember(Value = "alertify_sensor")] + AlertifySensor = 53, + + [EnumMember(Value = "hayward_pool_system")] + HaywardPoolSystem = 54, + + [EnumMember(Value = "hayward_pool")] + HaywardPool = 55, } /// @@ -584,35 +602,41 @@ public enum ManufacturerEnum [EnumMember(Value = "yale_connect")] YaleConnect = 51, + [EnumMember(Value = "alertify")] + Alertify = 52, + [EnumMember(Value = "ical")] - Ical = 52, + Ical = 53, [EnumMember(Value = "lodgify")] - Lodgify = 53, + Lodgify = 54, [EnumMember(Value = "hostaway")] - Hostaway = 54, + Hostaway = 55, [EnumMember(Value = "guesty")] - Guesty = 55, + Guesty = 56, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 56, + AcuityScheduling = 57, [EnumMember(Value = "omnitec")] - Omnitec = 57, + Omnitec = 58, [EnumMember(Value = "kisi")] - Kisi = 58, + Kisi = 59, [EnumMember(Value = "slack")] - Slack = 59, + Slack = 60, [EnumMember(Value = "yacan")] - Yacan = 60, + Yacan = 61, [EnumMember(Value = "sonos")] - Sonos = 61, + Sonos = 62, + + [EnumMember(Value = "hayward_omnilogic")] + HaywardOmnilogic = 63, } /// diff --git a/src/Seam/Routes/Events.cs b/src/Seam/Routes/Events.cs index dbbe0c6..3faef6f 100644 --- a/src/Seam/Routes/Events.cs +++ b/src/Seam/Routes/Events.cs @@ -398,47 +398,56 @@ public enum EventTypeEnum [EnumMember(Value = "lock.access_denied")] LockAccessDenied = 100, + [EnumMember(Value = "lock.jammed")] + LockJammed = 101, + + [EnumMember(Value = "lock.door_opened")] + LockDoorOpened = 102, + + [EnumMember(Value = "lock.door_closed")] + LockDoorClosed = 103, + [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 101, + ThermostatClimatePresetActivated = 104, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 102, + ThermostatManuallyAdjusted = 105, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 103, + ThermostatTemperatureThresholdExceeded = 106, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 104, + ThermostatTemperatureThresholdNoLongerExceeded = 107, [EnumMember(Value = "thermostat.temperature_reached_set_point")] - ThermostatTemperatureReachedSetPoint = 105, + ThermostatTemperatureReachedSetPoint = 108, [EnumMember(Value = "thermostat.temperature_changed")] - ThermostatTemperatureChanged = 106, + ThermostatTemperatureChanged = 109, [EnumMember(Value = "device.name_changed")] - DeviceNameChanged = 107, + DeviceNameChanged = 110, [EnumMember(Value = "camera.activated")] - CameraActivated = 108, + CameraActivated = 111, [EnumMember(Value = "device.doorbell_rang")] - DeviceDoorbellRang = 109, + DeviceDoorbellRang = 112, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 110, + EnrollmentAutomationDeleted = 113, [EnumMember(Value = "phone.deactivated")] - PhoneDeactivated = 111, + PhoneDeactivated = 114, [EnumMember(Value = "space.device_membership_changed")] - SpaceDeviceMembershipChanged = 112, + SpaceDeviceMembershipChanged = 115, [EnumMember(Value = "space.created")] - SpaceCreated = 113, + SpaceCreated = 116, [EnumMember(Value = "space.deleted")] - SpaceDeleted = 114, + SpaceDeleted = 117, } /// @@ -750,47 +759,56 @@ public enum EventTypesEnum [EnumMember(Value = "lock.access_denied")] LockAccessDenied = 100, + [EnumMember(Value = "lock.jammed")] + LockJammed = 101, + + [EnumMember(Value = "lock.door_opened")] + LockDoorOpened = 102, + + [EnumMember(Value = "lock.door_closed")] + LockDoorClosed = 103, + [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 101, + ThermostatClimatePresetActivated = 104, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 102, + ThermostatManuallyAdjusted = 105, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 103, + ThermostatTemperatureThresholdExceeded = 106, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 104, + ThermostatTemperatureThresholdNoLongerExceeded = 107, [EnumMember(Value = "thermostat.temperature_reached_set_point")] - ThermostatTemperatureReachedSetPoint = 105, + ThermostatTemperatureReachedSetPoint = 108, [EnumMember(Value = "thermostat.temperature_changed")] - ThermostatTemperatureChanged = 106, + ThermostatTemperatureChanged = 109, [EnumMember(Value = "device.name_changed")] - DeviceNameChanged = 107, + DeviceNameChanged = 110, [EnumMember(Value = "camera.activated")] - CameraActivated = 108, + CameraActivated = 111, [EnumMember(Value = "device.doorbell_rang")] - DeviceDoorbellRang = 109, + DeviceDoorbellRang = 112, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 110, + EnrollmentAutomationDeleted = 113, [EnumMember(Value = "phone.deactivated")] - PhoneDeactivated = 111, + PhoneDeactivated = 114, [EnumMember(Value = "space.device_membership_changed")] - SpaceDeviceMembershipChanged = 112, + SpaceDeviceMembershipChanged = 115, [EnumMember(Value = "space.created")] - SpaceCreated = 113, + SpaceCreated = 116, [EnumMember(Value = "space.deleted")] - SpaceDeleted = 114, + SpaceDeleted = 117, } /// diff --git a/src/Seam/Routes/NoiseSensors.cs b/src/Seam/Routes/NoiseSensors.cs index f656a43..34fe903 100644 --- a/src/Seam/Routes/NoiseSensors.cs +++ b/src/Seam/Routes/NoiseSensors.cs @@ -85,6 +85,9 @@ public enum ManufacturerEnum [EnumMember(Value = "noiseaware")] Noiseaware = 2, + + [EnumMember(Value = "alertify")] + Alertify = 3, } /// diff --git a/src/Seam/Routes/Spaces.cs b/src/Seam/Routes/Spaces.cs index 07b3da4..a18fd68 100644 --- a/src/Seam/Routes/Spaces.cs +++ b/src/Seam/Routes/Spaces.cs @@ -652,6 +652,12 @@ public sealed record UpdateRequest [JsonPropertyName("device_ids")] public List? DeviceIds { get; init; } + /// + /// Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. + /// + [JsonPropertyName("geolocation")] + public Optional Geolocation { get; init; } + /// /// Name of the space. /// @@ -698,6 +704,21 @@ public sealed record UpdateRequestCustomerData public Optional TimeZone { get; init; } } + public sealed record UpdateRequestGeolocation + { + /// + /// Latitude of the space, in decimal degrees. + /// + [JsonPropertyName("latitude")] + public float? Latitude { get; init; } + + /// + /// Longitude of the space, in decimal degrees. + /// + [JsonPropertyName("longitude")] + public float? Longitude { get; init; } + } + public sealed record UpdateResponse { ///