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
14 changes: 14 additions & 0 deletions src/lib/seam/connect/models/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,17 @@ const salto_ks_subscription_limit_almost_reached = common_device_warning
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.',
)

const salto_ks_lock_access_code_support_removed = common_device_warning.extend({
warning_code: z
.literal('salto_ks_lock_access_code_support_removed')
.describe(warning_code_description),
}).describe(`
---
variant_group_key: access_codes
---
Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.
`)

const wyze_device_missing_gateway = common_device_warning.extend({
warning_code: z
.literal('wyze_device_missing_gateway')
Expand Down Expand Up @@ -511,6 +522,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
salto_ks_office_mode,
salto_ks_privacy_mode,
salto_ks_subscription_limit_almost_reached,
salto_ks_lock_access_code_support_removed,
unknown_issue_with_phone,
lockly_time_zone_not_configured,
ultraloq_time_zone_unknown,
Expand Down Expand Up @@ -559,6 +571,8 @@ export const device_warning_map = z.object({
salto_ks_privacy_mode: salto_ks_privacy_mode.optional().nullable(),
salto_ks_subscription_limit_almost_reached:
salto_ks_subscription_limit_almost_reached.optional().nullable(),
salto_ks_lock_access_code_support_removed:
salto_ks_lock_access_code_support_removed.optional().nullable(),
unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable(),
lockly_time_zone_not_configured: lockly_time_zone_not_configured
.optional()
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 @@ -15239,6 +15239,32 @@ export default {
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.',
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: ['salto_ks_lock_access_code_support_removed'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
'x-variant-group-key': 'access_codes',
},
{
description:
'Indicates that an unknown issue occurred while syncing the state of the phone with the provider. This issue may affect the proper functioning of the phone.',
Expand Down Expand Up @@ -31000,6 +31026,32 @@ export default {
required: ['message', 'created_at', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.',
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: ['salto_ks_lock_access_code_support_removed'],
type: 'string',
},
},
required: ['message', 'created_at', 'warning_code'],
type: 'object',
'x-variant-group-key': 'access_codes',
},
{
description:
'Indicates that an unknown issue occurred while syncing the state of the phone with the provider. This issue may affect the proper functioning of the phone.',
Expand Down
Loading
Loading