Skip to content

Commit 07ad598

Browse files
authored
feat: Sync with Seam API via 5fec826798499c267c1b52d984d24b03ade270f0 (#2775)
1 parent ffb7861 commit 07ad598

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

src/lib/seam/connect/models/access-codes/managed-access-code.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ const schlage_creation_outage = common_access_code_warning
368368
})
369369
.describe('Received an error when attempting to create this code.')
370370

371+
const schlage_access_code_ambiguous_timezone_dst_risk =
372+
common_access_code_warning
373+
.extend({
374+
warning_code: z
375+
.literal('schlage_access_code_ambiguous_timezone_dst_risk')
376+
.describe(warning_code_description),
377+
})
378+
.describe(
379+
"The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
380+
)
381+
371382
const delay_in_setting_on_device = common_access_code_warning
372383
.extend({
373384
warning_code: z
@@ -449,6 +460,7 @@ const access_code_warning = z
449460
smartthings_failed_to_set_access_code_warning,
450461
schlage_detected_duplicate,
451462
schlage_creation_outage,
463+
schlage_access_code_ambiguous_timezone_dst_risk,
452464
code_modified_external_to_seam_warning,
453465
delay_in_setting_on_device,
454466
delay_in_removing_from_device,
@@ -473,6 +485,8 @@ const _access_code_warning_map = z.object({
473485
smartthings_failed_to_set_access_code_warning.optional().nullable(),
474486
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
475487
schlage_creation_outage: schlage_creation_outage.optional().nullable(),
488+
schlage_access_code_ambiguous_timezone_dst_risk:
489+
schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
476490
code_modified_external_to_seam_warning: code_modified_external_to_seam_warning
477491
.optional()
478492
.nullable(),

src/lib/seam/connect/openapi.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,31 @@ export default {
17531753
required: ['message', 'warning_code'],
17541754
type: 'object',
17551755
},
1756+
{
1757+
description:
1758+
"The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
1759+
properties: {
1760+
created_at: {
1761+
description:
1762+
'Date and time at which Seam created the warning.',
1763+
format: 'date-time',
1764+
type: 'string',
1765+
},
1766+
message: {
1767+
description:
1768+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1769+
type: 'string',
1770+
},
1771+
warning_code: {
1772+
description:
1773+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1774+
enum: ['schlage_access_code_ambiguous_timezone_dst_risk'],
1775+
type: 'string',
1776+
},
1777+
},
1778+
required: ['message', 'warning_code'],
1779+
type: 'object',
1780+
},
17561781
{
17571782
description:
17581783
'Code was modified or removed externally after Seam successfully set it on the device.',
@@ -27457,6 +27482,31 @@ export default {
2745727482
required: ['message', 'warning_code'],
2745827483
type: 'object',
2745927484
},
27485+
{
27486+
description:
27487+
"The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
27488+
properties: {
27489+
created_at: {
27490+
description:
27491+
'Date and time at which Seam created the warning.',
27492+
format: 'date-time',
27493+
type: 'string',
27494+
},
27495+
message: {
27496+
description:
27497+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
27498+
type: 'string',
27499+
},
27500+
warning_code: {
27501+
description:
27502+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
27503+
enum: ['schlage_access_code_ambiguous_timezone_dst_risk'],
27504+
type: 'string',
27505+
},
27506+
},
27507+
required: ['message', 'warning_code'],
27508+
type: 'object',
27509+
},
2746027510
{
2746127511
description:
2746227512
'Code was modified or removed externally after Seam successfully set it on the device.',

src/lib/seam/connect/route-types.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,14 @@ export type Routes = {
20192019
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20202020
warning_code: 'schlage_creation_outage'
20212021
}
2022+
| {
2023+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2024+
message: string
2025+
/** Date and time at which Seam created the warning. */
2026+
created_at?: string | undefined
2027+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2028+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
2029+
}
20222030
| {
20232031
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20242032
message: string
@@ -2710,6 +2718,14 @@ export type Routes = {
27102718
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
27112719
warning_code: 'schlage_creation_outage'
27122720
}
2721+
| {
2722+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2723+
message: string
2724+
/** Date and time at which Seam created the warning. */
2725+
created_at?: string | undefined
2726+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2727+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
2728+
}
27132729
| {
27142730
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
27152731
message: string
@@ -4961,6 +4977,14 @@ export type Routes = {
49614977
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
49624978
warning_code: 'schlage_creation_outage'
49634979
}
4980+
| {
4981+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
4982+
message: string
4983+
/** Date and time at which Seam created the warning. */
4984+
created_at?: string | undefined
4985+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4986+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
4987+
}
49644988
| {
49654989
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
49664990
message: string
@@ -5741,6 +5765,14 @@ export type Routes = {
57415765
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
57425766
warning_code: 'schlage_creation_outage'
57435767
}
5768+
| {
5769+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5770+
message: string
5771+
/** Date and time at which Seam created the warning. */
5772+
created_at?: string | undefined
5773+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5774+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
5775+
}
57445776
| {
57455777
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
57465778
message: string
@@ -6423,6 +6455,14 @@ export type Routes = {
64236455
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
64246456
warning_code: 'schlage_creation_outage'
64256457
}
6458+
| {
6459+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6460+
message: string
6461+
/** Date and time at which Seam created the warning. */
6462+
created_at?: string | undefined
6463+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6464+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
6465+
}
64266466
| {
64276467
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
64286468
message: string
@@ -7082,6 +7122,14 @@ export type Routes = {
70827122
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
70837123
warning_code: 'schlage_creation_outage'
70847124
}
7125+
| {
7126+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7127+
message: string
7128+
/** Date and time at which Seam created the warning. */
7129+
created_at?: string | undefined
7130+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7131+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
7132+
}
70857133
| {
70867134
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
70877135
message: string
@@ -7776,6 +7824,14 @@ export type Routes = {
77767824
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
77777825
warning_code: 'schlage_creation_outage'
77787826
}
7827+
| {
7828+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7829+
message: string
7830+
/** Date and time at which Seam created the warning. */
7831+
created_at?: string | undefined
7832+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7833+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
7834+
}
77797835
| {
77807836
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
77817837
message: string
@@ -9927,6 +9983,14 @@ export type Routes = {
99279983
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
99289984
warning_code: 'schlage_creation_outage'
99299985
}
9986+
| {
9987+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9988+
message: string
9989+
/** Date and time at which Seam created the warning. */
9990+
created_at?: string | undefined
9991+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9992+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
9993+
}
99309994
| {
99319995
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
99329996
message: string
@@ -10496,6 +10560,14 @@ export type Routes = {
1049610560
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1049710561
warning_code: 'schlage_creation_outage'
1049810562
}
10563+
| {
10564+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
10565+
message: string
10566+
/** Date and time at which Seam created the warning. */
10567+
created_at?: string | undefined
10568+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
10569+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
10570+
}
1049910571
| {
1050010572
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
1050110573
message: string
@@ -118640,6 +118712,14 @@ export type Routes = {
118640118712
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
118641118713
warning_code: 'schlage_creation_outage'
118642118714
}
118715+
| {
118716+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
118717+
message: string
118718+
/** Date and time at which Seam created the warning. */
118719+
created_at?: string | undefined
118720+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
118721+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
118722+
}
118643118723
| {
118644118724
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
118645118725
message: string
@@ -119195,6 +119275,14 @@ export type Routes = {
119195119275
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
119196119276
warning_code: 'schlage_creation_outage'
119197119277
}
119278+
| {
119279+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
119280+
message: string
119281+
/** Date and time at which Seam created the warning. */
119282+
created_at?: string | undefined
119283+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
119284+
warning_code: 'schlage_access_code_ambiguous_timezone_dst_risk'
119285+
}
119198119286
| {
119199119287
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
119200119288
message: string

0 commit comments

Comments
 (0)