From 2853e70d77d1af4b6f6a759f51410a1b40ab7936 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 29 May 2026 11:09:36 +0000 Subject: [PATCH] feat: Sync with Seam API via e4283e53098ef42fa628ed6991e6e42fbd32240a --- .../access-codes/managed-access-code.ts | 24 --- src/lib/seam/connect/openapi.ts | 112 ---------- src/lib/seam/connect/route-types.ts | 198 ------------------ 3 files changed, 334 deletions(-) diff --git a/src/lib/seam/connect/models/access-codes/managed-access-code.ts b/src/lib/seam/connect/models/access-codes/managed-access-code.ts index 59c545f4..0cf52b84 100644 --- a/src/lib/seam/connect/models/access-codes/managed-access-code.ts +++ b/src/lib/seam/connect/models/access-codes/managed-access-code.ts @@ -139,14 +139,6 @@ const august_lock_invalid_code_length = common_access_code_error }) .describe('Invalid code length for August lock.') -const august_device_programming_delay_error = common_access_code_error - .extend({ - error_code: z - .literal('august_device_programming_delay') - .describe(error_code_description), - }) - .describe('Access code has not yet been fully moved to the device.') - const august_lock_temporarily_offline_error = common_access_code_error .extend({ error_code: z @@ -238,7 +230,6 @@ const access_code_error = z kwikset_unable_to_confirm_deletion, code_modified_external_to_seam_error, august_lock_invalid_code_length, - august_device_programming_delay_error, august_lock_missing_keypad, august_lock_temporarily_offline_error, salto_ks_user_not_subscribed, @@ -289,9 +280,6 @@ const _access_code_error_map = z.object({ august_lock_invalid_code_length: august_lock_invalid_code_length .optional() .nullable(), - august_device_programming_delay: august_device_programming_delay_error - .optional() - .nullable(), august_lock_temporarily_offline: august_lock_temporarily_offline_error .optional() .nullable(), @@ -340,14 +328,6 @@ const smartthings_failed_to_set_access_code_warning = common_access_code_warning }) .describe('Failed to set code on SmartThings device.') -const august_device_programming_delay_warning = common_access_code_warning - .extend({ - warning_code: z - .literal('august_device_programming_delay') - .describe(warning_code_description), - }) - .describe('Access code has not yet been fully moved to the device.') - const august_lock_temporarily_offline_warning = common_access_code_warning .extend({ warning_code: z @@ -479,7 +459,6 @@ const access_code_warning = z delay_in_setting_on_device, delay_in_removing_from_device, third_party_integration_detected, - august_device_programming_delay_warning, august_lock_temporarily_offline_warning, igloo_algopin_must_be_used_within_24_hours, management_transferred, @@ -511,9 +490,6 @@ const _access_code_warning_map = z.object({ third_party_integration_detected: third_party_integration_detected .optional() .nullable(), - august_device_programming_delay: august_device_programming_delay_warning - .optional() - .nullable(), august_lock_temporarily_offline: august_lock_temporarily_offline_warning .optional() .nullable(), diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 03baca59..fdde316e 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -482,37 +482,6 @@ const openapi: OpenAPISpec = { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, - { - description: - 'Access code has not yet been fully moved to the device.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the error.', - format: 'date-time', - type: 'string', - }, - error_code: { - description: - 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['august_device_programming_delay'], - type: 'string', - }, - is_access_code_error: { - description: - 'Indicates that this is an access code error.', - enum: [true], - type: 'boolean', - }, - message: { - description: - 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - }, - required: ['message', 'is_access_code_error', 'error_code'], - type: 'object', - }, { description: 'August lock is missing a keypad.', properties: { @@ -1895,31 +1864,6 @@ const openapi: OpenAPISpec = { required: ['message', 'warning_code'], type: 'object', }, - { - description: - 'Access code has not yet been fully moved to the device.', - 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: ['august_device_programming_delay'], - type: 'string', - }, - }, - required: ['message', 'warning_code'], - type: 'object', - }, { description: 'August lock is temporarily offline.', properties: { @@ -27776,37 +27720,6 @@ const openapi: OpenAPISpec = { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, - { - description: - 'Access code has not yet been fully moved to the device.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the error.', - format: 'date-time', - type: 'string', - }, - error_code: { - description: - 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['august_device_programming_delay'], - type: 'string', - }, - is_access_code_error: { - description: - 'Indicates that this is an access code error.', - enum: [true], - type: 'boolean', - }, - message: { - description: - 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - }, - required: ['message', 'is_access_code_error', 'error_code'], - type: 'object', - }, { description: 'August lock is missing a keypad.', properties: { @@ -28878,31 +28791,6 @@ const openapi: OpenAPISpec = { required: ['message', 'warning_code'], type: 'object', }, - { - description: - 'Access code has not yet been fully moved to the device.', - 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: ['august_device_programming_delay'], - type: 'string', - }, - }, - required: ['message', 'warning_code'], - type: 'object', - }, { description: 'August lock is temporarily offline.', properties: { diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 6b5d6216..2e21e02d 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -1954,16 +1954,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2277,14 +2267,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2659,16 +2641,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2982,14 +2954,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5136,16 +5100,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5459,14 +5413,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5928,16 +5874,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6251,14 +6187,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6622,16 +6550,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6945,14 +6863,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7293,16 +7203,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7616,14 +7516,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7999,16 +7891,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -8322,14 +8204,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10380,16 +10254,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10703,14 +10567,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10965,16 +10821,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -11288,14 +11134,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -128623,16 +128461,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -128946,14 +128774,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -129194,16 +129014,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_invalid_code_length' } - | { - /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Indicates that this is an access code error. */ - is_access_code_error: true - /** Date and time at which Seam created the error. */ - created_at?: string | undefined - /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'august_device_programming_delay' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -129517,14 +129327,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected' } - | { - /** 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 | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'august_device_programming_delay' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string