diff --git a/package-lock.json b/package-lock.json
index c496b2a..686166d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,8 +10,8 @@
"license": "MIT",
"devDependencies": {
"@seamapi/blueprint": "^1.12.0",
- "@seamapi/smith": "^1.1.0",
- "@seamapi/types": "1.1092.0",
+ "@seamapi/smith": "^1.1.1",
+ "@seamapi/types": "1.1181.0",
"change-case": "^5.4.4",
"execa": "^10.0.1",
"prettier": "^3.0.0"
@@ -805,9 +805,9 @@
}
},
"node_modules/@seamapi/smith": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.1.0.tgz",
- "integrity": "sha512-sI542rvN7Kq+whft3Ff5R6RRB7ORu2y23TGZOHtvEoxNp2OIYwf/wSuuY+7fZhZvIMvDsXSQJQyytOfrgKpxgg==",
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.1.1.tgz",
+ "integrity": "sha512-AcDsvtfhrfJLfkZ2m7uXCgkQL5rpaCQDE+d71f9mc3lUAv3otZv4IkNv0hvK4wjaaRJ3QEp+9tiu0fR4M64jYw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -838,9 +838,9 @@
}
},
"node_modules/@seamapi/types": {
- "version": "1.1092.0",
- "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1092.0.tgz",
- "integrity": "sha512-99Wi8sSk4RZ2g9/iRJiONtIp9Hc/c2Xe5SeIIacbwxKbqkpmiTi8tQO0+M2qGXVzYuoO3xM/lBkEy4kUAhe/Ew==",
+ "version": "1.1181.0",
+ "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1181.0.tgz",
+ "integrity": "sha512-Ba2I7kLW5RxN3CnCacEF+1nvLDwpS61vGSkPeB4IqeL4Ccy4NtTRQMlyCDQNNhT9y3A6WAQrz87u2XhSYu1XUw==",
"dev": true,
"license": "MIT",
"engines": {
diff --git a/package.json b/package.json
index 623df69..7ae1920 100644
--- a/package.json
+++ b/package.json
@@ -32,8 +32,8 @@
"packageManager": "npm@11.19.0",
"devDependencies": {
"@seamapi/blueprint": "^1.12.0",
- "@seamapi/smith": "^1.1.0",
- "@seamapi/types": "1.1092.0",
+ "@seamapi/smith": "^1.1.1",
+ "@seamapi/types": "1.1181.0",
"change-case": "^5.4.4",
"execa": "^10.0.1",
"prettier": "^3.0.0"
diff --git a/src/Seam/Api/AccessCodes.cs b/src/Seam/Api/AccessCodes.cs
index e2cc36c..163c02e 100644
--- a/src/Seam/Api/AccessCodes.cs
+++ b/src/Seam/Api/AccessCodes.cs
@@ -1145,25 +1145,25 @@ public ListRequest(
}
///
- /// IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// IDs of the access codes that you want to retrieve.
///
[DataMember(Name = "access_code_ids", IsRequired = false, EmitDefaultValue = false)]
public List? AccessCodeIds { get; set; }
///
- /// ID of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// ID of the access grant for which you want to list access codes.
///
[DataMember(Name = "access_grant_id", IsRequired = false, EmitDefaultValue = false)]
public string? AccessGrantId { get; set; }
///
- /// Key of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// Key of the access grant for which you want to list access codes.
///
[DataMember(Name = "access_grant_key", IsRequired = false, EmitDefaultValue = false)]
public string? AccessGrantKey { get; set; }
///
- /// ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// ID of the access method for which you want to list access codes.
///
[DataMember(Name = "access_method_id", IsRequired = false, EmitDefaultValue = false)]
public string? AccessMethodId { get; set; }
@@ -1175,7 +1175,7 @@ public ListRequest(
public string? CustomerKey { get; set; }
///
- /// ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// ID of the device for which you want to list access codes.
///
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
public string? DeviceId { get; set; }
@@ -1264,7 +1264,7 @@ public override string ToString()
///
/// Returns a list of all [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).
///
- /// Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// Without `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`, returns access codes across the workspace, or across the customer when `customer_key` is set. Use `limit` and `page_cursor` to page through them.
///
public List List(ListRequest request)
{
@@ -1279,7 +1279,7 @@ public List List(ListRequest request)
///
/// Returns a list of all [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).
///
- /// Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// Without `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`, returns access codes across the workspace, or across the customer when `customer_key` is set. Use `limit` and `page_cursor` to page through them.
///
public List List(
List? accessCodeIds = default,
@@ -1313,7 +1313,7 @@ public List List(
///
/// Returns a list of all [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).
///
- /// Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// Without `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`, returns access codes across the workspace, or across the customer when `customer_key` is set. Use `limit` and `page_cursor` to page through them.
///
public async Task> ListAsync(ListRequest request)
{
@@ -1327,7 +1327,7 @@ public async Task> ListAsync(ListRequest request)
///
/// Returns a list of all [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).
///
- /// Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
+ /// Without `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`, returns access codes across the workspace, or across the customer when `customer_key` is set. Use `limit` and `page_cursor` to page through them.
///
public async Task> ListAsync(
List? accessCodeIds = default,
diff --git a/src/Seam/Api/AccessMethods.cs b/src/Seam/Api/AccessMethods.cs
index 030b60e..4d812d9 100644
--- a/src/Seam/Api/AccessMethods.cs
+++ b/src/Seam/Api/AccessMethods.cs
@@ -759,6 +759,7 @@ public ListRequest(
string? accessGrantId = default,
string? accessGrantKey = default,
string? acsEntranceId = default,
+ string? customerKey = default,
string? deviceId = default,
int? limit = default,
string? pageCursor = default,
@@ -769,6 +770,7 @@ public ListRequest(
AccessGrantId = accessGrantId;
AccessGrantKey = accessGrantKey;
AcsEntranceId = acsEntranceId;
+ CustomerKey = customerKey;
DeviceId = deviceId;
Limit = limit;
PageCursor = pageCursor;
@@ -799,6 +801,12 @@ public ListRequest(
[DataMember(Name = "acs_entrance_id", IsRequired = false, EmitDefaultValue = false)]
public string? AcsEntranceId { get; set; }
+ ///
+ /// Customer key for which you want to list access methods.
+ ///
+ [DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? CustomerKey { get; set; }
+
///
/// ID of the device by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.
///
@@ -901,6 +909,7 @@ public List List(
string? accessGrantId = default,
string? accessGrantKey = default,
string? acsEntranceId = default,
+ string? customerKey = default,
string? deviceId = default,
int? limit = default,
string? pageCursor = default,
@@ -913,6 +922,7 @@ public List List(
accessGrantId: accessGrantId,
accessGrantKey: accessGrantKey,
acsEntranceId: acsEntranceId,
+ customerKey: customerKey,
deviceId: deviceId,
limit: limit,
pageCursor: pageCursor,
@@ -941,6 +951,7 @@ public async Task> ListAsync(
string? accessGrantId = default,
string? accessGrantKey = default,
string? acsEntranceId = default,
+ string? customerKey = default,
string? deviceId = default,
int? limit = default,
string? pageCursor = default,
@@ -954,6 +965,7 @@ await ListAsync(
accessGrantId: accessGrantId,
accessGrantKey: accessGrantKey,
acsEntranceId: acsEntranceId,
+ customerKey: customerKey,
deviceId: deviceId,
limit: limit,
pageCursor: pageCursor,
diff --git a/src/Seam/Api/ClientSessions.cs b/src/Seam/Api/ClientSessions.cs
index 255e5fe..87d2040 100644
--- a/src/Seam/Api/ClientSessions.cs
+++ b/src/Seam/Api/ClientSessions.cs
@@ -834,6 +834,9 @@ protected ListRequest() { }
public ListRequest(
string? clientSessionId = default,
string? connectWebviewId = default,
+ string? customerKey = default,
+ int? limit = default,
+ string? pageCursor = default,
string? userIdentifierKey = default,
string? userIdentityId = default,
bool? withoutUserIdentifierKey = default
@@ -841,6 +844,9 @@ public ListRequest(
{
ClientSessionId = clientSessionId;
ConnectWebviewId = connectWebviewId;
+ CustomerKey = customerKey;
+ Limit = limit;
+ PageCursor = pageCursor;
UserIdentifierKey = userIdentifierKey;
UserIdentityId = userIdentityId;
WithoutUserIdentifierKey = withoutUserIdentifierKey;
@@ -858,6 +864,24 @@ public ListRequest(
[DataMember(Name = "connect_webview_id", IsRequired = false, EmitDefaultValue = false)]
public string? ConnectWebviewId { get; set; }
+ ///
+ /// Customer key for which you want to list client sessions.
+ ///
+ [DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? CustomerKey { get; set; }
+
+ ///
+ /// Maximum number of records to return per page.
+ ///
+ [DataMember(Name = "limit", IsRequired = false, EmitDefaultValue = false)]
+ public int? Limit { get; set; }
+
+ ///
+ /// Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
+ ///
+ [DataMember(Name = "page_cursor", IsRequired = false, EmitDefaultValue = false)]
+ public string? PageCursor { get; set; }
+
///
/// Your user ID for the user by which you want to filter client sessions.
///
@@ -956,6 +980,9 @@ public List List(ListRequest request)
public List List(
string? clientSessionId = default,
string? connectWebviewId = default,
+ string? customerKey = default,
+ int? limit = default,
+ string? pageCursor = default,
string? userIdentifierKey = default,
string? userIdentityId = default,
bool? withoutUserIdentifierKey = default
@@ -965,6 +992,9 @@ public List List(
new ListRequest(
clientSessionId: clientSessionId,
connectWebviewId: connectWebviewId,
+ customerKey: customerKey,
+ limit: limit,
+ pageCursor: pageCursor,
userIdentifierKey: userIdentifierKey,
userIdentityId: userIdentityId,
withoutUserIdentifierKey: withoutUserIdentifierKey
@@ -990,6 +1020,9 @@ public async Task> ListAsync(ListRequest request)
public async Task> ListAsync(
string? clientSessionId = default,
string? connectWebviewId = default,
+ string? customerKey = default,
+ int? limit = default,
+ string? pageCursor = default,
string? userIdentifierKey = default,
string? userIdentityId = default,
bool? withoutUserIdentifierKey = default
@@ -1000,6 +1033,9 @@ await ListAsync(
new ListRequest(
clientSessionId: clientSessionId,
connectWebviewId: connectWebviewId,
+ customerKey: customerKey,
+ limit: limit,
+ pageCursor: pageCursor,
userIdentifierKey: userIdentifierKey,
userIdentityId: userIdentityId,
withoutUserIdentifierKey: withoutUserIdentifierKey
diff --git a/src/Seam/Api/ConnectWebviews.cs b/src/Seam/Api/ConnectWebviews.cs
index 88a3f2f..2d29013 100644
--- a/src/Seam/Api/ConnectWebviews.cs
+++ b/src/Seam/Api/ConnectWebviews.cs
@@ -75,6 +75,9 @@ public enum AcceptedCapabilitiesEnum
[EnumMember(Value = "camera")]
Camera = 5,
+
+ [EnumMember(Value = "speaker")]
+ Speaker = 6,
}
///
@@ -119,188 +122,203 @@ public enum AcceptedProvidersEnum
[EnumMember(Value = "yale")]
Yale = 11,
+ [EnumMember(Value = "yale_access")]
+ YaleAccess = 12,
+
+ [EnumMember(Value = "yale_home")]
+ YaleHome = 13,
+
[EnumMember(Value = "genie")]
- Genie = 12,
+ Genie = 14,
[EnumMember(Value = "doorking")]
- Doorking = 13,
+ Doorking = 15,
[EnumMember(Value = "salto")]
- Salto = 14,
+ Salto = 16,
[EnumMember(Value = "salto_ks")]
- SaltoKs = 15,
+ SaltoKs = 17,
[EnumMember(Value = "salto_ks_accept")]
- SaltoKsAccept = 16,
+ SaltoKsAccept = 18,
[EnumMember(Value = "lockly")]
- Lockly = 17,
+ Lockly = 19,
[EnumMember(Value = "ttlock")]
- Ttlock = 18,
+ Ttlock = 20,
[EnumMember(Value = "linear")]
- Linear = 19,
+ Linear = 21,
[EnumMember(Value = "noiseaware")]
- Noiseaware = 20,
+ Noiseaware = 22,
[EnumMember(Value = "nuki")]
- Nuki = 21,
+ Nuki = 23,
[EnumMember(Value = "igloo")]
- Igloo = 22,
+ Igloo = 24,
[EnumMember(Value = "kwikset")]
- Kwikset = 23,
+ Kwikset = 25,
[EnumMember(Value = "minut")]
- Minut = 24,
+ Minut = 26,
[EnumMember(Value = "my_2n")]
- My_2n = 25,
+ My_2n = 27,
[EnumMember(Value = "controlbyweb")]
- Controlbyweb = 26,
+ Controlbyweb = 28,
[EnumMember(Value = "nest")]
- Nest = 27,
+ Nest = 29,
[EnumMember(Value = "igloohome")]
- Igloohome = 28,
+ Igloohome = 30,
[EnumMember(Value = "ecobee")]
- Ecobee = 29,
+ Ecobee = 31,
[EnumMember(Value = "four_suites")]
- FourSuites = 30,
+ FourSuites = 32,
[EnumMember(Value = "dormakaba_oracode")]
- DormakabaOracode = 31,
+ DormakabaOracode = 33,
[EnumMember(Value = "dormakaba_oracode_iho")]
- DormakabaOracodeIho = 32,
+ DormakabaOracodeIho = 34,
[EnumMember(Value = "pti")]
- Pti = 33,
+ Pti = 35,
[EnumMember(Value = "wyze")]
- Wyze = 34,
+ Wyze = 36,
[EnumMember(Value = "seam_passport")]
- SeamPassport = 35,
+ SeamPassport = 37,
[EnumMember(Value = "visionline")]
- Visionline = 36,
+ Visionline = 38,
[EnumMember(Value = "assa_abloy_credential_service")]
- AssaAbloyCredentialService = 37,
+ AssaAbloyCredentialService = 39,
[EnumMember(Value = "tedee")]
- Tedee = 38,
+ Tedee = 40,
[EnumMember(Value = "honeywell_resideo")]
- HoneywellResideo = 39,
+ HoneywellResideo = 41,
[EnumMember(Value = "first_alert")]
- FirstAlert = 40,
+ FirstAlert = 42,
[EnumMember(Value = "latch")]
- Latch = 41,
+ Latch = 43,
[EnumMember(Value = "akiles")]
- Akiles = 42,
+ Akiles = 44,
[EnumMember(Value = "assa_abloy_vostio")]
- AssaAbloyVostio = 43,
+ AssaAbloyVostio = 45,
[EnumMember(Value = "assa_abloy_vostio_credential_service")]
- AssaAbloyVostioCredentialService = 44,
+ AssaAbloyVostioCredentialService = 46,
[EnumMember(Value = "tado")]
- Tado = 45,
+ Tado = 47,
[EnumMember(Value = "salto_space")]
- SaltoSpace = 46,
+ SaltoSpace = 48,
[EnumMember(Value = "sensi")]
- Sensi = 47,
+ Sensi = 49,
[EnumMember(Value = "keynest")]
- Keynest = 48,
+ Keynest = 50,
[EnumMember(Value = "korelock")]
- Korelock = 49,
+ Korelock = 51,
[EnumMember(Value = "keyincode")]
- Keyincode = 50,
+ Keyincode = 52,
[EnumMember(Value = "dormakaba_ambiance")]
- DormakabaAmbiance = 51,
+ DormakabaAmbiance = 53,
[EnumMember(Value = "ultraloq")]
- Ultraloq = 52,
+ Ultraloq = 54,
[EnumMember(Value = "yacan")]
- Yacan = 53,
+ Yacan = 55,
[EnumMember(Value = "dusaw")]
- Dusaw = 54,
+ Dusaw = 56,
[EnumMember(Value = "sifely")]
- Sifely = 55,
+ Sifely = 57,
[EnumMember(Value = "thirty_three_lock")]
- ThirtyThreeLock = 56,
+ ThirtyThreeLock = 58,
[EnumMember(Value = "ring")]
- Ring = 57,
+ Ring = 59,
[EnumMember(Value = "tapo")]
- Tapo = 58,
+ Tapo = 60,
[EnumMember(Value = "arlo")]
- Arlo = 59,
+ Arlo = 61,
[EnumMember(Value = "reolink")]
- Reolink = 60,
+ Reolink = 62,
+
+ [EnumMember(Value = "unifi_protect")]
+ UnifiProtect = 63,
+
+ [EnumMember(Value = "yale_connect")]
+ YaleConnect = 64,
[EnumMember(Value = "ical")]
- Ical = 61,
+ Ical = 65,
[EnumMember(Value = "lodgify")]
- Lodgify = 62,
+ Lodgify = 66,
[EnumMember(Value = "hostaway")]
- Hostaway = 63,
+ Hostaway = 67,
[EnumMember(Value = "guesty")]
- Guesty = 64,
+ Guesty = 68,
[EnumMember(Value = "acuity_scheduling")]
- AcuityScheduling = 65,
+ AcuityScheduling = 69,
[EnumMember(Value = "omnitec")]
- Omnitec = 66,
+ Omnitec = 70,
[EnumMember(Value = "kisi")]
- Kisi = 67,
+ Kisi = 71,
[EnumMember(Value = "aqara")]
- Aqara = 68,
+ Aqara = 72,
- [EnumMember(Value = "yale_access")]
- YaleAccess = 69,
+ [EnumMember(Value = "eufy")]
+ Eufy = 73,
+
+ [EnumMember(Value = "sonos")]
+ Sonos = 74,
[EnumMember(Value = "hid_cm")]
- HidCm = 70,
+ HidCm = 75,
[EnumMember(Value = "google_nest")]
- GoogleNest = 71,
+ GoogleNest = 76,
[EnumMember(Value = "slack")]
- Slack = 72,
+ Slack = 77,
}
///
diff --git a/src/Seam/Api/ConnectedAccounts.cs b/src/Seam/Api/ConnectedAccounts.cs
index 3258faa..531e137 100644
--- a/src/Seam/Api/ConnectedAccounts.cs
+++ b/src/Seam/Api/ConnectedAccounts.cs
@@ -575,6 +575,9 @@ public enum AcceptedCapabilitiesEnum
[EnumMember(Value = "camera")]
Camera = 5,
+
+ [EnumMember(Value = "speaker")]
+ Speaker = 6,
}
///
diff --git a/src/Seam/Api/Customers.cs b/src/Seam/Api/Customers.cs
index f66be24..11e811c 100644
--- a/src/Seam/Api/Customers.cs
+++ b/src/Seam/Api/Customers.cs
@@ -150,6 +150,9 @@ public enum NavigationModeEnum
)]
public bool? ExcludeLocalePicker { get; set; }
+ ///
+ /// Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them.
+ ///
[DataMember(Name = "features", IsRequired = false, EmitDefaultValue = false)]
public CreatePortalRequestFeatures? Features { get; set; }
@@ -215,9 +218,11 @@ public CreatePortalRequestCustomerData(
List? buildings = default,
List? commonAreas = default,
string? customerKey = default,
+ string? customizationProfileId = default,
List? facilities = default,
List? guests = default,
List? listings = default,
+ float? lowBatteryAlertThreshold = default,
List? properties = default,
List? propertyListings = default,
List? reservations = default,
@@ -237,9 +242,11 @@ public CreatePortalRequestCustomerData(
Buildings = buildings;
CommonAreas = commonAreas;
CustomerKey = customerKey;
+ CustomizationProfileId = customizationProfileId;
Facilities = facilities;
Guests = guests;
Listings = listings;
+ LowBatteryAlertThreshold = lowBatteryAlertThreshold;
Properties = properties;
PropertyListings = propertyListings;
Reservations = reservations;
@@ -284,6 +291,16 @@ public CreatePortalRequestCustomerData(
[DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
public string? CustomerKey { get; set; }
+ ///
+ /// ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.
+ ///
+ [DataMember(
+ Name = "customization_profile_id",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public string? CustomizationProfileId { get; set; }
+
///
/// List of gym or fitness facilities.
///
@@ -302,6 +319,16 @@ public CreatePortalRequestCustomerData(
[DataMember(Name = "listings", IsRequired = false, EmitDefaultValue = false)]
public List? Listings { get; set; }
+ ///
+ /// Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.
+ ///
+ [DataMember(
+ Name = "low_battery_alert_threshold",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public float? LowBatteryAlertThreshold { get; set; }
+
///
/// List of short-term rental properties.
///
@@ -490,7 +517,7 @@ public CreatePortalRequestCustomerDataAccessGrants(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -665,7 +692,7 @@ public CreatePortalRequestCustomerDataBookings(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -1131,6 +1158,8 @@ public CreatePortalRequestCustomerDataReservations(
List? roomKeys = default,
List? spaceKeys = default,
string? startsAt = default,
+ List? subReservations =
+ default,
string? tenantKey = default,
List? unitKeys = default,
string? userIdentityKey = default,
@@ -1152,6 +1181,7 @@ public CreatePortalRequestCustomerDataReservations(
RoomKeys = roomKeys;
SpaceKeys = spaceKeys;
StartsAt = startsAt;
+ SubReservations = subReservations;
TenantKey = tenantKey;
UnitKeys = unitKeys;
UserIdentityKey = userIdentityKey;
@@ -1207,7 +1237,7 @@ public CreatePortalRequestCustomerDataReservations(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -1248,6 +1278,203 @@ public CreatePortalRequestCustomerDataReservations(
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
public string? StartsAt { get; set; }
+ ///
+ /// Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged.
+ ///
+ [DataMember(Name = "sub_reservations", IsRequired = false, EmitDefaultValue = false)]
+ public List? SubReservations { get; set; }
+
+ ///
+ /// Tenant key associated with the access grant.
+ ///
+ [DataMember(Name = "tenant_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? TenantKey { get; set; }
+
+ ///
+ /// Unit keys associated with the access grant.
+ ///
+ [DataMember(Name = "unit_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? UnitKeys { get; set; }
+
+ ///
+ /// User identity key associated with the access grant.
+ ///
+ [DataMember(Name = "user_identity_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? UserIdentityKey { get; set; }
+
+ ///
+ /// User key associated with the access grant.
+ ///
+ [DataMember(Name = "user_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? UserKey { 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 = "createPortalRequestCustomerDataReservationsSubReservations_model")]
+ public class CreatePortalRequestCustomerDataReservationsSubReservations
+ {
+ [JsonConstructorAttribute]
+ protected CreatePortalRequestCustomerDataReservationsSubReservations() { }
+
+ public CreatePortalRequestCustomerDataReservationsSubReservations(
+ List? buildingKeys = default,
+ List? commonAreaKeys = default,
+ object? customMetadata = default,
+ string? endsAt = default,
+ List? facilityKeys = default,
+ string? guestKey = default,
+ bool? isPrimary = default,
+ List? listingKeys = default,
+ string? name = default,
+ string? preferredCode = default,
+ List? propertyKeys = default,
+ string? residentKey = default,
+ List? roomKeys = default,
+ List? spaceKeys = default,
+ string? startsAt = default,
+ string? subReservationKey = default,
+ string? tenantKey = default,
+ List? unitKeys = default,
+ string? userIdentityKey = default,
+ string? userKey = default
+ )
+ {
+ BuildingKeys = buildingKeys;
+ CommonAreaKeys = commonAreaKeys;
+ CustomMetadata = customMetadata;
+ EndsAt = endsAt;
+ FacilityKeys = facilityKeys;
+ GuestKey = guestKey;
+ IsPrimary = isPrimary;
+ ListingKeys = listingKeys;
+ Name = name;
+ PreferredCode = preferredCode;
+ PropertyKeys = propertyKeys;
+ ResidentKey = residentKey;
+ RoomKeys = roomKeys;
+ SpaceKeys = spaceKeys;
+ StartsAt = startsAt;
+ SubReservationKey = subReservationKey;
+ TenantKey = tenantKey;
+ UnitKeys = unitKeys;
+ UserIdentityKey = userIdentityKey;
+ UserKey = userKey;
+ }
+
+ ///
+ /// Building keys associated with the access grant.
+ ///
+ [DataMember(Name = "building_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? BuildingKeys { get; set; }
+
+ ///
+ /// Common area keys associated with the access grant.
+ ///
+ [DataMember(Name = "common_area_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? CommonAreaKeys { get; set; }
+
+ ///
+ /// Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata.
+ ///
+ [DataMember(Name = "custom_metadata", IsRequired = false, EmitDefaultValue = false)]
+ public object? CustomMetadata { get; set; }
+
+ ///
+ /// Ending date and time for the access grant.
+ ///
+ [DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)]
+ public string? EndsAt { get; set; }
+
+ ///
+ /// Facility keys associated with the access grant.
+ ///
+ [DataMember(Name = "facility_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? FacilityKeys { get; set; }
+
+ ///
+ /// Guest key associated with the access grant.
+ ///
+ [DataMember(Name = "guest_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? GuestKey { get; set; }
+
+ ///
+ /// Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.
+ ///
+ [DataMember(Name = "is_primary", IsRequired = false, EmitDefaultValue = false)]
+ public bool? IsPrimary { get; set; }
+
+ ///
+ /// Listing keys associated with the access grant.
+ ///
+ [DataMember(Name = "listing_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? ListingKeys { get; set; }
+
+ ///
+ /// Your name for this access grant resource.
+ ///
+ [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
+ public string? Name { get; set; }
+
+ ///
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
+ ///
+ [DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
+ public string? PreferredCode { get; set; }
+
+ ///
+ /// Property keys associated with the access grant.
+ ///
+ [DataMember(Name = "property_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? PropertyKeys { get; set; }
+
+ ///
+ /// Resident key associated with the access grant.
+ ///
+ [DataMember(Name = "resident_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? ResidentKey { get; set; }
+
+ ///
+ /// Room keys associated with the access grant.
+ ///
+ [DataMember(Name = "room_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? RoomKeys { get; set; }
+
+ ///
+ /// Space keys associated with the access grant.
+ ///
+ [DataMember(Name = "space_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? SpaceKeys { get; set; }
+
+ ///
+ /// Starting date and time for the access grant.
+ ///
+ [DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
+ public string? StartsAt { get; set; }
+
+ ///
+ /// Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation.
+ ///
+ [DataMember(Name = "sub_reservation_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? SubReservationKey { get; set; }
+
///
/// Tenant key associated with the access grant.
///
@@ -2262,12 +2489,18 @@ public CreatePortalRequestFeaturesConfigure(
bool? allowAccessAutomationRuleCustomization = default,
bool? allowClimateAutomationRuleCustomization = default,
bool? allowInstantKeyCustomization = default,
+ bool? allowNotificationCustomization = default,
+ bool? allowSensorAutomationRuleCustomization = default,
+ bool? allowSoundAutomationRuleCustomization = default,
bool? exclude = default
)
{
AllowAccessAutomationRuleCustomization = allowAccessAutomationRuleCustomization;
AllowClimateAutomationRuleCustomization = allowClimateAutomationRuleCustomization;
AllowInstantKeyCustomization = allowInstantKeyCustomization;
+ AllowNotificationCustomization = allowNotificationCustomization;
+ AllowSensorAutomationRuleCustomization = allowSensorAutomationRuleCustomization;
+ AllowSoundAutomationRuleCustomization = allowSoundAutomationRuleCustomization;
Exclude = exclude;
}
@@ -2301,6 +2534,36 @@ public CreatePortalRequestFeaturesConfigure(
)]
public bool? AllowInstantKeyCustomization { get; set; }
+ ///
+ /// Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.
+ ///
+ [DataMember(
+ Name = "allow_notification_customization",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool? AllowNotificationCustomization { get; set; }
+
+ ///
+ /// Indicates whether the customer can customize the sensor automation rules for their properties.
+ ///
+ [DataMember(
+ Name = "allow_sensor_automation_rule_customization",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool? AllowSensorAutomationRuleCustomization { get; set; }
+
+ ///
+ /// Indicates whether the customer can customize the sound automation rules for their properties.
+ ///
+ [DataMember(
+ Name = "allow_sound_automation_rule_customization",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool? AllowSoundAutomationRuleCustomization { get; set; }
+
///
/// Whether to exclude this feature from the portal.
///
@@ -2393,6 +2656,7 @@ public CreatePortalRequestFeaturesManage(
default,
CreatePortalRequestFeaturesManageEvents? events = default,
bool? exclude = default,
+ bool? excludeDeviceManagement = default,
bool? excludeReservationManagement = default,
bool? excludeReservationTechnicalDetails = default,
bool? excludeStaffManagement = default
@@ -2401,6 +2665,7 @@ public CreatePortalRequestFeaturesManage(
DeviceManagementConfirmation = deviceManagementConfirmation;
Events = events;
Exclude = exclude;
+ ExcludeDeviceManagement = excludeDeviceManagement;
ExcludeReservationManagement = excludeReservationManagement;
ExcludeReservationTechnicalDetails = excludeReservationTechnicalDetails;
ExcludeStaffManagement = excludeStaffManagement;
@@ -2428,6 +2693,16 @@ public CreatePortalRequestFeaturesManage(
[DataMember(Name = "exclude", IsRequired = false, EmitDefaultValue = false)]
public bool? Exclude { get; set; }
+ ///
+ /// Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.
+ ///
+ [DataMember(
+ Name = "exclude_device_management",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool? ExcludeDeviceManagement { get; set; }
+
///
/// Indicates whether the customer can manage reservations for their properties.
///
@@ -3132,6 +3407,7 @@ public override string ToString()
///
/// Deletes customer data including resources like spaces, properties, rooms, users, etc.
/// This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
+ /// Space keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).
///
public void DeleteData(DeleteDataRequest request)
{
@@ -3143,6 +3419,7 @@ public void DeleteData(DeleteDataRequest request)
///
/// Deletes customer data including resources like spaces, properties, rooms, users, etc.
/// This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
+ /// Space keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).
///
public void DeleteData(
List? accessGrantKeys = default,
@@ -3194,6 +3471,7 @@ public void DeleteData(
///
/// Deletes customer data including resources like spaces, properties, rooms, users, etc.
/// This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
+ /// Space keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).
///
public async Task DeleteDataAsync(DeleteDataRequest request)
{
@@ -3205,6 +3483,7 @@ public async Task DeleteDataAsync(DeleteDataRequest request)
///
/// Deletes customer data including resources like spaces, properties, rooms, users, etc.
/// This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
+ /// Space keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).
///
public async Task DeleteDataAsync(
List? accessGrantKeys = default,
@@ -3268,9 +3547,11 @@ public PushDataRequest(
List? buildings = default,
List? commonAreas = default,
string customerKey = default,
+ string? customizationProfileId = default,
List? facilities = default,
List? guests = default,
List? listings = default,
+ float? lowBatteryAlertThreshold = default,
List? properties = default,
List? propertyListings = default,
List? reservations = default,
@@ -3290,9 +3571,11 @@ public PushDataRequest(
Buildings = buildings;
CommonAreas = commonAreas;
CustomerKey = customerKey;
+ CustomizationProfileId = customizationProfileId;
Facilities = facilities;
Guests = guests;
Listings = listings;
+ LowBatteryAlertThreshold = lowBatteryAlertThreshold;
Properties = properties;
PropertyListings = propertyListings;
Reservations = reservations;
@@ -3337,6 +3620,16 @@ public PushDataRequest(
[DataMember(Name = "customer_key", IsRequired = true, EmitDefaultValue = false)]
public string CustomerKey { get; set; }
+ ///
+ /// ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.
+ ///
+ [DataMember(
+ Name = "customization_profile_id",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public string? CustomizationProfileId { get; set; }
+
///
/// List of gym or fitness facilities.
///
@@ -3355,6 +3648,16 @@ public PushDataRequest(
[DataMember(Name = "listings", IsRequired = false, EmitDefaultValue = false)]
public List? Listings { get; set; }
+ ///
+ /// Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.
+ ///
+ [DataMember(
+ Name = "low_battery_alert_threshold",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public float? LowBatteryAlertThreshold { get; set; }
+
///
/// List of short-term rental properties.
///
@@ -3543,7 +3846,7 @@ public PushDataRequestAccessGrants(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -3718,7 +4021,7 @@ public PushDataRequestBookings(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -4172,6 +4475,7 @@ public PushDataRequestReservations(
List? roomKeys = default,
List? spaceKeys = default,
string? startsAt = default,
+ List? subReservations = default,
string? tenantKey = default,
List? unitKeys = default,
string? userIdentityKey = default,
@@ -4193,6 +4497,7 @@ public PushDataRequestReservations(
RoomKeys = roomKeys;
SpaceKeys = spaceKeys;
StartsAt = startsAt;
+ SubReservations = subReservations;
TenantKey = tenantKey;
UnitKeys = unitKeys;
UserIdentityKey = userIdentityKey;
@@ -4248,7 +4553,7 @@ public PushDataRequestReservations(
public string? Name { get; set; }
///
- /// Preferred PIN code to use when creating access for this reservation.
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
///
[DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
public string? PreferredCode { get; set; }
@@ -4289,6 +4594,203 @@ public PushDataRequestReservations(
[DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
public string? StartsAt { get; set; }
+ ///
+ /// Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged.
+ ///
+ [DataMember(Name = "sub_reservations", IsRequired = false, EmitDefaultValue = false)]
+ public List? SubReservations { get; set; }
+
+ ///
+ /// Tenant key associated with the access grant.
+ ///
+ [DataMember(Name = "tenant_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? TenantKey { get; set; }
+
+ ///
+ /// Unit keys associated with the access grant.
+ ///
+ [DataMember(Name = "unit_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? UnitKeys { get; set; }
+
+ ///
+ /// User identity key associated with the access grant.
+ ///
+ [DataMember(Name = "user_identity_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? UserIdentityKey { get; set; }
+
+ ///
+ /// User key associated with the access grant.
+ ///
+ [DataMember(Name = "user_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? UserKey { 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 = "pushDataRequestReservationsSubReservations_model")]
+ public class PushDataRequestReservationsSubReservations
+ {
+ [JsonConstructorAttribute]
+ protected PushDataRequestReservationsSubReservations() { }
+
+ public PushDataRequestReservationsSubReservations(
+ List? buildingKeys = default,
+ List? commonAreaKeys = default,
+ object? customMetadata = default,
+ string? endsAt = default,
+ List? facilityKeys = default,
+ string? guestKey = default,
+ bool? isPrimary = default,
+ List? listingKeys = default,
+ string? name = default,
+ string? preferredCode = default,
+ List? propertyKeys = default,
+ string? residentKey = default,
+ List? roomKeys = default,
+ List? spaceKeys = default,
+ string? startsAt = default,
+ string? subReservationKey = default,
+ string? tenantKey = default,
+ List? unitKeys = default,
+ string? userIdentityKey = default,
+ string? userKey = default
+ )
+ {
+ BuildingKeys = buildingKeys;
+ CommonAreaKeys = commonAreaKeys;
+ CustomMetadata = customMetadata;
+ EndsAt = endsAt;
+ FacilityKeys = facilityKeys;
+ GuestKey = guestKey;
+ IsPrimary = isPrimary;
+ ListingKeys = listingKeys;
+ Name = name;
+ PreferredCode = preferredCode;
+ PropertyKeys = propertyKeys;
+ ResidentKey = residentKey;
+ RoomKeys = roomKeys;
+ SpaceKeys = spaceKeys;
+ StartsAt = startsAt;
+ SubReservationKey = subReservationKey;
+ TenantKey = tenantKey;
+ UnitKeys = unitKeys;
+ UserIdentityKey = userIdentityKey;
+ UserKey = userKey;
+ }
+
+ ///
+ /// Building keys associated with the access grant.
+ ///
+ [DataMember(Name = "building_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? BuildingKeys { get; set; }
+
+ ///
+ /// Common area keys associated with the access grant.
+ ///
+ [DataMember(Name = "common_area_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? CommonAreaKeys { get; set; }
+
+ ///
+ /// Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata.
+ ///
+ [DataMember(Name = "custom_metadata", IsRequired = false, EmitDefaultValue = false)]
+ public object? CustomMetadata { get; set; }
+
+ ///
+ /// Ending date and time for the access grant.
+ ///
+ [DataMember(Name = "ends_at", IsRequired = false, EmitDefaultValue = false)]
+ public string? EndsAt { get; set; }
+
+ ///
+ /// Facility keys associated with the access grant.
+ ///
+ [DataMember(Name = "facility_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? FacilityKeys { get; set; }
+
+ ///
+ /// Guest key associated with the access grant.
+ ///
+ [DataMember(Name = "guest_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? GuestKey { get; set; }
+
+ ///
+ /// Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.
+ ///
+ [DataMember(Name = "is_primary", IsRequired = false, EmitDefaultValue = false)]
+ public bool? IsPrimary { get; set; }
+
+ ///
+ /// Listing keys associated with the access grant.
+ ///
+ [DataMember(Name = "listing_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? ListingKeys { get; set; }
+
+ ///
+ /// Your name for this access grant resource.
+ ///
+ [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
+ public string? Name { get; set; }
+
+ ///
+ /// Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.
+ ///
+ [DataMember(Name = "preferred_code", IsRequired = false, EmitDefaultValue = false)]
+ public string? PreferredCode { get; set; }
+
+ ///
+ /// Property keys associated with the access grant.
+ ///
+ [DataMember(Name = "property_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? PropertyKeys { get; set; }
+
+ ///
+ /// Resident key associated with the access grant.
+ ///
+ [DataMember(Name = "resident_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? ResidentKey { get; set; }
+
+ ///
+ /// Room keys associated with the access grant.
+ ///
+ [DataMember(Name = "room_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? RoomKeys { get; set; }
+
+ ///
+ /// Space keys associated with the access grant.
+ ///
+ [DataMember(Name = "space_keys", IsRequired = false, EmitDefaultValue = false)]
+ public List? SpaceKeys { get; set; }
+
+ ///
+ /// Starting date and time for the access grant.
+ ///
+ [DataMember(Name = "starts_at", IsRequired = false, EmitDefaultValue = false)]
+ public string? StartsAt { get; set; }
+
+ ///
+ /// Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation.
+ ///
+ [DataMember(Name = "sub_reservation_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? SubReservationKey { get; set; }
+
///
/// Tenant key associated with the access grant.
///
@@ -5102,9 +5604,11 @@ public void PushData(
List? buildings = default,
List? commonAreas = default,
string customerKey = default,
+ string? customizationProfileId = default,
List? facilities = default,
List? guests = default,
List? listings = default,
+ float? lowBatteryAlertThreshold = default,
List? properties = default,
List? propertyListings = default,
List? reservations = default,
@@ -5126,9 +5630,11 @@ public void PushData(
buildings: buildings,
commonAreas: commonAreas,
customerKey: customerKey,
+ customizationProfileId: customizationProfileId,
facilities: facilities,
guests: guests,
listings: listings,
+ lowBatteryAlertThreshold: lowBatteryAlertThreshold,
properties: properties,
propertyListings: propertyListings,
reservations: reservations,
@@ -5164,9 +5670,11 @@ public async Task PushDataAsync(
List? buildings = default,
List? commonAreas = default,
string customerKey = default,
+ string? customizationProfileId = default,
List? facilities = default,
List? guests = default,
List? listings = default,
+ float? lowBatteryAlertThreshold = default,
List? properties = default,
List? propertyListings = default,
List? reservations = default,
@@ -5188,9 +5696,11 @@ await PushDataAsync(
buildings: buildings,
commonAreas: commonAreas,
customerKey: customerKey,
+ customizationProfileId: customizationProfileId,
facilities: facilities,
guests: guests,
listings: listings,
+ lowBatteryAlertThreshold: lowBatteryAlertThreshold,
properties: properties,
propertyListings: propertyListings,
reservations: reservations,
diff --git a/src/Seam/Api/Devices.cs b/src/Seam/Api/Devices.cs
index 8e273d4..48eb44f 100644
--- a/src/Seam/Api/Devices.cs
+++ b/src/Seam/Api/Devices.cs
@@ -257,92 +257,110 @@ public enum DeviceTypeEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
///
@@ -405,92 +423,110 @@ public enum DeviceTypesEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
///
@@ -583,95 +619,107 @@ public enum ManufacturerEnum
[EnumMember(Value = "keyincode")]
Keyincode = 27,
+ [EnumMember(Value = "ubiquiti")]
+ Ubiquiti = 28,
+
[EnumMember(Value = "akiles")]
- Akiles = 28,
+ Akiles = 29,
[EnumMember(Value = "aqara")]
- Aqara = 29,
+ Aqara = 30,
[EnumMember(Value = "ecobee")]
- Ecobee = 30,
+ Ecobee = 31,
[EnumMember(Value = "eufy")]
- Eufy = 31,
+ Eufy = 32,
[EnumMember(Value = "dormakaba_oracode")]
- DormakabaOracode = 32,
+ DormakabaOracode = 33,
[EnumMember(Value = "dormakaba_oracode_iho")]
- DormakabaOracodeIho = 33,
+ DormakabaOracodeIho = 34,
[EnumMember(Value = "honeywell_resideo")]
- HoneywellResideo = 34,
+ HoneywellResideo = 35,
[EnumMember(Value = "keynest")]
- Keynest = 35,
+ Keynest = 36,
[EnumMember(Value = "korelock")]
- Korelock = 36,
+ Korelock = 37,
[EnumMember(Value = "lockly")]
- Lockly = 37,
+ Lockly = 38,
[EnumMember(Value = "minut")]
- Minut = 38,
+ Minut = 39,
[EnumMember(Value = "nest")]
- Nest = 39,
+ Nest = 40,
[EnumMember(Value = "noiseaware")]
- Noiseaware = 40,
+ Noiseaware = 41,
[EnumMember(Value = "sensi")]
- Sensi = 41,
+ Sensi = 42,
[EnumMember(Value = "smartthings")]
- Smartthings = 42,
+ Smartthings = 43,
[EnumMember(Value = "tado")]
- Tado = 43,
+ Tado = 44,
[EnumMember(Value = "ultraloq")]
- Ultraloq = 44,
+ Ultraloq = 45,
[EnumMember(Value = "ring")]
- Ring = 45,
+ Ring = 46,
[EnumMember(Value = "tapo")]
- Tapo = 46,
+ Tapo = 47,
[EnumMember(Value = "arlo")]
- Arlo = 47,
+ Arlo = 48,
[EnumMember(Value = "reolink")]
- Reolink = 48,
+ Reolink = 49,
+
+ [EnumMember(Value = "unifi_protect")]
+ UnifiProtect = 50,
+
+ [EnumMember(Value = "yale_connect")]
+ YaleConnect = 51,
[EnumMember(Value = "ical")]
- Ical = 49,
+ Ical = 52,
[EnumMember(Value = "lodgify")]
- Lodgify = 50,
+ Lodgify = 53,
[EnumMember(Value = "hostaway")]
- Hostaway = 51,
+ Hostaway = 54,
[EnumMember(Value = "guesty")]
- Guesty = 52,
+ Guesty = 55,
[EnumMember(Value = "acuity_scheduling")]
- AcuityScheduling = 53,
+ AcuityScheduling = 56,
[EnumMember(Value = "omnitec")]
- Omnitec = 54,
+ Omnitec = 57,
[EnumMember(Value = "kisi")]
- Kisi = 55,
+ Kisi = 58,
[EnumMember(Value = "slack")]
- Slack = 56,
+ Slack = 59,
[EnumMember(Value = "yacan")]
- Yacan = 57,
+ Yacan = 60,
+
+ [EnumMember(Value = "sonos")]
+ Sonos = 61,
}
///
diff --git a/src/Seam/Api/Events.cs b/src/Seam/Api/Events.cs
index 7ee4360..9356789 100644
--- a/src/Seam/Api/Events.cs
+++ b/src/Seam/Api/Events.cs
@@ -114,7 +114,7 @@ public override string ToString()
}
///
- /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place.
+ /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place. Events older than 90 days are not returned.
///
public Event Get(GetRequest request)
{
@@ -127,7 +127,7 @@ public Event Get(GetRequest request)
}
///
- /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place.
+ /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place. Events older than 90 days are not returned.
///
public Event Get(
string? deviceId = default,
@@ -139,7 +139,7 @@ public Event Get(
}
///
- /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place.
+ /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place. Events older than 90 days are not returned.
///
public async Task GetAsync(GetRequest request)
{
@@ -151,7 +151,7 @@ public async Task GetAsync(GetRequest request)
}
///
- /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place.
+ /// Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place. Events older than 90 days are not returned.
///
public async Task GetAsync(
string? deviceId = default,
@@ -1019,7 +1019,7 @@ public enum EventTypesEnum
public string? AcsUserId { get; set; }
///
- /// Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`.
+ /// Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a lower timestamp older than 90 days is treated as 90 days ago.
///
[DataMember(Name = "between", IsRequired = false, EmitDefaultValue = false)]
public List? Between { get; set; }
@@ -1083,7 +1083,7 @@ public enum EventTypesEnum
public float? Limit { get; set; }
///
- /// Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`.
+ /// Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a `since` older than 90 days is treated as 90 days ago.
///
[DataMember(Name = "since", IsRequired = false, EmitDefaultValue = false)]
public string? Since { get; set; }
@@ -1170,7 +1170,7 @@ public override string ToString()
}
///
- /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place.
+ /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place. Only events from the last 90 days are returned.
///
public List List(ListRequest request)
{
@@ -1183,7 +1183,7 @@ public List List(ListRequest request)
}
///
- /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place.
+ /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place. Only events from the last 90 days are returned.
///
public List List(
string? accessCodeId = default,
@@ -1251,7 +1251,7 @@ public List List(
}
///
- /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place.
+ /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place. Only events from the last 90 days are returned.
///
public async Task> ListAsync(ListRequest request)
{
@@ -1263,7 +1263,7 @@ public async Task> ListAsync(ListRequest request)
}
///
- /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place.
+ /// Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place. Only events from the last 90 days are returned.
///
public async Task> ListAsync(
string? accessCodeId = default,
diff --git a/src/Seam/Api/LiveViewsCameras.cs b/src/Seam/Api/LiveViewsCameras.cs
index 8f31a69..3c767ef 100644
--- a/src/Seam/Api/LiveViewsCameras.cs
+++ b/src/Seam/Api/LiveViewsCameras.cs
@@ -120,7 +120,7 @@ public override string ToString()
///
/// Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Use your API key on your backend to create a client session with access to the camera's connected account, then authenticate live view requests with that client session's token. To check whether a camera supports live view, use `device.can_stream_live_video`.
///
public CameraLiveViewSession Create(CreateRequest request)
{
@@ -135,7 +135,7 @@ public CameraLiveViewSession Create(CreateRequest request)
///
/// Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Use your API key on your backend to create a client session with access to the camera's connected account, then authenticate live view requests with that client session's token. To check whether a camera supports live view, use `device.can_stream_live_video`.
///
public CameraLiveViewSession Create(
string deviceId = default,
@@ -155,7 +155,7 @@ public CameraLiveViewSession Create(
///
/// Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Use your API key on your backend to create a client session with access to the camera's connected account, then authenticate live view requests with that client session's token. To check whether a camera supports live view, use `device.can_stream_live_video`.
///
public async Task CreateAsync(CreateRequest request)
{
@@ -171,7 +171,7 @@ await _seam.PostAsync("/cameras/live_views/create", requestOptio
///
/// Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support. To check whether a camera supports live view, use `device.can_stream_live_video`.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Use your API key on your backend to create a client session with access to the camera's connected account, then authenticate live view requests with that client session's token. To check whether a camera supports live view, use `device.can_stream_live_video`.
///
public async Task CreateAsync(
string deviceId = default,
@@ -296,7 +296,7 @@ public override string ToString()
///
/// Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public CameraLiveViewAnswer Offer(OfferRequest request)
{
@@ -311,7 +311,7 @@ public CameraLiveViewAnswer Offer(OfferRequest request)
///
/// Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public CameraLiveViewAnswer Offer(
string cameraLiveViewSessionId = default,
@@ -331,7 +331,7 @@ public CameraLiveViewAnswer Offer(
///
/// Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public async Task OfferAsync(OfferRequest request)
{
@@ -347,7 +347,7 @@ await _seam.PostAsync("/cameras/live_views/offer", requestOptions
///
/// Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public async Task OfferAsync(
string cameraLiveViewSessionId = default,
@@ -420,7 +420,7 @@ public override string ToString()
///
/// Stops a camera live view session that the current client session owns.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public void Stop(StopRequest request)
{
@@ -432,7 +432,7 @@ public void Stop(StopRequest request)
///
/// Stops a camera live view session that the current client session owns.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public void Stop(string cameraLiveViewSessionId = default, string token = default)
{
@@ -442,7 +442,7 @@ public void Stop(string cameraLiveViewSessionId = default, string token = defaul
///
/// Stops a camera live view session that the current client session owns.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public async Task StopAsync(StopRequest request)
{
@@ -454,7 +454,7 @@ public async Task StopAsync(StopRequest request)
///
/// Stops a camera live view session that the current client session owns.
///
- /// Camera live view is in beta. To enable it for your workspace, contact Seam support.
+ /// Camera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.
///
public async Task StopAsync(
string cameraLiveViewSessionId = default,
diff --git a/src/Seam/Api/Locks.cs b/src/Seam/Api/Locks.cs
index 1fbd9d6..c3782be 100644
--- a/src/Seam/Api/Locks.cs
+++ b/src/Seam/Api/Locks.cs
@@ -401,47 +401,59 @@ public enum DeviceTypeEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
}
///
@@ -504,47 +516,59 @@ public enum DeviceTypesEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
}
///
@@ -652,14 +676,17 @@ public enum ManufacturerEnum
[EnumMember(Value = "ultraloq")]
Ultraloq = 32,
+ [EnumMember(Value = "yale_connect")]
+ YaleConnect = 33,
+
[EnumMember(Value = "omnitec")]
- Omnitec = 33,
+ Omnitec = 34,
[EnumMember(Value = "kisi")]
- Kisi = 34,
+ Kisi = 35,
[EnumMember(Value = "yacan")]
- Yacan = 35,
+ Yacan = 36,
}
///
diff --git a/src/Seam/Api/UnmanagedAccessGrants.cs b/src/Seam/Api/UnmanagedAccessGrants.cs
index 7a679ee..6091d79 100644
--- a/src/Seam/Api/UnmanagedAccessGrants.cs
+++ b/src/Seam/Api/UnmanagedAccessGrants.cs
@@ -150,6 +150,7 @@ protected ListRequest() { }
public ListRequest(
string? acsEntranceId = default,
string? acsSystemId = default,
+ string? customerKey = default,
float? limit = default,
string? pageCursor = default,
string? reservationKey = default,
@@ -158,6 +159,7 @@ public ListRequest(
{
AcsEntranceId = acsEntranceId;
AcsSystemId = acsSystemId;
+ CustomerKey = customerKey;
Limit = limit;
PageCursor = pageCursor;
ReservationKey = reservationKey;
@@ -176,6 +178,12 @@ public ListRequest(
[DataMember(Name = "acs_system_id", IsRequired = false, EmitDefaultValue = false)]
public string? AcsSystemId { get; set; }
+ ///
+ /// Customer key for which you want to list unmanaged Access Grants.
+ ///
+ [DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? CustomerKey { get; set; }
+
///
/// Numerical limit on the number of unmanaged access grants to return.
///
@@ -276,6 +284,7 @@ public List List(ListRequest request)
public List List(
string? acsEntranceId = default,
string? acsSystemId = default,
+ string? customerKey = default,
float? limit = default,
string? pageCursor = default,
string? reservationKey = default,
@@ -286,6 +295,7 @@ public List List(
new ListRequest(
acsEntranceId: acsEntranceId,
acsSystemId: acsSystemId,
+ customerKey: customerKey,
limit: limit,
pageCursor: pageCursor,
reservationKey: reservationKey,
@@ -314,6 +324,7 @@ await _seam.GetAsync("/access_grants/unmanaged/list", requestOptio
public async Task> ListAsync(
string? acsEntranceId = default,
string? acsSystemId = default,
+ string? customerKey = default,
float? limit = default,
string? pageCursor = default,
string? reservationKey = default,
@@ -325,6 +336,7 @@ await ListAsync(
new ListRequest(
acsEntranceId: acsEntranceId,
acsSystemId: acsSystemId,
+ customerKey: customerKey,
limit: limit,
pageCursor: pageCursor,
reservationKey: reservationKey,
diff --git a/src/Seam/Api/UnmanagedDevices.cs b/src/Seam/Api/UnmanagedDevices.cs
index c7cd863..170d0fd 100644
--- a/src/Seam/Api/UnmanagedDevices.cs
+++ b/src/Seam/Api/UnmanagedDevices.cs
@@ -260,92 +260,110 @@ public enum DeviceTypeEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
///
@@ -408,92 +426,110 @@ public enum DeviceTypesEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
///
@@ -586,95 +622,107 @@ public enum ManufacturerEnum
[EnumMember(Value = "keyincode")]
Keyincode = 27,
+ [EnumMember(Value = "ubiquiti")]
+ Ubiquiti = 28,
+
[EnumMember(Value = "akiles")]
- Akiles = 28,
+ Akiles = 29,
[EnumMember(Value = "aqara")]
- Aqara = 29,
+ Aqara = 30,
[EnumMember(Value = "ecobee")]
- Ecobee = 30,
+ Ecobee = 31,
[EnumMember(Value = "eufy")]
- Eufy = 31,
+ Eufy = 32,
[EnumMember(Value = "dormakaba_oracode")]
- DormakabaOracode = 32,
+ DormakabaOracode = 33,
[EnumMember(Value = "dormakaba_oracode_iho")]
- DormakabaOracodeIho = 33,
+ DormakabaOracodeIho = 34,
[EnumMember(Value = "honeywell_resideo")]
- HoneywellResideo = 34,
+ HoneywellResideo = 35,
[EnumMember(Value = "keynest")]
- Keynest = 35,
+ Keynest = 36,
[EnumMember(Value = "korelock")]
- Korelock = 36,
+ Korelock = 37,
[EnumMember(Value = "lockly")]
- Lockly = 37,
+ Lockly = 38,
[EnumMember(Value = "minut")]
- Minut = 38,
+ Minut = 39,
[EnumMember(Value = "nest")]
- Nest = 39,
+ Nest = 40,
[EnumMember(Value = "noiseaware")]
- Noiseaware = 40,
+ Noiseaware = 41,
[EnumMember(Value = "sensi")]
- Sensi = 41,
+ Sensi = 42,
[EnumMember(Value = "smartthings")]
- Smartthings = 42,
+ Smartthings = 43,
[EnumMember(Value = "tado")]
- Tado = 43,
+ Tado = 44,
[EnumMember(Value = "ultraloq")]
- Ultraloq = 44,
+ Ultraloq = 45,
[EnumMember(Value = "ring")]
- Ring = 45,
+ Ring = 46,
[EnumMember(Value = "tapo")]
- Tapo = 46,
+ Tapo = 47,
[EnumMember(Value = "arlo")]
- Arlo = 47,
+ Arlo = 48,
[EnumMember(Value = "reolink")]
- Reolink = 48,
+ Reolink = 49,
+
+ [EnumMember(Value = "unifi_protect")]
+ UnifiProtect = 50,
+
+ [EnumMember(Value = "yale_connect")]
+ YaleConnect = 51,
[EnumMember(Value = "ical")]
- Ical = 49,
+ Ical = 52,
[EnumMember(Value = "lodgify")]
- Lodgify = 50,
+ Lodgify = 53,
[EnumMember(Value = "hostaway")]
- Hostaway = 51,
+ Hostaway = 54,
[EnumMember(Value = "guesty")]
- Guesty = 52,
+ Guesty = 55,
[EnumMember(Value = "acuity_scheduling")]
- AcuityScheduling = 53,
+ AcuityScheduling = 56,
[EnumMember(Value = "omnitec")]
- Omnitec = 54,
+ Omnitec = 57,
[EnumMember(Value = "kisi")]
- Kisi = 55,
+ Kisi = 58,
[EnumMember(Value = "slack")]
- Slack = 56,
+ Slack = 59,
[EnumMember(Value = "yacan")]
- Yacan = 57,
+ Yacan = 60,
+
+ [EnumMember(Value = "sonos")]
+ Sonos = 61,
}
///
diff --git a/src/Seam/Api/UserIdentities.cs b/src/Seam/Api/UserIdentities.cs
index 80f9e8c..e24520c 100644
--- a/src/Seam/Api/UserIdentities.cs
+++ b/src/Seam/Api/UserIdentities.cs
@@ -159,6 +159,7 @@ protected CreateRequest() { }
public CreateRequest(
List? acsSystemIds = default,
+ string? customerKey = default,
string? emailAddress = default,
string? fullName = default,
string? phoneNumber = default,
@@ -166,6 +167,7 @@ public CreateRequest(
)
{
AcsSystemIds = acsSystemIds;
+ CustomerKey = customerKey;
EmailAddress = emailAddress;
FullName = fullName;
PhoneNumber = phoneNumber;
@@ -178,6 +180,12 @@ public CreateRequest(
[DataMember(Name = "acs_system_ids", IsRequired = false, EmitDefaultValue = false)]
public List? AcsSystemIds { get; set; }
+ ///
+ /// Customer key of the customer that owns the new user identity. Set it when the user identity will be used in access grants created through that customer's client session or Customer Portal.
+ ///
+ [DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? CustomerKey { get; set; }
+
///
/// Unique email address for the new user identity.
///
@@ -277,6 +285,7 @@ public UserIdentity Create(CreateRequest request)
///
public UserIdentity Create(
List? acsSystemIds = default,
+ string? customerKey = default,
string? emailAddress = default,
string? fullName = default,
string? phoneNumber = default,
@@ -286,6 +295,7 @@ public UserIdentity Create(
return Create(
new CreateRequest(
acsSystemIds: acsSystemIds,
+ customerKey: customerKey,
emailAddress: emailAddress,
fullName: fullName,
phoneNumber: phoneNumber,
@@ -313,6 +323,7 @@ await _seam.PostAsync("/user_identities/create", requestOptions)
///
public async Task CreateAsync(
List? acsSystemIds = default,
+ string? customerKey = default,
string? emailAddress = default,
string? fullName = default,
string? phoneNumber = default,
@@ -323,6 +334,7 @@ public async Task CreateAsync(
await CreateAsync(
new CreateRequest(
acsSystemIds: acsSystemIds,
+ customerKey: customerKey,
emailAddress: emailAddress,
fullName: fullName,
phoneNumber: phoneNumber,
@@ -811,6 +823,7 @@ protected ListRequest() { }
public ListRequest(
string? createdBefore = default,
string? credentialManagerAcsSystemId = default,
+ string? customerKey = default,
int? limit = default,
string? pageCursor = default,
string? search = default,
@@ -819,6 +832,7 @@ public ListRequest(
{
CreatedBefore = createdBefore;
CredentialManagerAcsSystemId = credentialManagerAcsSystemId;
+ CustomerKey = customerKey;
Limit = limit;
PageCursor = pageCursor;
Search = search;
@@ -841,6 +855,12 @@ public ListRequest(
)]
public string? CredentialManagerAcsSystemId { get; set; }
+ ///
+ /// Customer key for which you want to list user identities.
+ ///
+ [DataMember(Name = "customer_key", IsRequired = false, EmitDefaultValue = false)]
+ public string? CustomerKey { get; set; }
+
///
/// Maximum number of records to return per page.
///
@@ -941,6 +961,7 @@ public List List(ListRequest request)
public List List(
string? createdBefore = default,
string? credentialManagerAcsSystemId = default,
+ string? customerKey = default,
int? limit = default,
string? pageCursor = default,
string? search = default,
@@ -951,6 +972,7 @@ public List List(
new ListRequest(
createdBefore: createdBefore,
credentialManagerAcsSystemId: credentialManagerAcsSystemId,
+ customerKey: customerKey,
limit: limit,
pageCursor: pageCursor,
search: search,
@@ -977,6 +999,7 @@ public async Task> ListAsync(ListRequest request)
public async Task> ListAsync(
string? createdBefore = default,
string? credentialManagerAcsSystemId = default,
+ string? customerKey = default,
int? limit = default,
string? pageCursor = default,
string? search = default,
@@ -988,6 +1011,7 @@ await ListAsync(
new ListRequest(
createdBefore: createdBefore,
credentialManagerAcsSystemId: credentialManagerAcsSystemId,
+ customerKey: customerKey,
limit: limit,
pageCursor: pageCursor,
search: search,
diff --git a/src/Seam/Model/AccessCode.cs b/src/Seam/Model/AccessCode.cs
index 8b12561..e2f0ac0 100644
--- a/src/Seam/Model/AccessCode.cs
+++ b/src/Seam/Model/AccessCode.cs
@@ -2667,6 +2667,10 @@ public enum TypeEnum
typeof(AccessCodeWarningsUnknownIssueWithAccessCode),
"unknown_issue_with_access_code"
)]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessCodeWarningsDeviceUnreachableForExtendedPeriod),
+ "device_unreachable_for_extended_period"
+ )]
[JsonSubtypes.KnownSubType(typeof(AccessCodeWarningsBeingDeleted), "being_deleted")]
[JsonSubtypes.KnownSubType(
typeof(AccessCodeWarningsUsingBackupAccessCode),
@@ -3384,6 +3388,72 @@ public override string ToString()
}
}
+ [DataContract(
+ Name = "seamModel_accessCodeWarningsDeviceUnreachableForExtendedPeriod_model"
+ )]
+ public class AccessCodeWarningsDeviceUnreachableForExtendedPeriod : AccessCodeWarnings
+ {
+ [JsonConstructorAttribute]
+ protected AccessCodeWarningsDeviceUnreachableForExtendedPeriod() { }
+
+ public AccessCodeWarningsDeviceUnreachableForExtendedPeriod(
+ string? createdAt = default,
+ string deviceUnreachableSince = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ DeviceUnreachableSince = deviceUnreachableSince;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string? CreatedAt { get; set; }
+
+ ///
+ /// Date and time since which Seam has been unable to reach the device.
+ ///
+ [DataMember(
+ Name = "device_unreachable_since",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public string DeviceUnreachableSince { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "device_unreachable_for_extended_period";
+
+ 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_accessCodeWarningsUnknownIssueWithAccessCode_model")]
public class AccessCodeWarningsUnknownIssueWithAccessCode : AccessCodeWarnings
{
diff --git a/src/Seam/Model/AccessGrant.cs b/src/Seam/Model/AccessGrant.cs
index 12f7c71..bcf6ea3 100644
--- a/src/Seam/Model/AccessGrant.cs
+++ b/src/Seam/Model/AccessGrant.cs
@@ -66,6 +66,10 @@ public AccessGrant(
[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.FallBackSubType(typeof(AccessGrantErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessGrantErrorsAccessNotProvisioned),
+ "access_not_provisioned"
+ )]
[JsonSubtypes.KnownSubType(
typeof(AccessGrantErrorsCannotCreateRequestedAccessMethods),
"cannot_create_requested_access_methods"
@@ -141,6 +145,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_accessGrantErrorsAccessNotProvisioned_model")]
+ public class AccessGrantErrorsAccessNotProvisioned : AccessGrantErrors
+ {
+ [JsonConstructorAttribute]
+ protected AccessGrantErrorsAccessNotProvisioned() { }
+
+ public AccessGrantErrorsAccessNotProvisioned(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "access_not_provisioned";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_accessGrantErrorsUnrecognized_model")]
public class AccessGrantErrorsUnrecognized : AccessGrantErrors
{
@@ -590,6 +646,7 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(AccessGrantWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(typeof(AccessGrantWarningsAccessRevoked), "access_revoked")]
[JsonSubtypes.KnownSubType(
typeof(AccessGrantWarningsDeviceTimeConstraintsViolated),
"device_time_constraints_violated"
@@ -801,7 +858,8 @@ protected AccessGrantWarningsOverprovisionedAccessFailedDevices() { }
public AccessGrantWarningsOverprovisionedAccessFailedDevices(
string deviceId = default,
- string errorCode = default,
+ AccessGrantWarningsOverprovisionedAccessFailedDevices.ErrorCodeEnum errorCode =
+ default,
string message = default
)
{
@@ -810,6 +868,19 @@ public AccessGrantWarningsOverprovisionedAccessFailedDevices(
Message = message;
}
+ ///
+ /// Reason the access code could not be revoked.
+ ///
+ [JsonConverter(typeof(SafeStringEnumConverter))]
+ public enum ErrorCodeEnum
+ {
+ [EnumMember(Value = "unrecognized")]
+ Unrecognized = 0,
+
+ [EnumMember(Value = "offline_access_code_not_revocable")]
+ OfflineAccessCodeNotRevocable = 1,
+ }
+
///
/// Device whose access code could not be revoked.
///
@@ -817,10 +888,10 @@ public AccessGrantWarningsOverprovisionedAccessFailedDevices(
public string DeviceId { get; set; }
///
- /// Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
+ /// Reason the access code could not be revoked.
///
[DataMember(Name = "error_code", IsRequired = false, EmitDefaultValue = false)]
- public string ErrorCode { get; set; }
+ public AccessGrantWarningsOverprovisionedAccessFailedDevices.ErrorCodeEnum ErrorCode { get; set; }
///
/// Human-readable description of why revocation failed.
@@ -915,14 +986,16 @@ public class AccessGrantWarningsRequestedCodeUnavailable : AccessGrantWarnings
protected AccessGrantWarningsRequestedCodeUnavailable() { }
public AccessGrantWarningsRequestedCodeUnavailable(
+ string? accessMethodId = default,
string createdAt = default,
- string deviceId = default,
+ string? deviceId = default,
string message = default,
string newCode = default,
string originalCode = default,
string warningCode = default
)
{
+ AccessMethodId = accessMethodId;
CreatedAt = createdAt;
DeviceId = deviceId;
Message = message;
@@ -931,6 +1004,12 @@ public AccessGrantWarningsRequestedCodeUnavailable(
WarningCode = warningCode;
}
+ ///
+ /// ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.
+ ///
+ [DataMember(Name = "access_method_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? AccessMethodId { get; set; }
+
///
/// Date and time at which Seam created the warning.
///
@@ -938,10 +1017,10 @@ public AccessGrantWarningsRequestedCodeUnavailable(
public override string CreatedAt { get; set; }
///
- /// ID of the device where the requested code was unavailable.
+ /// ID of the device where the requested code was unavailable. Present when the code was set directly on a device.
///
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
- public string DeviceId { get; set; }
+ public string? DeviceId { get; set; }
///
/// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -1131,6 +1210,66 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_accessGrantWarningsAccessRevoked_model")]
+ public class AccessGrantWarningsAccessRevoked : AccessGrantWarnings
+ {
+ [JsonConstructorAttribute]
+ protected AccessGrantWarningsAccessRevoked() { }
+
+ public AccessGrantWarningsAccessRevoked(
+ string accessMethodId = default,
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ AccessMethodId = accessMethodId;
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// ID of the access method whose access was revoked.
+ ///
+ [DataMember(Name = "access_method_id", IsRequired = false, EmitDefaultValue = false)]
+ public string AccessMethodId { get; set; }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "access_revoked";
+
+ 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_accessGrantWarningsUnrecognized_model")]
public class AccessGrantWarningsUnrecognized : AccessGrantWarnings
{
diff --git a/src/Seam/Model/AccessMethod.cs b/src/Seam/Model/AccessMethod.cs
index 8402391..c0d84f0 100644
--- a/src/Seam/Model/AccessMethod.cs
+++ b/src/Seam/Model/AccessMethod.cs
@@ -62,6 +62,10 @@ public AccessMethod(
[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.FallBackSubType(typeof(AccessMethodErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessMethodErrorsAccessNotProvisioned),
+ "access_not_provisioned"
+ )]
[JsonSubtypes.KnownSubType(typeof(AccessMethodErrorsFailedToIssue), "failed_to_issue")]
public abstract class AccessMethodErrors
{
@@ -126,6 +130,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_accessMethodErrorsAccessNotProvisioned_model")]
+ public class AccessMethodErrorsAccessNotProvisioned : AccessMethodErrors
+ {
+ [JsonConstructorAttribute]
+ protected AccessMethodErrorsAccessNotProvisioned() { }
+
+ public AccessMethodErrorsAccessNotProvisioned(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "access_not_provisioned";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_accessMethodErrorsUnrecognized_model")]
public class AccessMethodErrorsUnrecognized : AccessMethodErrors
{
@@ -202,6 +258,10 @@ public enum ModeEnum
[JsonConverter(typeof(JsonSubtypes), "mutation_code")]
[JsonSubtypes.FallBackSubType(typeof(AccessMethodPendingMutationsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessMethodPendingMutationsWaitingForAccessOnAcsSystem),
+ "waiting_for_access_on_acs_system"
+ )]
[JsonSubtypes.KnownSubType(
typeof(AccessMethodPendingMutationsUpdatingAccessTimes),
"updating_access_times"
@@ -675,6 +735,61 @@ public override string ToString()
}
}
+ [DataContract(
+ Name = "seamModel_accessMethodPendingMutationsWaitingForAccessOnAcsSystem_model"
+ )]
+ public class AccessMethodPendingMutationsWaitingForAccessOnAcsSystem
+ : AccessMethodPendingMutations
+ {
+ [JsonConstructorAttribute]
+ protected AccessMethodPendingMutationsWaitingForAccessOnAcsSystem() { }
+
+ public AccessMethodPendingMutationsWaitingForAccessOnAcsSystem(
+ string createdAt = default,
+ string message = default,
+ string mutationCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ MutationCode = mutationCode;
+ }
+
+ ///
+ /// Date and time at which the mutation was created.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the mutation.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string MutationCode { get; } = "waiting_for_access_on_acs_system";
+
+ 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_accessMethodPendingMutationsUnrecognized_model")]
public class AccessMethodPendingMutationsUnrecognized : AccessMethodPendingMutations
{
@@ -729,6 +844,14 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(AccessMethodWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessMethodWarningsScheduleRoundedUp),
+ "schedule_rounded_up"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(AccessMethodWarningsRequestedCodeUnavailable),
+ "requested_code_unavailable"
+ )]
[JsonSubtypes.KnownSubType(
typeof(AccessMethodWarningsUserIdentityMissingPhoneNumber),
"user_identity_missing_phone_number"
@@ -1082,6 +1205,126 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_accessMethodWarningsRequestedCodeUnavailable_model")]
+ public class AccessMethodWarningsRequestedCodeUnavailable : AccessMethodWarnings
+ {
+ [JsonConstructorAttribute]
+ protected AccessMethodWarningsRequestedCodeUnavailable() { }
+
+ public AccessMethodWarningsRequestedCodeUnavailable(
+ string createdAt = default,
+ string message = default,
+ string newCode = default,
+ string originalCode = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ NewCode = newCode;
+ OriginalCode = originalCode;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ ///
+ /// The PIN code that was assigned instead.
+ ///
+ [DataMember(Name = "new_code", IsRequired = false, EmitDefaultValue = false)]
+ public string NewCode { get; set; }
+
+ ///
+ /// The originally requested PIN code that could not be used.
+ ///
+ [DataMember(Name = "original_code", IsRequired = false, EmitDefaultValue = false)]
+ public string OriginalCode { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "requested_code_unavailable";
+
+ 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_accessMethodWarningsScheduleRoundedUp_model")]
+ public class AccessMethodWarningsScheduleRoundedUp : AccessMethodWarnings
+ {
+ [JsonConstructorAttribute]
+ protected AccessMethodWarningsScheduleRoundedUp() { }
+
+ public AccessMethodWarningsScheduleRoundedUp(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "schedule_rounded_up";
+
+ 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_accessMethodWarningsUnrecognized_model")]
public class AccessMethodWarningsUnrecognized : AccessMethodWarnings
{
@@ -1217,7 +1460,7 @@ public override string ToString()
public bool? IsReadyForAssignment { get; set; }
///
- /// Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
+ /// Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
///
[DataMember(Name = "is_ready_for_encoding", IsRequired = false, EmitDefaultValue = false)]
public bool? IsReadyForEncoding { get; set; }
diff --git a/src/Seam/Model/AcsCredential.cs b/src/Seam/Model/AcsCredential.cs
index 79fb521..06d20e3 100644
--- a/src/Seam/Model/AcsCredential.cs
+++ b/src/Seam/Model/AcsCredential.cs
@@ -162,6 +162,10 @@ public enum ExternalTypeEnum
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(AcsCredentialWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(AcsCredentialWarningsScheduleRoundedUp),
+ "schedule_rounded_up"
+ )]
[JsonSubtypes.KnownSubType(
typeof(AcsCredentialWarningsRequestedCodeUnavailable),
"requested_code_unavailable"
@@ -578,6 +582,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_acsCredentialWarningsScheduleRoundedUp_model")]
+ public class AcsCredentialWarningsScheduleRoundedUp : AcsCredentialWarnings
+ {
+ [JsonConstructorAttribute]
+ protected AcsCredentialWarningsScheduleRoundedUp() { }
+
+ public AcsCredentialWarningsScheduleRoundedUp(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "schedule_rounded_up";
+
+ 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_acsCredentialWarningsUnrecognized_model")]
public class AcsCredentialWarningsUnrecognized : AcsCredentialWarnings
{
diff --git a/src/Seam/Model/AcsEntrance.cs b/src/Seam/Model/AcsEntrance.cs
index c887da9..505ad9f 100644
--- a/src/Seam/Model/AcsEntrance.cs
+++ b/src/Seam/Model/AcsEntrance.cs
@@ -74,6 +74,124 @@ public AcsEntrance(
Warnings = warnings;
}
+ [JsonConverter(typeof(JsonSubtypes), "error_code")]
+ [JsonSubtypes.FallBackSubType(typeof(AcsEntranceErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(typeof(AcsEntranceErrorsEntranceRemoved), "entrance_removed")]
+ public abstract class AcsEntranceErrors
+ {
+ public abstract string ErrorCode { get; }
+
+ public abstract string CreatedAt { get; set; }
+
+ public abstract string Message { get; set; }
+
+ public abstract override string ToString();
+ }
+
+ [DataContract(Name = "seamModel_acsEntranceErrorsEntranceRemoved_model")]
+ public class AcsEntranceErrorsEntranceRemoved : AcsEntranceErrors
+ {
+ [JsonConstructorAttribute]
+ protected AcsEntranceErrorsEntranceRemoved() { }
+
+ public AcsEntranceErrorsEntranceRemoved(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "entrance_removed";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_acsEntranceErrorsUnrecognized_model")]
+ public class AcsEntranceErrorsUnrecognized : AcsEntranceErrors
+ {
+ [JsonConstructorAttribute]
+ protected AcsEntranceErrorsUnrecognized() { }
+
+ public AcsEntranceErrorsUnrecognized(
+ string errorCode = default,
+ string createdAt = default,
+ string message = default
+ )
+ {
+ ErrorCode = errorCode;
+ CreatedAt = createdAt;
+ Message = message;
+ }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "unrecognized";
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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();
+ }
+ }
+
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(AcsEntranceWarningsUnrecognized))]
[JsonSubtypes.KnownSubType(typeof(AcsEntranceWarningsPrivacyMode), "privacy_mode")]
@@ -1034,61 +1152,6 @@ public override string ToString()
}
}
- [DataContract(Name = "seamModel_acsEntranceErrors_model")]
- public class AcsEntranceErrors
- {
- [JsonConstructorAttribute]
- protected AcsEntranceErrors() { }
-
- public AcsEntranceErrors(
- string createdAt = default,
- string errorCode = default,
- string message = default
- )
- {
- CreatedAt = createdAt;
- ErrorCode = errorCode;
- Message = message;
- }
-
- ///
- /// Date and time at which Seam created the error.
- ///
- [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
- public string CreatedAt { get; set; }
-
- ///
- /// Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
- ///
- [DataMember(Name = "error_code", IsRequired = false, EmitDefaultValue = false)]
- public string ErrorCode { get; set; }
-
- ///
- /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
- ///
- [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
- public string Message { 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_acsEntranceHotekMetadata_model")]
public class AcsEntranceHotekMetadata
{
diff --git a/src/Seam/Model/AcsSystem.cs b/src/Seam/Model/AcsSystem.cs
index 3b97646..cf116b6 100644
--- a/src/Seam/Model/AcsSystem.cs
+++ b/src/Seam/Model/AcsSystem.cs
@@ -88,6 +88,10 @@ public AcsSystem(
typeof(AcsSystemErrorsInsufficientPermissions),
"insufficient_permissions"
)]
+ [JsonSubtypes.KnownSubType(
+ typeof(AcsSystemErrorsUserLicenseLimitReached),
+ "user_license_limit_reached"
+ )]
[JsonSubtypes.KnownSubType(
typeof(AcsSystemErrorsSaltoKsSubscriptionLimitExceeded),
"salto_ks_subscription_limit_exceeded"
@@ -331,6 +335,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_acsSystemErrorsUserLicenseLimitReached_model")]
+ public class AcsSystemErrorsUserLicenseLimitReached : AcsSystemErrors
+ {
+ [JsonConstructorAttribute]
+ protected AcsSystemErrorsUserLicenseLimitReached() { }
+
+ public AcsSystemErrorsUserLicenseLimitReached(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "user_license_limit_reached";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_acsSystemErrorsInsufficientPermissions_model")]
public class AcsSystemErrorsInsufficientPermissions : AcsSystemErrors
{
diff --git a/src/Seam/Model/ActionAttempt.cs b/src/Seam/Model/ActionAttempt.cs
index 6813434..89bda3a 100644
--- a/src/Seam/Model/ActionAttempt.cs
+++ b/src/Seam/Model/ActionAttempt.cs
@@ -17,6 +17,10 @@ namespace Seam.Model
[JsonSubtypes.KnownSubType(typeof(ActionAttemptDeleteAccessCode), "DELETE_ACCESS_CODE")]
[JsonSubtypes.KnownSubType(typeof(ActionAttemptCreateAccessCode), "CREATE_ACCESS_CODE")]
[JsonSubtypes.KnownSubType(typeof(ActionAttemptSyncAccessCodes), "SYNC_ACCESS_CODES")]
+ [JsonSubtypes.KnownSubType(
+ typeof(ActionAttemptConvertAccessCodeToManaged),
+ "CONVERT_ACCESS_CODE_TO_MANAGED"
+ )]
[JsonSubtypes.KnownSubType(typeof(ActionAttemptConfigureAutoLock), "CONFIGURE_AUTO_LOCK")]
[JsonSubtypes.KnownSubType(
typeof(ActionAttemptPushThermostatPrograms),
@@ -1545,6 +1549,9 @@ public enum WarningCodeEnum
[EnumMember(Value = "requested_code_unavailable")]
RequestedCodeUnavailable = 7,
+
+ [EnumMember(Value = "schedule_rounded_up")]
+ ScheduleRoundedUp = 8,
}
///
@@ -2524,6 +2531,9 @@ public enum WarningCodeEnum
[EnumMember(Value = "requested_code_unavailable")]
RequestedCodeUnavailable = 7,
+
+ [EnumMember(Value = "schedule_rounded_up")]
+ ScheduleRoundedUp = 8,
}
///
@@ -3427,6 +3437,9 @@ public enum WarningCodeEnum
[EnumMember(Value = "requested_code_unavailable")]
RequestedCodeUnavailable = 7,
+
+ [EnumMember(Value = "schedule_rounded_up")]
+ ScheduleRoundedUp = 8,
}
///
@@ -3780,7 +3793,7 @@ public enum ModeEnum
public bool? IsReadyForAssignment { get; set; }
///
- /// Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
+ /// Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
///
[DataMember(Name = "is_ready_for_encoding", IsRequired = false, EmitDefaultValue = false)]
public bool? IsReadyForEncoding { get; set; }
@@ -3863,6 +3876,9 @@ public enum ErrorCodeEnum
[EnumMember(Value = "failed_to_issue")]
FailedToIssue = 1,
+
+ [EnumMember(Value = "access_not_provisioned")]
+ AccessNotProvisioned = 2,
}
///
@@ -3911,11 +3927,11 @@ protected ActionAttemptAssignCredentialResultPendingMutations() { }
public ActionAttemptAssignCredentialResultPendingMutations(
string createdAt = default,
- ActionAttemptAssignCredentialResultPendingMutationsFrom from = default,
+ ActionAttemptAssignCredentialResultPendingMutationsFrom? from = default,
string message = default,
ActionAttemptAssignCredentialResultPendingMutations.MutationCodeEnum mutationCode =
default,
- ActionAttemptAssignCredentialResultPendingMutationsTo to = default
+ ActionAttemptAssignCredentialResultPendingMutationsTo? to = default
)
{
CreatedAt = createdAt;
@@ -3926,7 +3942,7 @@ public ActionAttemptAssignCredentialResultPendingMutations(
}
///
- /// Mutation code to indicate that Seam is in the process of updating the access times for this access method.
+ /// Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.
///
[JsonConverter(typeof(SafeStringEnumConverter))]
public enum MutationCodeEnum
@@ -3942,6 +3958,9 @@ public enum MutationCodeEnum
[EnumMember(Value = "updating_access_times")]
UpdatingAccessTimes = 3,
+
+ [EnumMember(Value = "waiting_for_access_on_acs_system")]
+ WaitingForAccessOnAcsSystem = 4,
}
///
@@ -3954,7 +3973,7 @@ public enum MutationCodeEnum
/// Previous access time configuration.
///
[DataMember(Name = "from", IsRequired = false, EmitDefaultValue = false)]
- public ActionAttemptAssignCredentialResultPendingMutationsFrom From { get; set; }
+ public ActionAttemptAssignCredentialResultPendingMutationsFrom? From { get; set; }
///
/// Detailed description of the mutation.
@@ -3963,7 +3982,7 @@ public enum MutationCodeEnum
public string Message { get; set; }
///
- /// Mutation code to indicate that Seam is in the process of updating the access times for this access method.
+ /// Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.
///
[DataMember(Name = "mutation_code", IsRequired = false, EmitDefaultValue = false)]
public ActionAttemptAssignCredentialResultPendingMutations.MutationCodeEnum MutationCode { get; set; }
@@ -3972,7 +3991,7 @@ public enum MutationCodeEnum
/// New access time configuration.
///
[DataMember(Name = "to", IsRequired = false, EmitDefaultValue = false)]
- public ActionAttemptAssignCredentialResultPendingMutationsTo To { get; set; }
+ public ActionAttemptAssignCredentialResultPendingMutationsTo? To { get; set; }
public override string ToString()
{
@@ -4098,13 +4117,17 @@ public ActionAttemptAssignCredentialResultWarnings(
string createdAt = default,
string message = default,
ActionAttemptAssignCredentialResultWarnings.WarningCodeEnum warningCode = default,
- string? originalAccessMethodId = default
+ string? originalAccessMethodId = default,
+ string? newCode = default,
+ string? originalCode = default
)
{
CreatedAt = createdAt;
Message = message;
WarningCode = warningCode;
OriginalAccessMethodId = originalAccessMethodId;
+ NewCode = newCode;
+ OriginalCode = originalCode;
}
///
@@ -4133,6 +4156,12 @@ public enum WarningCodeEnum
[EnumMember(Value = "user_identity_missing_phone_number")]
UserIdentityMissingPhoneNumber = 6,
+
+ [EnumMember(Value = "requested_code_unavailable")]
+ RequestedCodeUnavailable = 7,
+
+ [EnumMember(Value = "schedule_rounded_up")]
+ ScheduleRoundedUp = 8,
}
///
@@ -4163,6 +4192,18 @@ public enum WarningCodeEnum
)]
public string? OriginalAccessMethodId { get; set; }
+ ///
+ /// The PIN code that was assigned instead.
+ ///
+ [DataMember(Name = "new_code", IsRequired = false, EmitDefaultValue = false)]
+ public string? NewCode { get; set; }
+
+ ///
+ /// The originally requested PIN code that could not be used.
+ ///
+ [DataMember(Name = "original_code", IsRequired = false, EmitDefaultValue = false)]
+ public string? OriginalCode { get; set; }
+
public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
@@ -5587,6 +5628,163 @@ public override string ToString()
}
}
+ ///
+ /// Converting an unmanaged access code to managed is pending.
+ ///
+ [DataContract(Name = "seamModel_actionAttemptConvertAccessCodeToManaged_model")]
+ public class ActionAttemptConvertAccessCodeToManaged : ActionAttempt
+ {
+ [JsonConstructorAttribute]
+ protected ActionAttemptConvertAccessCodeToManaged() { }
+
+ public ActionAttemptConvertAccessCodeToManaged(
+ string actionAttemptId = default,
+ string actionType = default,
+ ActionAttemptConvertAccessCodeToManagedError error = default,
+ ActionAttemptConvertAccessCodeToManagedResult result = default,
+ ActionAttemptConvertAccessCodeToManaged.StatusEnum status = default
+ )
+ {
+ ActionAttemptId = actionAttemptId;
+ ActionType = actionType;
+ Error = error;
+ Result = result;
+ Status = status;
+ }
+
+ [JsonConverter(typeof(SafeStringEnumConverter))]
+ public enum StatusEnum
+ {
+ [EnumMember(Value = "unrecognized")]
+ Unrecognized = 0,
+
+ [EnumMember(Value = "success")]
+ Success = 1,
+
+ [EnumMember(Value = "pending")]
+ Pending = 2,
+
+ [EnumMember(Value = "error")]
+ Error = 3,
+ }
+
+ ///
+ /// ID of the action attempt.
+ ///
+ [DataMember(Name = "action_attempt_id", IsRequired = false, EmitDefaultValue = false)]
+ public override string ActionAttemptId { get; set; }
+
+ [DataMember(Name = "action_type", IsRequired = true, EmitDefaultValue = false)]
+ public override string ActionType { get; } = "CONVERT_ACCESS_CODE_TO_MANAGED";
+
+ ///
+ /// Error associated with the action.
+ ///
+ [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)]
+ public ActionAttemptConvertAccessCodeToManagedError Error { get; set; }
+
+ ///
+ /// Result of the action.
+ ///
+ [DataMember(Name = "result", IsRequired = false, EmitDefaultValue = false)]
+ public ActionAttemptConvertAccessCodeToManagedResult Result { get; set; }
+
+ [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
+ public ActionAttemptConvertAccessCodeToManaged.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_actionAttemptConvertAccessCodeToManagedError_model")]
+ public class ActionAttemptConvertAccessCodeToManagedError
+ {
+ [JsonConstructorAttribute]
+ protected ActionAttemptConvertAccessCodeToManagedError() { }
+
+ public ActionAttemptConvertAccessCodeToManagedError(
+ string message = default,
+ string type = default
+ )
+ {
+ Message = message;
+ Type = type;
+ }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public string Message { get; set; }
+
+ ///
+ /// Type of the error.
+ ///
+ [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
+ public string Type { 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_actionAttemptConvertAccessCodeToManagedResult_model")]
+ public class ActionAttemptConvertAccessCodeToManagedResult
+ {
+ [JsonConstructorAttribute]
+ public ActionAttemptConvertAccessCodeToManagedResult() { }
+
+ 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_actionAttemptSyncAccessCodes_model")]
public class ActionAttemptSyncAccessCodes : ActionAttempt
{
diff --git a/src/Seam/Model/ConnectWebview.cs b/src/Seam/Model/ConnectWebview.cs
index b7056f5..84cc7d0 100644
--- a/src/Seam/Model/ConnectWebview.cs
+++ b/src/Seam/Model/ConnectWebview.cs
@@ -93,6 +93,9 @@ public enum AcceptedCapabilitiesEnum
[EnumMember(Value = "camera")]
Camera = 5,
+
+ [EnumMember(Value = "speaker")]
+ Speaker = 6,
}
///
diff --git a/src/Seam/Model/ConnectedAccount.cs b/src/Seam/Model/ConnectedAccount.cs
index 5628176..126863e 100644
--- a/src/Seam/Model/ConnectedAccount.cs
+++ b/src/Seam/Model/ConnectedAccount.cs
@@ -81,6 +81,9 @@ public enum AcceptedCapabilitiesEnum
[EnumMember(Value = "camera")]
Camera = 5,
+
+ [EnumMember(Value = "speaker")]
+ Speaker = 6,
}
[JsonConverter(typeof(JsonSubtypes), "error_code")]
diff --git a/src/Seam/Model/Device.cs b/src/Seam/Model/Device.cs
index 3133920..ca84efe 100644
--- a/src/Seam/Model/Device.cs
+++ b/src/Seam/Model/Device.cs
@@ -131,7 +131,7 @@ public enum CapabilitiesSupportedEnum
}
///
- /// Type of the device.
+ /// Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.
///
[JsonConverter(typeof(SafeStringEnumConverter))]
public enum DeviceTypeEnum
@@ -190,92 +190,110 @@ public enum DeviceTypeEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
[JsonConverter(typeof(JsonSubtypes), "error_code")]
@@ -1283,6 +1301,10 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(DeviceWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(DeviceWarningsCloudRecordingNotEnabled),
+ "cloud_recording_not_enabled"
+ )]
[JsonSubtypes.KnownSubType(
typeof(DeviceWarningsMaxAccessCodesReached),
"max_access_codes_reached"
@@ -2872,6 +2894,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_deviceWarningsCloudRecordingNotEnabled_model")]
+ public class DeviceWarningsCloudRecordingNotEnabled : DeviceWarnings
+ {
+ [JsonConstructorAttribute]
+ protected DeviceWarningsCloudRecordingNotEnabled() { }
+
+ public DeviceWarningsCloudRecordingNotEnabled(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "cloud_recording_not_enabled";
+
+ 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_deviceWarningsUnrecognized_model")]
public class DeviceWarningsUnrecognized : DeviceWarnings
{
@@ -3083,7 +3157,7 @@ public override string ToString()
public bool? CanSimulateRemoval { get; set; }
///
- /// Indicates whether the camera supports streaming live video through a camera live view session.
+ /// Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.
///
[DataMember(Name = "can_stream_live_video", IsRequired = false, EmitDefaultValue = false)]
public bool? CanStreamLiveVideo { get; set; }
@@ -3143,7 +3217,7 @@ public override string ToString()
public DeviceDeviceProvider? DeviceProvider { get; set; }
///
- /// Type of the device.
+ /// Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.
///
[DataMember(Name = "device_type", IsRequired = false, EmitDefaultValue = false)]
public Device.DeviceTypeEnum DeviceType { get; set; }
@@ -3444,6 +3518,7 @@ public DeviceProperties(
DevicePropertiesDormakabaOracodeIhoMetadata? dormakabaOracodeIhoMetadata = default,
DevicePropertiesDormakabaOracodeMetadata? dormakabaOracodeMetadata = default,
DevicePropertiesEcobeeMetadata? ecobeeMetadata = default,
+ DevicePropertiesEufyMetadata? eufyMetadata = default,
DevicePropertiesFourSuitesMetadata? fourSuitesMetadata = default,
DevicePropertiesGenieMetadata? genieMetadata = default,
DevicePropertiesHoneywellResideoMetadata? honeywellResideoMetadata = default,
@@ -3473,9 +3548,11 @@ public DeviceProperties(
DevicePropertiesTtlockMetadata? ttlockMetadata = default,
DevicePropertiesTwoNMetadata? twoNMetadata = default,
DevicePropertiesUltraloqMetadata? ultraloqMetadata = default,
+ DevicePropertiesUnifiProtectMetadata? unifiProtectMetadata = default,
DevicePropertiesVisionlineMetadata? visionlineMetadata = default,
DevicePropertiesWyzeMetadata? wyzeMetadata = default,
DevicePropertiesYacanMetadata? yacanMetadata = default,
+ DevicePropertiesYaleConnectMetadata? yaleConnectMetadata = default,
float? autoLockDelaySeconds = default,
bool? autoLockEnabled = default,
bool? backupAccessCodePoolEnabled = default,
@@ -3557,6 +3634,7 @@ public DeviceProperties(
DormakabaOracodeIhoMetadata = dormakabaOracodeIhoMetadata;
DormakabaOracodeMetadata = dormakabaOracodeMetadata;
EcobeeMetadata = ecobeeMetadata;
+ EufyMetadata = eufyMetadata;
FourSuitesMetadata = fourSuitesMetadata;
GenieMetadata = genieMetadata;
HoneywellResideoMetadata = honeywellResideoMetadata;
@@ -3586,9 +3664,11 @@ public DeviceProperties(
TtlockMetadata = ttlockMetadata;
TwoNMetadata = twoNMetadata;
UltraloqMetadata = ultraloqMetadata;
+ UnifiProtectMetadata = unifiProtectMetadata;
VisionlineMetadata = visionlineMetadata;
WyzeMetadata = wyzeMetadata;
YacanMetadata = yacanMetadata;
+ YaleConnectMetadata = yaleConnectMetadata;
AutoLockDelaySeconds = autoLockDelaySeconds;
AutoLockEnabled = autoLockEnabled;
BackupAccessCodePoolEnabled = backupAccessCodePoolEnabled;
@@ -3952,6 +4032,12 @@ public enum FanModeSettingEnum
[DataMember(Name = "ecobee_metadata", IsRequired = false, EmitDefaultValue = false)]
public DevicePropertiesEcobeeMetadata? EcobeeMetadata { get; set; }
+ ///
+ /// Metadata for a Eufy device.
+ ///
+ [DataMember(Name = "eufy_metadata", IsRequired = false, EmitDefaultValue = false)]
+ public DevicePropertiesEufyMetadata? EufyMetadata { get; set; }
+
///
/// Metadata for a 4SUITES device.
///
@@ -4131,6 +4217,12 @@ public enum FanModeSettingEnum
[DataMember(Name = "ultraloq_metadata", IsRequired = false, EmitDefaultValue = false)]
public DevicePropertiesUltraloqMetadata? UltraloqMetadata { get; set; }
+ ///
+ /// Metadata for a UniFi Protect camera.
+ ///
+ [DataMember(Name = "unifi_protect_metadata", IsRequired = false, EmitDefaultValue = false)]
+ public DevicePropertiesUnifiProtectMetadata? UnifiProtectMetadata { get; set; }
+
///
/// Metadata for an ASSA ABLOY Visionline system.
///
@@ -4149,6 +4241,12 @@ public enum FanModeSettingEnum
[DataMember(Name = "yacan_metadata", IsRequired = false, EmitDefaultValue = false)]
public DevicePropertiesYacanMetadata? YacanMetadata { get; set; }
+ ///
+ /// Metadata for a Yale Connect lock.
+ ///
+ [DataMember(Name = "yale_connect_metadata", IsRequired = false, EmitDefaultValue = false)]
+ public DevicePropertiesYaleConnectMetadata? YaleConnectMetadata { get; set; }
+
///
/// The delay in seconds before the lock automatically locks after being unlocked.
///
@@ -5905,6 +6003,52 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_devicePropertiesEufyMetadata_model")]
+ public class DevicePropertiesEufyMetadata
+ {
+ [JsonConstructorAttribute]
+ protected DevicePropertiesEufyMetadata() { }
+
+ public DevicePropertiesEufyMetadata(
+ string? deviceId = default,
+ string? deviceName = default,
+ string? model = default
+ )
+ {
+ DeviceId = deviceId;
+ DeviceName = deviceName;
+ Model = model;
+ }
+
+ [DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? DeviceId { get; set; }
+
+ [DataMember(Name = "device_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? DeviceName { get; set; }
+
+ [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)]
+ public string? Model { 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_devicePropertiesFourSuitesMetadata_model")]
public class DevicePropertiesFourSuitesMetadata
{
@@ -7818,7 +7962,7 @@ public DevicePropertiesSensiMetadata(
public string? DeviceName { get; set; }
///
- /// Set to true when the device does not support the /dual-setpoints API endpoint.
+ /// Deprecated. Seam no longer sets this field.
///
[DataMember(
Name = "dual_setpoints_not_supported",
@@ -7923,26 +8067,82 @@ public class DevicePropertiesTadoMetadata
protected DevicePropertiesTadoMetadata() { }
public DevicePropertiesTadoMetadata(
+ List? deviceSerialNumbers = default,
string? deviceType = default,
- string? serialNo = default
+ string? homeGeneration = default,
+ string? homeId = default,
+ string? homeName = default,
+ string? serialNo = default,
+ string? zoneId = default,
+ string? zoneName = default,
+ string? zoneType = default
)
{
+ DeviceSerialNumbers = deviceSerialNumbers;
DeviceType = deviceType;
+ HomeGeneration = homeGeneration;
+ HomeId = homeId;
+ HomeName = homeName;
SerialNo = serialNo;
+ ZoneId = zoneId;
+ ZoneName = zoneName;
+ ZoneType = zoneType;
}
///
- /// Device type for a tado° device.
+ /// Serial numbers of all tado° devices in the zone.
+ ///
+ [DataMember(Name = "device_serial_numbers", IsRequired = false, EmitDefaultValue = false)]
+ public List? DeviceSerialNumbers { get; set; }
+
+ ///
+ /// Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`.
///
[DataMember(Name = "device_type", IsRequired = false, EmitDefaultValue = false)]
public string? DeviceType { get; set; }
///
- /// Serial number for a tado° device.
+ /// Generation of the tado° home, such as `PRE_LINE_X`.
+ ///
+ [DataMember(Name = "home_generation", IsRequired = false, EmitDefaultValue = false)]
+ public string? HomeGeneration { get; set; }
+
+ ///
+ /// ID of the tado° home.
+ ///
+ [DataMember(Name = "home_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? HomeId { get; set; }
+
+ ///
+ /// Name of the tado° home.
+ ///
+ [DataMember(Name = "home_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? HomeName { get; set; }
+
+ ///
+ /// Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control.
///
[DataMember(Name = "serial_no", IsRequired = false, EmitDefaultValue = false)]
public string? SerialNo { get; set; }
+ ///
+ /// ID of the tado° zone within its home.
+ ///
+ [DataMember(Name = "zone_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? ZoneId { get; set; }
+
+ ///
+ /// Name of the tado° zone.
+ ///
+ [DataMember(Name = "zone_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? ZoneName { get; set; }
+
+ ///
+ /// Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`.
+ ///
+ [DataMember(Name = "zone_type", IsRequired = false, EmitDefaultValue = false)]
+ public string? ZoneType { get; set; }
+
public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);
@@ -8437,6 +8637,85 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_devicePropertiesUnifiProtectMetadata_model")]
+ public class DevicePropertiesUnifiProtectMetadata
+ {
+ [JsonConstructorAttribute]
+ protected DevicePropertiesUnifiProtectMetadata() { }
+
+ public DevicePropertiesUnifiProtectMetadata(
+ string? cameraId = default,
+ string? cameraName = default,
+ bool? hasMic = default,
+ string? mac = default,
+ string? model = default,
+ string? nvrName = default
+ )
+ {
+ CameraId = cameraId;
+ CameraName = cameraName;
+ HasMic = hasMic;
+ Mac = mac;
+ Model = model;
+ NvrName = nvrName;
+ }
+
+ ///
+ /// Camera ID reported by UniFi Protect.
+ ///
+ [DataMember(Name = "camera_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? CameraId { get; set; }
+
+ ///
+ /// Camera name reported by UniFi Protect.
+ ///
+ [DataMember(Name = "camera_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? CameraName { get; set; }
+
+ ///
+ /// Whether the camera has a microphone.
+ ///
+ [DataMember(Name = "has_mic", IsRequired = false, EmitDefaultValue = false)]
+ public bool? HasMic { get; set; }
+
+ ///
+ /// MAC address reported by the UniFi Protect camera.
+ ///
+ [DataMember(Name = "mac", IsRequired = false, EmitDefaultValue = false)]
+ public string? Mac { get; set; }
+
+ ///
+ /// Model reported by the UniFi Protect camera.
+ ///
+ [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)]
+ public string? Model { get; set; }
+
+ ///
+ /// Name of the UniFi Protect console that manages the camera.
+ ///
+ [DataMember(Name = "nvr_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? NvrName { 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_devicePropertiesVisionlineMetadata_model")]
public class DevicePropertiesVisionlineMetadata
{
@@ -8632,6 +8911,85 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_devicePropertiesYaleConnectMetadata_model")]
+ public class DevicePropertiesYaleConnectMetadata
+ {
+ [JsonConstructorAttribute]
+ protected DevicePropertiesYaleConnectMetadata() { }
+
+ public DevicePropertiesYaleConnectMetadata(
+ string? deviceId = default,
+ string? deviceName = default,
+ string? firmwareVersion = default,
+ string? homeName = default,
+ string? model = default,
+ string? timeZoneDescription = default
+ )
+ {
+ DeviceId = deviceId;
+ DeviceName = deviceName;
+ FirmwareVersion = firmwareVersion;
+ HomeName = homeName;
+ Model = model;
+ TimeZoneDescription = timeZoneDescription;
+ }
+
+ ///
+ /// Device ID for a Yale Connect lock.
+ ///
+ [DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? DeviceId { get; set; }
+
+ ///
+ /// Device name for a Yale Connect lock.
+ ///
+ [DataMember(Name = "device_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? DeviceName { get; set; }
+
+ ///
+ /// Firmware version reported by the Yale Connect lock.
+ ///
+ [DataMember(Name = "firmware_version", IsRequired = false, EmitDefaultValue = false)]
+ public string? FirmwareVersion { get; set; }
+
+ ///
+ /// Name of the Yale Connect home that contains the lock.
+ ///
+ [DataMember(Name = "home_name", IsRequired = false, EmitDefaultValue = false)]
+ public string? HomeName { get; set; }
+
+ ///
+ /// Model reported by the Yale Connect lock.
+ ///
+ [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)]
+ public string? Model { get; set; }
+
+ ///
+ /// Time zone of the Yale Connect home, as Yale reports it.
+ ///
+ [DataMember(Name = "time_zone_description", IsRequired = false, EmitDefaultValue = false)]
+ public string? TimeZoneDescription { 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_devicePropertiesCodeConstraints_model")]
public class DevicePropertiesCodeConstraints
{
diff --git a/src/Seam/Model/DeviceProvider.cs b/src/Seam/Model/DeviceProvider.cs
index 8c034f6..e76d7bd 100644
--- a/src/Seam/Model/DeviceProvider.cs
+++ b/src/Seam/Model/DeviceProvider.cs
@@ -115,176 +115,194 @@ public enum DeviceProviderNameEnum
[EnumMember(Value = "yale")]
Yale = 11,
+ [EnumMember(Value = "yale_access")]
+ YaleAccess = 12,
+
+ [EnumMember(Value = "yale_home")]
+ YaleHome = 13,
+
[EnumMember(Value = "genie")]
- Genie = 12,
+ Genie = 14,
[EnumMember(Value = "doorking")]
- Doorking = 13,
+ Doorking = 15,
[EnumMember(Value = "salto")]
- Salto = 14,
+ Salto = 16,
[EnumMember(Value = "salto_ks")]
- SaltoKs = 15,
+ SaltoKs = 17,
[EnumMember(Value = "salto_ks_accept")]
- SaltoKsAccept = 16,
+ SaltoKsAccept = 18,
[EnumMember(Value = "lockly")]
- Lockly = 17,
+ Lockly = 19,
[EnumMember(Value = "ttlock")]
- Ttlock = 18,
+ Ttlock = 20,
[EnumMember(Value = "linear")]
- Linear = 19,
+ Linear = 21,
[EnumMember(Value = "noiseaware")]
- Noiseaware = 20,
+ Noiseaware = 22,
[EnumMember(Value = "nuki")]
- Nuki = 21,
+ Nuki = 23,
[EnumMember(Value = "igloo")]
- Igloo = 22,
+ Igloo = 24,
[EnumMember(Value = "kwikset")]
- Kwikset = 23,
+ Kwikset = 25,
[EnumMember(Value = "minut")]
- Minut = 24,
+ Minut = 26,
[EnumMember(Value = "my_2n")]
- My_2n = 25,
+ My_2n = 27,
[EnumMember(Value = "controlbyweb")]
- Controlbyweb = 26,
+ Controlbyweb = 28,
[EnumMember(Value = "nest")]
- Nest = 27,
+ Nest = 29,
[EnumMember(Value = "igloohome")]
- Igloohome = 28,
+ Igloohome = 30,
[EnumMember(Value = "ecobee")]
- Ecobee = 29,
+ Ecobee = 31,
[EnumMember(Value = "four_suites")]
- FourSuites = 30,
+ FourSuites = 32,
[EnumMember(Value = "dormakaba_oracode")]
- DormakabaOracode = 31,
+ DormakabaOracode = 33,
[EnumMember(Value = "dormakaba_oracode_iho")]
- DormakabaOracodeIho = 32,
+ DormakabaOracodeIho = 34,
[EnumMember(Value = "pti")]
- Pti = 33,
+ Pti = 35,
[EnumMember(Value = "wyze")]
- Wyze = 34,
+ Wyze = 36,
[EnumMember(Value = "seam_passport")]
- SeamPassport = 35,
+ SeamPassport = 37,
[EnumMember(Value = "visionline")]
- Visionline = 36,
+ Visionline = 38,
[EnumMember(Value = "assa_abloy_credential_service")]
- AssaAbloyCredentialService = 37,
+ AssaAbloyCredentialService = 39,
[EnumMember(Value = "tedee")]
- Tedee = 38,
+ Tedee = 40,
[EnumMember(Value = "honeywell_resideo")]
- HoneywellResideo = 39,
+ HoneywellResideo = 41,
[EnumMember(Value = "first_alert")]
- FirstAlert = 40,
+ FirstAlert = 42,
[EnumMember(Value = "latch")]
- Latch = 41,
+ Latch = 43,
[EnumMember(Value = "akiles")]
- Akiles = 42,
+ Akiles = 44,
[EnumMember(Value = "assa_abloy_vostio")]
- AssaAbloyVostio = 43,
+ AssaAbloyVostio = 45,
[EnumMember(Value = "assa_abloy_vostio_credential_service")]
- AssaAbloyVostioCredentialService = 44,
+ AssaAbloyVostioCredentialService = 46,
[EnumMember(Value = "tado")]
- Tado = 45,
+ Tado = 47,
[EnumMember(Value = "salto_space")]
- SaltoSpace = 46,
+ SaltoSpace = 48,
[EnumMember(Value = "sensi")]
- Sensi = 47,
+ Sensi = 49,
[EnumMember(Value = "keynest")]
- Keynest = 48,
+ Keynest = 50,
[EnumMember(Value = "korelock")]
- Korelock = 49,
+ Korelock = 51,
[EnumMember(Value = "keyincode")]
- Keyincode = 50,
+ Keyincode = 52,
[EnumMember(Value = "dormakaba_ambiance")]
- DormakabaAmbiance = 51,
+ DormakabaAmbiance = 53,
[EnumMember(Value = "ultraloq")]
- Ultraloq = 52,
+ Ultraloq = 54,
[EnumMember(Value = "yacan")]
- Yacan = 53,
+ Yacan = 55,
[EnumMember(Value = "dusaw")]
- Dusaw = 54,
+ Dusaw = 56,
[EnumMember(Value = "sifely")]
- Sifely = 55,
+ Sifely = 57,
[EnumMember(Value = "thirty_three_lock")]
- ThirtyThreeLock = 56,
+ ThirtyThreeLock = 58,
[EnumMember(Value = "ring")]
- Ring = 57,
+ Ring = 59,
[EnumMember(Value = "tapo")]
- Tapo = 58,
+ Tapo = 60,
[EnumMember(Value = "arlo")]
- Arlo = 59,
+ Arlo = 61,
[EnumMember(Value = "reolink")]
- Reolink = 60,
+ Reolink = 62,
+
+ [EnumMember(Value = "unifi_protect")]
+ UnifiProtect = 63,
+
+ [EnumMember(Value = "yale_connect")]
+ YaleConnect = 64,
[EnumMember(Value = "ical")]
- Ical = 61,
+ Ical = 65,
[EnumMember(Value = "lodgify")]
- Lodgify = 62,
+ Lodgify = 66,
[EnumMember(Value = "hostaway")]
- Hostaway = 63,
+ Hostaway = 67,
[EnumMember(Value = "guesty")]
- Guesty = 64,
+ Guesty = 68,
[EnumMember(Value = "acuity_scheduling")]
- AcuityScheduling = 65,
+ AcuityScheduling = 69,
[EnumMember(Value = "omnitec")]
- Omnitec = 66,
+ Omnitec = 70,
[EnumMember(Value = "kisi")]
- Kisi = 67,
+ Kisi = 71,
[EnumMember(Value = "aqara")]
- Aqara = 68,
+ Aqara = 72,
+
+ [EnumMember(Value = "eufy")]
+ Eufy = 73,
+
+ [EnumMember(Value = "sonos")]
+ Sonos = 74,
}
///
@@ -480,7 +498,7 @@ public enum ProviderCategoriesEnum
public bool? CanSimulateRemoval { get; set; }
///
- /// Indicates whether the camera supports streaming live video through a camera live view session.
+ /// Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.
///
[DataMember(Name = "can_stream_live_video", IsRequired = false, EmitDefaultValue = false)]
public bool? CanStreamLiveVideo { get; set; }
diff --git a/src/Seam/Model/Event.cs b/src/Seam/Model/Event.cs
index 51eadd0..f968510 100644
--- a/src/Seam/Model/Event.cs
+++ b/src/Seam/Model/Event.cs
@@ -15887,6 +15887,9 @@ public enum ReasonCodeEnum
[EnumMember(Value = "credential_error")]
CredentialError = 6,
+
+ [EnumMember(Value = "connection_error")]
+ ConnectionError = 7,
}
///
@@ -17104,7 +17107,7 @@ public override string ToString()
}
///
- /// A camera was activated, for example, by motion detection.
+ /// A camera was activated, for example, by motion detection. For Ring cameras, this event is available only in the Seam Console, not through the API or webhooks.
///
[DataContract(Name = "seamModel_eventCameraActivated_model")]
public class EventCameraActivated : Event
@@ -17302,7 +17305,7 @@ public override string ToString()
}
///
- /// A doorbell button was pressed on a device.
+ /// A doorbell button was pressed on a device. For Ring cameras, this event is available only in the Seam Console, not through the API or webhooks.
///
[DataContract(Name = "seamModel_eventDeviceDoorbellRang_model")]
public class EventDeviceDoorbellRang : Event
diff --git a/src/Seam/Model/Phone.cs b/src/Seam/Model/Phone.cs
index 902f9c8..f5b6717 100644
--- a/src/Seam/Model/Phone.cs
+++ b/src/Seam/Model/Phone.cs
@@ -58,6 +58,2708 @@ public enum DeviceTypeEnum
AndroidPhone = 2,
}
+ [JsonConverter(typeof(JsonSubtypes), "error_code")]
+ [JsonSubtypes.FallBackSubType(typeof(PhoneErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsBridgeDisconnected), "bridge_disconnected")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsSubscriptionRequired),
+ "subscription_required"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsAuxiliaryHeatRunning),
+ "auxiliary_heat_running"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsMissingDeviceCredentials),
+ "missing_device_credentials"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsAugustLockNotAuthorized),
+ "august_lock_not_authorized"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsEmptyBackupAccessCodePool),
+ "empty_backup_access_code_pool"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsDeviceDisconnected), "device_disconnected")]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsHubDisconnected), "hub_disconnected")]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsDeviceRemoved), "device_removed")]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsDeviceOffline), "device_offline")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsDormakabaSitesDisconnected),
+ "dormakaba_sites_disconnected"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsInsufficientPermissions),
+ "insufficient_permissions"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneErrorsSaltoKsSubscriptionLimitExceeded),
+ "salto_ks_subscription_limit_exceeded"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneErrorsAccountDisconnected), "account_disconnected")]
+ public abstract class PhoneErrors
+ {
+ public abstract string ErrorCode { get; }
+
+ public abstract string CreatedAt { get; set; }
+
+ public abstract string Message { get; set; }
+
+ public abstract override string ToString();
+ }
+
+ [DataContract(Name = "seamModel_phoneErrorsAccountDisconnected_model")]
+ public class PhoneErrorsAccountDisconnected : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsAccountDisconnected() { }
+
+ public PhoneErrorsAccountDisconnected(
+ string createdAt = default,
+ string errorCode = default,
+ bool isConnectedAccountError = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsConnectedAccountError = isConnectedAccountError;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "account_disconnected";
+
+ ///
+ /// Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.
+ ///
+ [DataMember(
+ Name = "is_connected_account_error",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool IsConnectedAccountError { get; set; }
+
+ ///
+ /// Indicates that the error is not a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsSaltoKsSubscriptionLimitExceeded_model")]
+ public class PhoneErrorsSaltoKsSubscriptionLimitExceeded : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsSaltoKsSubscriptionLimitExceeded() { }
+
+ public PhoneErrorsSaltoKsSubscriptionLimitExceeded(
+ string createdAt = default,
+ string errorCode = default,
+ bool isConnectedAccountError = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsConnectedAccountError = isConnectedAccountError;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "salto_ks_subscription_limit_exceeded";
+
+ ///
+ /// Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.
+ ///
+ [DataMember(
+ Name = "is_connected_account_error",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool IsConnectedAccountError { get; set; }
+
+ ///
+ /// Indicates that the error is not a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsInsufficientPermissions_model")]
+ public class PhoneErrorsInsufficientPermissions : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsInsufficientPermissions() { }
+
+ public PhoneErrorsInsufficientPermissions(
+ string createdAt = default,
+ string errorCode = default,
+ bool isConnectedAccountError = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsConnectedAccountError = isConnectedAccountError;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "insufficient_permissions";
+
+ ///
+ /// Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.
+ ///
+ [DataMember(
+ Name = "is_connected_account_error",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool IsConnectedAccountError { get; set; }
+
+ ///
+ /// Indicates that the error is not a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsDormakabaSitesDisconnected_model")]
+ public class PhoneErrorsDormakabaSitesDisconnected : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsDormakabaSitesDisconnected() { }
+
+ public PhoneErrorsDormakabaSitesDisconnected(
+ string createdAt = default,
+ string errorCode = default,
+ bool isConnectedAccountError = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsConnectedAccountError = isConnectedAccountError;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "dormakaba_sites_disconnected";
+
+ ///
+ /// Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.
+ ///
+ [DataMember(
+ Name = "is_connected_account_error",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool IsConnectedAccountError { get; set; }
+
+ ///
+ /// Indicates that the error is not a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsDeviceOffline_model")]
+ public class PhoneErrorsDeviceOffline : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsDeviceOffline() { }
+
+ public PhoneErrorsDeviceOffline(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "device_offline";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsDeviceRemoved_model")]
+ public class PhoneErrorsDeviceRemoved : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsDeviceRemoved() { }
+
+ public PhoneErrorsDeviceRemoved(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "device_removed";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsHubDisconnected_model")]
+ public class PhoneErrorsHubDisconnected : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsHubDisconnected() { }
+
+ public PhoneErrorsHubDisconnected(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "hub_disconnected";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsDeviceDisconnected_model")]
+ public class PhoneErrorsDeviceDisconnected : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsDeviceDisconnected() { }
+
+ public PhoneErrorsDeviceDisconnected(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "device_disconnected";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsEmptyBackupAccessCodePool_model")]
+ public class PhoneErrorsEmptyBackupAccessCodePool : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsEmptyBackupAccessCodePool() { }
+
+ public PhoneErrorsEmptyBackupAccessCodePool(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "empty_backup_access_code_pool";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsAugustLockNotAuthorized_model")]
+ public class PhoneErrorsAugustLockNotAuthorized : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsAugustLockNotAuthorized() { }
+
+ public PhoneErrorsAugustLockNotAuthorized(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "august_lock_not_authorized";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsMissingDeviceCredentials_model")]
+ public class PhoneErrorsMissingDeviceCredentials : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsMissingDeviceCredentials() { }
+
+ public PhoneErrorsMissingDeviceCredentials(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "missing_device_credentials";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsAuxiliaryHeatRunning_model")]
+ public class PhoneErrorsAuxiliaryHeatRunning : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsAuxiliaryHeatRunning() { }
+
+ public PhoneErrorsAuxiliaryHeatRunning(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "auxiliary_heat_running";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsSubscriptionRequired_model")]
+ public class PhoneErrorsSubscriptionRequired : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsSubscriptionRequired() { }
+
+ public PhoneErrorsSubscriptionRequired(
+ string createdAt = default,
+ string errorCode = default,
+ bool isDeviceError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsDeviceError = isDeviceError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "subscription_required";
+
+ ///
+ /// Indicates that the error is a device error.
+ ///
+ [DataMember(Name = "is_device_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool IsDeviceError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsBridgeDisconnected_model")]
+ public class PhoneErrorsBridgeDisconnected : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsBridgeDisconnected() { }
+
+ public PhoneErrorsBridgeDisconnected(
+ string createdAt = default,
+ string errorCode = default,
+ bool? isBridgeError = default,
+ bool? isConnectedAccountError = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ IsBridgeError = isBridgeError;
+ IsConnectedAccountError = isConnectedAccountError;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "bridge_disconnected";
+
+ ///
+ /// Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).
+ ///
+ [DataMember(Name = "is_bridge_error", IsRequired = false, EmitDefaultValue = false)]
+ public bool? IsBridgeError { get; set; }
+
+ ///
+ /// Indicates whether the error is related specifically to the connected account.
+ ///
+ [DataMember(
+ Name = "is_connected_account_error",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public bool? IsConnectedAccountError { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_phoneErrorsUnrecognized_model")]
+ public class PhoneErrorsUnrecognized : PhoneErrors
+ {
+ [JsonConstructorAttribute]
+ protected PhoneErrorsUnrecognized() { }
+
+ public PhoneErrorsUnrecognized(
+ string errorCode = default,
+ string createdAt = default,
+ string message = default
+ )
+ {
+ ErrorCode = errorCode;
+ CreatedAt = createdAt;
+ Message = message;
+ }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "unrecognized";
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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();
+ }
+ }
+
+ [JsonConverter(typeof(JsonSubtypes), "warning_code")]
+ [JsonSubtypes.FallBackSubType(typeof(PhoneWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsCloudRecordingNotEnabled),
+ "cloud_recording_not_enabled"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsMaxAccessCodesReached),
+ "max_access_codes_reached"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsUnreliableOnlineStatus),
+ "unreliable_online_status"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsAccessoryKeypadLowBattery),
+ "accessory_keypad_low_battery"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsAccessoryKeypadSetupRequired),
+ "accessory_keypad_setup_required"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsKeynestUnsupportedLocker),
+ "keynest_unsupported_locker"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsProviderIssue), "provider_issue")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsHubRequiredForAdditionalCapabilities),
+ "hub_required_for_additional_capabilities"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsTwoNDeviceMissingTimezone),
+ "two_n_device_missing_timezone"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsTimeZoneMismatch), "time_zone_mismatch")]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsTimeZoneUnknown), "time_zone_unknown")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsUltraloqTimeZoneUnknown),
+ "ultraloq_time_zone_unknown"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsLocklyTimeZoneNotConfigured),
+ "lockly_time_zone_not_configured"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsUnknownIssueWithPhone),
+ "unknown_issue_with_phone"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsSaltoKsLockAccessCodeSupportRemoved),
+ "salto_ks_lock_access_code_support_removed"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsSaltoKsSubscriptionLimitAlmostReached),
+ "salto_ks_subscription_limit_almost_reached"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsPrivacyMode), "privacy_mode")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsSaltoKsPrivacyMode),
+ "salto_ks_privacy_mode"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsSaltoKsOfficeMode), "salto_ks_office_mode")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsDeviceHasFlakyConnection),
+ "device_has_flaky_connection"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsScheduledMaintenanceWindow),
+ "scheduled_maintenance_window"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsDeviceCommunicationDegraded),
+ "device_communication_degraded"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsTemperatureThresholdExceeded),
+ "temperature_threshold_exceeded"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(PhoneWarningsPowerSavingMode), "power_saving_mode")]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsTtlockWeakGatewaySignal),
+ "ttlock_weak_gateway_signal"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsTtlockLockGatewayUnlockingNotEnabled),
+ "ttlock_lock_gateway_unlocking_not_enabled"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsThirdPartyIntegrationDetected),
+ "third_party_integration_detected"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsManyActiveBackupCodes),
+ "many_active_backup_codes"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(PhoneWarningsPartialBackupAccessCodePool),
+ "partial_backup_access_code_pool"
+ )]
+ public abstract class PhoneWarnings
+ {
+ public abstract string WarningCode { get; }
+
+ public abstract string CreatedAt { get; set; }
+
+ public abstract string Message { get; set; }
+
+ public abstract override string ToString();
+ }
+
+ [DataContract(Name = "seamModel_phoneWarningsPartialBackupAccessCodePool_model")]
+ public class PhoneWarningsPartialBackupAccessCodePool : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsPartialBackupAccessCodePool() { }
+
+ public PhoneWarningsPartialBackupAccessCodePool(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "partial_backup_access_code_pool";
+
+ 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_phoneWarningsManyActiveBackupCodes_model")]
+ public class PhoneWarningsManyActiveBackupCodes : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsManyActiveBackupCodes() { }
+
+ public PhoneWarningsManyActiveBackupCodes(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "many_active_backup_codes";
+
+ 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_phoneWarningsThirdPartyIntegrationDetected_model")]
+ public class PhoneWarningsThirdPartyIntegrationDetected : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsThirdPartyIntegrationDetected() { }
+
+ public PhoneWarningsThirdPartyIntegrationDetected(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "third_party_integration_detected";
+
+ 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_phoneWarningsTtlockLockGatewayUnlockingNotEnabled_model")]
+ public class PhoneWarningsTtlockLockGatewayUnlockingNotEnabled : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTtlockLockGatewayUnlockingNotEnabled() { }
+
+ public PhoneWarningsTtlockLockGatewayUnlockingNotEnabled(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } =
+ "ttlock_lock_gateway_unlocking_not_enabled";
+
+ 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_phoneWarningsTtlockWeakGatewaySignal_model")]
+ public class PhoneWarningsTtlockWeakGatewaySignal : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTtlockWeakGatewaySignal() { }
+
+ public PhoneWarningsTtlockWeakGatewaySignal(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "ttlock_weak_gateway_signal";
+
+ 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_phoneWarningsPowerSavingMode_model")]
+ public class PhoneWarningsPowerSavingMode : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsPowerSavingMode() { }
+
+ public PhoneWarningsPowerSavingMode(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "power_saving_mode";
+
+ 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_phoneWarningsTemperatureThresholdExceeded_model")]
+ public class PhoneWarningsTemperatureThresholdExceeded : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTemperatureThresholdExceeded() { }
+
+ public PhoneWarningsTemperatureThresholdExceeded(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "temperature_threshold_exceeded";
+
+ 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_phoneWarningsDeviceCommunicationDegraded_model")]
+ public class PhoneWarningsDeviceCommunicationDegraded : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsDeviceCommunicationDegraded() { }
+
+ public PhoneWarningsDeviceCommunicationDegraded(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "device_communication_degraded";
+
+ 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_phoneWarningsScheduledMaintenanceWindow_model")]
+ public class PhoneWarningsScheduledMaintenanceWindow : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsScheduledMaintenanceWindow() { }
+
+ public PhoneWarningsScheduledMaintenanceWindow(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "scheduled_maintenance_window";
+
+ 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_phoneWarningsDeviceHasFlakyConnection_model")]
+ public class PhoneWarningsDeviceHasFlakyConnection : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsDeviceHasFlakyConnection() { }
+
+ public PhoneWarningsDeviceHasFlakyConnection(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "device_has_flaky_connection";
+
+ 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_phoneWarningsSaltoKsOfficeMode_model")]
+ public class PhoneWarningsSaltoKsOfficeMode : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsSaltoKsOfficeMode() { }
+
+ public PhoneWarningsSaltoKsOfficeMode(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "salto_ks_office_mode";
+
+ 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_phoneWarningsSaltoKsPrivacyMode_model")]
+ public class PhoneWarningsSaltoKsPrivacyMode : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsSaltoKsPrivacyMode() { }
+
+ public PhoneWarningsSaltoKsPrivacyMode(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "salto_ks_privacy_mode";
+
+ 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_phoneWarningsPrivacyMode_model")]
+ public class PhoneWarningsPrivacyMode : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsPrivacyMode() { }
+
+ public PhoneWarningsPrivacyMode(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "privacy_mode";
+
+ 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_phoneWarningsSaltoKsSubscriptionLimitAlmostReached_model")]
+ public class PhoneWarningsSaltoKsSubscriptionLimitAlmostReached : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsSaltoKsSubscriptionLimitAlmostReached() { }
+
+ public PhoneWarningsSaltoKsSubscriptionLimitAlmostReached(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } =
+ "salto_ks_subscription_limit_almost_reached";
+
+ 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_phoneWarningsSaltoKsLockAccessCodeSupportRemoved_model")]
+ public class PhoneWarningsSaltoKsLockAccessCodeSupportRemoved : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsSaltoKsLockAccessCodeSupportRemoved() { }
+
+ public PhoneWarningsSaltoKsLockAccessCodeSupportRemoved(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } =
+ "salto_ks_lock_access_code_support_removed";
+
+ 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_phoneWarningsUnknownIssueWithPhone_model")]
+ public class PhoneWarningsUnknownIssueWithPhone : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsUnknownIssueWithPhone() { }
+
+ public PhoneWarningsUnknownIssueWithPhone(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "unknown_issue_with_phone";
+
+ 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_phoneWarningsLocklyTimeZoneNotConfigured_model")]
+ public class PhoneWarningsLocklyTimeZoneNotConfigured : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsLocklyTimeZoneNotConfigured() { }
+
+ public PhoneWarningsLocklyTimeZoneNotConfigured(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "lockly_time_zone_not_configured";
+
+ 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_phoneWarningsUltraloqTimeZoneUnknown_model")]
+ public class PhoneWarningsUltraloqTimeZoneUnknown : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsUltraloqTimeZoneUnknown() { }
+
+ public PhoneWarningsUltraloqTimeZoneUnknown(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "ultraloq_time_zone_unknown";
+
+ 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_phoneWarningsTimeZoneUnknown_model")]
+ public class PhoneWarningsTimeZoneUnknown : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTimeZoneUnknown() { }
+
+ public PhoneWarningsTimeZoneUnknown(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "time_zone_unknown";
+
+ 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_phoneWarningsTimeZoneMismatch_model")]
+ public class PhoneWarningsTimeZoneMismatch : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTimeZoneMismatch() { }
+
+ public PhoneWarningsTimeZoneMismatch(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "time_zone_mismatch";
+
+ 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_phoneWarningsTwoNDeviceMissingTimezone_model")]
+ public class PhoneWarningsTwoNDeviceMissingTimezone : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsTwoNDeviceMissingTimezone() { }
+
+ public PhoneWarningsTwoNDeviceMissingTimezone(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "two_n_device_missing_timezone";
+
+ 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_phoneWarningsHubRequiredForAdditionalCapabilities_model")]
+ public class PhoneWarningsHubRequiredForAdditionalCapabilities : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsHubRequiredForAdditionalCapabilities() { }
+
+ public PhoneWarningsHubRequiredForAdditionalCapabilities(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } =
+ "hub_required_for_additional_capabilities";
+
+ 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_phoneWarningsProviderIssue_model")]
+ public class PhoneWarningsProviderIssue : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsProviderIssue() { }
+
+ public PhoneWarningsProviderIssue(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "provider_issue";
+
+ 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_phoneWarningsKeynestUnsupportedLocker_model")]
+ public class PhoneWarningsKeynestUnsupportedLocker : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsKeynestUnsupportedLocker() { }
+
+ public PhoneWarningsKeynestUnsupportedLocker(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "keynest_unsupported_locker";
+
+ 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_phoneWarningsAccessoryKeypadSetupRequired_model")]
+ public class PhoneWarningsAccessoryKeypadSetupRequired : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsAccessoryKeypadSetupRequired() { }
+
+ public PhoneWarningsAccessoryKeypadSetupRequired(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "accessory_keypad_setup_required";
+
+ 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_phoneWarningsAccessoryKeypadLowBattery_model")]
+ public class PhoneWarningsAccessoryKeypadLowBattery : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsAccessoryKeypadLowBattery() { }
+
+ public PhoneWarningsAccessoryKeypadLowBattery(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "accessory_keypad_low_battery";
+
+ 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_phoneWarningsUnreliableOnlineStatus_model")]
+ public class PhoneWarningsUnreliableOnlineStatus : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsUnreliableOnlineStatus() { }
+
+ public PhoneWarningsUnreliableOnlineStatus(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "unreliable_online_status";
+
+ 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_phoneWarningsMaxAccessCodesReached_model")]
+ public class PhoneWarningsMaxAccessCodesReached : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsMaxAccessCodesReached() { }
+
+ public PhoneWarningsMaxAccessCodesReached(
+ int activeAccessCodeCount = default,
+ string createdAt = default,
+ int maxActiveAccessCodeCount = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ ActiveAccessCodeCount = activeAccessCodeCount;
+ CreatedAt = createdAt;
+ MaxActiveAccessCodeCount = maxActiveAccessCodeCount;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Number of active access codes on the device when the warning was set.
+ ///
+ [DataMember(
+ Name = "active_access_code_count",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public int ActiveAccessCodeCount { get; set; }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Maximum number of active access codes supported by the device.
+ ///
+ [DataMember(
+ Name = "max_active_access_code_count",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public int MaxActiveAccessCodeCount { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "max_access_codes_reached";
+
+ 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_phoneWarningsCloudRecordingNotEnabled_model")]
+ public class PhoneWarningsCloudRecordingNotEnabled : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsCloudRecordingNotEnabled() { }
+
+ public PhoneWarningsCloudRecordingNotEnabled(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "cloud_recording_not_enabled";
+
+ 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_phoneWarningsUnrecognized_model")]
+ public class PhoneWarningsUnrecognized : PhoneWarnings
+ {
+ [JsonConstructorAttribute]
+ protected PhoneWarningsUnrecognized() { }
+
+ public PhoneWarningsUnrecognized(
+ string warningCode = default,
+ string createdAt = default,
+ string message = default
+ )
+ {
+ WarningCode = warningCode;
+ CreatedAt = createdAt;
+ Message = message;
+ }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "unrecognized";
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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();
+ }
+ }
+
///
/// Date and time at which the phone was created.
///
@@ -89,7 +2791,7 @@ public enum DeviceTypeEnum
public string DisplayName { get; set; }
///
- /// Errors associated with the phone.
+ /// Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
///
[DataMember(Name = "errors", IsRequired = false, EmitDefaultValue = false)]
public List Errors { get; set; }
@@ -107,7 +2809,7 @@ public enum DeviceTypeEnum
public PhoneProperties Properties { get; set; }
///
- /// Warnings associated with the phone.
+ /// Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
///
[DataMember(Name = "warnings", IsRequired = false, EmitDefaultValue = false)]
public List Warnings { get; set; }
@@ -138,61 +2840,6 @@ public override string ToString()
}
}
- [DataContract(Name = "seamModel_phoneErrors_model")]
- public class PhoneErrors
- {
- [JsonConstructorAttribute]
- protected PhoneErrors() { }
-
- public PhoneErrors(
- string createdAt = default,
- string errorCode = default,
- string message = default
- )
- {
- CreatedAt = createdAt;
- ErrorCode = errorCode;
- Message = message;
- }
-
- ///
- /// Date and time at which Seam created the error.
- ///
- [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
- public string CreatedAt { get; set; }
-
- ///
- /// Unique identifier of the type of error.
- ///
- [DataMember(Name = "error_code", IsRequired = false, EmitDefaultValue = false)]
- public string ErrorCode { get; set; }
-
- ///
- /// Detailed description of the error.
- ///
- [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
- public string Message { 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_phoneProperties_model")]
public class PhoneProperties
{
@@ -382,59 +3029,4 @@ public override string ToString()
return stringWriter.ToString();
}
}
-
- [DataContract(Name = "seamModel_phoneWarnings_model")]
- public class PhoneWarnings
- {
- [JsonConstructorAttribute]
- protected PhoneWarnings() { }
-
- public PhoneWarnings(
- string createdAt = default,
- string message = default,
- string warningCode = default
- )
- {
- CreatedAt = createdAt;
- Message = message;
- WarningCode = warningCode;
- }
-
- ///
- /// Date and time at which Seam created the warning.
- ///
- [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
- public string CreatedAt { get; set; }
-
- ///
- /// Detailed description of the warning.
- ///
- [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
- public string Message { get; set; }
-
- ///
- /// Unique identifier of the type of warning.
- ///
- [DataMember(Name = "warning_code", IsRequired = false, EmitDefaultValue = false)]
- public string 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/src/Seam/Model/Space.cs b/src/Seam/Model/Space.cs
index ef10558..2150186 100644
--- a/src/Seam/Model/Space.cs
+++ b/src/Seam/Model/Space.cs
@@ -28,6 +28,7 @@ public Space(
string name = default,
string spaceId = default,
string? spaceKey = default,
+ List warnings = default,
string workspaceId = default
)
{
@@ -41,9 +42,192 @@ public Space(
Name = name;
SpaceId = spaceId;
SpaceKey = spaceKey;
+ Warnings = warnings;
WorkspaceId = workspaceId;
}
+ [JsonConverter(typeof(JsonSubtypes), "warning_code")]
+ [JsonSubtypes.FallBackSubType(typeof(SpaceWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(SpaceWarningsNoiseSensorConfigurationMismatch),
+ "noise_sensor_configuration_mismatch"
+ )]
+ [JsonSubtypes.KnownSubType(typeof(SpaceWarningsBeingDeleted), "being_deleted")]
+ public abstract class SpaceWarnings
+ {
+ public abstract string WarningCode { get; }
+
+ public abstract string CreatedAt { get; set; }
+
+ public abstract string Message { get; set; }
+
+ public abstract override string ToString();
+ }
+
+ [DataContract(Name = "seamModel_spaceWarningsBeingDeleted_model")]
+ public class SpaceWarningsBeingDeleted : SpaceWarnings
+ {
+ [JsonConstructorAttribute]
+ protected SpaceWarningsBeingDeleted() { }
+
+ public SpaceWarningsBeingDeleted(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "being_deleted";
+
+ 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_spaceWarningsNoiseSensorConfigurationMismatch_model")]
+ public class SpaceWarningsNoiseSensorConfigurationMismatch : SpaceWarnings
+ {
+ [JsonConstructorAttribute]
+ protected SpaceWarningsNoiseSensorConfigurationMismatch() { }
+
+ public SpaceWarningsNoiseSensorConfigurationMismatch(
+ string createdAt = default,
+ List deviceIds = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ DeviceIds = deviceIds;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation.
+ ///
+ [DataMember(Name = "device_ids", IsRequired = false, EmitDefaultValue = false)]
+ public List DeviceIds { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "noise_sensor_configuration_mismatch";
+
+ 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_spaceWarningsUnrecognized_model")]
+ public class SpaceWarningsUnrecognized : SpaceWarnings
+ {
+ [JsonConstructorAttribute]
+ protected SpaceWarningsUnrecognized() { }
+
+ public SpaceWarningsUnrecognized(
+ string warningCode = default,
+ string createdAt = default,
+ string message = default
+ )
+ {
+ WarningCode = warningCode;
+ CreatedAt = createdAt;
+ Message = message;
+ }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "unrecognized";
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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();
+ }
+ }
+
///
/// Number of entrances in the space.
///
@@ -104,6 +288,12 @@ public Space(
[DataMember(Name = "space_key", IsRequired = false, EmitDefaultValue = false)]
public string? SpaceKey { get; set; }
+ ///
+ /// Warnings associated with the space.
+ ///
+ [DataMember(Name = "warnings", IsRequired = false, EmitDefaultValue = false)]
+ public List Warnings { get; set; }
+
///
/// ID of the workspace associated with the space.
///
diff --git a/src/Seam/Model/UnmanagedAccessCode.cs b/src/Seam/Model/UnmanagedAccessCode.cs
index 0cbb4c7..e4ff1c8 100644
--- a/src/Seam/Model/UnmanagedAccessCode.cs
+++ b/src/Seam/Model/UnmanagedAccessCode.cs
@@ -1987,6 +1987,10 @@ public enum TypeEnum
typeof(UnmanagedAccessCodeWarningsUnknownIssueWithAccessCode),
"unknown_issue_with_access_code"
)]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessCodeWarningsDeviceUnreachableForExtendedPeriod),
+ "device_unreachable_for_extended_period"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessCodeWarningsBeingDeleted),
"being_deleted"
@@ -2723,6 +2727,73 @@ public override string ToString()
}
}
+ [DataContract(
+ Name = "seamModel_unmanagedAccessCodeWarningsDeviceUnreachableForExtendedPeriod_model"
+ )]
+ public class UnmanagedAccessCodeWarningsDeviceUnreachableForExtendedPeriod
+ : UnmanagedAccessCodeWarnings
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessCodeWarningsDeviceUnreachableForExtendedPeriod() { }
+
+ public UnmanagedAccessCodeWarningsDeviceUnreachableForExtendedPeriod(
+ string? createdAt = default,
+ string deviceUnreachableSince = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ DeviceUnreachableSince = deviceUnreachableSince;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string? CreatedAt { get; set; }
+
+ ///
+ /// Date and time since which Seam has been unable to reach the device.
+ ///
+ [DataMember(
+ Name = "device_unreachable_since",
+ IsRequired = false,
+ EmitDefaultValue = false
+ )]
+ public string DeviceUnreachableSince { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "device_unreachable_for_extended_period";
+
+ 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_unmanagedAccessCodeWarningsUnknownIssueWithAccessCode_model"
)]
diff --git a/src/Seam/Model/UnmanagedAccessGrant.cs b/src/Seam/Model/UnmanagedAccessGrant.cs
index 751c29c..d68348e 100644
--- a/src/Seam/Model/UnmanagedAccessGrant.cs
+++ b/src/Seam/Model/UnmanagedAccessGrant.cs
@@ -56,6 +56,10 @@ public UnmanagedAccessGrant(
[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedAccessGrantErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessGrantErrorsAccessNotProvisioned),
+ "access_not_provisioned"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessGrantErrorsCannotCreateRequestedAccessMethods),
"cannot_create_requested_access_methods"
@@ -134,6 +138,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_unmanagedAccessGrantErrorsAccessNotProvisioned_model")]
+ public class UnmanagedAccessGrantErrorsAccessNotProvisioned : UnmanagedAccessGrantErrors
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessGrantErrorsAccessNotProvisioned() { }
+
+ public UnmanagedAccessGrantErrorsAccessNotProvisioned(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "access_not_provisioned";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_unmanagedAccessGrantErrorsUnrecognized_model")]
public class UnmanagedAccessGrantErrorsUnrecognized : UnmanagedAccessGrantErrors
{
@@ -598,6 +654,10 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedAccessGrantWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessGrantWarningsAccessRevoked),
+ "access_revoked"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessGrantWarningsDeviceTimeConstraintsViolated),
"device_time_constraints_violated"
@@ -814,7 +874,8 @@ protected UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices() { }
public UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices(
string deviceId = default,
- string errorCode = default,
+ UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices.ErrorCodeEnum errorCode =
+ default,
string message = default
)
{
@@ -823,6 +884,19 @@ public UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices(
Message = message;
}
+ ///
+ /// Reason the access code could not be revoked.
+ ///
+ [JsonConverter(typeof(SafeStringEnumConverter))]
+ public enum ErrorCodeEnum
+ {
+ [EnumMember(Value = "unrecognized")]
+ Unrecognized = 0,
+
+ [EnumMember(Value = "offline_access_code_not_revocable")]
+ OfflineAccessCodeNotRevocable = 1,
+ }
+
///
/// Device whose access code could not be revoked.
///
@@ -830,10 +904,10 @@ public UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices(
public string DeviceId { get; set; }
///
- /// Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
+ /// Reason the access code could not be revoked.
///
[DataMember(Name = "error_code", IsRequired = false, EmitDefaultValue = false)]
- public string ErrorCode { get; set; }
+ public UnmanagedAccessGrantWarningsOverprovisionedAccessFailedDevices.ErrorCodeEnum ErrorCode { get; set; }
///
/// Human-readable description of why revocation failed.
@@ -931,14 +1005,16 @@ public class UnmanagedAccessGrantWarningsRequestedCodeUnavailable
protected UnmanagedAccessGrantWarningsRequestedCodeUnavailable() { }
public UnmanagedAccessGrantWarningsRequestedCodeUnavailable(
+ string? accessMethodId = default,
string createdAt = default,
- string deviceId = default,
+ string? deviceId = default,
string message = default,
string newCode = default,
string originalCode = default,
string warningCode = default
)
{
+ AccessMethodId = accessMethodId;
CreatedAt = createdAt;
DeviceId = deviceId;
Message = message;
@@ -947,6 +1023,12 @@ public UnmanagedAccessGrantWarningsRequestedCodeUnavailable(
WarningCode = warningCode;
}
+ ///
+ /// ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.
+ ///
+ [DataMember(Name = "access_method_id", IsRequired = false, EmitDefaultValue = false)]
+ public string? AccessMethodId { get; set; }
+
///
/// Date and time at which Seam created the warning.
///
@@ -954,10 +1036,10 @@ public UnmanagedAccessGrantWarningsRequestedCodeUnavailable(
public override string CreatedAt { get; set; }
///
- /// ID of the device where the requested code was unavailable.
+ /// ID of the device where the requested code was unavailable. Present when the code was set directly on a device.
///
[DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)]
- public string DeviceId { get; set; }
+ public string? DeviceId { get; set; }
///
/// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -1154,6 +1236,66 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_unmanagedAccessGrantWarningsAccessRevoked_model")]
+ public class UnmanagedAccessGrantWarningsAccessRevoked : UnmanagedAccessGrantWarnings
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessGrantWarningsAccessRevoked() { }
+
+ public UnmanagedAccessGrantWarningsAccessRevoked(
+ string accessMethodId = default,
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ AccessMethodId = accessMethodId;
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// ID of the access method whose access was revoked.
+ ///
+ [DataMember(Name = "access_method_id", IsRequired = false, EmitDefaultValue = false)]
+ public string AccessMethodId { get; set; }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "access_revoked";
+
+ 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_unmanagedAccessGrantWarningsUnrecognized_model")]
public class UnmanagedAccessGrantWarningsUnrecognized : UnmanagedAccessGrantWarnings
{
diff --git a/src/Seam/Model/UnmanagedAccessMethod.cs b/src/Seam/Model/UnmanagedAccessMethod.cs
index d2c8898..e43bd61 100644
--- a/src/Seam/Model/UnmanagedAccessMethod.cs
+++ b/src/Seam/Model/UnmanagedAccessMethod.cs
@@ -56,6 +56,10 @@ public UnmanagedAccessMethod(
[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedAccessMethodErrorsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessMethodErrorsAccessNotProvisioned),
+ "access_not_provisioned"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessMethodErrorsFailedToIssue),
"failed_to_issue"
@@ -123,6 +127,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_unmanagedAccessMethodErrorsAccessNotProvisioned_model")]
+ public class UnmanagedAccessMethodErrorsAccessNotProvisioned : UnmanagedAccessMethodErrors
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessMethodErrorsAccessNotProvisioned() { }
+
+ public UnmanagedAccessMethodErrorsAccessNotProvisioned(
+ string createdAt = default,
+ string errorCode = default,
+ string message = default
+ )
+ {
+ CreatedAt = createdAt;
+ ErrorCode = errorCode;
+ Message = message;
+ }
+
+ ///
+ /// Date and time at which Seam created the error.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ [DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string ErrorCode { get; } = "access_not_provisioned";
+
+ ///
+ /// Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { 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_unmanagedAccessMethodErrorsUnrecognized_model")]
public class UnmanagedAccessMethodErrorsUnrecognized : UnmanagedAccessMethodErrors
{
@@ -199,6 +255,10 @@ public enum ModeEnum
[JsonConverter(typeof(JsonSubtypes), "mutation_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedAccessMethodPendingMutationsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessMethodPendingMutationsWaitingForAccessOnAcsSystem),
+ "waiting_for_access_on_acs_system"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessMethodPendingMutationsUpdatingAccessTimes),
"updating_access_times"
@@ -695,6 +755,61 @@ public override string ToString()
}
}
+ [DataContract(
+ Name = "seamModel_unmanagedAccessMethodPendingMutationsWaitingForAccessOnAcsSystem_model"
+ )]
+ public class UnmanagedAccessMethodPendingMutationsWaitingForAccessOnAcsSystem
+ : UnmanagedAccessMethodPendingMutations
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessMethodPendingMutationsWaitingForAccessOnAcsSystem() { }
+
+ public UnmanagedAccessMethodPendingMutationsWaitingForAccessOnAcsSystem(
+ string createdAt = default,
+ string message = default,
+ string mutationCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ MutationCode = mutationCode;
+ }
+
+ ///
+ /// Date and time at which the mutation was created.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the mutation.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "mutation_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string MutationCode { get; } = "waiting_for_access_on_acs_system";
+
+ 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_unmanagedAccessMethodPendingMutationsUnrecognized_model")]
public class UnmanagedAccessMethodPendingMutationsUnrecognized
: UnmanagedAccessMethodPendingMutations
@@ -750,6 +865,14 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedAccessMethodWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessMethodWarningsScheduleRoundedUp),
+ "schedule_rounded_up"
+ )]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedAccessMethodWarningsRequestedCodeUnavailable),
+ "requested_code_unavailable"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAccessMethodWarningsUserIdentityMissingPhoneNumber),
"user_identity_missing_phone_number"
@@ -1117,6 +1240,129 @@ public override string ToString()
}
}
+ [DataContract(
+ Name = "seamModel_unmanagedAccessMethodWarningsRequestedCodeUnavailable_model"
+ )]
+ public class UnmanagedAccessMethodWarningsRequestedCodeUnavailable
+ : UnmanagedAccessMethodWarnings
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessMethodWarningsRequestedCodeUnavailable() { }
+
+ public UnmanagedAccessMethodWarningsRequestedCodeUnavailable(
+ string createdAt = default,
+ string message = default,
+ string newCode = default,
+ string originalCode = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ NewCode = newCode;
+ OriginalCode = originalCode;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ ///
+ /// The PIN code that was assigned instead.
+ ///
+ [DataMember(Name = "new_code", IsRequired = false, EmitDefaultValue = false)]
+ public string NewCode { get; set; }
+
+ ///
+ /// The originally requested PIN code that could not be used.
+ ///
+ [DataMember(Name = "original_code", IsRequired = false, EmitDefaultValue = false)]
+ public string OriginalCode { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "requested_code_unavailable";
+
+ 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_unmanagedAccessMethodWarningsScheduleRoundedUp_model")]
+ public class UnmanagedAccessMethodWarningsScheduleRoundedUp : UnmanagedAccessMethodWarnings
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedAccessMethodWarningsScheduleRoundedUp() { }
+
+ public UnmanagedAccessMethodWarningsScheduleRoundedUp(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "schedule_rounded_up";
+
+ 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_unmanagedAccessMethodWarningsUnrecognized_model")]
public class UnmanagedAccessMethodWarningsUnrecognized : UnmanagedAccessMethodWarnings
{
@@ -1230,7 +1476,7 @@ public override string ToString()
public bool? IsReadyForAssignment { get; set; }
///
- /// Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
+ /// Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
///
[DataMember(Name = "is_ready_for_encoding", IsRequired = false, EmitDefaultValue = false)]
public bool? IsReadyForEncoding { get; set; }
diff --git a/src/Seam/Model/UnmanagedDevice.cs b/src/Seam/Model/UnmanagedDevice.cs
index 0317ac1..9f9d8c6 100644
--- a/src/Seam/Model/UnmanagedDevice.cs
+++ b/src/Seam/Model/UnmanagedDevice.cs
@@ -123,7 +123,7 @@ public enum CapabilitiesSupportedEnum
}
///
- /// Type of the device.
+ /// Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.
///
[JsonConverter(typeof(SafeStringEnumConverter))]
public enum DeviceTypeEnum
@@ -182,92 +182,110 @@ public enum DeviceTypeEnum
[EnumMember(Value = "yale_lock")]
YaleLock = 17,
+ [EnumMember(Value = "yale_access_lock")]
+ YaleAccessLock = 18,
+
+ [EnumMember(Value = "yale_home_lock")]
+ YaleHomeLock = 19,
+
+ [EnumMember(Value = "yale_connect_lock")]
+ YaleConnectLock = 20,
+
[EnumMember(Value = "two_n_intercom")]
- TwoNIntercom = 18,
+ TwoNIntercom = 21,
[EnumMember(Value = "controlbyweb_device")]
- ControlbywebDevice = 19,
+ ControlbywebDevice = 22,
[EnumMember(Value = "ttlock_lock")]
- TtlockLock = 20,
+ TtlockLock = 23,
[EnumMember(Value = "igloohome_lock")]
- IgloohomeLock = 21,
+ IgloohomeLock = 24,
[EnumMember(Value = "four_suites_door")]
- FourSuitesDoor = 22,
+ FourSuitesDoor = 25,
[EnumMember(Value = "dormakaba_oracode_door")]
- DormakabaOracodeDoor = 23,
+ DormakabaOracodeDoor = 26,
[EnumMember(Value = "tedee_lock")]
- TedeeLock = 24,
+ TedeeLock = 27,
[EnumMember(Value = "akiles_lock")]
- AkilesLock = 25,
+ AkilesLock = 28,
[EnumMember(Value = "ultraloq_lock")]
- UltraloqLock = 26,
+ UltraloqLock = 29,
[EnumMember(Value = "yacan_lock")]
- YacanLock = 27,
+ YacanLock = 30,
[EnumMember(Value = "keyincode_lock")]
- KeyincodeLock = 28,
+ KeyincodeLock = 31,
[EnumMember(Value = "omnitec_lock")]
- OmnitecLock = 29,
+ OmnitecLock = 32,
[EnumMember(Value = "kisi_lock")]
- KisiLock = 30,
+ KisiLock = 33,
[EnumMember(Value = "aqara_lock")]
- AqaraLock = 31,
+ AqaraLock = 34,
+
+ [EnumMember(Value = "eufy_lock")]
+ EufyLock = 35,
[EnumMember(Value = "keynest_key")]
- KeynestKey = 32,
+ KeynestKey = 36,
[EnumMember(Value = "noiseaware_activity_zone")]
- NoiseawareActivityZone = 33,
+ NoiseawareActivityZone = 37,
[EnumMember(Value = "minut_sensor")]
- MinutSensor = 34,
+ MinutSensor = 38,
[EnumMember(Value = "ecobee_thermostat")]
- EcobeeThermostat = 35,
+ EcobeeThermostat = 39,
[EnumMember(Value = "nest_thermostat")]
- NestThermostat = 36,
+ NestThermostat = 40,
[EnumMember(Value = "honeywell_resideo_thermostat")]
- HoneywellResideoThermostat = 37,
+ HoneywellResideoThermostat = 41,
[EnumMember(Value = "tado_thermostat")]
- TadoThermostat = 38,
+ TadoThermostat = 42,
[EnumMember(Value = "sensi_thermostat")]
- SensiThermostat = 39,
+ SensiThermostat = 43,
[EnumMember(Value = "smartthings_thermostat")]
- SmartthingsThermostat = 40,
+ SmartthingsThermostat = 44,
[EnumMember(Value = "ios_phone")]
- IosPhone = 41,
+ IosPhone = 45,
[EnumMember(Value = "android_phone")]
- AndroidPhone = 42,
+ AndroidPhone = 46,
[EnumMember(Value = "ring_camera")]
- RingCamera = 43,
+ RingCamera = 47,
[EnumMember(Value = "tapo_camera")]
- TapoCamera = 44,
+ TapoCamera = 48,
[EnumMember(Value = "arlo_camera")]
- ArloCamera = 45,
+ ArloCamera = 49,
[EnumMember(Value = "reolink_camera")]
- ReolinkCamera = 46,
+ ReolinkCamera = 50,
+
+ [EnumMember(Value = "unifi_protect_camera")]
+ UnifiProtectCamera = 51,
+
+ [EnumMember(Value = "sonos_speaker")]
+ SonosSpeaker = 52,
}
[JsonConverter(typeof(JsonSubtypes), "error_code")]
@@ -1289,6 +1307,10 @@ public override string ToString()
[JsonConverter(typeof(JsonSubtypes), "warning_code")]
[JsonSubtypes.FallBackSubType(typeof(UnmanagedDeviceWarningsUnrecognized))]
+ [JsonSubtypes.KnownSubType(
+ typeof(UnmanagedDeviceWarningsCloudRecordingNotEnabled),
+ "cloud_recording_not_enabled"
+ )]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedDeviceWarningsMaxAccessCodesReached),
"max_access_codes_reached"
@@ -2904,6 +2926,58 @@ public override string ToString()
}
}
+ [DataContract(Name = "seamModel_unmanagedDeviceWarningsCloudRecordingNotEnabled_model")]
+ public class UnmanagedDeviceWarningsCloudRecordingNotEnabled : UnmanagedDeviceWarnings
+ {
+ [JsonConstructorAttribute]
+ protected UnmanagedDeviceWarningsCloudRecordingNotEnabled() { }
+
+ public UnmanagedDeviceWarningsCloudRecordingNotEnabled(
+ string createdAt = default,
+ string message = default,
+ string warningCode = default
+ )
+ {
+ CreatedAt = createdAt;
+ Message = message;
+ WarningCode = warningCode;
+ }
+
+ ///
+ /// Date and time at which Seam created the warning.
+ ///
+ [DataMember(Name = "created_at", IsRequired = false, EmitDefaultValue = false)]
+ public override string CreatedAt { get; set; }
+
+ ///
+ /// Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
+ ///
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public override string Message { get; set; }
+
+ [DataMember(Name = "warning_code", IsRequired = true, EmitDefaultValue = false)]
+ public override string WarningCode { get; } = "cloud_recording_not_enabled";
+
+ 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_unmanagedDeviceWarningsUnrecognized_model")]
public class UnmanagedDeviceWarningsUnrecognized : UnmanagedDeviceWarnings
{
@@ -3115,7 +3189,7 @@ public override string ToString()
public bool? CanSimulateRemoval { get; set; }
///
- /// Indicates whether the camera supports streaming live video through a camera live view session.
+ /// Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.
///
[DataMember(Name = "can_stream_live_video", IsRequired = false, EmitDefaultValue = false)]
public bool? CanStreamLiveVideo { get; set; }
@@ -3163,7 +3237,7 @@ public override string ToString()
public string DeviceId { get; set; }
///
- /// Type of the device.
+ /// Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.
///
[DataMember(Name = "device_type", IsRequired = false, EmitDefaultValue = false)]
public UnmanagedDevice.DeviceTypeEnum DeviceType { get; set; }