Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Dec 5, 2024
1 parent 2a3a08c commit 8986627
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 50 deletions.
2 changes: 1 addition & 1 deletion src/lib/seam/connect/models/acs/acs-access-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from 'zod'
export const acs_access_group_external_type = z.enum([
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
])

Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/models/acs/acs-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const acs_system_external_type = z.enum([
'pti_site',
'alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
'hid_credential_manager_organization',
'visionline_system',
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/models/acs/metadata/latch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const acs_entrance_latch_metadata = z.object({
door_name: z.string(),
door_type: z.string(),
is_connected: z.boolean(),
ext_door_id: z.string(),
})

export type AcsEntranceLatchMetadata = z.infer<
Expand Down
3 changes: 1 addition & 2 deletions src/lib/seam/connect/models/devices/device-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ export const device_metadata = z
}),

tado_metadata: z.object({
serial_number: z.string(),
device_name: z.string(),
serial_no: z.string(),
device_type: z.string(),
}),
})
Expand Down
2 changes: 2 additions & 0 deletions src/lib/seam/connect/models/devices/device-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const DEVICE_PROVIDERS = {
VOSTIO: 'assa_abloy_vostio',
ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: 'assa_abloy_vostio_credential_service',
TADO: 'tado',
SALTO_SPACE: 'salto_space',
} as const

export type DeviceProviderName =
Expand Down Expand Up @@ -113,6 +114,7 @@ export const PROVIDER_CATEGORY_MAP = {
'salto_ks',
'assa_abloy_vostio',
'assa_abloy_vostio_credential_service',
'salto_space',
],

internal_beta: ALL_DEVICE_PROVIDERS,
Expand Down
27 changes: 14 additions & 13 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -228,7 +228,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -627,13 +627,15 @@ export default {
accessibility_type: { type: 'string' },
door_name: { type: 'string' },
door_type: { type: 'string' },
ext_door_id: { type: 'string' },
is_connected: { type: 'boolean' },
},
required: [
'accessibility_type',
'door_name',
'door_type',
'is_connected',
'ext_door_id',
],
type: 'object',
},
Expand Down Expand Up @@ -912,6 +914,7 @@ export default {
'pti_site',
'alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
'hid_credential_manager_organization',
'visionline_system',
Expand Down Expand Up @@ -960,6 +963,7 @@ export default {
'pti_site',
'alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
'hid_credential_manager_organization',
'visionline_system',
Expand Down Expand Up @@ -5132,15 +5136,10 @@ export default {
},
tado_metadata: {
properties: {
device_name: { type: 'string' },
device_type: { type: 'string' },
serial_number: { type: 'string' },
serial_no: { type: 'string' },
},
required: [
'serial_number',
'device_name',
'device_type',
],
required: ['serial_no', 'device_type'],
type: 'object',
},
tedee_metadata: {
Expand Down Expand Up @@ -5854,6 +5853,7 @@ export default {
'assa_abloy_vostio',
'assa_abloy_vostio_credential_service',
'tado',
'salto_space',
],
type: 'string',
},
Expand Down Expand Up @@ -8500,7 +8500,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -8535,7 +8535,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -8641,7 +8641,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -8676,7 +8676,7 @@ export default {
enum: [
'pti_unit',
'pti_access_level',
'salto_access_group',
'salto_ks_access_group',
'brivo_group',
],
type: 'string',
Expand Down Expand Up @@ -13495,6 +13495,7 @@ export default {
'assa_abloy_vostio',
'assa_abloy_vostio_credential_service',
'tado',
'salto_space',
'yale_access',
'hid_cm',
'google_nest',
Expand Down
Loading

0 comments on commit 8986627

Please sign in to comment.