Skip to content

Commit abd3478

Browse files
committed
feat: Sync with Seam API via 8b70e62b20dcf78f09b8e9d4503be0ec75f2f881
1 parent 382d488 commit abd3478

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
@@ -458,6 +458,16 @@ const kwikset_unable_to_confirm_code_warning = common_access_code_warning
458458
})
459459
.describe('Unable to confirm that the access code is set on Kwikset device.')
460460

461+
const ultraloq_access_code_disabled = common_access_code_warning
462+
.extend({
463+
warning_code: z
464+
.literal('ultraloq_access_code_disabled')
465+
.describe(warning_code_description),
466+
})
467+
.describe(
468+
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
469+
)
470+
461471
const access_code_warning = z
462472
.discriminatedUnion('warning_code', [
463473
smartthings_failed_to_set_access_code_warning,
@@ -472,6 +482,7 @@ const access_code_warning = z
472482
igloo_algopin_must_be_used_within_24_hours,
473483
management_transferred,
474484
kwikset_unable_to_confirm_code_warning,
485+
ultraloq_access_code_disabled,
475486
])
476487
.describe(
477488
'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({
506517
kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning
507518
.optional()
508519
.nullable(),
520+
ultraloq_access_code_disabled: ultraloq_access_code_disabled
521+
.optional()
522+
.nullable(),
509523
})
510524

511525
export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>

