Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Feb 20, 2025
1 parent d1309fe commit 60f9a6a
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,14 @@ const management_transferred = common_access_code_warning
})
.describe('Management was transferred to another workspace.')

const kwikset_unable_to_confirm_code_warning = common_access_code_warning
.extend({
warning_code: z
.literal('kwikset_unable_to_confirm_code')
.describe(warning_code_description),
})
.describe('Unable to confirm the access code is set on Kwikset device.')

const access_code_warning = z.discriminatedUnion('warning_code', [
smartthings_failed_to_set_access_code_warning,
schlage_detected_duplicate,
Expand All @@ -304,6 +312,7 @@ const access_code_warning = z.discriminatedUnion('warning_code', [
august_device_programming_delay_warning,
igloo_algopin_must_be_used_within_24_hours,
management_transferred,
kwikset_unable_to_confirm_code_warning,
])

export type AccessCodeWarning = z.infer<typeof access_code_warning>
Expand Down
30 changes: 30 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,21 @@ export default {
required: ['message', 'warning_code'],
type: 'object',
},
{
description:
'Unable to confirm the access code is set on Kwikset device.',
properties: {
message: { type: 'string' },
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['kwikset_unable_to_confirm_code'],
type: 'string',
},
},
required: ['message', 'warning_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down Expand Up @@ -12760,6 +12775,21 @@ export default {
required: ['message', 'warning_code'],
type: 'object',
},
{
description:
'Unable to confirm the access code is set on Kwikset device.',
properties: {
message: { type: 'string' },
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['kwikset_unable_to_confirm_code'],
type: 'string',
},
},
required: ['message', 'warning_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down
45 changes: 45 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -1654,6 +1659,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -3023,6 +3033,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -3338,6 +3353,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -3652,6 +3672,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -3954,6 +3979,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
/** Indicates whether Seam manages the access code. */
is_managed: true
Expand Down Expand Up @@ -4264,6 +4294,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
is_managed: false
/** Date and time at which the time-bound access code becomes active. */
Expand Down Expand Up @@ -5609,6 +5644,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
is_managed: false
/** Date and time at which the time-bound access code becomes active. */
Expand Down Expand Up @@ -5901,6 +5941,11 @@ export interface Routes {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'management_transferred'
}
| {
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'kwikset_unable_to_confirm_code'
}
>
is_managed: false
/** Date and time at which the time-bound access code becomes active. */
Expand Down

0 comments on commit 60f9a6a

Please sign in to comment.