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 e6176b9a..e2a07c96 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 @@ -458,6 +458,16 @@ const kwikset_unable_to_confirm_code_warning = common_access_code_warning }) .describe('Unable to confirm that the access code is set on Kwikset device.') +const ultraloq_access_code_disabled = common_access_code_warning + .extend({ + warning_code: z + .literal('ultraloq_access_code_disabled') + .describe(warning_code_description), + }) + .describe( + 'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.', + ) + const access_code_warning = z .discriminatedUnion('warning_code', [ smartthings_failed_to_set_access_code_warning, @@ -472,6 +482,7 @@ const access_code_warning = z igloo_algopin_must_be_used_within_24_hours, management_transferred, kwikset_unable_to_confirm_code_warning, + ultraloq_access_code_disabled, ]) .describe( 'Warnings associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).', @@ -506,6 +517,9 @@ const _access_code_warning_map = z.object({ kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning .optional() .nullable(), + ultraloq_access_code_disabled: ultraloq_access_code_disabled + .optional() + .nullable(), }) export type AccessCodeWarningMap = z.infer diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 422cf6a2..04e79cdf 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -1775,6 +1775,31 @@ export default { required: ['message', 'warning_code'], type: 'object', }, + { + description: + 'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.', + 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_access_code_disabled'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, ], }, type: 'array', @@ -23223,6 +23248,31 @@ export default { required: ['message', 'warning_code'], type: 'object', }, + { + description: + 'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.', + 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_access_code_disabled'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, ], }, type: 'array', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index a5e7fda3..61191094 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2039,6 +2039,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -2649,6 +2657,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -4716,6 +4732,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -5300,6 +5324,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -5890,6 +5922,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -6457,6 +6497,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true @@ -7059,6 +7107,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates that Seam does not manage the access code. */ is_managed: false @@ -9113,6 +9169,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates that Seam does not manage the access code. */ is_managed: false @@ -9675,6 +9739,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates that Seam does not manage the access code. */ is_managed: false @@ -99735,6 +99807,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates that Seam does not manage the access code. */ is_managed: false @@ -100285,6 +100365,14 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'kwikset_unable_to_confirm_code' } + | { + /** 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: 'ultraloq_access_code_disabled' + } )[] /** Indicates whether Seam manages the access code. */ is_managed: true