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
41 changes: 41 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -1038,6 +1039,12 @@ export interface Routes {
}
}
| undefined
four_suites_metadata?:
| {
device_id: number
device_name: string
}
| undefined
two_n_metadata?:
| {
device_id: number
Expand Down Expand Up @@ -1442,6 +1449,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -1472,6 +1480,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand All @@ -1485,6 +1494,7 @@ export interface Routes {
| 'brivo'
| 'butterflymx'
| 'doorking'
| 'four_suites'
| 'genie'
| 'igloo'
| 'keywe'
Expand Down Expand Up @@ -1542,6 +1552,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -1691,6 +1702,12 @@ export interface Routes {
}
}
| undefined
four_suites_metadata?:
| {
device_id: number
device_name: string
}
| undefined
two_n_metadata?:
| {
device_id: number
Expand Down Expand Up @@ -2113,6 +2130,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -2143,6 +2161,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand All @@ -2156,6 +2175,7 @@ export interface Routes {
| 'brivo'
| 'butterflymx'
| 'doorking'
| 'four_suites'
| 'genie'
| 'igloo'
| 'keywe'
Expand Down Expand Up @@ -2213,6 +2233,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -2525,6 +2546,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -2555,6 +2577,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand All @@ -2568,6 +2591,7 @@ export interface Routes {
| 'brivo'
| 'butterflymx'
| 'doorking'
| 'four_suites'
| 'genie'
| 'igloo'
| 'keywe'
Expand Down Expand Up @@ -3061,6 +3085,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -3210,6 +3235,12 @@ export interface Routes {
}
}
| undefined
four_suites_metadata?:
| {
device_id: number
device_name: string
}
| undefined
two_n_metadata?:
| {
device_id: number
Expand Down Expand Up @@ -3644,6 +3675,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -3674,6 +3706,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand All @@ -3687,6 +3720,7 @@ export interface Routes {
| 'brivo'
| 'butterflymx'
| 'doorking'
| 'four_suites'
| 'genie'
| 'igloo'
| 'keywe'
Expand Down Expand Up @@ -3744,6 +3778,7 @@ export interface Routes {
| 'ttlock_lock'
| 'igloohome_lock'
| 'hubitat_lock'
| 'four_suites_door'
)
| ('noiseaware_activity_zone' | 'minut_sensor')
| ('ecobee_thermostat' | 'nest_thermostat')
Expand Down Expand Up @@ -3893,6 +3928,12 @@ export interface Routes {
}
}
| undefined
four_suites_metadata?:
| {
device_id: number
device_name: string
}
| undefined
two_n_metadata?:
| {
device_id: number
Expand Down
4 changes: 4 additions & 0 deletions src/lib/seam/connect/unstable/models/device-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export const device_metadata = z
}),
}),
}),
four_suites_metadata: z.object({
device_id: z.number(),
device_name: z.string(),
}),

two_n_metadata: z.object({
device_id: z.number(),
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/unstable/models/device-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const LOCK_DEVICE_TYPE = {
TTLOCK_LOCK: 'ttlock_lock',
IGLOOHOME_LOCK: 'igloohome_lock',
HUBITAT_LOCK: 'hubitat_lock',
FOUR_SUITES_DOOR: 'four_suites_door',
} as const

type LockDeviceTypeFromMapping =
Expand Down