Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions output/csharp/src/Seam/Model/ConnectedAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ConnectedAccount
protected ConnectedAccount() { }

public ConnectedAccount(
List<ConnectedAccount.AcceptedCapabilitiesEnum> acceptedCapabilities = default,
string? accountType = default,
string accountTypeDisplayName = default,
bool automaticallyManageNewDevices = default,
Expand All @@ -27,6 +28,7 @@ public ConnectedAccount(
List<ConnectedAccountWarnings> warnings = default
)
{
AcceptedCapabilities = acceptedCapabilities;
AccountType = accountType;
AccountTypeDisplayName = accountTypeDisplayName;
AutomaticallyManageNewDevices = automaticallyManageNewDevices;
Expand All @@ -39,6 +41,25 @@ public ConnectedAccount(
Warnings = warnings;
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum AcceptedCapabilitiesEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "lock")]
Lock = 1,

[EnumMember(Value = "thermostat")]
Thermostat = 2,

[EnumMember(Value = "noise_sensor")]
NoiseSensor = 3,

[EnumMember(Value = "access_control")]
AccessControl = 4,
}

[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.KnownSubType(
typeof(ConnectedAccountErrorsSaltoKsSubscriptionLimitExceeded),
Expand Down Expand Up @@ -697,6 +718,9 @@ public override string ToString()
}
}

[DataMember(Name = "accepted_capabilities", IsRequired = true, EmitDefaultValue = false)]
public List<ConnectedAccount.AcceptedCapabilitiesEnum> AcceptedCapabilities { get; set; }

[DataMember(Name = "account_type", IsRequired = false, EmitDefaultValue = false)]
public string? AccountType { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion output/csharp/src/Seam/Seam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PackageId>Seam</PackageId>

<PackageVersion>0.79.0</PackageVersion>
<PackageVersion>0.80.0</PackageVersion>

<Authors>Seam</Authors>

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@seamapi/nextlove-sdk-generator": "^1.17.4",
"@seamapi/types": "^1.423.4",
"@seamapi/types": "^1.424.0",
"@types/node": "^18.19.11",
"ava": "^5.0.1",
"axios": "^1.5.0",
Expand Down
Loading