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/access-codes/managed-access-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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).',
Expand Down Expand Up @@ -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<typeof _access_code_warning_map>
Expand Down
50 changes: 50 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
88 changes: 88 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down