Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Jan 13, 2025
1 parent 2dc40a4 commit 82ce27c
Show file tree
Hide file tree
Showing 5 changed files with 1,372 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/seam/connect/internal/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export {
climate_preset,
climate_setting,
common_device_properties,
common_event,
connect_webview_device_selection_mode,
connected_account,
custom_metadata_input,
Expand All @@ -28,6 +29,8 @@ export {
device_provider,
dormakaba_oracode_time_slot,
enrollment_automation,
seam_event as event,
seam_event_type as event_type,
fan_mode_setting,
lock_device_type,
access_code as managed_access_code,
Expand Down
10 changes: 9 additions & 1 deletion src/lib/seam/connect/models/acs/acs-credential.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { z } from 'zod'

import { acs_credential_visionline_metadata } from './metadata/index.js'
import {
acs_credential_visionline_metadata,
acs_credential_vostio_metadata,
} from './metadata/index.js'

// If changed, update seam.acs_credential.external_type generated column
export const acs_credential_external_type = z.enum([
Expand All @@ -11,6 +14,8 @@ export const acs_credential_external_type = z.enum([
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
])

export const acs_credential_access_method_type = z.enum([
Expand Down Expand Up @@ -225,6 +230,9 @@ const common_acs_credential = z.object({
visionline_metadata: acs_credential_visionline_metadata
.optional()
.describe('Visionline-specific metadata for the credential.'),
assa_abloy_vostio_metadata: acs_credential_vostio_metadata
.optional()
.describe('Vostio-specific metadata for the credential.'),
})

export const acs_credential = common_acs_credential
Expand Down
12 changes: 12 additions & 0 deletions src/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,15 @@ export const acs_entrance_assa_abloy_vostio_metadata = z.object({
export type AcsEntranceAssaAbloyVostioMetadata = z.infer<
typeof acs_entrance_assa_abloy_vostio_metadata
>

export const acs_credential_vostio_metadata = z.object({
override_guest_acs_entrance_ids: z.string().array().optional(),
key_id: z.string().optional(),
key_issuing_request_id: z.string().optional(),
door_names: z.string().array().optional(),
endpoint_id: z.string().optional(),
})

export type AcsCredentialVostioMetadata = z.infer<
typeof acs_credential_vostio_metadata
>
136 changes: 136 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,20 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description: 'Vostio-specific metadata for the credential.',
properties: {
door_names: { items: { type: 'string' }, type: 'array' },
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description: 'Access (PIN) code for the credential.',
Expand Down Expand Up @@ -1102,6 +1116,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -2552,6 +2568,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description:
Expand Down Expand Up @@ -2600,6 +2634,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -2914,6 +2950,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description:
Expand Down Expand Up @@ -2962,6 +3016,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -3410,6 +3466,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description: 'Access (PIN) code for the credential.',
Expand Down Expand Up @@ -3457,6 +3531,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -3769,6 +3845,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description: 'Access (PIN) code for the credential.',
Expand Down Expand Up @@ -3816,6 +3910,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -17010,6 +17106,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description: 'Access (PIN) code for the credential.',
Expand Down Expand Up @@ -17057,6 +17171,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down Expand Up @@ -17472,6 +17588,24 @@ export default {
format: 'uuid',
type: 'string',
},
assa_abloy_vostio_metadata: {
description:
'Vostio-specific metadata for the credential.',
properties: {
door_names: {
items: { type: 'string' },
type: 'array',
},
endpoint_id: { type: 'string' },
key_id: { type: 'string' },
key_issuing_request_id: { type: 'string' },
override_guest_acs_entrance_ids: {
items: { type: 'string' },
type: 'array',
},
},
type: 'object',
},
card_number: { nullable: true, type: 'string' },
code: {
description:
Expand Down Expand Up @@ -17520,6 +17654,8 @@ export default {
'salto_ks_credential',
'assa_abloy_vostio_card',
'assa_abloy_vostio_mobile_key',
'salto_space_card',
'salto_space_mobile_key',
],
type: 'string',
},
Expand Down
Loading

0 comments on commit 82ce27c

Please sign in to comment.