From 34bda4f75650c8ba2e759f450d470cac5e9ba45d Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 28 Apr 2026 22:19:03 +0000 Subject: [PATCH] feat: Sync with Seam API via f9c14701842e9d6d72afc57d804028397bbf2249 --- src/lib/seam/connect/models/devices/device.ts | 14 ++ src/lib/seam/connect/openapi.ts | 52 ++++++ src/lib/seam/connect/route-types.ts | 160 ++++++++++++++++++ 3 files changed, 226 insertions(+) diff --git a/src/lib/seam/connect/models/devices/device.ts b/src/lib/seam/connect/models/devices/device.ts index 0e3a0fb3..e3f92513 100644 --- a/src/lib/seam/connect/models/devices/device.ts +++ b/src/lib/seam/connect/models/devices/device.ts @@ -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') @@ -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, @@ -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() diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 5a8a0c5f..f9daf623 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -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.', @@ -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.', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 4d28083c..5ccfa43f 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -14441,6 +14441,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -19671,6 +19679,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -38965,6 +38981,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -40847,6 +40871,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -42431,6 +42463,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -43195,6 +43235,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -53174,6 +53222,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -54824,6 +54880,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -56664,6 +56728,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -58313,6 +58385,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -66259,6 +66339,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -67908,6 +67996,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -83711,6 +83807,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -90966,6 +91070,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -95853,6 +95965,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -97502,6 +97622,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -106329,6 +106457,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -107980,6 +108116,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -110920,6 +111064,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -114300,6 +114452,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_ks_lock_access_code_support_removed' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string