Skip to content

Commit 8d4de6a

Browse files
authored
feat: Sync with Seam API via 6b1fe0716ee716d04e22b43f51b2d415ba5807e6 (#2723)
1 parent fadf499 commit 8d4de6a

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31979,7 +31979,7 @@ export default {
3197931979
'/access_codes/list': {
3198031980
get: {
3198131981
description:
31982-
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify either `device_id` or `access_code_ids`.',
31982+
'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`.',
3198331983
operationId: 'accessCodesListGet',
3198431984
parameters: [
3198531985
{
@@ -31996,7 +31996,7 @@ export default {
3199631996
name: 'device_id',
3199731997
schema: {
3199831998
description:
31999-
'ID of the device for which you want to list access codes. Specify either `device_id` or `access_code_ids`.',
31999+
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
3200032000
format: 'uuid',
3200132001
type: 'string',
3200232002
},
@@ -32006,11 +32006,21 @@ export default {
3200632006
name: 'access_code_ids',
3200732007
schema: {
3200832008
description:
32009-
'IDs of the access codes that you want to retrieve. Specify either `device_id` or `access_code_ids`.',
32009+
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
3201032010
items: { format: 'uuid', type: 'string' },
3201132011
type: 'array',
3201232012
},
3201332013
},
32014+
{
32015+
in: 'query',
32016+
name: 'access_method_id',
32017+
schema: {
32018+
description:
32019+
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32020+
format: 'uuid',
32021+
type: 'string',
32022+
},
32023+
},
3201432024
{
3201532025
in: 'query',
3201632026
name: 'user_identifier_key',
@@ -32092,7 +32102,7 @@ export default {
3209232102
},
3209332103
post: {
3209432104
description:
32095-
'Returns a list of all [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).\n\nSpecify either `device_id` or `access_code_ids`.',
32105+
'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`.',
3209632106
operationId: 'accessCodesListPost',
3209732107
requestBody: {
3209832108
content: {
@@ -32101,18 +32111,24 @@ export default {
3210132111
properties: {
3210232112
access_code_ids: {
3210332113
description:
32104-
'IDs of the access codes that you want to retrieve. Specify either `device_id` or `access_code_ids`.',
32114+
'IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
3210532115
items: { format: 'uuid', type: 'string' },
3210632116
type: 'array',
3210732117
},
32118+
access_method_id: {
32119+
description:
32120+
'ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
32121+
format: 'uuid',
32122+
type: 'string',
32123+
},
3210832124
customer_key: {
3210932125
description:
3211032126
'Customer key for which you want to list access codes.',
3211132127
type: 'string',
3211232128
},
3211332129
device_id: {
3211432130
description:
32115-
'ID of the device for which you want to list access codes. Specify either `device_id` or `access_code_ids`.',
32131+
'ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`.',
3211632132
format: 'uuid',
3211732133
type: 'string',
3211832134
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4863,10 +4863,12 @@ export type Routes = {
48634863
commonParams: {
48644864
/** Customer key for which you want to list access codes. */
48654865
customer_key?: string | undefined
4866-
/** ID of the device for which you want to list access codes. Specify either `device_id` or `access_code_ids`. */
4866+
/** ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
48674867
device_id?: string | undefined
4868-
/** IDs of the access codes that you want to retrieve. Specify either `device_id` or `access_code_ids`. */
4868+
/** IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
48694869
access_code_ids?: string[] | undefined
4870+
/** ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, or `access_method_id`. */
4871+
access_method_id?: string | undefined
48704872
/** Your user ID for the user by which to filter access codes. */
48714873
user_identifier_key?: string | undefined
48724874
/** Numerical limit on the number of access codes to return. */

0 commit comments

Comments
 (0)