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
6 changes: 6 additions & 0 deletions src/lib/seam/connect/models/acs/acs-entrance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { z } from 'zod'

import { acs_entrance_avigilon_alta_metadata } from './metadata/avigilon-alta.js'
import { acs_entrance_dormakaba_ambiance_metadata } from './metadata/dormakaba-ambiance.js'
import {
acs_entrance_assa_abloy_vostio_metadata,
Expand Down Expand Up @@ -142,6 +143,11 @@ export const acs_entrance = z
.describe(
'Brivo-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
),
avigilon_alta_metadata: acs_entrance_avigilon_alta_metadata
.optional()
.describe(
'Avigilon Alta-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
),
})
.merge(acs_entrance_capability_flags).describe(`
---
Expand Down
2 changes: 1 addition & 1 deletion src/lib/seam/connect/models/acs/acs-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const acs_location = z.object({
// If changed, update seam.acs_system.external_type generated column
export const acs_system_external_type = z.enum([
'pti_site',
'alta_org',
'avigilon_alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
Expand Down
21 changes: 21 additions & 0 deletions src/lib/seam/connect/models/acs/metadata/avigilon-alta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { z } from 'zod'

export const acs_entrance_avigilon_alta_metadata = z
.object({
entry_name: z.string().describe('Entry name for an Avigilon Alta system.'),
org_name: z
.string()
.describe('Organization name for an Avigilon Alta system.'),
zone_id: z.number().describe('Zone ID for an Avigilon Alta system.'),
zone_name: z.string().describe('Zone name for an Avigilon Alta system.'),
site_id: z.number().describe('Site ID for an Avigilon Alta system.'),
site_name: z.string().describe('Site name for an Avigilon Alta system.'),
entry_relays_total_count: z
.number()
.describe('Total count of entry relays for an Avigilon Alta system.'),
})
.describe('Avigilon Alta-specific metadata associated with the entrance.')

export type AcsEntranceAvigilonAltaMetadata = z.infer<
typeof acs_entrance_avigilon_alta_metadata
>
106 changes: 104 additions & 2 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4301,6 +4301,54 @@ const openapi: OpenAPISpec = {
required: ['door_type', 'door_name'],
type: 'object',
},
avigilon_alta_metadata: {
description:
'Avigilon Alta-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
properties: {
entry_name: {
description: 'Entry name for an Avigilon Alta system.',
type: 'string',
},
entry_relays_total_count: {
description:
'Total count of entry relays for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
org_name: {
description: 'Organization name for an Avigilon Alta system.',
type: 'string',
},
site_id: {
description: 'Site ID for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
site_name: {
description: 'Site name for an Avigilon Alta system.',
type: 'string',
},
zone_id: {
description: 'Zone ID for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
zone_name: {
description: 'Zone name for an Avigilon Alta system.',
type: 'string',
},
},
required: [
'entry_name',
'org_name',
'zone_id',
'zone_name',
'site_id',
'site_name',
'entry_relays_total_count',
],
type: 'object',
},
brivo_metadata: {
description:
'Brivo-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
Expand Down Expand Up @@ -4846,7 +4894,7 @@ const openapi: OpenAPISpec = {
'Brand-specific terminology for the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) type.',
enum: [
'pti_site',
'alta_org',
'avigilon_alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
Expand Down Expand Up @@ -4904,7 +4952,7 @@ const openapi: OpenAPISpec = {
deprecated: true,
enum: [
'pti_site',
'alta_org',
'avigilon_alta_org',
'salto_ks_site',
'salto_space_system',
'brivo_account',
Expand Down Expand Up @@ -24895,6 +24943,60 @@ const openapi: OpenAPISpec = {
required: ['door_type', 'door_name'],
type: 'object',
},
avigilon_alta_metadata: {
description:
'Avigilon Alta-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
properties: {
entry_name: {
description:
'Entry name for an Avigilon Alta system.',
type: 'string',
},
entry_relays_total_count: {
description:
'Total count of entry relays for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
org_name: {
description:
'Organization name for an Avigilon Alta system.',
type: 'string',
},
site_id: {
description:
'Site ID for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
site_name: {
description:
'Site name for an Avigilon Alta system.',
type: 'string',
},
zone_id: {
description:
'Zone ID for an Avigilon Alta system.',
format: 'float',
type: 'number',
},
zone_name: {
description:
'Zone name for an Avigilon Alta system.',
type: 'string',
},
},
required: [
'entry_name',
'org_name',
'zone_id',
'zone_name',
'site_id',
'site_name',
'entry_relays_total_count',
],
type: 'object',
},
brivo_metadata: {
description:
'Brivo-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
Expand Down
Loading
Loading