Skip to content

Commit 7885588

Browse files
authored
feat: Sync with Seam API via 5ce279cee04fb66e3ebcb47041fbe6ab50ec4fc5 (#2732)
1 parent 337a215 commit 7885588

File tree

3 files changed

+150
-0
lines changed

3 files changed

+150
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,16 @@ const ultraloq_access_code_disabled = common_access_code_warning
427427
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
428428
)
429429

430+
const using_backup_access_code = common_access_code_warning
431+
.extend({
432+
warning_code: z
433+
.literal('using_backup_access_code')
434+
.describe(warning_code_description),
435+
})
436+
.describe(
437+
'A backup access code has been pulled and is being used in place of this access code.',
438+
)
439+
430440
const being_deleted = common_access_code_warning
431441
.extend({
432442
warning_code: z.literal('being_deleted').describe(warning_code_description),
@@ -448,6 +458,7 @@ const access_code_warning = z
448458
management_transferred,
449459
kwikset_unable_to_confirm_code_warning,
450460
ultraloq_access_code_disabled,
461+
using_backup_access_code,
451462
being_deleted,
452463
])
453464
.describe(
@@ -486,6 +497,7 @@ const _access_code_warning_map = z.object({
486497
ultraloq_access_code_disabled: ultraloq_access_code_disabled
487498
.optional()
488499
.nullable(),
500+
using_backup_access_code: using_backup_access_code.optional().nullable(),
489501
being_deleted: being_deleted.optional().nullable(),
490502
})
491503

src/lib/seam/connect/openapi.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,31 @@ export default {
17291729
required: ['message', 'warning_code'],
17301730
type: 'object',
17311731
},
1732+
{
1733+
description:
1734+
'A backup access code has been pulled and is being used in place of this access code.',
1735+
properties: {
1736+
created_at: {
1737+
description:
1738+
'Date and time at which Seam created the warning.',
1739+
format: 'date-time',
1740+
type: 'string',
1741+
},
1742+
message: {
1743+
description:
1744+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1745+
type: 'string',
1746+
},
1747+
warning_code: {
1748+
description:
1749+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1750+
enum: ['using_backup_access_code'],
1751+
type: 'string',
1752+
},
1753+
},
1754+
required: ['message', 'warning_code'],
1755+
type: 'object',
1756+
},
17321757
{
17331758
description: 'Access code is being deleted.',
17341759
properties: {
@@ -27081,6 +27106,31 @@ export default {
2708127106
required: ['message', 'warning_code'],
2708227107
type: 'object',
2708327108
},
27109+
{
27110+
description:
27111+
'A backup access code has been pulled and is being used in place of this access code.',
27112+
properties: {
27113+
created_at: {
27114+
description:
27115+
'Date and time at which Seam created the warning.',
27116+
format: 'date-time',
27117+
type: 'string',
27118+
},
27119+
message: {
27120+
description:
27121+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
27122+
type: 'string',
27123+
},
27124+
warning_code: {
27125+
description:
27126+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
27127+
enum: ['using_backup_access_code'],
27128+
type: 'string',
27129+
},
27130+
},
27131+
required: ['message', 'warning_code'],
27132+
type: 'object',
27133+
},
2708427134
{
2708527135
description: 'Access code is being deleted.',
2708627136
properties: {

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

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,14 @@ export type Routes = {
20252025
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20262026
warning_code: 'ultraloq_access_code_disabled'
20272027
}
2028+
| {
2029+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2030+
message: string
2031+
/** Date and time at which Seam created the warning. */
2032+
created_at?: string | undefined
2033+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2034+
warning_code: 'using_backup_access_code'
2035+
}
20282036
| {
20292037
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20302038
message: string
@@ -2621,6 +2629,14 @@ export type Routes = {
26212629
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
26222630
warning_code: 'ultraloq_access_code_disabled'
26232631
}
2632+
| {
2633+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2634+
message: string
2635+
/** Date and time at which Seam created the warning. */
2636+
created_at?: string | undefined
2637+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2638+
warning_code: 'using_backup_access_code'
2639+
}
26242640
| {
26252641
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
26262642
message: string
@@ -4703,6 +4719,14 @@ export type Routes = {
47034719
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
47044720
warning_code: 'ultraloq_access_code_disabled'
47054721
}
4722+
| {
4723+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
4724+
message: string
4725+
/** Date and time at which Seam created the warning. */
4726+
created_at?: string | undefined
4727+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4728+
warning_code: 'using_backup_access_code'
4729+
}
47064730
| {
47074731
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
47084732
message: string
@@ -5386,6 +5410,14 @@ export type Routes = {
53865410
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
53875411
warning_code: 'ultraloq_access_code_disabled'
53885412
}
5413+
| {
5414+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5415+
message: string
5416+
/** Date and time at which Seam created the warning. */
5417+
created_at?: string | undefined
5418+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5419+
warning_code: 'using_backup_access_code'
5420+
}
53895421
| {
53905422
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
53915423
message: string
@@ -5973,6 +6005,14 @@ export type Routes = {
59736005
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
59746006
warning_code: 'ultraloq_access_code_disabled'
59756007
}
6008+
| {
6009+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6010+
message: string
6011+
/** Date and time at which Seam created the warning. */
6012+
created_at?: string | undefined
6013+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6014+
warning_code: 'using_backup_access_code'
6015+
}
59766016
| {
59776017
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
59786018
message: string
@@ -6537,6 +6577,14 @@ export type Routes = {
65376577
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
65386578
warning_code: 'ultraloq_access_code_disabled'
65396579
}
6580+
| {
6581+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6582+
message: string
6583+
/** Date and time at which Seam created the warning. */
6584+
created_at?: string | undefined
6585+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6586+
warning_code: 'using_backup_access_code'
6587+
}
65406588
| {
65416589
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
65426590
message: string
@@ -7136,6 +7184,14 @@ export type Routes = {
71367184
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
71377185
warning_code: 'ultraloq_access_code_disabled'
71387186
}
7187+
| {
7188+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7189+
message: string
7190+
/** Date and time at which Seam created the warning. */
7191+
created_at?: string | undefined
7192+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7193+
warning_code: 'using_backup_access_code'
7194+
}
71397195
| {
71407196
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
71417197
message: string
@@ -9205,6 +9261,14 @@ export type Routes = {
92059261
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
92069262
warning_code: 'ultraloq_access_code_disabled'
92079263
}
9264+
| {
9265+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9266+
message: string
9267+
/** Date and time at which Seam created the warning. */
9268+
created_at?: string | undefined
9269+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9270+
warning_code: 'using_backup_access_code'
9271+
}
92089272
| {
92099273
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
92109274
message: string
@@ -9766,6 +9830,14 @@ export type Routes = {
97669830
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
97679831
warning_code: 'ultraloq_access_code_disabled'
97689832
}
9833+
| {
9834+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9835+
message: string
9836+
/** Date and time at which Seam created the warning. */
9837+
created_at?: string | undefined
9838+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9839+
warning_code: 'using_backup_access_code'
9840+
}
97699841
| {
97709842
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
97719843
message: string
@@ -112924,6 +112996,14 @@ export type Routes = {
112924112996
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
112925112997
warning_code: 'ultraloq_access_code_disabled'
112926112998
}
112999+
| {
113000+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
113001+
message: string
113002+
/** Date and time at which Seam created the warning. */
113003+
created_at?: string | undefined
113004+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
113005+
warning_code: 'using_backup_access_code'
113006+
}
112927113007
| {
112928113008
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
112929113009
message: string
@@ -113471,6 +113551,14 @@ export type Routes = {
113471113551
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
113472113552
warning_code: 'ultraloq_access_code_disabled'
113473113553
}
113554+
| {
113555+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
113556+
message: string
113557+
/** Date and time at which Seam created the warning. */
113558+
created_at?: string | undefined
113559+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
113560+
warning_code: 'using_backup_access_code'
113561+
}
113474113562
| {
113475113563
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
113476113564
message: string

0 commit comments

Comments
 (0)