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
18 changes: 0 additions & 18 deletions src/lib/seam/connect/models/devices/device-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,29 +102,11 @@ export const phone_device_type = z.enum(

export type PhoneDeviceType = z.infer<typeof phone_device_type>

/** Encoders */
export const ENCODER_DEVICE_TYPE = {
VISIONLINE_ENCODER: 'visionline_encoder',
ASSA_ABLOY_VOSTIO_ENCODER: 'assa_abloy_vostio_encoder',
} as const

type EncoderDeviceTypeFromMapping =
(typeof ENCODER_DEVICE_TYPE)[keyof typeof ENCODER_DEVICE_TYPE]

export const ENCODER_DEVICE_TYPE_LIST = Object.values(ENCODER_DEVICE_TYPE)

export const encoder_device_type = z.enum(
Object.values(ENCODER_DEVICE_TYPE_LIST) as [EncoderDeviceTypeFromMapping],
)

export type EncoderDeviceType = z.infer<typeof encoder_device_type>

export const any_device_type = z.union([
lock_device_type,
noise_sensor_device_type,
thermostat_device_type,
phone_device_type,
encoder_device_type,
])

export type AnyDeviceType = z.infer<typeof any_device_type>
78 changes: 0 additions & 78 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4327,10 +4327,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: ['visionline_encoder', 'assa_abloy_vostio_encoder'],
type: 'string',
},
],
},
display_name: {
Expand Down Expand Up @@ -6342,10 +6338,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: ['visionline_encoder', 'assa_abloy_vostio_encoder'],
type: 'string',
},
],
},
errors: {
Expand Down Expand Up @@ -13939,13 +13931,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
device_types: {
Expand Down Expand Up @@ -14001,13 +13986,6 @@ export default {
enum: ['ios_phone', 'android_phone'],
type: 'string',
},
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
type: 'array',
Expand Down Expand Up @@ -14477,13 +14455,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
device_types: {
Expand Down Expand Up @@ -14539,13 +14510,6 @@ export default {
enum: ['ios_phone', 'android_phone'],
type: 'string',
},
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
type: 'array',
Expand Down Expand Up @@ -15318,13 +15282,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
device_types: {
Expand Down Expand Up @@ -15380,13 +15337,6 @@ export default {
enum: ['ios_phone', 'android_phone'],
type: 'string',
},
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
type: 'array',
Expand Down Expand Up @@ -15817,13 +15767,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
device_types: {
Expand Down Expand Up @@ -15879,13 +15822,6 @@ export default {
enum: ['ios_phone', 'android_phone'],
type: 'string',
},
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
type: 'array',
Expand Down Expand Up @@ -17237,13 +17173,6 @@ export default {
type: 'string',
},
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
device_types: {
Expand Down Expand Up @@ -17299,13 +17228,6 @@ export default {
enum: ['ios_phone', 'android_phone'],
type: 'string',
},
{
enum: [
'visionline_encoder',
'assa_abloy_vostio_encoder',
],
type: 'string',
},
],
},
type: 'array',
Expand Down
25 changes: 0 additions & 25 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12287,7 +12287,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -12995,7 +12994,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
)
| undefined
/** Array of device types by which to filter devices. */
Expand Down Expand Up @@ -13037,7 +13035,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
>
| undefined
/** Manufacturer by which to filter devices. */
Expand Down Expand Up @@ -13166,7 +13163,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -13994,7 +13990,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Unique identifier for the account associated with the device. */
connected_account_id: string
/** Location information for the device. */
Expand Down Expand Up @@ -14157,7 +14152,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
)
| undefined
/** Array of device types by which to filter devices. */
Expand Down Expand Up @@ -14199,7 +14193,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
>
| undefined
/** Manufacturer by which to filter devices. */
Expand Down Expand Up @@ -14328,7 +14321,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Unique identifier for the account associated with the device. */
connected_account_id: string
/** Location information for the device. */
Expand Down Expand Up @@ -14761,7 +14753,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -15457,7 +15448,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -16165,7 +16155,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
)
| undefined
/** Array of device types by which to filter devices. */
Expand Down Expand Up @@ -16207,7 +16196,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
>
| undefined
/** Manufacturer by which to filter devices. */
Expand Down Expand Up @@ -16336,7 +16324,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -17032,7 +17019,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -19748,7 +19734,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
)
| undefined
/** Array of device types by which to filter devices. */
Expand Down Expand Up @@ -19790,7 +19775,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
>
| undefined
/** Manufacturer by which to filter devices. */
Expand Down Expand Up @@ -19919,7 +19903,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -20615,7 +20598,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -26582,7 +26564,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -29280,7 +29261,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
)
| undefined
/** Array of device types by which to filter devices. */
Expand Down Expand Up @@ -29322,7 +29302,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
>
| undefined
/** Manufacturer by which to filter devices. */
Expand Down Expand Up @@ -29451,7 +29430,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -30147,7 +30125,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -34308,7 +34285,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down Expand Up @@ -35006,7 +34982,6 @@ export interface Routes {
| 'honeywell_resideo_thermostat'
)
| ('ios_phone' | 'android_phone')
| ('visionline_encoder' | 'assa_abloy_vostio_encoder')
/** Optional nickname to describe the device, settable through Seam */
nickname?: string | undefined
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
Expand Down
Loading