Skip to content

Commit 7f9b799

Browse files
committed
feat: Sync with Seam API via 390dc634d9f33f9082973b682eb0b80bf5b0e25c
1 parent 33b0c48 commit 7f9b799

File tree

3 files changed

+227
-0
lines changed

3 files changed

+227
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,17 @@ const keynest_unsupported_locker = common_device_warning.extend({
432432
Indicates that the key is in a locker that does not support the access codes API.
433433
`)
434434

435+
const accessory_keypad_setup_required = common_device_warning.extend({
436+
warning_code: z
437+
.literal('accessory_keypad_setup_required')
438+
.describe(warning_code_description),
439+
}).describe(`
440+
---
441+
variant_group_key: locks
442+
---
443+
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.
444+
`)
445+
435446
const device_warning = z.discriminatedUnion('warning_code', [
436447
partial_backup_access_code_pool,
437448
many_active_backup_codes,
@@ -451,6 +462,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
451462
lockly_time_zone_not_configured,
452463
hub_required_for_addtional_capabilities,
453464
keynest_unsupported_locker,
465+
accessory_keypad_setup_required,
454466
])
455467

456468
export type DeviceWarning = z.infer<typeof device_warning>
@@ -497,6 +509,9 @@ const _device_warning_map = z.object({
497509
hub_required_for_addtional_capabilities:
498510
hub_required_for_addtional_capabilities.optional().nullable(),
499511
keynest_unsupported_locker: keynest_unsupported_locker.optional().nullable(),
512+
accessory_keypad_setup_required: accessory_keypad_setup_required
513+
.optional()
514+
.nullable(),
500515
})
501516

502517
export type DeviceWarningMap = z.infer<typeof _device_warning_map>

src/lib/seam/connect/openapi.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13435,6 +13435,32 @@ export default {
1343513435
type: 'object',
1343613436
'x-variant-group-key': 'locks',
1343713437
},
13438+
{
13439+
description:
13440+
'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.',
13441+
properties: {
13442+
created_at: {
13443+
description:
13444+
'Date and time at which Seam created the warning.',
13445+
format: 'date-time',
13446+
type: 'string',
13447+
},
13448+
message: {
13449+
description:
13450+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
13451+
type: 'string',
13452+
},
13453+
warning_code: {
13454+
description:
13455+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
13456+
enum: ['accessory_keypad_setup_required'],
13457+
type: 'string',
13458+
},
13459+
},
13460+
required: ['message', 'created_at', 'warning_code'],
13461+
type: 'object',
13462+
'x-variant-group-key': 'locks',
13463+
},
1343813464
],
1343913465
},
1344013466
type: 'array',
@@ -26045,6 +26071,32 @@ export default {
2604526071
type: 'object',
2604626072
'x-variant-group-key': 'locks',
2604726073
},
26074+
{
26075+
description:
26076+
'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.',
26077+
properties: {
26078+
created_at: {
26079+
description:
26080+
'Date and time at which Seam created the warning.',
26081+
format: 'date-time',
26082+
type: 'string',
26083+
},
26084+
message: {
26085+
description:
26086+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
26087+
type: 'string',
26088+
},
26089+
warning_code: {
26090+
description:
26091+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
26092+
enum: ['accessory_keypad_setup_required'],
26093+
type: 'string',
26094+
},
26095+
},
26096+
required: ['message', 'created_at', 'warning_code'],
26097+
type: 'object',
26098+
'x-variant-group-key': 'locks',
26099+
},
2604826100
],
2604926101
},
2605026102
type: 'array',

0 commit comments

Comments
 (0)