src/lib/seam/connect/openapi.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,31 @@ export default {
17751775
required: ['message', 'warning_code'],
17761776
type: 'object',
17771777
},
1778+
{
1779+
description:
1780+
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
1781+
properties: {
1782+
created_at: {
1783+
description:
1784+
'Date and time at which Seam created the warning.',
1785+
format: 'date-time',
1786+
type: 'string',
1787+
},
1788+
message: {
1789+
description:
1790+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1791+
type: 'string',
1792+
},
1793+
warning_code: {
1794+
description:
1795+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1796+
enum: ['ultraloq_access_code_disabled'],
1797+
type: 'string',
1798+
},
1799+
},
1800+
required: ['message', 'warning_code'],
1801+
type: 'object',
1802+
},
17781803
],
17791804
},
17801805
type: 'array',
@@ -23223,6 +23248,31 @@ export default {
2322323248
required: ['message', 'warning_code'],
2322423249
type: 'object',
2322523250
},
23251+
{
23252+
description:
23253+
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
23254+
properties: {
23255+
created_at: {
23256+
description:
23257+
'Date and time at which Seam created the warning.',
23258+
format: 'date-time',
23259+
type: 'string',
23260+
},
23261+
message: {
23262+
description:
23263+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
23264+
type: 'string',
23265+
},
23266+
warning_code: {
23267+
description:
23268+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
23269+
enum: ['ultraloq_access_code_disabled'],
23270+
type: 'string',
23271+
},
23272+
},
23273+
required: ['message', 'warning_code'],
23274+
type: 'object',
23275+
},
2322623276
],
2322723277
},
2322823278
type: 'array',

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

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,6 +2039,14 @@ export type Routes = {
20392039
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20402040
warning_code: 'kwikset_unable_to_confirm_code'
20412041
}
2042+
| {
2043+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2044+
message: string
2045+
/** Date and time at which Seam created the warning. */
2046+
created_at?: string | undefined
2047+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2048+
warning_code: 'ultraloq_access_code_disabled'
2049+
}
20422050
)[]
20432051
/** Indicates whether Seam manages the access code. */
20442052
is_managed: true
@@ -2649,6 +2657,14 @@ export type Routes = {
26492657
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
26502658
warning_code: 'kwikset_unable_to_confirm_code'
26512659
}
2660+
| {
2661+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2662+
message: string
2663+
/** Date and time at which Seam created the warning. */
2664+
created_at?: string | undefined
2665+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2666+
warning_code: 'ultraloq_access_code_disabled'
2667+
}
26522668
)[]
26532669
/** Indicates whether Seam manages the access code. */
26542670
is_managed: true
@@ -4716,6 +4732,14 @@ export type Routes = {
47164732
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
47174733
warning_code: 'kwikset_unable_to_confirm_code'
47184734
}
4735+
| {
4736+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
4737+
message: string
4738+
/** Date and time at which Seam created the warning. */
4739+
created_at?: string | undefined
4740+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4741+
warning_code: 'ultraloq_access_code_disabled'
4742+
}
47194743
)[]
47204744
/** Indicates whether Seam manages the access code. */
47214745
is_managed: true
@@ -5300,6 +5324,14 @@ export type Routes = {
53005324
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
53015325
warning_code: 'kwikset_unable_to_confirm_code'
53025326
}
5327+
| {
5328+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5329+
message: string
5330+
/** Date and time at which Seam created the warning. */
5331+
created_at?: string | undefined
5332+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5333+
warning_code: 'ultraloq_access_code_disabled'
5334+
}
53035335
)[]
53045336
/** Indicates whether Seam manages the access code. */
53055337
is_managed: true
@@ -5890,6 +5922,14 @@ export type Routes = {
58905922
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
58915923
warning_code: 'kwikset_unable_to_confirm_code'
58925924
}
5925+
| {
5926+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5927+
message: string
5928+
/** Date and time at which Seam created the warning. */
5929+
created_at?: string | undefined
5930+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5931+
warning_code: 'ultraloq_access_code_disabled'
5932+
}
58935933
)[]
58945934
/** Indicates whether Seam manages the access code. */
58955935
is_managed: true
@@ -6457,6 +6497,14 @@ export type Routes = {
64576497
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
64586498
warning_code: 'kwikset_unable_to_confirm_code'
64596499
}
6500+
| {
6501+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6502+
message: string
6503+
/** Date and time at which Seam created the warning. */
6504+
created_at?: string | undefined
6505+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6506+
warning_code: 'ultraloq_access_code_disabled'
6507+
}
64606508
)[]
64616509
/** Indicates whether Seam manages the access code. */
64626510
is_managed: true
@@ -7059,6 +7107,14 @@ export type Routes = {
70597107
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
70607108
warning_code: 'kwikset_unable_to_confirm_code'
70617109
}
7110+
| {
7111+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7112+
message: string
7113+
/** Date and time at which Seam created the warning. */
7114+
created_at?: string | undefined
7115+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7116+
warning_code: 'ultraloq_access_code_disabled'
7117+
}
70627118
)[]
70637119
/** Indicates that Seam does not manage the access code. */
70647120
is_managed: false
@@ -9113,6 +9169,14 @@ export type Routes = {
91139169
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
91149170
warning_code: 'kwikset_unable_to_confirm_code'
91159171
}
9172+
| {
9173+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9174+
message: string
9175+
/** Date and time at which Seam created the warning. */
9176+
created_at?: string | undefined
9177+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9178+
warning_code: 'ultraloq_access_code_disabled'
9179+
}
91169180
)[]
91179181
/** Indicates that Seam does not manage the access code. */
91189182
is_managed: false
@@ -9675,6 +9739,14 @@ export type Routes = {
96759739
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
96769740
warning_code: 'kwikset_unable_to_confirm_code'
96779741
}
9742+
| {
9743+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9744+
message: string
9745+
/** Date and time at which Seam created the warning. */
9746+
created_at?: string | undefined
9747+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9748+
warning_code: 'ultraloq_access_code_disabled'
9749+
}
96789750
)[]
96799751
/** Indicates that Seam does not manage the access code. */
96809752
is_managed: false
@@ -99735,6 +99807,14 @@ export type Routes = {
9973599807
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9973699808
warning_code: 'kwikset_unable_to_confirm_code'
9973799809
}
99810+
| {
99811+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
99812+
message: string
99813+
/** Date and time at which Seam created the warning. */
99814+
created_at?: string | undefined
99815+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
99816+
warning_code: 'ultraloq_access_code_disabled'
99817+
}
9973899818
)[]
9973999819
/** Indicates that Seam does not manage the access code. */
9974099820
is_managed: false
@@ -100285,6 +100365,14 @@ export type Routes = {
100285100365
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100286100366
warning_code: 'kwikset_unable_to_confirm_code'
100287100367
}
100368+
| {
100369+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100370+
message: string
100371+
/** Date and time at which Seam created the warning. */
100372+
created_at?: string | undefined
100373+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100374+
warning_code: 'ultraloq_access_code_disabled'
100375+
}
100288100376
)[]
100289100377
/** Indicates whether Seam manages the access code. */
100290100378
is_managed: true

0 commit comments

Comments
 (0)