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
Expand Up @@ -37,6 +37,12 @@ export const acs_entrance_capability_flags = z.object({
.describe(
'Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.',
),
can_unlock_with_cloud_key: z
.boolean()
.optional()
.describe(
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
),
})

export const acs_entrance = z
Expand Down
74 changes: 74 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3874,6 +3874,11 @@ export default {
'Indicates whether the ACS entrance can be unlocked with card credentials.',
type: 'boolean',
},
can_unlock_with_cloud_key: {
description:
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
type: 'boolean',
},
can_unlock_with_code: {
description:
'Indicates whether the ACS entrance can be unlocked with pin codes.',
Expand Down Expand Up @@ -24094,6 +24099,11 @@ export default {
'Indicates whether the ACS entrance can be unlocked with card credentials.',
type: 'boolean',
},
can_unlock_with_cloud_key: {
description:
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
type: 'boolean',
},
can_unlock_with_code: {
description:
'Indicates whether the ACS entrance can be unlocked with pin codes.',
Expand Down Expand Up @@ -44201,6 +44211,70 @@ export default {
'x-title': 'List Credentials with Access to an Entrance',
},
},
'/acs/entrances/unlock': {
post: {
description:
'Remotely unlocks a specified [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) using a cloud_key credential. Returns an action attempt that tracks the progress of the unlock operation.',
operationId: 'acsEntrancesUnlockPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
acs_credential_id: {
description:
'ID of the cloud_key credential to use for the unlock operation.',
format: 'uuid',
type: 'string',
},
acs_entrance_id: {
description: 'ID of the entrance to unlock.',
format: 'uuid',
type: 'string',
},
},
required: ['acs_entrance_id', 'acs_credential_id'],
type: 'object',
},
},
},
},
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
action_attempt: {
$ref: '#/components/schemas/action_attempt',
},
ok: { type: 'boolean' },
},
required: ['action_attempt', 'ok'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
],
summary: '/acs/entrances/unlock',
tags: ['/acs'],
'x-action-attempt-type': 'UNLOCK_DOOR',
'x-fern-sdk-group-name': ['acs', 'entrances'],
'x-fern-sdk-method-name': 'unlock',
'x-fern-sdk-return-value': 'action_attempt',
'x-response-key': 'action_attempt',
'x-title': 'Unlock an Entrance',
},
},
'/acs/systems/get': {
get: {
description:
Expand Down
Loading
Loading