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 0cf52b84..1d3d8ea0 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 @@ -163,14 +163,6 @@ const salto_ks_user_not_subscribed = common_access_code_error }) .describe('Salto site user is not subscribed.') -const smartthings_no_free_slots_available = common_access_code_error - .extend({ - error_code: z - .literal('smartthings_no_free_slots_available') - .describe(error_code_description), - }) - .describe('No free slots available on the device.') - const wyze_duplicate_code_name = common_access_code_error .extend({ error_code: z @@ -219,7 +211,6 @@ const access_code_error = z .discriminatedUnion('error_code', [ smartthings_failed_to_set_access_code_error, smartthings_failed_to_set_after_multiple_retries, - smartthings_no_free_slots_available, failed_to_set_on_device, failed_to_remove_from_device, duplicate_code_on_device, @@ -251,9 +242,6 @@ const _access_code_error_map = z.object({ smartthings_failed_to_set_access_code_error.optional().nullable(), smartthings_failed_to_set_after_multiple_retries: smartthings_failed_to_set_after_multiple_retries.optional().nullable(), - smartthings_no_free_slots_available: smartthings_no_free_slots_available - .optional() - .nullable(), failed_to_set_on_device: failed_to_set_on_device.optional().nullable(), failed_to_remove_from_device: failed_to_remove_from_device .optional() diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index fdde316e..fcbc406c 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -166,36 +166,6 @@ const openapi: OpenAPISpec = { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, - { - description: 'No free slots available on 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: ['smartthings_no_free_slots_available'], - 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: 'Failed to set code on device.', properties: { @@ -27404,36 +27374,6 @@ const openapi: OpenAPISpec = { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, - { - description: 'No free slots available on 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: ['smartthings_no_free_slots_available'], - 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: 'Failed to set code on device.', properties: { diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 2e21e02d..9724c855 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -1850,16 +1850,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2537,16 +2527,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -4996,16 +4976,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5770,16 +5740,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6446,16 +6406,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7099,16 +7049,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7787,16 +7727,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10150,16 +10080,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10717,16 +10637,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -128357,16 +128267,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -128910,16 +128810,6 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } - | { - /** 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: 'smartthings_no_free_slots_available' - } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string