Skip to content

Commit d6c99c4

Browse files
authored
feat: Sync with Seam API via 6398dec5c2b7f9148beb4e68a9af7f8d5e3a73f7 (#2717)
1 parent ed0980f commit d6c99c4

File tree

3 files changed

+1580
-0
lines changed

3 files changed

+1580
-0
lines changed

src/lib/seam/connect/models/acs/acs-entrance.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export const acs_entrance_capability_flags = z.object({
3737
.describe(
3838
'Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.',
3939
),
40+
can_unlock_with_cloud_key: z
41+
.boolean()
42+
.optional()
43+
.describe(
44+
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
45+
),
4046
})
4147

4248
export const acs_entrance = z

src/lib/seam/connect/openapi.ts

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,6 +3874,11 @@ export default {
38743874
'Indicates whether the ACS entrance can be unlocked with card credentials.',
38753875
type: 'boolean',
38763876
},
3877+
can_unlock_with_cloud_key: {
3878+
description:
3879+
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
3880+
type: 'boolean',
3881+
},
38773882
can_unlock_with_code: {
38783883
description:
38793884
'Indicates whether the ACS entrance can be unlocked with pin codes.',
@@ -24094,6 +24099,11 @@ export default {
2409424099
'Indicates whether the ACS entrance can be unlocked with card credentials.',
2409524100
type: 'boolean',
2409624101
},
24102+
can_unlock_with_cloud_key: {
24103+
description:
24104+
'Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.',
24105+
type: 'boolean',
24106+
},
2409724107
can_unlock_with_code: {
2409824108
description:
2409924109
'Indicates whether the ACS entrance can be unlocked with pin codes.',
@@ -44201,6 +44211,70 @@ export default {
4420144211
'x-title': 'List Credentials with Access to an Entrance',
4420244212
},
4420344213
},
44214+
'/acs/entrances/unlock': {
44215+
post: {
44216+
description:
44217+
'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.',
44218+
operationId: 'acsEntrancesUnlockPost',
44219+
requestBody: {
44220+
content: {
44221+
'application/json': {
44222+
schema: {
44223+
properties: {
44224+
acs_credential_id: {
44225+
description:
44226+
'ID of the cloud_key credential to use for the unlock operation.',
44227+
format: 'uuid',
44228+
type: 'string',
44229+
},
44230+
acs_entrance_id: {
44231+
description: 'ID of the entrance to unlock.',
44232+
format: 'uuid',
44233+
type: 'string',
44234+
},
44235+
},
44236+
required: ['acs_entrance_id', 'acs_credential_id'],
44237+
type: 'object',
44238+
},
44239+
},
44240+
},
44241+
},
44242+
responses: {
44243+
200: {
44244+
content: {
44245+
'application/json': {
44246+
schema: {
44247+
properties: {
44248+
action_attempt: {
44249+
$ref: '#/components/schemas/action_attempt',
44250+
},
44251+
ok: { type: 'boolean' },
44252+
},
44253+
required: ['action_attempt', 'ok'],
44254+
type: 'object',
44255+
},
44256+
},
44257+
},
44258+
description: 'OK',
44259+
},
44260+
400: { description: 'Bad Request' },
44261+
401: { description: 'Unauthorized' },
44262+
},
44263+
security: [
44264+
{ pat_with_workspace: [] },
44265+
{ console_session_with_workspace: [] },
44266+
{ api_key: [] },
44267+
],
44268+
summary: '/acs/entrances/unlock',
44269+
tags: ['/acs'],
44270+
'x-action-attempt-type': 'UNLOCK_DOOR',
44271+
'x-fern-sdk-group-name': ['acs', 'entrances'],
44272+
'x-fern-sdk-method-name': 'unlock',
44273+
'x-fern-sdk-return-value': 'action_attempt',
44274+
'x-response-key': 'action_attempt',
44275+
'x-title': 'Unlock an Entrance',
44276+
},
44277+
},
4420444278
'/acs/systems/get': {
4420544279
get: {
4420644280
description:

0 commit comments

Comments
 (0)