Skip to content

Commit 9c3cecc

Browse files
authored
feat: Sync with Seam API via eb668374c78494da4a7188490578ec88bc9b7705 (#2585)
1 parent 4ffd410 commit 9c3cecc

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

src/lib/seam/connect/models/events/devices.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ export const lock_locked_event = device_event.extend({
377377
.uuid()
378378
.optional()
379379
.describe('ID of the access code that was used to lock the device.'),
380+
access_code_is_managed: z
381+
.boolean()
382+
.optional()
383+
.describe(
384+
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
385+
),
380386
action_attempt_id: z
381387
.string()
382388
.uuid()
@@ -403,6 +409,12 @@ export const lock_unlocked_event = device_event.extend({
403409
.describe(
404410
'ID of the access code that was used to unlock the affected device.',
405411
),
412+
access_code_is_managed: z
413+
.boolean()
414+
.optional()
415+
.describe(
416+
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
417+
),
406418
action_attempt_id: z
407419
.string()
408420
.uuid()

src/lib/seam/connect/openapi.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18809,6 +18809,11 @@ export default {
1880918809
format: 'uuid',
1881018810
type: 'string',
1881118811
},
18812+
access_code_is_managed: {
18813+
description:
18814+
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
18815+
type: 'boolean',
18816+
},
1881218817
action_attempt_id: {
1881318818
description:
1881418819
'ID of the action attempt associated with the lock action.',
@@ -18894,6 +18899,11 @@ export default {
1889418899
format: 'uuid',
1889518900
type: 'string',
1889618901
},
18902+
access_code_is_managed: {
18903+
description:
18904+
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
18905+
type: 'boolean',
18906+
},
1889718907
acs_entrance_id: {
1889818908
description:
1889918909
'\n undocumented: Unreleased.\n ---\n ID of the ACS entrance associated with the unlock event.\n ',

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38895,6 +38895,8 @@ export type Routes = {
3889538895
event_type: 'lock.locked'
3889638896
/** ID of the access code that was used to lock the device. */
3889738897
access_code_id?: string | undefined
38898+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
38899+
access_code_is_managed?: boolean | undefined
3889838900
/** ID of the action attempt associated with the lock action. */
3889938901
action_attempt_id?: string | undefined
3890038902
/** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -38933,6 +38935,8 @@ export type Routes = {
3893338935
event_type: 'lock.unlocked'
3893438936
/** ID of the access code that was used to unlock the affected device. */
3893538937
access_code_id?: string | undefined
38938+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
38939+
access_code_is_managed?: boolean | undefined
3893638940
/** ID of the action attempt associated with the unlock action. */
3893738941
action_attempt_id?: string | undefined
3893838942
/** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -41423,6 +41427,8 @@ export type Routes = {
4142341427
event_type: 'lock.locked'
4142441428
/** ID of the access code that was used to lock the device. */
4142541429
access_code_id?: string | undefined
41430+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
41431+
access_code_is_managed?: boolean | undefined
4142641432
/** ID of the action attempt associated with the lock action. */
4142741433
action_attempt_id?: string | undefined
4142841434
/** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -41456,6 +41462,8 @@ export type Routes = {
4145641462
event_type: 'lock.unlocked'
4145741463
/** ID of the access code that was used to unlock the affected device. */
4145841464
access_code_id?: string | undefined
41465+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
41466+
access_code_is_managed?: boolean | undefined
4145941467
/** ID of the action attempt associated with the unlock action. */
4146041468
action_attempt_id?: string | undefined
4146141469
/** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -65319,6 +65327,8 @@ export type Routes = {
6531965327
event_type: 'lock.locked'
6532065328
/** ID of the access code that was used to lock the device. */
6532165329
access_code_id?: string | undefined
65330+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
65331+
access_code_is_managed?: boolean | undefined
6532265332
/** ID of the action attempt associated with the lock action. */
6532365333
action_attempt_id?: string | undefined
6532465334
/** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -65352,6 +65362,8 @@ export type Routes = {
6535265362
event_type: 'lock.unlocked'
6535365363
/** ID of the access code that was used to unlock the affected device. */
6535465364
access_code_id?: string | undefined
65365+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
65366+
access_code_is_managed?: boolean | undefined
6535565367
/** ID of the action attempt associated with the unlock action. */
6535665368
action_attempt_id?: string | undefined
6535765369
/** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -99378,6 +99390,8 @@ export type Routes = {
9937899390
event_type: 'lock.locked'
9937999391
/** ID of the access code that was used to lock the device. */
9938099392
access_code_id?: string | undefined
99393+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
99394+
access_code_is_managed?: boolean | undefined
9938199395
/** ID of the action attempt associated with the lock action. */
9938299396
action_attempt_id?: string | undefined
9938399397
/** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -99416,6 +99430,8 @@ export type Routes = {
9941699430
event_type: 'lock.unlocked'
9941799431
/** ID of the access code that was used to unlock the affected device. */
9941899432
access_code_id?: string | undefined
99433+
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
99434+
access_code_is_managed?: boolean | undefined
9941999435
/** ID of the action attempt associated with the unlock action. */
9942099436
action_attempt_id?: string | undefined
9942199437
/** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */

0 commit comments

Comments
 (0)