Skip to content

Commit 74c56a1

Browse files
authored
1 parent 69caf2b commit 74c56a1

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30528,21 +30528,6 @@ export default {
3052830528
},
3052930529
{
3053030530
properties: {
30531-
desired_access_methods: {
30532-
items: {
30533-
properties: {
30534-
mode: {
30535-
description:
30536-
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30537-
enum: ['code', 'card', 'mobile_key'],
30538-
type: 'string',
30539-
},
30540-
},
30541-
required: ['mode'],
30542-
type: 'object',
30543-
},
30544-
type: 'array',
30545-
},
3054630531
ends_at: {
3054730532
description:
3054830533
'Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
@@ -30567,6 +30552,10 @@ export default {
3056730552
items: { format: 'uuid', type: 'string' },
3056830553
type: 'array',
3056930554
},
30555+
name: {
30556+
description: 'Name of the location.',
30557+
type: 'string',
30558+
},
3057030559
},
3057130560
type: 'object',
3057230561
},
@@ -30576,14 +30565,29 @@ export default {
3057630565
items: { format: 'uuid', type: 'string' },
3057730566
type: 'array',
3057830567
},
30568+
requested_access_methods: {
30569+
items: {
30570+
properties: {
30571+
mode: {
30572+
description:
30573+
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
30574+
enum: ['code', 'card', 'mobile_key'],
30575+
type: 'string',
30576+
},
30577+
},
30578+
required: ['mode'],
30579+
type: 'object',
30580+
},
30581+
type: 'array',
30582+
},
3057930583
starts_at: {
3058030584
description:
3058130585
'Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
3058230586
format: 'date-time',
3058330587
type: 'string',
3058430588
},
3058530589
},
30586-
required: ['desired_access_methods'],
30590+
required: ['requested_access_methods'],
3058730591
type: 'object',
3058830592
},
3058930593
],

src/lib/seam/connect/route-types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48433,13 +48433,15 @@ export interface Routes {
4843348433
/** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
4843448434
location?:
4843548435
| {
48436+
/** Name of the location. */
48437+
name?: string | undefined
4843648438
/** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to add to the location to which access is being granted. */
4843748439
acs_entrance_ids?: string[]
4843848440
/** Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to add to the location to which access is being granted. */
4843948441
device_ids?: string[]
4844048442
}
4844148443
| undefined
48442-
desired_access_methods: Array<{
48444+
requested_access_methods: Array<{
4844348445
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
4844448446
mode: 'code' | 'card' | 'mobile_key'
4844548447
}>

0 commit comments

Comments
 (0)