diff --git a/output/csharp/src/Seam/Api/ConnectWebviews.cs b/output/csharp/src/Seam/Api/ConnectWebviews.cs index 2931a19..09a92d4 100644 --- a/output/csharp/src/Seam/Api/ConnectWebviews.cs +++ b/output/csharp/src/Seam/Api/ConnectWebviews.cs @@ -177,14 +177,20 @@ public enum AcceptedProvidersEnum [EnumMember(Value = "assa_abloy_vostio_credential_service")] AssaAbloyVostioCredentialService = 42, + [EnumMember(Value = "tado")] + Tado = 43, + + [EnumMember(Value = "salto_space")] + SaltoSpace = 44, + [EnumMember(Value = "yale_access")] - YaleAccess = 43, + YaleAccess = 45, [EnumMember(Value = "hid_cm")] - HidCm = 44, + HidCm = 46, [EnumMember(Value = "google_nest")] - GoogleNest = 45, + GoogleNest = 47, } [JsonConverter(typeof(StringEnumConverter))] diff --git a/output/csharp/src/Seam/Api/CredentialsAcs.cs b/output/csharp/src/Seam/Api/CredentialsAcs.cs index 0bc2c5d..abc17c4 100644 --- a/output/csharp/src/Seam/Api/CredentialsAcs.cs +++ b/output/csharp/src/Seam/Api/CredentialsAcs.cs @@ -403,7 +403,7 @@ protected CreateOfflineCodeRequest() { } public CreateOfflineCodeRequest( string acsUserId = default, - string? allowedAcsEntranceId = default, + string allowedAcsEntranceId = default, string? endsAt = default, bool? isOneTimeUse = default, string? startsAt = default @@ -421,10 +421,10 @@ public CreateOfflineCodeRequest( [DataMember( Name = "allowed_acs_entrance_id", - IsRequired = false, + IsRequired = true, EmitDefaultValue = false )] - public string? AllowedAcsEntranceId { get; set; } + public string AllowedAcsEntranceId { get; set; } [DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)] public string? EndsAt { get; set; } @@ -503,7 +503,7 @@ public AcsCredential CreateOfflineCode(CreateOfflineCodeRequest request) public AcsCredential CreateOfflineCode( string acsUserId = default, - string? allowedAcsEntranceId = default, + string allowedAcsEntranceId = default, string? endsAt = default, bool? isOneTimeUse = default, string? startsAt = default @@ -536,7 +536,7 @@ await _seam.PostAsync( public async Task CreateOfflineCodeAsync( string acsUserId = default, - string? allowedAcsEntranceId = default, + string allowedAcsEntranceId = default, string? endsAt = default, bool? isOneTimeUse = default, string? startsAt = default diff --git a/output/csharp/src/Seam/Api/Devices.cs b/output/csharp/src/Seam/Api/Devices.cs index b7ca38e..9918cf8 100644 --- a/output/csharp/src/Seam/Api/Devices.cs +++ b/output/csharp/src/Seam/Api/Devices.cs @@ -308,11 +308,14 @@ public enum DeviceTypesEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [JsonConverter(typeof(StringEnumConverter))] @@ -496,6 +499,9 @@ public enum ManufacturerEnum [EnumMember(Value = "akiles")] Akiles = 34, + + [EnumMember(Value = "tado")] + Tado = 35, } [DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Api/Events.cs b/output/csharp/src/Seam/Api/Events.cs index b95d397..dbc245b 100644 --- a/output/csharp/src/Seam/Api/Events.cs +++ b/output/csharp/src/Seam/Api/Events.cs @@ -341,50 +341,53 @@ public enum EventTypeEnum [EnumMember(Value = "acs_system.connected")] AcsSystemConnected = 54, + [EnumMember(Value = "acs_system.disconnected")] + AcsSystemDisconnected = 55, + [EnumMember(Value = "acs_user.deleted")] - AcsUserDeleted = 55, + AcsUserDeleted = 56, [EnumMember(Value = "acs_credential.deleted")] - AcsCredentialDeleted = 56, + AcsCredentialDeleted = 57, [EnumMember(Value = "acs_credential.issued")] - AcsCredentialIssued = 57, + AcsCredentialIssued = 58, [EnumMember(Value = "acs_encoder.added")] - AcsEncoderAdded = 58, + AcsEncoderAdded = 59, [EnumMember(Value = "acs_encoder.removed")] - AcsEncoderRemoved = 59, + AcsEncoderRemoved = 60, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 60, + EnrollmentAutomationDeleted = 61, [EnumMember(Value = "client_session.deleted")] - ClientSessionDeleted = 61, + ClientSessionDeleted = 62, [EnumMember(Value = "action_attempt.lock_door.succeeded")] - ActionAttemptLockDoorSucceeded = 62, + ActionAttemptLockDoorSucceeded = 63, [EnumMember(Value = "action_attempt.lock_door.failed")] - ActionAttemptLockDoorFailed = 63, + ActionAttemptLockDoorFailed = 64, [EnumMember(Value = "action_attempt.unlock_door.succeeded")] - ActionAttemptUnlockDoorSucceeded = 64, + ActionAttemptUnlockDoorSucceeded = 65, [EnumMember(Value = "action_attempt.unlock_door.failed")] - ActionAttemptUnlockDoorFailed = 65, + ActionAttemptUnlockDoorFailed = 66, [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 66, + ThermostatClimatePresetActivated = 67, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 67, + ThermostatManuallyAdjusted = 68, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 68, + ThermostatTemperatureThresholdExceeded = 69, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 69, + ThermostatTemperatureThresholdNoLongerExceeded = 70, } [JsonConverter(typeof(StringEnumConverter))] @@ -555,50 +558,53 @@ public enum EventTypesEnum [EnumMember(Value = "acs_system.connected")] AcsSystemConnected = 54, + [EnumMember(Value = "acs_system.disconnected")] + AcsSystemDisconnected = 55, + [EnumMember(Value = "acs_user.deleted")] - AcsUserDeleted = 55, + AcsUserDeleted = 56, [EnumMember(Value = "acs_credential.deleted")] - AcsCredentialDeleted = 56, + AcsCredentialDeleted = 57, [EnumMember(Value = "acs_credential.issued")] - AcsCredentialIssued = 57, + AcsCredentialIssued = 58, [EnumMember(Value = "acs_encoder.added")] - AcsEncoderAdded = 58, + AcsEncoderAdded = 59, [EnumMember(Value = "acs_encoder.removed")] - AcsEncoderRemoved = 59, + AcsEncoderRemoved = 60, [EnumMember(Value = "enrollment_automation.deleted")] - EnrollmentAutomationDeleted = 60, + EnrollmentAutomationDeleted = 61, [EnumMember(Value = "client_session.deleted")] - ClientSessionDeleted = 61, + ClientSessionDeleted = 62, [EnumMember(Value = "action_attempt.lock_door.succeeded")] - ActionAttemptLockDoorSucceeded = 62, + ActionAttemptLockDoorSucceeded = 63, [EnumMember(Value = "action_attempt.lock_door.failed")] - ActionAttemptLockDoorFailed = 63, + ActionAttemptLockDoorFailed = 64, [EnumMember(Value = "action_attempt.unlock_door.succeeded")] - ActionAttemptUnlockDoorSucceeded = 64, + ActionAttemptUnlockDoorSucceeded = 65, [EnumMember(Value = "action_attempt.unlock_door.failed")] - ActionAttemptUnlockDoorFailed = 65, + ActionAttemptUnlockDoorFailed = 66, [EnumMember(Value = "thermostat.climate_preset_activated")] - ThermostatClimatePresetActivated = 66, + ThermostatClimatePresetActivated = 67, [EnumMember(Value = "thermostat.manually_adjusted")] - ThermostatManuallyAdjusted = 67, + ThermostatManuallyAdjusted = 68, [EnumMember(Value = "thermostat.temperature_threshold_exceeded")] - ThermostatTemperatureThresholdExceeded = 68, + ThermostatTemperatureThresholdExceeded = 69, [EnumMember(Value = "thermostat.temperature_threshold_no_longer_exceeded")] - ThermostatTemperatureThresholdNoLongerExceeded = 69, + ThermostatTemperatureThresholdNoLongerExceeded = 70, } [DataMember(Name = "access_code_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Api/Locks.cs b/output/csharp/src/Seam/Api/Locks.cs index b5efa5f..b2e870a 100644 --- a/output/csharp/src/Seam/Api/Locks.cs +++ b/output/csharp/src/Seam/Api/Locks.cs @@ -250,11 +250,14 @@ public enum DeviceTypesEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [JsonConverter(typeof(StringEnumConverter))] @@ -438,6 +441,9 @@ public enum ManufacturerEnum [EnumMember(Value = "akiles")] Akiles = 34, + + [EnumMember(Value = "tado")] + Tado = 35, } [DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Api/NoiseSensors.cs b/output/csharp/src/Seam/Api/NoiseSensors.cs index 3a90ddb..d4f13a0 100644 --- a/output/csharp/src/Seam/Api/NoiseSensors.cs +++ b/output/csharp/src/Seam/Api/NoiseSensors.cs @@ -154,11 +154,14 @@ public enum DeviceTypesEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [JsonConverter(typeof(StringEnumConverter))] @@ -342,6 +345,9 @@ public enum ManufacturerEnum [EnumMember(Value = "akiles")] Akiles = 34, + + [EnumMember(Value = "tado")] + Tado = 35, } [DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Api/Thermostats.cs b/output/csharp/src/Seam/Api/Thermostats.cs index 65c5960..e89f96d 100644 --- a/output/csharp/src/Seam/Api/Thermostats.cs +++ b/output/csharp/src/Seam/Api/Thermostats.cs @@ -1131,11 +1131,14 @@ public enum DeviceTypesEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [JsonConverter(typeof(StringEnumConverter))] @@ -1319,6 +1322,9 @@ public enum ManufacturerEnum [EnumMember(Value = "akiles")] Akiles = 34, + + [EnumMember(Value = "tado")] + Tado = 35, } [DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Api/UnmanagedDevices.cs b/output/csharp/src/Seam/Api/UnmanagedDevices.cs index 404ee04..41b0b29 100644 --- a/output/csharp/src/Seam/Api/UnmanagedDevices.cs +++ b/output/csharp/src/Seam/Api/UnmanagedDevices.cs @@ -255,11 +255,14 @@ public enum DeviceTypesEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [JsonConverter(typeof(StringEnumConverter))] @@ -443,6 +446,9 @@ public enum ManufacturerEnum [EnumMember(Value = "akiles")] Akiles = 34, + + [EnumMember(Value = "tado")] + Tado = 35, } [DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Model/AcsAccessGroup.cs b/output/csharp/src/Seam/Model/AcsAccessGroup.cs index 0a6563c..5d17af5 100644 --- a/output/csharp/src/Seam/Model/AcsAccessGroup.cs +++ b/output/csharp/src/Seam/Model/AcsAccessGroup.cs @@ -49,8 +49,8 @@ public enum AccessGroupTypeEnum [EnumMember(Value = "pti_access_level")] PtiAccessLevel = 1, - [EnumMember(Value = "salto_access_group")] - SaltoAccessGroup = 2, + [EnumMember(Value = "salto_ks_access_group")] + SaltoKsAccessGroup = 2, [EnumMember(Value = "brivo_group")] BrivoGroup = 3, @@ -65,8 +65,8 @@ public enum ExternalTypeEnum [EnumMember(Value = "pti_access_level")] PtiAccessLevel = 1, - [EnumMember(Value = "salto_access_group")] - SaltoAccessGroup = 2, + [EnumMember(Value = "salto_ks_access_group")] + SaltoKsAccessGroup = 2, [EnumMember(Value = "brivo_group")] BrivoGroup = 3, diff --git a/output/csharp/src/Seam/Model/AcsCredential.cs b/output/csharp/src/Seam/Model/AcsCredential.cs index fbb7aa2..a029f7e 100644 --- a/output/csharp/src/Seam/Model/AcsCredential.cs +++ b/output/csharp/src/Seam/Model/AcsCredential.cs @@ -31,6 +31,7 @@ public AcsCredential( bool? isLatestDesiredStateSyncedWithProvider = default, bool isManaged = default, bool? isMultiPhoneSyncCredential = default, + bool? isOneTimeUse = default, string? issuedAt = default, string? latestDesiredStateSyncedWithProviderAt = default, string? parentAcsCredentialId = default, @@ -57,6 +58,7 @@ public AcsCredential( IsLatestDesiredStateSyncedWithProvider = isLatestDesiredStateSyncedWithProvider; IsManaged = isManaged; IsMultiPhoneSyncCredential = isMultiPhoneSyncCredential; + IsOneTimeUse = isOneTimeUse; IssuedAt = issuedAt; LatestDesiredStateSyncedWithProviderAt = latestDesiredStateSyncedWithProviderAt; ParentAcsCredentialId = parentAcsCredentialId; @@ -161,6 +163,9 @@ public enum ExternalTypeEnum )] public bool? IsMultiPhoneSyncCredential { get; set; } + [DataMember(Name = "is_one_time_use", IsRequired = false, EmitDefaultValue = false)] + public bool? IsOneTimeUse { get; set; } + [DataMember(Name = "issued_at", IsRequired = false, EmitDefaultValue = false)] public string? IssuedAt { get; set; } diff --git a/output/csharp/src/Seam/Model/AcsEntrance.cs b/output/csharp/src/Seam/Model/AcsEntrance.cs index 0ffacab..c00eb9f 100644 --- a/output/csharp/src/Seam/Model/AcsEntrance.cs +++ b/output/csharp/src/Seam/Model/AcsEntrance.cs @@ -23,6 +23,7 @@ public AcsEntrance( List errors = default, AcsEntranceLatchMetadata? latchMetadata = default, AcsEntranceSaltoKsMetadata? saltoKsMetadata = default, + AcsEntranceSaltoSpaceMetadata? saltoSpaceMetadata = default, AcsEntranceVisionlineMetadata? visionlineMetadata = default ) { @@ -35,6 +36,7 @@ public AcsEntrance( Errors = errors; LatchMetadata = latchMetadata; SaltoKsMetadata = saltoKsMetadata; + SaltoSpaceMetadata = saltoSpaceMetadata; VisionlineMetadata = visionlineMetadata; } @@ -73,6 +75,9 @@ public AcsEntrance( [DataMember(Name = "salto_ks_metadata", IsRequired = false, EmitDefaultValue = false)] public AcsEntranceSaltoKsMetadata? SaltoKsMetadata { get; set; } + [DataMember(Name = "salto_space_metadata", IsRequired = false, EmitDefaultValue = false)] + public AcsEntranceSaltoSpaceMetadata? SaltoSpaceMetadata { get; set; } + [DataMember(Name = "visionline_metadata", IsRequired = false, EmitDefaultValue = false)] public AcsEntranceVisionlineMetadata? VisionlineMetadata { get; set; } @@ -174,14 +179,30 @@ public class AcsEntranceDormakabaCommunityMetadata [JsonConstructorAttribute] protected AcsEntranceDormakabaCommunityMetadata() { } - public AcsEntranceDormakabaCommunityMetadata(string accessPointName = default) + public AcsEntranceDormakabaCommunityMetadata( + string accessPointName = default, + float? commonAreaNumber = default, + List? innerAccessPointsNames = default + ) { AccessPointName = accessPointName; + CommonAreaNumber = commonAreaNumber; + InnerAccessPointsNames = innerAccessPointsNames; } [DataMember(Name = "access_point_name", IsRequired = true, EmitDefaultValue = false)] public string AccessPointName { get; set; } + [DataMember(Name = "common_area_number", IsRequired = false, EmitDefaultValue = false)] + public float? CommonAreaNumber { get; set; } + + [DataMember( + Name = "inner_access_points_names", + IsRequired = false, + EmitDefaultValue = false + )] + public List? InnerAccessPointsNames { get; set; } + public override string ToString() { JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); @@ -362,6 +383,52 @@ public override string ToString() } } + [DataContract(Name = "seamModel_acsEntranceSaltoSpaceMetadata_model")] + public class AcsEntranceSaltoSpaceMetadata + { + [JsonConstructorAttribute] + protected AcsEntranceSaltoSpaceMetadata() { } + + public AcsEntranceSaltoSpaceMetadata( + string? doorDescription = default, + string doorName = default, + string extDoorId = default + ) + { + DoorDescription = doorDescription; + DoorName = doorName; + ExtDoorId = extDoorId; + } + + [DataMember(Name = "door_description", IsRequired = false, EmitDefaultValue = false)] + public string? DoorDescription { get; set; } + + [DataMember(Name = "door_name", IsRequired = true, EmitDefaultValue = false)] + public string DoorName { get; set; } + + [DataMember(Name = "ext_door_id", IsRequired = true, EmitDefaultValue = false)] + public string ExtDoorId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } + } + [DataContract(Name = "seamModel_acsEntranceVisionlineMetadata_model")] public class AcsEntranceVisionlineMetadata { diff --git a/output/csharp/src/Seam/Model/AcsSystem.cs b/output/csharp/src/Seam/Model/AcsSystem.cs index 85a243b..8880a3b 100644 --- a/output/csharp/src/Seam/Model/AcsSystem.cs +++ b/output/csharp/src/Seam/Model/AcsSystem.cs @@ -33,7 +33,7 @@ public AcsSystem( AcsSystem.SystemTypeEnum? systemType = default, string? systemTypeDisplayName = default, AcsSystemVisionlineMetadata? visionlineMetadata = default, - List warnings = default, + List warnings = default, string workspaceId = default ) { @@ -72,32 +72,35 @@ public enum ExternalTypeEnum [EnumMember(Value = "salto_ks_site")] SaltoKsSite = 2, + [EnumMember(Value = "salto_space_system")] + SaltoSpaceSystem = 3, + [EnumMember(Value = "brivo_account")] - BrivoAccount = 3, + BrivoAccount = 4, [EnumMember(Value = "hid_credential_manager_organization")] - HidCredentialManagerOrganization = 4, + HidCredentialManagerOrganization = 5, [EnumMember(Value = "visionline_system")] - VisionlineSystem = 5, + VisionlineSystem = 6, [EnumMember(Value = "assa_abloy_credential_service")] - AssaAbloyCredentialService = 6, + AssaAbloyCredentialService = 7, [EnumMember(Value = "latch_building")] - LatchBuilding = 7, + LatchBuilding = 8, [EnumMember(Value = "dormakaba_community")] - DormakabaCommunity = 8, + DormakabaCommunity = 9, [EnumMember(Value = "legic_connect")] - LegicConnect = 9, + LegicConnect = 10, [EnumMember(Value = "assa_abloy_vostio")] - AssaAbloyVostio = 10, + AssaAbloyVostio = 11, [EnumMember(Value = "assa_abloy_vostio_credential_service")] - AssaAbloyVostioCredentialService = 11, + AssaAbloyVostioCredentialService = 12, } [JsonConverter(typeof(StringEnumConverter))] @@ -112,32 +115,35 @@ public enum SystemTypeEnum [EnumMember(Value = "salto_ks_site")] SaltoKsSite = 2, + [EnumMember(Value = "salto_space_system")] + SaltoSpaceSystem = 3, + [EnumMember(Value = "brivo_account")] - BrivoAccount = 3, + BrivoAccount = 4, [EnumMember(Value = "hid_credential_manager_organization")] - HidCredentialManagerOrganization = 4, + HidCredentialManagerOrganization = 5, [EnumMember(Value = "visionline_system")] - VisionlineSystem = 5, + VisionlineSystem = 6, [EnumMember(Value = "assa_abloy_credential_service")] - AssaAbloyCredentialService = 6, + AssaAbloyCredentialService = 7, [EnumMember(Value = "latch_building")] - LatchBuilding = 7, + LatchBuilding = 8, [EnumMember(Value = "dormakaba_community")] - DormakabaCommunity = 8, + DormakabaCommunity = 9, [EnumMember(Value = "legic_connect")] - LegicConnect = 9, + LegicConnect = 10, [EnumMember(Value = "assa_abloy_vostio")] - AssaAbloyVostio = 10, + AssaAbloyVostio = 11, [EnumMember(Value = "assa_abloy_vostio_credential_service")] - AssaAbloyVostioCredentialService = 11, + AssaAbloyVostioCredentialService = 12, } [DataMember(Name = "acs_system_id", IsRequired = true, EmitDefaultValue = false)] @@ -222,7 +228,7 @@ public enum SystemTypeEnum public AcsSystemVisionlineMetadata? VisionlineMetadata { get; set; } [DataMember(Name = "warnings", IsRequired = true, EmitDefaultValue = false)] - public List Warnings { get; set; } + public List Warnings { get; set; } [DataMember(Name = "workspace_id", IsRequired = true, EmitDefaultValue = false)] public string WorkspaceId { get; set; } @@ -326,57 +332,4 @@ public override string ToString() return stringWriter.ToString(); } } - - [DataContract(Name = "seamModel_acsSystemWarnings_model")] - public class AcsSystemWarnings - { - [JsonConstructorAttribute] - protected AcsSystemWarnings() { } - - public AcsSystemWarnings( - string createdAt = default, - string message = default, - AcsSystemWarnings.WarningCodeEnum warningCode = default - ) - { - CreatedAt = createdAt; - Message = message; - WarningCode = warningCode; - } - - [JsonConverter(typeof(StringEnumConverter))] - public enum WarningCodeEnum - { - [EnumMember(Value = "salto_ks_subscription_limit_almost_reached")] - SaltoKsSubscriptionLimitAlmostReached = 0, - } - - [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)] - public string CreatedAt { get; set; } - - [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] - public string Message { get; set; } - - [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)] - public AcsSystemWarnings.WarningCodeEnum WarningCode { get; set; } - - public override string ToString() - { - JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); - - StringWriter stringWriter = new StringWriter( - new StringBuilder(256), - System.Globalization.CultureInfo.InvariantCulture - ); - using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) - { - jsonTextWriter.IndentChar = ' '; - jsonTextWriter.Indentation = 2; - jsonTextWriter.Formatting = Formatting.Indented; - jsonSerializer.Serialize(jsonTextWriter, this, null); - } - - return stringWriter.ToString(); - } - } } diff --git a/output/csharp/src/Seam/Model/ActionAttempt.cs b/output/csharp/src/Seam/Model/ActionAttempt.cs index 6f9e025..57ef1a0 100644 --- a/output/csharp/src/Seam/Model/ActionAttempt.cs +++ b/output/csharp/src/Seam/Model/ActionAttempt.cs @@ -19,11 +19,8 @@ namespace Seam.Model typeof(ActionAttemptActivateClimatePreset), "ACTIVATE_CLIMATE_PRESET" )] - [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetThermostatOff), "SET_THERMOSTAT_OFF")] + [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetHvacMode), "SET_HVAC_MODE")] [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetFanMode), "SET_FAN_MODE")] - [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetHeatCool), "SET_HEAT_COOL")] - [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetHeat), "SET_HEAT")] - [JsonSubtypes.KnownSubType(typeof(ActionAttemptSetCool), "SET_COOL")] [JsonSubtypes.KnownSubType( typeof(ActionAttemptResetSandboxWorkspace), "RESET_SANDBOX_WORKSPACE" @@ -384,213 +381,6 @@ public override string ToString() } } - [DataContract(Name = "seamModel_actionAttemptSetCool_model")] - public class ActionAttemptSetCool : ActionAttempt - { - [JsonConstructorAttribute] - protected ActionAttemptSetCool() { } - - public ActionAttemptSetCool( - string actionAttemptId = default, - string actionType = default, - Object error = default, - Object result = default, - ActionAttemptSetCool.StatusEnum status = default - ) - { - ActionAttemptId = actionAttemptId; - ActionType = actionType; - Error = error; - Result = result; - Status = status; - } - - [JsonConverter(typeof(StringEnumConverter))] - public enum StatusEnum - { - [EnumMember(Value = "pending")] - Pending = 0, - - [EnumMember(Value = "success")] - Success = 1, - - [EnumMember(Value = "error")] - Error = 2, - } - - [DataMember(Name = "action_attempt_id", IsRequired = true, EmitDefaultValue = false)] - public string ActionAttemptId { get; set; } - - [DataMember(Name = "action_type", IsRequired = true, EmitDefaultValue = false)] - public override string ActionType { get; } = "SET_COOL"; - - [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] - public Object Error { get; set; } - - [DataMember(Name = "result", IsRequired = false, EmitDefaultValue = false)] - public Object Result { get; set; } - - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] - public ActionAttemptSetCool.StatusEnum Status { get; set; } - - public override string ToString() - { - JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); - - StringWriter stringWriter = new StringWriter( - new StringBuilder(256), - System.Globalization.CultureInfo.InvariantCulture - ); - using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) - { - jsonTextWriter.IndentChar = ' '; - jsonTextWriter.Indentation = 2; - jsonTextWriter.Formatting = Formatting.Indented; - jsonSerializer.Serialize(jsonTextWriter, this, null); - } - - return stringWriter.ToString(); - } - } - - [DataContract(Name = "seamModel_actionAttemptSetHeat_model")] - public class ActionAttemptSetHeat : ActionAttempt - { - [JsonConstructorAttribute] - protected ActionAttemptSetHeat() { } - - public ActionAttemptSetHeat( - string actionAttemptId = default, - string actionType = default, - Object error = default, - Object result = default, - ActionAttemptSetHeat.StatusEnum status = default - ) - { - ActionAttemptId = actionAttemptId; - ActionType = actionType; - Error = error; - Result = result; - Status = status; - } - - [JsonConverter(typeof(StringEnumConverter))] - public enum StatusEnum - { - [EnumMember(Value = "pending")] - Pending = 0, - - [EnumMember(Value = "success")] - Success = 1, - - [EnumMember(Value = "error")] - Error = 2, - } - - [DataMember(Name = "action_attempt_id", IsRequired = true, EmitDefaultValue = false)] - public string ActionAttemptId { get; set; } - - [DataMember(Name = "action_type", IsRequired = true, EmitDefaultValue = false)] - public override string ActionType { get; } = "SET_HEAT"; - - [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] - public Object Error { get; set; } - - [DataMember(Name = "result", IsRequired = false, EmitDefaultValue = false)] - public Object Result { get; set; } - - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] - public ActionAttemptSetHeat.StatusEnum Status { get; set; } - - public override string ToString() - { - JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); - - StringWriter stringWriter = new StringWriter( - new StringBuilder(256), - System.Globalization.CultureInfo.InvariantCulture - ); - using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) - { - jsonTextWriter.IndentChar = ' '; - jsonTextWriter.Indentation = 2; - jsonTextWriter.Formatting = Formatting.Indented; - jsonSerializer.Serialize(jsonTextWriter, this, null); - } - - return stringWriter.ToString(); - } - } - - [DataContract(Name = "seamModel_actionAttemptSetHeatCool_model")] - public class ActionAttemptSetHeatCool : ActionAttempt - { - [JsonConstructorAttribute] - protected ActionAttemptSetHeatCool() { } - - public ActionAttemptSetHeatCool( - string actionAttemptId = default, - string actionType = default, - Object error = default, - Object result = default, - ActionAttemptSetHeatCool.StatusEnum status = default - ) - { - ActionAttemptId = actionAttemptId; - ActionType = actionType; - Error = error; - Result = result; - Status = status; - } - - [JsonConverter(typeof(StringEnumConverter))] - public enum StatusEnum - { - [EnumMember(Value = "pending")] - Pending = 0, - - [EnumMember(Value = "success")] - Success = 1, - - [EnumMember(Value = "error")] - Error = 2, - } - - [DataMember(Name = "action_attempt_id", IsRequired = true, EmitDefaultValue = false)] - public string ActionAttemptId { get; set; } - - [DataMember(Name = "action_type", IsRequired = true, EmitDefaultValue = false)] - public override string ActionType { get; } = "SET_HEAT_COOL"; - - [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] - public Object Error { get; set; } - - [DataMember(Name = "result", IsRequired = false, EmitDefaultValue = false)] - public Object Result { get; set; } - - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] - public ActionAttemptSetHeatCool.StatusEnum Status { get; set; } - - public override string ToString() - { - JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); - - StringWriter stringWriter = new StringWriter( - new StringBuilder(256), - System.Globalization.CultureInfo.InvariantCulture - ); - using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) - { - jsonTextWriter.IndentChar = ' '; - jsonTextWriter.Indentation = 2; - jsonTextWriter.Formatting = Formatting.Indented; - jsonSerializer.Serialize(jsonTextWriter, this, null); - } - - return stringWriter.ToString(); - } - } - [DataContract(Name = "seamModel_actionAttemptSetFanMode_model")] public class ActionAttemptSetFanMode : ActionAttempt { @@ -660,18 +450,18 @@ public override string ToString() } } - [DataContract(Name = "seamModel_actionAttemptSetThermostatOff_model")] - public class ActionAttemptSetThermostatOff : ActionAttempt + [DataContract(Name = "seamModel_actionAttemptSetHvacMode_model")] + public class ActionAttemptSetHvacMode : ActionAttempt { [JsonConstructorAttribute] - protected ActionAttemptSetThermostatOff() { } + protected ActionAttemptSetHvacMode() { } - public ActionAttemptSetThermostatOff( + public ActionAttemptSetHvacMode( string actionAttemptId = default, string actionType = default, Object error = default, Object result = default, - ActionAttemptSetThermostatOff.StatusEnum status = default + ActionAttemptSetHvacMode.StatusEnum status = default ) { ActionAttemptId = actionAttemptId; @@ -698,7 +488,7 @@ public enum StatusEnum public string ActionAttemptId { get; set; } [DataMember(Name = "action_type", IsRequired = true, EmitDefaultValue = false)] - public override string ActionType { get; } = "SET_THERMOSTAT_OFF"; + public override string ActionType { get; } = "SET_HVAC_MODE"; [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] public Object Error { get; set; } @@ -707,7 +497,7 @@ public enum StatusEnum public Object Result { get; set; } [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] - public ActionAttemptSetThermostatOff.StatusEnum Status { get; set; } + public ActionAttemptSetHvacMode.StatusEnum Status { get; set; } public override string ToString() { diff --git a/output/csharp/src/Seam/Model/ClientSession.cs b/output/csharp/src/Seam/Model/ClientSession.cs index 4812e82..8218735 100644 --- a/output/csharp/src/Seam/Model/ClientSession.cs +++ b/output/csharp/src/Seam/Model/ClientSession.cs @@ -19,6 +19,7 @@ public ClientSession( List connectedAccountIds = default, string createdAt = default, float deviceCount = default, + string expiresAt = default, string token = default, string? userIdentifierKey = default, List userIdentityIds = default, @@ -30,6 +31,7 @@ public ClientSession( ConnectedAccountIds = connectedAccountIds; CreatedAt = createdAt; DeviceCount = deviceCount; + ExpiresAt = expiresAt; Token = token; UserIdentifierKey = userIdentifierKey; UserIdentityIds = userIdentityIds; @@ -51,6 +53,9 @@ public ClientSession( [DataMember(Name = "device_count", IsRequired = true, EmitDefaultValue = false)] public float DeviceCount { get; set; } + [DataMember(Name = "expires_at", IsRequired = true, EmitDefaultValue = false)] + public string ExpiresAt { get; set; } + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = false)] public string Token { get; set; } diff --git a/output/csharp/src/Seam/Model/Device.cs b/output/csharp/src/Seam/Model/Device.cs index a4ea7fe..11eeda6 100644 --- a/output/csharp/src/Seam/Model/Device.cs +++ b/output/csharp/src/Seam/Model/Device.cs @@ -189,11 +189,14 @@ public enum DeviceTypeEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [DataMember(Name = "can_hvac_cool", IsRequired = false, EmitDefaultValue = false)] @@ -393,6 +396,7 @@ public DeviceProperties( DevicePropertiesSchlageMetadata? schlageMetadata = default, DevicePropertiesSeamBridgeMetadata? seamBridgeMetadata = default, DevicePropertiesSmartthingsMetadata? smartthingsMetadata = default, + DevicePropertiesTadoMetadata? tadoMetadata = default, DevicePropertiesTedeeMetadata? tedeeMetadata = default, DevicePropertiesTtlockMetadata? ttlockMetadata = default, DevicePropertiesTwoNMetadata? twoNMetadata = default, @@ -480,6 +484,7 @@ public DeviceProperties( SchlageMetadata = schlageMetadata; SeamBridgeMetadata = seamBridgeMetadata; SmartthingsMetadata = smartthingsMetadata; + TadoMetadata = tadoMetadata; TedeeMetadata = tedeeMetadata; TtlockMetadata = ttlockMetadata; TwoNMetadata = twoNMetadata; @@ -733,6 +738,9 @@ public enum FanModeSettingEnum [DataMember(Name = "smartthings_metadata", IsRequired = false, EmitDefaultValue = false)] public DevicePropertiesSmartthingsMetadata? SmartthingsMetadata { get; set; } + [DataMember(Name = "tado_metadata", IsRequired = false, EmitDefaultValue = false)] + public DevicePropertiesTadoMetadata? TadoMetadata { get; set; } + [DataMember(Name = "tedee_metadata", IsRequired = false, EmitDefaultValue = false)] public DevicePropertiesTedeeMetadata? TedeeMetadata { get; set; } @@ -2930,6 +2938,47 @@ public override string ToString() } } + [DataContract(Name = "seamModel_devicePropertiesTadoMetadata_model")] + public class DevicePropertiesTadoMetadata + { + [JsonConstructorAttribute] + protected DevicePropertiesTadoMetadata() { } + + public DevicePropertiesTadoMetadata( + string? deviceType = default, + string? serialNo = default + ) + { + DeviceType = deviceType; + SerialNo = serialNo; + } + + [DataMember(Name = "device_type", IsRequired = false, EmitDefaultValue = false)] + public string? DeviceType { get; set; } + + [DataMember(Name = "serial_no", IsRequired = false, EmitDefaultValue = false)] + public string? SerialNo { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } + } + [DataContract(Name = "seamModel_devicePropertiesTedeeMetadata_model")] public class DevicePropertiesTedeeMetadata { diff --git a/output/csharp/src/Seam/Model/DeviceProvider.cs b/output/csharp/src/Seam/Model/DeviceProvider.cs index c46bec2..c00f922 100644 --- a/output/csharp/src/Seam/Model/DeviceProvider.cs +++ b/output/csharp/src/Seam/Model/DeviceProvider.cs @@ -179,6 +179,12 @@ public enum DeviceProviderNameEnum [EnumMember(Value = "assa_abloy_vostio_credential_service")] AssaAbloyVostioCredentialService = 42, + + [EnumMember(Value = "tado")] + Tado = 43, + + [EnumMember(Value = "salto_space")] + SaltoSpace = 44, } [JsonConverter(typeof(StringEnumConverter))] diff --git a/output/csharp/src/Seam/Model/UnmanagedDevice.cs b/output/csharp/src/Seam/Model/UnmanagedDevice.cs index 9809f8c..88a1b22 100644 --- a/output/csharp/src/Seam/Model/UnmanagedDevice.cs +++ b/output/csharp/src/Seam/Model/UnmanagedDevice.cs @@ -183,11 +183,14 @@ public enum DeviceTypeEnum [EnumMember(Value = "honeywell_resideo_thermostat")] HoneywellResideoThermostat = 31, + [EnumMember(Value = "tado_thermostat")] + TadoThermostat = 32, + [EnumMember(Value = "ios_phone")] - IosPhone = 32, + IosPhone = 33, [EnumMember(Value = "android_phone")] - AndroidPhone = 33, + AndroidPhone = 34, } [DataMember(Name = "can_hvac_cool", IsRequired = false, EmitDefaultValue = false)] diff --git a/output/csharp/src/Seam/Seam.csproj b/output/csharp/src/Seam/Seam.csproj index bdaff65..8e8cc16 100644 --- a/output/csharp/src/Seam/Seam.csproj +++ b/output/csharp/src/Seam/Seam.csproj @@ -7,7 +7,7 @@ Seam - 0.10.1 + 0.11.0 Seam