Skip to content

Commit 2b5a2c3

Browse files
committed
feat: Sync with Seam API via c6723ed39c45602d4381711448915aaedd8a2607
1 parent 1b4a618 commit 2b5a2c3

2 files changed

Lines changed: 65 additions & 11 deletions

File tree

src/lib/seam/connect/openapi.ts

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32406,7 +32406,7 @@ export default {
3240632406
'/access_codes/list': {
3240732407
get: {
3240832408
description:
32409-
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify `device_id`, `access_code_ids`, or `access_method_id`.',
32409+
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3241032410
operationId: 'accessCodesListGet',
3241132411
parameters: [
3241232412
{
@@ -32423,7 +32423,7 @@ export default {
3242332423
name: 'device_id',
3242432424
schema: {
3242532425
description:
32426-
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32426+
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3242732427
format: 'uuid',
3242832428
type: 'string',
3242932429
},
@@ -32433,7 +32433,7 @@ export default {
3243332433
name: 'access_code_ids',
3243432434
schema: {
3243532435
description:
32436-
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32436+
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3243732437
items: { format: 'uuid', type: 'string' },
3243832438
type: 'array',
3243932439
},
@@ -32443,7 +32443,17 @@ export default {
3244332443
name: 'access_method_id',
3244432444
schema: {
3244532445
description:
32446-
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32446+
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
32447+
format: 'uuid',
32448+
type: 'string',
32449+
},
32450+
},
32451+
{
32452+
in: 'query',
32453+
name: 'access_grant_id',
32454+
schema: {
32455+
description:
32456+
'ID of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3244732457
format: 'uuid',
3244832458
type: 'string',
3244932459
},
@@ -32529,7 +32539,7 @@ export default {
3252932539
},
3253032540
post: {
3253132541
description:
32532-
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify `device_id`, `access_code_ids`, or `access_method_id`.',
32542+
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3253332543
operationId: 'accessCodesListPost',
3253432544
requestBody: {
3253532545
content: {
@@ -32538,13 +32548,19 @@ export default {
3253832548
properties: {
3253932549
access_code_ids: {
3254032550
description:
32541-
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32551+
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3254232552
items: { format: 'uuid', type: 'string' },
3254332553
type: 'array',
3254432554
},
32555+
access_grant_id: {
32556+
description:
32557+
'ID of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
32558+
format: 'uuid',
32559+
type: 'string',
32560+
},
3254532561
access_method_id: {
3254632562
description:
32547-
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32563+
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3254832564
format: 'uuid',
3254932565
type: 'string',
3255032566
},
@@ -32555,7 +32571,7 @@ export default {
3255532571
},
3255632572
device_id: {
3255732573
description:
32558-
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32574+
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`.',
3255932575
format: 'uuid',
3256032576
type: 'string',
3256132577
},
@@ -34992,6 +35008,16 @@ export default {
3499235008
type: 'string',
3499335009
},
3499435010
},
35011+
{
35012+
in: 'query',
35013+
name: 'access_code_id',
35014+
schema: {
35015+
description:
35016+
'ID of the access code by which you want to filter the list of Access Grants.',
35017+
format: 'uuid',
35018+
type: 'string',
35019+
},
35020+
},
3499535021
{
3499635022
in: 'query',
3499735023
name: 'access_grant_key',
@@ -35057,6 +35083,12 @@ export default {
3505735083
'application/json': {
3505835084
schema: {
3505935085
properties: {
35086+
access_code_id: {
35087+
description:
35088+
'ID of the access code by which you want to filter the list of Access Grants.',
35089+
format: 'uuid',
35090+
type: 'string',
35091+
},
3506035092
access_grant_ids: {
3506135093
description: 'IDs of the access grants to retrieve.',
3506235094
items: { format: 'uuid', type: 'string' },
@@ -38733,6 +38765,16 @@ export default {
3873338765
type: 'string',
3873438766
},
3873538767
},
38768+
{
38769+
in: 'query',
38770+
name: 'access_code_id',
38771+
schema: {
38772+
description:
38773+
'ID of the access code for which you want to retrieve all access methods.',
38774+
format: 'uuid',
38775+
type: 'string',
38776+
},
38777+
},
3873638778
],
3873738779
responses: {
3873838780
200: {
@@ -38780,6 +38822,12 @@ export default {
3878038822
'application/json': {
3878138823
schema: {
3878238824
properties: {
38825+
access_code_id: {
38826+
description:
38827+
'ID of the access code for which you want to retrieve all access methods.',
38828+
format: 'uuid',
38829+
type: 'string',
38830+
},
3878338831
access_grant_id: {
3878438832
description:
3878538833
'ID of Access Grant to list access methods for.',

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5023,12 +5023,14 @@ export type Routes = {
50235023
commonParams: {
50245024
/** Customer key for which you want to list access codes. */
50255025
customer_key?: string | undefined
5026-
/** ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
5026+
/** ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`. */
50275027
device_id?: string | undefined
5028-
/** IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
5028+
/** IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`. */
50295029
access_code_ids?: string[] | undefined
5030-
/** ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
5030+
/** ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`. */
50315031
access_method_id?: string | undefined
5032+
/** ID of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, or `access_grant_id`. */
5033+
access_grant_id?: string | undefined
50325034
/** Your user ID for the user by which to filter access codes. */
50335035
user_identifier_key?: string | undefined
50345036
/** Numerical limit on the number of access codes to return. */
@@ -14794,6 +14796,8 @@ export type Routes = {
1479414796
location_id?: string | undefined
1479514797
/** ID of the space by which you want to filter the list of Access Grants. */
1479614798
space_id?: string | undefined
14799+
/** ID of the access code by which you want to filter the list of Access Grants. */
14800+
access_code_id?: string | undefined
1479714801
/** Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key. */
1479814802
access_grant_key?: (string | null) | undefined
1479914803
/** Filter Access Grants by reservation_key. */
@@ -19708,6 +19712,8 @@ export type Routes = {
1970819712
acs_entrance_id?: string | undefined
1970919713
/** ID of the space for which you want to retrieve all access methods. */
1971019714
space_id?: string | undefined
19715+
/** ID of the access code for which you want to retrieve all access methods. */
19716+
access_code_id?: string | undefined
1971119717
}
1971219718
formData: {}
1971319719
jsonResponse: {

0 commit comments

Comments
 (0)