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
12 changes: 12 additions & 0 deletions src/lib/seam/connect/models/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,16 @@ const lockly_time_zone_not_configured = common_device_warning
'Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.',
)

const ultraloq_time_zone_unknown = common_device_warning
.extend({
warning_code: z
.literal('ultraloq_time_zone_unknown')
.describe(warning_code_description),
})
.describe(
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
)

export const unknown_issue_with_phone = common_device_warning.extend({
warning_code: z
.literal('unknown_issue_with_phone')
Expand Down Expand Up @@ -460,6 +470,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
salto_ks_subscription_limit_almost_reached,
unknown_issue_with_phone,
lockly_time_zone_not_configured,
ultraloq_time_zone_unknown,
hub_required_for_addtional_capabilities,
keynest_unsupported_locker,
accessory_keypad_setup_required,
Expand Down Expand Up @@ -506,6 +517,7 @@ const _device_warning_map = z.object({
lockly_time_zone_not_configured: lockly_time_zone_not_configured
.optional()
.nullable(),
ultraloq_time_zone_unknown: ultraloq_time_zone_unknown.optional().nullable(),
hub_required_for_addtional_capabilities:
hub_required_for_addtional_capabilities.optional().nullable(),
keynest_unsupported_locker: keynest_unsupported_locker.optional().nullable(),
Expand Down
50 changes: 50 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13383,6 +13383,31 @@ export default {
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
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: ['ultraloq_time_zone_unknown'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.',
Expand Down Expand Up @@ -26019,6 +26044,31 @@ export default {
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.',
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: ['ultraloq_time_zone_unknown'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.',
Expand Down
Loading