Skip to content

Commit 1dbdb78

Browse files
authored
feat: Sync with Seam API via 1cf27526e42cc829471c10010c926f21064ca0c4 (#2726)
1 parent 2298375 commit 1dbdb78

File tree

3 files changed

+225
-0
lines changed

3 files changed

+225
-0
lines changed

src/lib/seam/connect/models/devices/device.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,17 @@ const accessory_keypad_setup_required = common_device_warning.extend({
463463
Indicates that the accessory keypad exists, but is not linked to the Igloohome Bridge. Online access code programming will fail until the keypad is linked to the Igloohome Bridge in the Igloohome app.
464464
`)
465465

466+
const unreliable_online_status = common_device_warning.extend({
467+
warning_code: z
468+
.literal('unreliable_online_status')
469+
.describe(warning_code_description),
470+
}).describe(`
471+
---
472+
variant_group_key: locks
473+
---
474+
Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
475+
`)
476+
466477
const max_access_codes_reached = common_device_warning.extend({
467478
warning_code: z
468479
.literal('max_access_codes_reached')
@@ -506,6 +517,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
506517
hub_required_for_additional_capabilities,
507518
keynest_unsupported_locker,
508519
accessory_keypad_setup_required,
520+
unreliable_online_status,
509521
max_access_codes_reached,
510522
])
511523

@@ -560,6 +572,7 @@ const _device_warning_map = z.object({
560572
accessory_keypad_setup_required: accessory_keypad_setup_required
561573
.optional()
562574
.nullable(),
575+
unreliable_online_status: unreliable_online_status.optional().nullable(),
563576
max_access_codes_reached: max_access_codes_reached.optional().nullable(),
564577
})
565578

src/lib/seam/connect/openapi.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14694,6 +14694,32 @@ export default {
1469414694
type: 'object',
1469514695
'x-variant-group-key': 'locks',
1469614696
},
14697+
{
14698+
description:
14699+
'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.',
14700+
properties: {
14701+
created_at: {
14702+
description:
14703+
'Date and time at which Seam created the warning.',
14704+
format: 'date-time',
14705+
type: 'string',
14706+
},
14707+
message: {
14708+
description:
14709+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
14710+
type: 'string',
14711+
},
14712+
warning_code: {
14713+
description:
14714+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
14715+
enum: ['unreliable_online_status'],
14716+
type: 'string',
14717+
},
14718+
},
14719+
required: ['message', 'created_at', 'warning_code'],
14720+
type: 'object',
14721+
'x-variant-group-key': 'locks',
14722+
},
1469714723
{
1469814724
description:
1469914725
'Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.',
@@ -30296,6 +30322,32 @@ export default {
3029630322
type: 'object',
3029730323
'x-variant-group-key': 'locks',
3029830324
},
30325+
{
30326+
description:
30327+
'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.',
30328+
properties: {
30329+
created_at: {
30330+
description:
30331+
'Date and time at which Seam created the warning.',
30332+
format: 'date-time',
30333+
type: 'string',
30334+
},
30335+
message: {
30336+
description:
30337+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
30338+
type: 'string',
30339+
},
30340+
warning_code: {
30341+
description:
30342+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
30343+
enum: ['unreliable_online_status'],
30344+
type: 'string',
30345+
},
30346+
},
30347+
required: ['message', 'created_at', 'warning_code'],
30348+
type: 'object',
30349+
'x-variant-group-key': 'locks',
30350+
},
3029930351
{
3030030352
description:
3030130353
'Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.',

0 commit comments

Comments
 (0)