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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/lib/seam/connect/models/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@ const keynest_unsupported_locker = common_device_warning.extend({
Indicates that the key is in a locker that does not support the access codes API.
`)

const accessory_keypad_setup_required = common_device_warning.extend({
warning_code: z
.literal('accessory_keypad_setup_required')
.describe(warning_code_description),
}).describe(`
---
variant_group_key: locks
---
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.
`)

const device_warning = z.discriminatedUnion('warning_code', [
partial_backup_access_code_pool,
many_active_backup_codes,
Expand All @@ -451,6 +462,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
lockly_time_zone_not_configured,
hub_required_for_addtional_capabilities,
keynest_unsupported_locker,
accessory_keypad_setup_required,
])

export type DeviceWarning = z.infer<typeof device_warning>
Expand Down Expand Up @@ -497,6 +509,9 @@ const _device_warning_map = z.object({
hub_required_for_addtional_capabilities:
hub_required_for_addtional_capabilities.optional().nullable(),
keynest_unsupported_locker: keynest_unsupported_locker.optional().nullable(),
accessory_keypad_setup_required: accessory_keypad_setup_required
.optional()
.nullable(),
})

export type DeviceWarningMap = z.infer<typeof _device_warning_map>
Expand Down
52 changes: 52 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13435,6 +13435,32 @@ export default {
type: 'object',
'x-variant-group-key': 'locks',
},
{
description:
'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.',
properties: {
created_at: {
description:
'Date and time at which Seam created the warning.',
format: 'date-time',
type: 'string',
},
message: {
description:
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['accessory_keypad_setup_required'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
'x-variant-group-key': 'locks',
},
],
},
type: 'array',
Expand Down Expand Up @@ -26045,6 +26071,32 @@ export default {
type: 'object',
'x-variant-group-key': 'locks',
},
{
description:
'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.',
properties: {
created_at: {
description:
'Date and time at which Seam created the warning.',
format: 'date-time',
type: 'string',
},
message: {
description:
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['accessory_keypad_setup_required'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
'x-variant-group-key': 'locks',
},
],
},
type: 'array',
Expand Down
Loading