Skip to content

Commit f41f849

Browse files
committed
feat: Sync with Seam API via 5710cbd549685931b600099ae42a9c8b660e250c
1 parent 047913e commit f41f849

File tree

3 files changed

+222
-0
lines changed

3 files changed

+222
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@ const lockly_time_zone_not_configured = common_device_warning
399399
'Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.',
400400
)
401401

402+
const ultraloq_time_zone_unknown = common_device_warning
403+
.extend({
404+
warning_code: z
405+
.literal('ultraloq_time_zone_unknown')
406+
.describe(warning_code_description),
407+
})
408+
.describe(
409+
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
410+
)
411+
402412
export const unknown_issue_with_phone = common_device_warning.extend({
403413
warning_code: z
404414
.literal('unknown_issue_with_phone')
@@ -460,6 +470,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
460470
salto_ks_subscription_limit_almost_reached,
461471
unknown_issue_with_phone,
462472
lockly_time_zone_not_configured,
473+
ultraloq_time_zone_unknown,
463474
hub_required_for_addtional_capabilities,
464475
keynest_unsupported_locker,
465476
accessory_keypad_setup_required,
@@ -506,6 +517,7 @@ const _device_warning_map = z.object({
506517
lockly_time_zone_not_configured: lockly_time_zone_not_configured
507518
.optional()
508519
.nullable(),
520+
ultraloq_time_zone_unknown: ultraloq_time_zone_unknown.optional().nullable(),
509521
hub_required_for_addtional_capabilities:
510522
hub_required_for_addtional_capabilities.optional().nullable(),
511523
keynest_unsupported_locker: keynest_unsupported_locker.optional().nullable(),

src/lib/seam/connect/openapi.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13383,6 +13383,31 @@ export default {
1338313383
required: ['message', 'created_at', 'warning_code'],
1338413384
type: 'object',
1338513385
},
13386+
{
13387+
description:
13388+
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
13389+
properties: {
13390+
created_at: {
13391+
description:
13392+
'Date and time at which Seam created the warning.',
13393+
format: 'date-time',
13394+
type: 'string',
13395+
},
13396+
message: {
13397+
description:
13398+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
13399+
type: 'string',
13400+
},
13401+
warning_code: {
13402+
description:
13403+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
13404+
enum: ['ultraloq_time_zone_unknown'],
13405+
type: 'string',
13406+
},
13407+
},
13408+
required: ['message', 'created_at', 'warning_code'],
13409+
type: 'object',
13410+
},
1338613411
{
1338713412
description:
1338813413
'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.',
@@ -26019,6 +26044,31 @@ export default {
2601926044
required: ['message', 'created_at', 'warning_code'],
2602026045
type: 'object',
2602126046
},
26047+
{
26048+
description:
26049+
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
26050+
properties: {
26051+
created_at: {
26052+
description:
26053+
'Date and time at which Seam created the warning.',
26054+
format: 'date-time',
26055+
type: 'string',
26056+
},
26057+
message: {
26058+
description:
26059+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
26060+
type: 'string',
26061+
},
26062+
warning_code: {
26063+
description:
26064+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
26065+
enum: ['ultraloq_time_zone_unknown'],
26066+
type: 'string',
26067+
},
26068+
},
26069+
required: ['message', 'created_at', 'warning_code'],
26070+
type: 'object',
26071+
},
2602226072
{
2602326073
description:
2602426074
'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.',

0 commit comments

Comments
 (0)