diff --git a/package-lock.json b/package-lock.json index e39d063..9ae7a57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "2.3.1", "license": "MIT", "devDependencies": { - "@seamapi/blueprint": "^1.13.3", + "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.8", - "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1198.0", + "@seamapi/smith": "^1.2.1", + "@seamapi/types": "1.1203.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", @@ -796,14 +796,14 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.13.3", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.3.tgz", - "integrity": "sha512-OuYxF4b8r5cEjgsfNyfAucfbaDlTwiWbXSxhh4Fjic04KhcYhiPxGc9PplNVkWLyFJTXi1yOmZJgO/koJuOK4w==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.4.tgz", + "integrity": "sha512-+m3oGHQbwWgXkmm6VGSES+1TBtD3vAQMtKe4jbt00/Wpr3oPGSeSq04WK0iOfvROaUVzvl0LOoouLc8vJYWx2w==", "dev": true, "license": "MIT", "dependencies": { "change-case": "^5.4.4", - "zod": "^4.0.0" + "zod": "^4.6.7" }, "engines": { "node": ">=22.12.0", @@ -829,9 +829,9 @@ } }, "node_modules/@seamapi/smith": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.2.0.tgz", - "integrity": "sha512-CnvwHxkIhBKh+kO5+gGUs2E1PzwpiXXQTkD2oa0zTXo1iLGjj8iUaiUkZXOdwGbWdVph/YtQPuJpZn3pT1xEHQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.2.1.tgz", + "integrity": "sha512-BM3M79WOef3lEDPFRSIAILdgftfWVwSsW6ps8ihpPvK+Ogu9cFs75CMkExZxnrwjI2J8tGGmYuFTQd5FbTlTgw==", "dev": true, "license": "MIT", "dependencies": { @@ -840,7 +840,7 @@ "eslint-plugin-import": "^2.32.0", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^4.1.4", - "glob": "^13.0.6", + "glob": "^14.0.2", "neostandard": "^0.13.0" }, "engines": { @@ -862,9 +862,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1198.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1198.0.tgz", - "integrity": "sha512-kCxKIZaoCCUK4+6SY8sSQ9XDRUcBitvaDZ8lyQszTQ/CxMzh7Wen41DYjoHP0wV0a1lxGwjJD3YHS1nXIy96RQ==", + "version": "1.1203.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1203.0.tgz", + "integrity": "sha512-0WjTafjojA1jhd6eXNol1cyej33aESYiF8SK4mMRi3WF4pDJDUbGeGazEjgAMkg/cLbSdhty6lo2vDqzadrIEw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 8035d9e..de60caa 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ }, "packageManager": "npm@11.19.0", "devDependencies": { - "@seamapi/blueprint": "^1.13.3", + "@seamapi/blueprint": "^1.13.4", "@seamapi/fake-seam-connect": "2.0.8", - "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1198.0", + "@seamapi/smith": "^1.2.1", + "@seamapi/types": "1.1203.0", "change-case": "^5.4.4", "del": "^8.0.0", "execa": "^10.0.1", diff --git a/src/Seam/Models/AccessGrant.cs b/src/Seam/Models/AccessGrant.cs index 99253b8..0255b82 100644 --- a/src/Seam/Models/AccessGrant.cs +++ b/src/Seam/Models/AccessGrant.cs @@ -492,10 +492,6 @@ public sealed record AccessGrantWarningsUnrecognized [JsonPropertyName("instant_key_url")] public string? InstantKeyUrl { get; init; } - [Obsolete("Use `space_ids`.")] - [JsonPropertyName("location_ids")] - public List LocationIds { get; init; } = default!; - /// /// Name of the Access Grant. If not provided, the display name will be computed. /// diff --git a/src/Seam/Models/AcsAccessGroup.cs b/src/Seam/Models/AcsAccessGroup.cs index 14da280..60220c5 100644 --- a/src/Seam/Models/AcsAccessGroup.cs +++ b/src/Seam/Models/AcsAccessGroup.cs @@ -18,43 +18,6 @@ namespace Seam.Models /// public sealed record AcsAccessGroup { - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum AccessGroupTypeEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "pti_unit")] - PtiUnit = 1, - - [EnumMember(Value = "pti_access_level")] - PtiAccessLevel = 2, - - [EnumMember(Value = "salto_ks_access_group")] - SaltoKsAccessGroup = 3, - - [EnumMember(Value = "brivo_group")] - BrivoGroup = 4, - - [EnumMember(Value = "salto_space_group")] - SaltoSpaceGroup = 5, - - [EnumMember(Value = "dormakaba_community_access_group")] - DormakabaCommunityAccessGroup = 6, - - [EnumMember(Value = "dormakaba_ambiance_access_group")] - DormakabaAmbianceAccessGroup = 7, - - [EnumMember(Value = "avigilon_alta_group")] - AvigilonAltaGroup = 8, - - [EnumMember(Value = "kisi_access_group")] - KisiAccessGroup = 9, - - [EnumMember(Value = "akiles_member_group")] - AkilesMemberGroup = 10, - } - [JsonConverter(typeof(SeamUnionConverter))] [SeamUnion("error_code")] [SeamUnionVariant( @@ -420,14 +383,6 @@ public sealed record AcsAccessGroupPendingMutationsUnrecognized public JsonElement RawJson { get; set; } } - [Obsolete("Use `external_type`.")] - [JsonPropertyName("access_group_type")] - public AcsAccessGroup.AccessGroupTypeEnum AccessGroupType { get; init; } = default!; - - [Obsolete("Use `external_type_display_name`.")] - [JsonPropertyName("access_group_type_display_name")] - public string AccessGroupTypeDisplayName { get; init; } = default!; - /// /// `starts_at` and `ends_at` timestamps for the access group's access. /// diff --git a/src/Seam/Models/AcsSystem.cs b/src/Seam/Models/AcsSystem.cs index 0cede3b..59db000 100644 --- a/src/Seam/Models/AcsSystem.cs +++ b/src/Seam/Models/AcsSystem.cs @@ -207,64 +207,6 @@ public enum ExternalTypeEnum AkilesOrganization = 17, } - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum SystemTypeEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "pti_site")] - PtiSite = 1, - - [EnumMember(Value = "avigilon_alta_org")] - AvigilonAltaOrg = 2, - - [EnumMember(Value = "salto_ks_site")] - SaltoKsSite = 3, - - [EnumMember(Value = "salto_space_system")] - SaltoSpaceSystem = 4, - - [EnumMember(Value = "brivo_account")] - BrivoAccount = 5, - - [EnumMember(Value = "hid_credential_manager_organization")] - HidCredentialManagerOrganization = 6, - - [EnumMember(Value = "visionline_system")] - VisionlineSystem = 7, - - [EnumMember(Value = "assa_abloy_credential_service")] - AssaAbloyCredentialService = 8, - - [EnumMember(Value = "latch_building")] - LatchBuilding = 9, - - [EnumMember(Value = "dormakaba_community_site")] - DormakabaCommunitySite = 10, - - [EnumMember(Value = "dormakaba_ambiance_site")] - DormakabaAmbianceSite = 11, - - [EnumMember(Value = "legic_connect_credential_service")] - LegicConnectCredentialService = 12, - - [EnumMember(Value = "assa_abloy_vostio")] - AssaAbloyVostio = 13, - - [EnumMember(Value = "assa_abloy_vostio_credential_service")] - AssaAbloyVostioCredentialService = 14, - - [EnumMember(Value = "hotek_site")] - HotekSite = 15, - - [EnumMember(Value = "kisi_organization")] - KisiOrganization = 16, - - [EnumMember(Value = "akiles_organization")] - AkilesOrganization = 17, - } - [JsonConverter(typeof(SeamUnionConverter))] [SeamUnion("warning_code")] [SeamUnionVariant( @@ -321,10 +263,6 @@ public sealed record AcsSystemWarningsTimeZoneDoesNotMatchLocation : AcsSystemWa { [JsonPropertyName("warning_code")] public override string WarningCode { get; } = "time_zone_does_not_match_location"; - - [Obsolete("this field is deprecated.")] - [JsonPropertyName("misconfigured_acs_entrance_ids")] - public List? MisconfiguredAcsEntranceIds { get; init; } } public sealed record AcsSystemWarningsSetupRequired : AcsSystemWarnings @@ -375,13 +313,6 @@ public sealed record AcsSystemWarningsUnrecognized [JsonPropertyName("connected_account_id")] public string ConnectedAccountId { get; init; } = default!; - /// - /// IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). - /// - [Obsolete("Use `connected_account_id`.")] - [JsonPropertyName("connected_account_ids")] - public List ConnectedAccountIds { get; init; } = default!; - /// /// Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. /// @@ -442,14 +373,6 @@ public sealed record AcsSystemWarningsUnrecognized [JsonPropertyName("name")] public string Name { get; init; } = default!; - [Obsolete("Use `external_type`.")] - [JsonPropertyName("system_type")] - public AcsSystem.SystemTypeEnum? SystemType { get; init; } - - [Obsolete("Use `external_type_display_name`.")] - [JsonPropertyName("system_type_display_name")] - public string? SystemTypeDisplayName { get; init; } - /// /// Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). /// diff --git a/src/Seam/Models/AcsUser.cs b/src/Seam/Models/AcsUser.cs index e78fab9..3a2f15f 100644 --- a/src/Seam/Models/AcsUser.cs +++ b/src/Seam/Models/AcsUser.cs @@ -590,10 +590,6 @@ public sealed record AcsUserWarningsUnrecognized : AcsUserWarnings, ISeamUnrecog [JsonPropertyName("display_name")] public string DisplayName { get; init; } = default!; - [Obsolete("use email_address.")] - [JsonPropertyName("email")] - public string? Email { get; init; } - /// /// Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). /// diff --git a/src/Seam/Models/ClientSession.cs b/src/Seam/Models/ClientSession.cs index c767490..aad330d 100644 --- a/src/Seam/Models/ClientSession.cs +++ b/src/Seam/Models/ClientSession.cs @@ -82,13 +82,6 @@ public sealed record ClientSession [JsonPropertyName("user_identity_id")] public string? UserIdentityId { get; init; } - /// - /// IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session. - /// - [Obsolete("Use `user_identity_id` instead.")] - [JsonPropertyName("user_identity_ids")] - public List UserIdentityIds { get; init; } = default!; - /// /// ID of the workspace associated with the client session. /// diff --git a/src/Seam/Models/ConnectedAccount.cs b/src/Seam/Models/ConnectedAccount.cs index fdf27ff..d2f502c 100644 --- a/src/Seam/Models/ConnectedAccount.cs +++ b/src/Seam/Models/ConnectedAccount.cs @@ -426,50 +426,10 @@ public sealed record ConnectedAccountWarningsUnrecognized [JsonPropertyName("time_zone")] public string? TimeZone { get; init; } - /// - /// User identifier associated with the connected account. - /// - [Obsolete("Use `display_name` instead.")] - [JsonPropertyName("user_identifier")] - public ConnectedAccountUserIdentifier? UserIdentifier { get; init; } - /// /// Warnings associated with the connected account. /// [JsonPropertyName("warnings")] public List Warnings { get; init; } = default!; } - - public sealed record ConnectedAccountUserIdentifier - { - /// - /// API URL for the user identifier associated with the connected account. - /// - [JsonPropertyName("api_url")] - public string? ApiUrl { get; init; } - - /// - /// Email address of the user identifier associated with the connected account. - /// - [JsonPropertyName("email")] - public string? Email { get; init; } - - /// - /// Indicates whether the user identifier associated with the connected account is exclusive. - /// - [JsonPropertyName("exclusive")] - public bool? Exclusive { get; init; } - - /// - /// Phone number of the user identifier associated with the connected account. - /// - [JsonPropertyName("phone")] - public string? Phone { get; init; } - - /// - /// Username of the user identifier associated with the connected account. - /// - [JsonPropertyName("username")] - public string? Username { get; init; } - } } diff --git a/src/Seam/Models/Device.cs b/src/Seam/Models/Device.cs index 95d216e..0ef9661 100644 --- a/src/Seam/Models/Device.cs +++ b/src/Seam/Models/Device.cs @@ -156,68 +156,74 @@ public enum DeviceTypeEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } [JsonConverter(typeof(SeamUnionConverter))] @@ -1182,13 +1188,6 @@ public sealed record DeviceLocation /// [JsonPropertyName("time_zone")] public string? TimeZone { get; init; } - - /// - /// Time zone of the device location. - /// - [Obsolete("Use `time_zone` instead.")] - [JsonPropertyName("timezone")] - public string? Timezone { get; init; } } public sealed record DeviceNamedSensors @@ -1352,22 +1351,6 @@ public enum AvailableHvacModeSettingsEnum Eco = 5, } - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum FanModeSettingEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "auto")] - Auto = 1, - - [EnumMember(Value = "on")] - On = 2, - - [EnumMember(Value = "circulate")] - Circulate = 3, - } - /// /// Accessory keypad properties and state. /// @@ -1441,40 +1424,18 @@ public enum FanModeSettingEnum [JsonPropertyName("noise_level_decibels")] public float? NoiseLevelDecibels { get; init; } - /// - /// Indicates whether it is currently possible to use offline access codes for the device. - /// - [Obsolete("use device.can_program_offline_access_codes")] - [JsonPropertyName("offline_access_codes_enabled")] - public bool? OfflineAccessCodesEnabled { get; init; } - /// /// Indicates whether the device is online. /// [JsonPropertyName("online")] public bool Online { get; init; } = default!; - /// - /// Indicates whether it is currently possible to use online access codes for the device. - /// - [Obsolete("use device.can_program_online_access_codes")] - [JsonPropertyName("online_access_codes_enabled")] - public bool? OnlineAccessCodesEnabled { get; init; } - /// /// Serial number of the device. /// [JsonPropertyName("serial_number")] public string? SerialNumber { get; init; } - [Obsolete("use device.properties.model.can_connect_accessory_keypad")] - [JsonPropertyName("supports_accessory_keypad")] - public bool? SupportsAccessoryKeypad { get; init; } - - [Obsolete("use offline_access_codes_enabled")] - [JsonPropertyName("supports_offline_access_codes")] - public bool? SupportsOfflineAccessCodes { get; init; } - /// /// ASSA ABLOY Credential Service metadata for the phone. /// @@ -1667,13 +1628,6 @@ public enum FanModeSettingEnum [JsonPropertyName("salto_ks_metadata")] public DevicePropertiesSaltoKsMetadata? SaltoKsMetadata { get; init; } - /// - /// Metada for a Salto device. - /// - [Obsolete("Use `salto_ks_metadata` instead.")] - [JsonPropertyName("salto_metadata")] - public DevicePropertiesSaltoMetadata? SaltoMetadata { get; init; } - /// /// Metadata for a Schlage device. /// @@ -1692,6 +1646,12 @@ public enum FanModeSettingEnum [JsonPropertyName("sensi_metadata")] public DevicePropertiesSensiMetadata? SensiMetadata { get; init; } + /// + /// Metadata for a Sensibo device. + /// + [JsonPropertyName("sensibo_metadata")] + public DevicePropertiesSensiboMetadata? SensiboMetadata { get; init; } + /// /// Metadata for a SmartThings device. /// @@ -1722,6 +1682,12 @@ public enum FanModeSettingEnum [JsonPropertyName("ttlock_metadata")] public DevicePropertiesTtlockMetadata? TtlockMetadata { get; init; } + /// + /// Metadata for a Tuya device. + /// + [JsonPropertyName("tuya_metadata")] + public DevicePropertiesTuyaMetadata? TuyaMetadata { get; init; } + /// /// Metadata for a 2N device. /// @@ -1803,6 +1769,7 @@ public enum FanModeSettingEnum /// /// Keypad battery status. /// + [Obsolete("Use `accessory_keypad.battery` instead.")] [JsonPropertyName("keypad_battery")] public DevicePropertiesKeypadBattery? KeypadBattery { get; init; } @@ -1842,13 +1809,6 @@ public enum FanModeSettingEnum [JsonPropertyName("supports_backup_access_code_pool")] public bool? SupportsBackupAccessCodePool { get; init; } - /// - /// Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - /// - [Obsolete("Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.")] - [JsonPropertyName("active_thermostat_schedule")] - public DevicePropertiesActiveThermostatSchedule? ActiveThermostatSchedule { get; init; } - /// /// ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). /// @@ -1885,20 +1845,12 @@ public enum FanModeSettingEnum [JsonPropertyName("current_climate_setting")] public DevicePropertiesCurrentClimateSetting? CurrentClimateSetting { get; init; } - [Obsolete("use fallback_climate_preset_key to specify a fallback climate preset instead.")] - [JsonPropertyName("default_climate_setting")] - public DevicePropertiesDefaultClimateSetting? DefaultClimateSetting { get; init; } - /// /// Key of the [fallback climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat. /// [JsonPropertyName("fallback_climate_preset_key")] public string? FallbackClimatePresetKey { get; init; } - [Obsolete("Use `current_climate_setting.fan_mode_setting` instead.")] - [JsonPropertyName("fan_mode_setting")] - public DeviceProperties.FanModeSettingEnum? FanModeSetting { get; init; } - /// /// Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. /// @@ -2107,10 +2059,6 @@ public enum StatusEnum public sealed record DevicePropertiesModel { - [Obsolete("use device.properties.model.can_connect_accessory_keypad")] - [JsonPropertyName("accessory_keypad_supported")] - public bool? AccessoryKeypadSupported { get; init; } - /// /// Indicates whether the device can connect a accessory keypad. /// @@ -2134,14 +2082,6 @@ public sealed record DevicePropertiesModel /// [JsonPropertyName("manufacturer_display_name")] public string ManufacturerDisplayName { get; init; } = default!; - - [Obsolete("use device.can_program_offline_access_codes.")] - [JsonPropertyName("offline_access_codes_supported")] - public bool? OfflineAccessCodesSupported { get; init; } - - [Obsolete("use device.can_program_online_access_codes.")] - [JsonPropertyName("online_access_codes_supported")] - public bool? OnlineAccessCodesSupported { get; init; } } public sealed record DevicePropertiesAssaAbloyCredentialServiceMetadata @@ -2506,13 +2446,6 @@ public sealed record DevicePropertiesDormakabaOracodeMetadata [JsonPropertyName("predefined_time_slots")] public List? PredefinedTimeSlots { get; init; } - /// - /// Site ID for a dormakaba Oracode device. - /// - [Obsolete("Previously marked as \"@DEPRECATED.\"")] - [JsonPropertyName("site_id")] - public float? SiteId { get; init; } - /// /// Site name for a dormakaba Oracode device. /// @@ -3352,57 +3285,6 @@ public sealed record DevicePropertiesSaltoKsMetadata public string? SiteName { get; init; } } - public sealed record DevicePropertiesSaltoMetadata - { - /// - /// Battery level for a Salto device. - /// - [JsonPropertyName("battery_level")] - public string? BatteryLevel { get; init; } - - /// - /// Customer reference for a Salto device. - /// - [JsonPropertyName("customer_reference")] - public string? CustomerReference { get; init; } - - /// - /// Lock ID for a Salto device. - /// - [JsonPropertyName("lock_id")] - public string? LockId { get; init; } - - /// - /// Lock type for a Salto device. - /// - [JsonPropertyName("lock_type")] - public string? LockType { get; init; } - - /// - /// Locked state for a Salto device. - /// - [JsonPropertyName("locked_state")] - public string? LockedState { get; init; } - - /// - /// Model for a Salto device. - /// - [JsonPropertyName("model")] - public string? Model { get; init; } - - /// - /// Site ID for the Salto KS site to which the device belongs. - /// - [JsonPropertyName("site_id")] - public string? SiteId { get; init; } - - /// - /// Site name for the Salto KS site to which the device belongs. - /// - [JsonPropertyName("site_name")] - public string? SiteName { get; init; } - } - public sealed record DevicePropertiesSchlageMetadata { /// @@ -3475,12 +3357,6 @@ public sealed record DevicePropertiesSensiMetadata [JsonPropertyName("device_name")] public string? DeviceName { get; init; } - /// - /// Deprecated. Seam no longer sets this field. - /// - [JsonPropertyName("dual_setpoints_not_supported")] - public bool? DualSetpointsNotSupported { get; init; } - /// /// Product type for a Sensi device. /// @@ -3488,6 +3364,51 @@ public sealed record DevicePropertiesSensiMetadata public string? ProductType { get; init; } } + public sealed record DevicePropertiesSensiboMetadata + { + /// + /// Firmware version of the Sensibo device. + /// + [JsonPropertyName("firmware_version")] + public string? FirmwareVersion { get; init; } + + /// + /// MAC address of the Sensibo device. + /// + [JsonPropertyName("mac_address")] + public string? MacAddress { get; init; } + + /// + /// ID of the Sensibo device, which Sensibo calls a pod. + /// + [JsonPropertyName("pod_id")] + public string? PodId { get; init; } + + /// + /// Product model of the Sensibo device, such as `skyv2` or `air`. + /// + [JsonPropertyName("product_model")] + public string? ProductModel { get; init; } + + /// + /// Name of the room that the Sensibo device is in. + /// + [JsonPropertyName("room_name")] + public string? RoomName { get; init; } + + /// + /// Serial number of the Sensibo device. + /// + [JsonPropertyName("serial_number")] + public string? SerialNumber { get; init; } + + /// + /// Temperature unit that the Sensibo device displays: `C` or `F`. + /// + [JsonPropertyName("temperature_unit")] + public string? TemperatureUnit { get; init; } + } + public sealed record DevicePropertiesSmartthingsMetadata { /// @@ -3743,6 +3664,51 @@ public sealed record DevicePropertiesTtlockMetadataWirelessKeypads public string? WirelessKeypadName { get; init; } } + public sealed record DevicePropertiesTuyaMetadata + { + /// + /// Tuya product category code for the device (e.g. ms). + /// + [JsonPropertyName("category")] + public string? Category { get; init; } + + /// + /// Device ID for a Tuya device. + /// + [JsonPropertyName("device_id")] + public string? DeviceId { get; init; } + + /// + /// Device name for a Tuya device. + /// + [JsonPropertyName("device_name")] + public string? DeviceName { get; init; } + + /// + /// Model reported for a Tuya device. + /// + [JsonPropertyName("model")] + public string? Model { get; init; } + + /// + /// Tuya product ID for the device. + /// + [JsonPropertyName("product_id")] + public string? ProductId { get; init; } + + /// + /// Tuya product name for the device. + /// + [JsonPropertyName("product_name")] + public string? ProductName { get; init; } + + /// + /// Time zone reported for a Tuya device (e.g. +08:00). + /// + [JsonPropertyName("time_zone")] + public string? TimeZone { get; init; } + } + public sealed record DevicePropertiesTwoNMetadata { /// @@ -4171,97 +4137,6 @@ public sealed record DevicePropertiesOnlineTimeFrameOptionsTimePairs public string StartTime { get; init; } = default!; } - public sealed record DevicePropertiesActiveThermostatSchedule - { - /// - /// Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - /// - [JsonPropertyName("climate_preset_key")] - public string ClimatePresetKey { get; init; } = default!; - - /// - /// Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. - /// - [JsonPropertyName("created_at")] - public string CreatedAt { get; init; } = default!; - - /// - /// ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. - /// - [JsonPropertyName("device_id")] - public string DeviceId { get; init; } = default!; - - /// - /// Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - /// - [JsonPropertyName("ends_at")] - public string EndsAt { get; init; } = default!; - - /// - /// Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - /// - [JsonPropertyName("errors")] - public List Errors { get; init; } = - default!; - - /// - /// Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts. - /// - [JsonPropertyName("is_override_allowed")] - public bool? IsOverrideAllowed { get; init; } - - /// - /// Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - /// - [JsonPropertyName("max_override_period_minutes")] - public int? MaxOverridePeriodMinutes { get; init; } - - /// - /// User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - /// - [JsonPropertyName("name")] - public string? Name { get; init; } - - /// - /// Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. - /// - [JsonPropertyName("starts_at")] - public string StartsAt { get; init; } = default!; - - /// - /// ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). - /// - [JsonPropertyName("thermostat_schedule_id")] - public string ThermostatScheduleId { get; init; } = default!; - - /// - /// ID of the workspace that contains the thermostat schedule. - /// - [JsonPropertyName("workspace_id")] - public string WorkspaceId { get; init; } = default!; - } - - public sealed record DevicePropertiesActiveThermostatScheduleErrors - { - /// - /// 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 DevicePropertiesAvailableClimatePresets { /// @@ -4414,13 +4289,6 @@ public enum HvacModeSettingEnum [JsonPropertyName("hvac_mode_setting")] public DevicePropertiesAvailableClimatePresets.HvacModeSettingEnum? HvacModeSetting { get; init; } - /// - /// Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - /// - [Obsolete("Use 'thermostat_schedule.is_override_allowed'")] - [JsonPropertyName("manual_override_allowed")] - public bool ManualOverrideAllowed { get; init; } = default!; - /// /// User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). /// @@ -4617,13 +4485,6 @@ public enum HvacModeSettingEnum [JsonPropertyName("hvac_mode_setting")] public DevicePropertiesCurrentClimateSetting.HvacModeSettingEnum? HvacModeSetting { get; init; } - /// - /// Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - /// - [Obsolete("Use 'thermostat_schedule.is_override_allowed'")] - [JsonPropertyName("manual_override_allowed")] - public bool? ManualOverrideAllowed { get; init; } - /// /// User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). /// @@ -4668,209 +4529,6 @@ public enum OwnerEnum public DevicePropertiesCurrentClimateSettingEcobeeMetadata.OwnerEnum? Owner { get; init; } } - public sealed record DevicePropertiesDefaultClimateSetting - { - /// - /// The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. - /// - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum ClimatePresetModeEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "home")] - Home = 1, - - [EnumMember(Value = "away")] - Away = 2, - - [EnumMember(Value = "wake")] - Wake = 3, - - [EnumMember(Value = "sleep")] - Sleep = 4, - - [EnumMember(Value = "occupied")] - Occupied = 5, - - [EnumMember(Value = "unoccupied")] - Unoccupied = 6, - } - - /// - /// Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`. - /// - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum FanModeSettingEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "auto")] - Auto = 1, - - [EnumMember(Value = "on")] - On = 2, - - [EnumMember(Value = "circulate")] - Circulate = 3, - } - - /// - /// Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. - /// - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum HvacModeSettingEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "off")] - Off = 1, - - [EnumMember(Value = "heat")] - Heat = 2, - - [EnumMember(Value = "cool")] - Cool = 3, - - [EnumMember(Value = "heat_cool")] - HeatCool = 4, - - [EnumMember(Value = "eco")] - Eco = 5, - } - - /// - /// Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. - /// - [JsonPropertyName("can_delete")] - public bool? CanDelete { get; init; } - - /// - /// Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. - /// - [JsonPropertyName("can_edit")] - public bool? CanEdit { get; init; } - - /// - /// Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program. - /// - [JsonPropertyName("can_use_with_thermostat_daily_programs")] - public bool? CanUseWithThermostatDailyPrograms { get; init; } - - /// - /// Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - /// - [JsonPropertyName("climate_preset_key")] - public string? ClimatePresetKey { get; init; } - - /// - /// The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. - /// - [JsonPropertyName("climate_preset_mode")] - public DevicePropertiesDefaultClimateSetting.ClimatePresetModeEnum? ClimatePresetMode { get; init; } - - /// - /// Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - /// - [JsonPropertyName("cooling_set_point_celsius")] - public float? CoolingSetPointCelsius { get; init; } - - /// - /// Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - /// - [JsonPropertyName("cooling_set_point_fahrenheit")] - public float? CoolingSetPointFahrenheit { get; init; } - - /// - /// Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - /// - [JsonPropertyName("display_name")] - public string? DisplayName { get; init; } - - /// - /// Metadata specific to the Ecobee climate, if applicable. - /// - [JsonPropertyName("ecobee_metadata")] - public DevicePropertiesDefaultClimateSettingEcobeeMetadata? EcobeeMetadata { get; init; } - - /// - /// Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`. - /// - [JsonPropertyName("fan_mode_setting")] - public DevicePropertiesDefaultClimateSetting.FanModeSettingEnum? FanModeSetting { get; init; } - - /// - /// Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - /// - [JsonPropertyName("heating_set_point_celsius")] - public float? HeatingSetPointCelsius { get; init; } - - /// - /// Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). - /// - [JsonPropertyName("heating_set_point_fahrenheit")] - public float? HeatingSetPointFahrenheit { get; init; } - - /// - /// Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. - /// - [JsonPropertyName("hvac_mode_setting")] - public DevicePropertiesDefaultClimateSetting.HvacModeSettingEnum? HvacModeSetting { get; init; } - - /// - /// Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - /// - [Obsolete("Use 'thermostat_schedule.is_override_allowed'")] - [JsonPropertyName("manual_override_allowed")] - public bool? ManualOverrideAllowed { get; init; } - - /// - /// User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). - /// - [JsonPropertyName("name")] - public string? Name { get; init; } - } - - public sealed record DevicePropertiesDefaultClimateSettingEcobeeMetadata - { - /// - /// Indicates whether the climate preset is owned by the user or the system. - /// - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum OwnerEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "user")] - User = 1, - - [EnumMember(Value = "system")] - System = 2, - } - - /// - /// Reference to the Ecobee climate, if applicable. - /// - [JsonPropertyName("climate_ref")] - public string? ClimateRef { get; init; } - - /// - /// Indicates if the climate preset is optimized by Ecobee. - /// - [JsonPropertyName("is_optimized")] - public bool? IsOptimized { get; init; } - - /// - /// Indicates whether the climate preset is owned by the user or the system. - /// - [JsonPropertyName("owner")] - public DevicePropertiesDefaultClimateSettingEcobeeMetadata.OwnerEnum? Owner { get; init; } - } - public sealed record DevicePropertiesTemperatureThreshold { /// diff --git a/src/Seam/Models/DeviceProvider.cs b/src/Seam/Models/DeviceProvider.cs index f019d39..5f7d6d1 100644 --- a/src/Seam/Models/DeviceProvider.cs +++ b/src/Seam/Models/DeviceProvider.cs @@ -167,86 +167,92 @@ public enum DeviceProviderNameEnum [EnumMember(Value = "sensi")] Sensi = 49, + [EnumMember(Value = "sensibo")] + Sensibo = 50, + [EnumMember(Value = "keynest")] - Keynest = 50, + Keynest = 51, [EnumMember(Value = "korelock")] - Korelock = 51, + Korelock = 52, [EnumMember(Value = "keyincode")] - Keyincode = 52, + Keyincode = 53, [EnumMember(Value = "dormakaba_ambiance")] - DormakabaAmbiance = 53, + DormakabaAmbiance = 54, [EnumMember(Value = "ultraloq")] - Ultraloq = 54, + Ultraloq = 55, [EnumMember(Value = "yacan")] - Yacan = 55, + Yacan = 56, [EnumMember(Value = "dusaw")] - Dusaw = 56, + Dusaw = 57, [EnumMember(Value = "sifely")] - Sifely = 57, + Sifely = 58, [EnumMember(Value = "thirty_three_lock")] - ThirtyThreeLock = 58, + ThirtyThreeLock = 59, [EnumMember(Value = "ring")] - Ring = 59, + Ring = 60, [EnumMember(Value = "tapo")] - Tapo = 60, + Tapo = 61, [EnumMember(Value = "arlo")] - Arlo = 61, + Arlo = 62, [EnumMember(Value = "reolink")] - Reolink = 62, + Reolink = 63, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 63, + UnifiProtect = 64, [EnumMember(Value = "yale_connect")] - YaleConnect = 64, + YaleConnect = 65, [EnumMember(Value = "alertify")] - Alertify = 65, + Alertify = 66, [EnumMember(Value = "ical")] - Ical = 66, + Ical = 67, [EnumMember(Value = "lodgify")] - Lodgify = 67, + Lodgify = 68, [EnumMember(Value = "hostaway")] - Hostaway = 68, + Hostaway = 69, [EnumMember(Value = "guesty")] - Guesty = 69, + Guesty = 70, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 70, + AcuityScheduling = 71, [EnumMember(Value = "omnitec")] - Omnitec = 71, + Omnitec = 72, [EnumMember(Value = "kisi")] - Kisi = 72, + Kisi = 73, [EnumMember(Value = "aqara")] - Aqara = 73, + Aqara = 74, [EnumMember(Value = "eufy")] - Eufy = 74, + Eufy = 75, [EnumMember(Value = "sonos")] - Sonos = 75, + Sonos = 76, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 76, + HaywardOmnilogic = 77, + + [EnumMember(Value = "tuya")] + Tuya = 78, } /// diff --git a/src/Seam/Models/Event.cs b/src/Seam/Models/Event.cs index 9fbfed4..8971845 100644 --- a/src/Seam/Models/Event.cs +++ b/src/Seam/Models/Event.cs @@ -106,10 +106,6 @@ namespace Seam.Models [SeamUnionVariant("client_session.deleted", typeof(EventClientSessionDeleted))] [SeamUnionVariant("connected_account.connected", typeof(EventConnectedAccountConnected))] [SeamUnionVariant("connected_account.created", typeof(EventConnectedAccountCreated))] - [SeamUnionVariant( - "connected_account.successful_login", - typeof(EventConnectedAccountSuccessfulLogin) - )] [SeamUnionVariant("connected_account.disconnected", typeof(EventConnectedAccountDisconnected))] [SeamUnionVariant( "connected_account.completed_first_sync", @@ -3108,34 +3104,6 @@ public sealed record EventConnectedAccountCreated : Event public string ConnectedAccountId { get; init; } = default!; } - /// - /// A connected account had a successful login using a Connect Webview. - /// - [Obsolete("Use `connect_webview.login_succeeded`.")] - public sealed record EventConnectedAccountSuccessfulLogin : Event - { - [JsonPropertyName("event_type")] - public override string EventType { get; } = "connected_account.successful_login"; - - /// - /// ID of the Connect Webview associated with the event. - /// - [JsonPropertyName("connect_webview_id")] - public string ConnectWebviewId { 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; } - - /// - /// ID of the affected connected account. - /// - [JsonPropertyName("connected_account_id")] - public string ConnectedAccountId { get; init; } = default!; - } - /// /// A connected account was disconnected. /// @@ -4322,15 +4290,6 @@ public sealed record EventDeviceLowBattery : Event [JsonPropertyName("accessory_keypad_battery_level")] public float? AccessoryKeypadBatteryLevel { get; init; } - /// - /// Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. - /// - [Obsolete( - "Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery." - )] - [JsonPropertyName("battery_level")] - public float BatteryLevel { get; init; } = default!; - /// /// Custom metadata of the connected account, present when connected_account_id is provided. /// diff --git a/src/Seam/Models/UnmanagedAccessGrant.cs b/src/Seam/Models/UnmanagedAccessGrant.cs index d9c1bf7..4e9c9f2 100644 --- a/src/Seam/Models/UnmanagedAccessGrant.cs +++ b/src/Seam/Models/UnmanagedAccessGrant.cs @@ -483,10 +483,6 @@ public sealed record UnmanagedAccessGrantWarningsUnrecognized [JsonPropertyName("errors")] public List Errors { get; init; } = default!; - [Obsolete("Use `space_ids`.")] - [JsonPropertyName("location_ids")] - public List LocationIds { get; init; } = default!; - /// /// Name of the Access Grant. If not provided, the display name will be computed. /// diff --git a/src/Seam/Models/UnmanagedDevice.cs b/src/Seam/Models/UnmanagedDevice.cs index 90fdc23..1966af0 100644 --- a/src/Seam/Models/UnmanagedDevice.cs +++ b/src/Seam/Models/UnmanagedDevice.cs @@ -156,68 +156,74 @@ public enum DeviceTypeEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } [JsonConverter(typeof(SeamUnionConverter))] @@ -1079,13 +1085,6 @@ public sealed record UnmanagedDeviceLocation /// [JsonPropertyName("time_zone")] public string? TimeZone { get; init; } - - /// - /// Time zone of the device location. - /// - [Obsolete("Use `time_zone` instead.")] - [JsonPropertyName("timezone")] - public string? Timezone { get; init; } } public sealed record UnmanagedDeviceProperties @@ -1139,25 +1138,11 @@ public sealed record UnmanagedDeviceProperties [JsonPropertyName("name")] public string Name { get; init; } = default!; - /// - /// Indicates whether it is currently possible to use offline access codes for the device. - /// - [Obsolete("use device.can_program_offline_access_codes")] - [JsonPropertyName("offline_access_codes_enabled")] - public bool? OfflineAccessCodesEnabled { get; init; } - /// /// Indicates whether the device is online. /// [JsonPropertyName("online")] public bool Online { get; init; } = default!; - - /// - /// Indicates whether it is currently possible to use online access codes for the device. - /// - [Obsolete("use device.can_program_online_access_codes")] - [JsonPropertyName("online_access_codes_enabled")] - public bool? OnlineAccessCodesEnabled { get; init; } } public sealed record UnmanagedDevicePropertiesAccessoryKeypad @@ -1220,10 +1205,6 @@ public enum StatusEnum public sealed record UnmanagedDevicePropertiesModel { - [Obsolete("use device.properties.model.can_connect_accessory_keypad")] - [JsonPropertyName("accessory_keypad_supported")] - public bool? AccessoryKeypadSupported { get; init; } - /// /// Indicates whether the device can connect a accessory keypad. /// @@ -1247,13 +1228,5 @@ public sealed record UnmanagedDevicePropertiesModel /// [JsonPropertyName("manufacturer_display_name")] public string ManufacturerDisplayName { get; init; } = default!; - - [Obsolete("use device.can_program_offline_access_codes.")] - [JsonPropertyName("offline_access_codes_supported")] - public bool? OfflineAccessCodesSupported { get; init; } - - [Obsolete("use device.can_program_online_access_codes.")] - [JsonPropertyName("online_access_codes_supported")] - public bool? OnlineAccessCodesSupported { get; init; } } } diff --git a/src/Seam/Models/Workspace.cs b/src/Seam/Models/Workspace.cs index 7979846..45a3883 100644 --- a/src/Seam/Models/Workspace.cs +++ b/src/Seam/Models/Workspace.cs @@ -14,13 +14,6 @@ namespace Seam.Models /// public sealed record Workspace { - /// - /// Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). - /// - [Obsolete("Use `connect_partner_name` instead.")] - [JsonPropertyName("company_name")] - public string CompanyName { get; init; } = default!; - /// /// Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). /// diff --git a/src/Seam/Routes/AccessCodes.cs b/src/Seam/Routes/AccessCodes.cs index bc9bed9..1f0fc15 100644 --- a/src/Seam/Routes/AccessCodes.cs +++ b/src/Seam/Routes/AccessCodes.cs @@ -150,10 +150,6 @@ public enum MaxTimeRoundingEnum /// [JsonPropertyName("use_backup_access_code_pool")] public bool? UseBackupAccessCodePool { get; init; } - - [Obsolete("Use `is_offline_access_code` instead.")] - [JsonPropertyName("use_offline_access_code")] - public bool? UseOfflineAccessCode { get; init; } } public sealed record CreateResponse diff --git a/src/Seam/Routes/AccessGrants.cs b/src/Seam/Routes/AccessGrants.cs index bfe9a02..3767b84 100644 --- a/src/Seam/Routes/AccessGrants.cs +++ b/src/Seam/Routes/AccessGrants.cs @@ -63,14 +63,6 @@ public sealed record CreateRequest [JsonPropertyName("ends_at")] public Optional EndsAt { get; init; } - [Obsolete("Create a space first, then reference it using `space_ids`.")] - [JsonPropertyName("location")] - public CreateRequestLocation? Location { get; init; } - - [Obsolete("Use `space_ids`.")] - [JsonPropertyName("location_ids")] - public List? LocationIds { get; init; } - /// /// Name for the access grant. /// @@ -117,23 +109,6 @@ public sealed record CreateRequest public string? UserIdentityId { get; init; } } - public sealed record CreateRequestLocation - { - [Obsolete("Use `acs_entrance_ids` at the top level.")] - [JsonPropertyName("acs_entrance_ids")] - public List? AcsEntranceIds { get; init; } - - [Obsolete("Use `device_ids` at the top level.")] - [JsonPropertyName("device_ids")] - public List? DeviceIds { get; init; } - - /// - /// Name of the location. - /// - [JsonPropertyName("name")] - public string? Name { get; init; } - } - public sealed record CreateRequestRequestedAccessMethods { /// @@ -496,10 +471,6 @@ public sealed record ListRequest [JsonPropertyName("limit")] public float? Limit { get; init; } - [Obsolete("Use `space_id`.")] - [JsonPropertyName("location_id")] - public string? LocationId { get; init; } - /// /// Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. /// diff --git a/src/Seam/Routes/AcsEntrances.cs b/src/Seam/Routes/AcsEntrances.cs index d367c5a..327d975 100644 --- a/src/Seam/Routes/AcsEntrances.cs +++ b/src/Seam/Routes/AcsEntrances.cs @@ -155,10 +155,6 @@ public sealed record ListRequest [JsonPropertyName("limit")] public int? Limit { get; init; } - [Obsolete("Use `space_id`.")] - [JsonPropertyName("location_id")] - public Optional LocationId { get; init; } - /// /// Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. /// diff --git a/src/Seam/Routes/AcsUsers.cs b/src/Seam/Routes/AcsUsers.cs index 7b6714e..b312cba 100644 --- a/src/Seam/Routes/AcsUsers.cs +++ b/src/Seam/Routes/AcsUsers.cs @@ -84,10 +84,6 @@ public sealed record CreateRequest [JsonPropertyName("acs_system_id")] public required string AcsSystemId { get; init; } - [Obsolete("use email_address.")] - [JsonPropertyName("email")] - public string? Email { get; init; } - /// /// Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). /// @@ -662,10 +658,6 @@ public sealed record UpdateRequest [JsonPropertyName("acs_user_id")] public string? AcsUserId { get; init; } - [Obsolete("use email_address.")] - [JsonPropertyName("email")] - public string? Email { get; init; } - /// /// Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). /// @@ -704,7 +696,6 @@ internal void Validate() !AccessSchedule.IsSet && AcsSystemId == null && AcsUserId == null - && Email == null && EmailAddress == null && FullName == null && HidAcsSystemId == null diff --git a/src/Seam/Routes/ClientSessions.cs b/src/Seam/Routes/ClientSessions.cs index 9394800..8e651c3 100644 --- a/src/Seam/Routes/ClientSessions.cs +++ b/src/Seam/Routes/ClientSessions.cs @@ -71,13 +71,6 @@ public sealed record CreateRequest /// [JsonPropertyName("user_identity_id")] public string? UserIdentityId { get; init; } - - /// - /// IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. - /// - [Obsolete("Use `user_identity_id` instead.")] - [JsonPropertyName("user_identity_ids")] - public List? UserIdentityIds { get; init; } } public sealed record CreateResponse @@ -215,13 +208,6 @@ public sealed record GetOrCreateRequest /// [JsonPropertyName("user_identity_id")] public string? UserIdentityId { get; init; } - - /// - /// IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. - /// - [Obsolete("Use `user_identity_id`.")] - [JsonPropertyName("user_identity_ids")] - public List? UserIdentityIds { get; init; } } public sealed record GetOrCreateResponse @@ -288,13 +274,6 @@ public sealed record GrantAccessRequest [JsonPropertyName("user_identity_id")] public string? UserIdentityId { get; init; } - /// - /// IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session. - /// - [Obsolete("Use `user_identity_id`.")] - [JsonPropertyName("user_identity_ids")] - public List? UserIdentityIds { get; init; } - internal void Validate() { RequestParameters.RequireAtLeastOne( @@ -305,7 +284,6 @@ internal void Validate() && ConnectedAccountIds == null && UserIdentifierKey == null && UserIdentityId == null - && UserIdentityIds == null ) ); } diff --git a/src/Seam/Routes/ConnectWebviews.cs b/src/Seam/Routes/ConnectWebviews.cs index 8afe518..f1fddc2 100644 --- a/src/Seam/Routes/ConnectWebviews.cs +++ b/src/Seam/Routes/ConnectWebviews.cs @@ -217,95 +217,101 @@ public enum AcceptedProvidersEnum [EnumMember(Value = "sensi")] Sensi = 49, + [EnumMember(Value = "sensibo")] + Sensibo = 50, + [EnumMember(Value = "keynest")] - Keynest = 50, + Keynest = 51, [EnumMember(Value = "korelock")] - Korelock = 51, + Korelock = 52, [EnumMember(Value = "keyincode")] - Keyincode = 52, + Keyincode = 53, [EnumMember(Value = "dormakaba_ambiance")] - DormakabaAmbiance = 53, + DormakabaAmbiance = 54, [EnumMember(Value = "ultraloq")] - Ultraloq = 54, + Ultraloq = 55, [EnumMember(Value = "yacan")] - Yacan = 55, + Yacan = 56, [EnumMember(Value = "dusaw")] - Dusaw = 56, + Dusaw = 57, [EnumMember(Value = "sifely")] - Sifely = 57, + Sifely = 58, [EnumMember(Value = "thirty_three_lock")] - ThirtyThreeLock = 58, + ThirtyThreeLock = 59, [EnumMember(Value = "ring")] - Ring = 59, + Ring = 60, [EnumMember(Value = "tapo")] - Tapo = 60, + Tapo = 61, [EnumMember(Value = "arlo")] - Arlo = 61, + Arlo = 62, [EnumMember(Value = "reolink")] - Reolink = 62, + Reolink = 63, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 63, + UnifiProtect = 64, [EnumMember(Value = "yale_connect")] - YaleConnect = 64, + YaleConnect = 65, [EnumMember(Value = "alertify")] - Alertify = 65, + Alertify = 66, [EnumMember(Value = "ical")] - Ical = 66, + Ical = 67, [EnumMember(Value = "lodgify")] - Lodgify = 67, + Lodgify = 68, [EnumMember(Value = "hostaway")] - Hostaway = 68, + Hostaway = 69, [EnumMember(Value = "guesty")] - Guesty = 69, + Guesty = 70, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 70, + AcuityScheduling = 71, [EnumMember(Value = "omnitec")] - Omnitec = 71, + Omnitec = 72, [EnumMember(Value = "kisi")] - Kisi = 72, + Kisi = 73, [EnumMember(Value = "aqara")] - Aqara = 73, + Aqara = 74, [EnumMember(Value = "eufy")] - Eufy = 74, + Eufy = 75, [EnumMember(Value = "sonos")] - Sonos = 75, + Sonos = 76, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 76, + HaywardOmnilogic = 77, + + [EnumMember(Value = "tuya")] + Tuya = 78, [EnumMember(Value = "hid_cm")] - HidCm = 77, + HidCm = 79, [EnumMember(Value = "google_nest")] - GoogleNest = 78, + GoogleNest = 80, [EnumMember(Value = "slack")] - Slack = 79, + Slack = 81, } /// diff --git a/src/Seam/Routes/Customers.cs b/src/Seam/Routes/Customers.cs index aa12366..bf361c1 100644 --- a/src/Seam/Routes/Customers.cs +++ b/src/Seam/Routes/Customers.cs @@ -1263,15 +1263,6 @@ public sealed record CreatePortalRequestFeatures [JsonPropertyName("manage")] public CreatePortalRequestFeaturesManage? Manage { get; init; } - /// - /// Configuration for the manage devices feature. - /// --- - /// deprecated: Use `manage` instead. - /// --- - /// - [JsonPropertyName("manage_devices")] - public CreatePortalRequestFeaturesManageDevices? ManageDevices { get; init; } - /// /// Configuration for the organize feature. /// @@ -1438,15 +1429,6 @@ public sealed record CreatePortalRequestFeaturesManageEvents public List? DefaultEvents { get; init; } } - public sealed record CreatePortalRequestFeaturesManageDevices - { - /// - /// Whether to exclude this feature from the portal. - /// - [JsonPropertyName("exclude")] - public bool? Exclude { get; init; } - } - public sealed record CreatePortalRequestFeaturesOrganize { /// diff --git a/src/Seam/Routes/Devices.cs b/src/Seam/Routes/Devices.cs index e86dd12..279309c 100644 --- a/src/Seam/Routes/Devices.cs +++ b/src/Seam/Routes/Devices.cs @@ -202,68 +202,74 @@ public enum DeviceTypeEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } /// @@ -377,68 +383,74 @@ public enum DeviceTypesEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } /// @@ -576,68 +588,74 @@ public enum ManufacturerEnum [EnumMember(Value = "sensi")] Sensi = 42, + [EnumMember(Value = "sensibo")] + Sensibo = 43, + [EnumMember(Value = "smartthings")] - Smartthings = 43, + Smartthings = 44, [EnumMember(Value = "tado")] - Tado = 44, + Tado = 45, [EnumMember(Value = "ultraloq")] - Ultraloq = 45, + Ultraloq = 46, [EnumMember(Value = "ring")] - Ring = 46, + Ring = 47, [EnumMember(Value = "tapo")] - Tapo = 47, + Tapo = 48, [EnumMember(Value = "arlo")] - Arlo = 48, + Arlo = 49, [EnumMember(Value = "reolink")] - Reolink = 49, + Reolink = 50, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 50, + UnifiProtect = 51, [EnumMember(Value = "yale_connect")] - YaleConnect = 51, + YaleConnect = 52, [EnumMember(Value = "alertify")] - Alertify = 52, + Alertify = 53, [EnumMember(Value = "ical")] - Ical = 53, + Ical = 54, [EnumMember(Value = "lodgify")] - Lodgify = 54, + Lodgify = 55, [EnumMember(Value = "hostaway")] - Hostaway = 55, + Hostaway = 56, [EnumMember(Value = "guesty")] - Guesty = 56, + Guesty = 57, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 57, + AcuityScheduling = 58, [EnumMember(Value = "omnitec")] - Omnitec = 58, + Omnitec = 59, [EnumMember(Value = "kisi")] - Kisi = 59, + Kisi = 60, [EnumMember(Value = "slack")] - Slack = 60, + Slack = 61, [EnumMember(Value = "yacan")] - Yacan = 61, + Yacan = 62, [EnumMember(Value = "sonos")] - Sonos = 62, + Sonos = 63, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 63, + HaywardOmnilogic = 64, + + [EnumMember(Value = "tuya")] + Tuya = 65, } /// @@ -724,10 +742,6 @@ public enum ManufacturerEnum [JsonPropertyName("space_id")] public string? SpaceId { get; init; } - [Obsolete("Use `space_id`.")] - [JsonPropertyName("unstable_location_id")] - public Optional UnstableLocationId { get; init; } - /// /// Your own internal user ID for the user for which you want to list devices. /// diff --git a/src/Seam/Routes/DevicesUnmanaged.cs b/src/Seam/Routes/DevicesUnmanaged.cs index 3b2b624..a7d0958 100644 --- a/src/Seam/Routes/DevicesUnmanaged.cs +++ b/src/Seam/Routes/DevicesUnmanaged.cs @@ -201,68 +201,74 @@ public enum DeviceTypeEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } /// @@ -376,68 +382,74 @@ public enum DeviceTypesEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, [EnumMember(Value = "keynest_key")] - KeynestKey = 36, + KeynestKey = 37, [EnumMember(Value = "noiseaware_activity_zone")] - NoiseawareActivityZone = 37, + NoiseawareActivityZone = 38, [EnumMember(Value = "minut_sensor")] - MinutSensor = 38, + MinutSensor = 39, [EnumMember(Value = "ecobee_thermostat")] - EcobeeThermostat = 39, + EcobeeThermostat = 40, [EnumMember(Value = "nest_thermostat")] - NestThermostat = 40, + NestThermostat = 41, [EnumMember(Value = "honeywell_resideo_thermostat")] - HoneywellResideoThermostat = 41, + HoneywellResideoThermostat = 42, [EnumMember(Value = "tado_thermostat")] - TadoThermostat = 42, + TadoThermostat = 43, [EnumMember(Value = "sensi_thermostat")] - SensiThermostat = 43, + SensiThermostat = 44, + + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 45, [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 44, + SmartthingsThermostat = 46, [EnumMember(Value = "ios_phone")] - IosPhone = 45, + IosPhone = 47, [EnumMember(Value = "android_phone")] - AndroidPhone = 46, + AndroidPhone = 48, [EnumMember(Value = "ring_camera")] - RingCamera = 47, + RingCamera = 49, [EnumMember(Value = "tapo_camera")] - TapoCamera = 48, + TapoCamera = 50, [EnumMember(Value = "arlo_camera")] - ArloCamera = 49, + ArloCamera = 51, [EnumMember(Value = "reolink_camera")] - ReolinkCamera = 50, + ReolinkCamera = 52, [EnumMember(Value = "unifi_protect_camera")] - UnifiProtectCamera = 51, + UnifiProtectCamera = 53, [EnumMember(Value = "sonos_speaker")] - SonosSpeaker = 52, + SonosSpeaker = 54, [EnumMember(Value = "alertify_sensor")] - AlertifySensor = 53, + AlertifySensor = 55, - [EnumMember(Value = "hayward_pool_system")] - HaywardPoolSystem = 54, + [EnumMember(Value = "hayward_pool_controller")] + HaywardPoolController = 56, [EnumMember(Value = "hayward_pool")] - HaywardPool = 55, + HaywardPool = 57, } /// @@ -575,68 +587,74 @@ public enum ManufacturerEnum [EnumMember(Value = "sensi")] Sensi = 42, + [EnumMember(Value = "sensibo")] + Sensibo = 43, + [EnumMember(Value = "smartthings")] - Smartthings = 43, + Smartthings = 44, [EnumMember(Value = "tado")] - Tado = 44, + Tado = 45, [EnumMember(Value = "ultraloq")] - Ultraloq = 45, + Ultraloq = 46, [EnumMember(Value = "ring")] - Ring = 46, + Ring = 47, [EnumMember(Value = "tapo")] - Tapo = 47, + Tapo = 48, [EnumMember(Value = "arlo")] - Arlo = 48, + Arlo = 49, [EnumMember(Value = "reolink")] - Reolink = 49, + Reolink = 50, [EnumMember(Value = "unifi_protect")] - UnifiProtect = 50, + UnifiProtect = 51, [EnumMember(Value = "yale_connect")] - YaleConnect = 51, + YaleConnect = 52, [EnumMember(Value = "alertify")] - Alertify = 52, + Alertify = 53, [EnumMember(Value = "ical")] - Ical = 53, + Ical = 54, [EnumMember(Value = "lodgify")] - Lodgify = 54, + Lodgify = 55, [EnumMember(Value = "hostaway")] - Hostaway = 55, + Hostaway = 56, [EnumMember(Value = "guesty")] - Guesty = 56, + Guesty = 57, [EnumMember(Value = "acuity_scheduling")] - AcuityScheduling = 57, + AcuityScheduling = 58, [EnumMember(Value = "omnitec")] - Omnitec = 58, + Omnitec = 59, [EnumMember(Value = "kisi")] - Kisi = 59, + Kisi = 60, [EnumMember(Value = "slack")] - Slack = 60, + Slack = 61, [EnumMember(Value = "yacan")] - Yacan = 61, + Yacan = 62, [EnumMember(Value = "sonos")] - Sonos = 62, + Sonos = 63, [EnumMember(Value = "hayward_omnilogic")] - HaywardOmnilogic = 63, + HaywardOmnilogic = 64, + + [EnumMember(Value = "tuya")] + Tuya = 65, } /// diff --git a/src/Seam/Routes/Locks.cs b/src/Seam/Routes/Locks.cs index 224d602..a0bc8d6 100644 --- a/src/Seam/Routes/Locks.cs +++ b/src/Seam/Routes/Locks.cs @@ -261,8 +261,11 @@ public enum DeviceTypeEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, } /// @@ -376,8 +379,11 @@ public enum DeviceTypesEnum [EnumMember(Value = "aqara_lock")] AqaraLock = 34, + [EnumMember(Value = "tuya_lock")] + TuyaLock = 35, + [EnumMember(Value = "eufy_lock")] - EufyLock = 35, + EufyLock = 36, } /// @@ -496,6 +502,9 @@ public enum ManufacturerEnum [EnumMember(Value = "yacan")] Yacan = 36, + + [EnumMember(Value = "tuya")] + Tuya = 37, } /// diff --git a/src/Seam/Routes/Thermostats.cs b/src/Seam/Routes/Thermostats.cs index fcd7ffc..d28f54b 100644 --- a/src/Seam/Routes/Thermostats.cs +++ b/src/Seam/Routes/Thermostats.cs @@ -339,13 +339,6 @@ public enum HvacModeSettingEnum [JsonPropertyName("hvac_mode_setting")] public CreateClimatePresetRequest.HvacModeSettingEnum? HvacModeSetting { get; init; } - /// - /// Indicates whether a person at the thermostat or using the API can change the thermostat's settings. - /// - [Obsolete("Use 'thermostat_schedule.is_override_allowed'")] - [JsonPropertyName("manual_override_allowed")] - public bool? ManualOverrideAllowed { get; init; } - /// /// User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). /// @@ -609,8 +602,11 @@ public enum DeviceTypeEnum [EnumMember(Value = "sensi_thermostat")] SensiThermostat = 5, + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 6, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 6, + SmartthingsThermostat = 7, } /// @@ -637,8 +633,11 @@ public enum DeviceTypesEnum [EnumMember(Value = "sensi_thermostat")] SensiThermostat = 5, + [EnumMember(Value = "sensibo_thermostat")] + SensiboThermostat = 6, + [EnumMember(Value = "smartthings_thermostat")] - SmartthingsThermostat = 6, + SmartthingsThermostat = 7, } /// @@ -662,11 +661,14 @@ public enum ManufacturerEnum [EnumMember(Value = "sensi")] Sensi = 4, + [EnumMember(Value = "sensibo")] + Sensibo = 5, + [EnumMember(Value = "smartthings")] - Smartthings = 5, + Smartthings = 6, [EnumMember(Value = "tado")] - Tado = 6, + Tado = 7, } /// @@ -1212,13 +1214,6 @@ public enum HvacModeSettingEnum [JsonPropertyName("hvac_mode_setting")] public UpdateClimatePresetRequest.HvacModeSettingEnum? HvacModeSetting { get; init; } - /// - /// Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). - /// - [Obsolete("Use 'thermostat_schedule.is_override_allowed'")] - [JsonPropertyName("manual_override_allowed")] - public bool? ManualOverrideAllowed { get; init; } - /// /// User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). /// diff --git a/src/Seam/Routes/Workspaces.cs b/src/Seam/Routes/Workspaces.cs index e7e413a..558b41c 100644 --- a/src/Seam/Routes/Workspaces.cs +++ b/src/Seam/Routes/Workspaces.cs @@ -30,26 +30,6 @@ ActionAttemptWait waitForActionAttemptDefault /// public sealed record CreateRequest { - [JsonConverter(typeof(SeamStringEnumConverter))] - public enum WebviewLogoShapeEnum - { - [EnumMember(Value = "unrecognized")] - Unrecognized = 0, - - [EnumMember(Value = "circle")] - Circle = 1, - - [EnumMember(Value = "square")] - Square = 2, - } - - /// - /// Company name for the new workspace. - /// - [Obsolete("Use `connect_partner_name` instead.")] - [JsonPropertyName("company_name")] - public string? CompanyName { get; init; } - /// /// Connect partner name for the new workspace. /// @@ -79,24 +59,6 @@ public enum WebviewLogoShapeEnum /// [JsonPropertyName("organization_id")] public string? OrganizationId { get; init; } - - [Obsolete("Use `connect_webview_customization.webview_logo_shape` instead.")] - [JsonPropertyName("webview_logo_shape")] - public CreateRequest.WebviewLogoShapeEnum? WebviewLogoShape { get; init; } - - [Obsolete("Use `connect_webview_customization.webview_primary_button_color` instead.")] - [JsonPropertyName("webview_primary_button_color")] - public string? WebviewPrimaryButtonColor { get; init; } - - [Obsolete( - "Use `connect_webview_customization.webview_primary_button_text_color` instead." - )] - [JsonPropertyName("webview_primary_button_text_color")] - public string? WebviewPrimaryButtonTextColor { get; init; } - - [Obsolete("Use `connect_webview_customization.webview_success_message` instead.")] - [JsonPropertyName("webview_success_message")] - public string? WebviewSuccessMessage { get; init; } } public sealed record CreateRequestConnectWebviewCustomization