Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/lib/seam/connect/models/events/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ export const lock_locked_event = device_event.extend({
.uuid()
.optional()
.describe('ID of the access code that was used to lock the device.'),
access_code_is_managed: z
.boolean()
.optional()
.describe(
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
),
action_attempt_id: z
.string()
.uuid()
Expand All @@ -403,6 +409,12 @@ export const lock_unlocked_event = device_event.extend({
.describe(
'ID of the access code that was used to unlock the affected device.',
),
access_code_is_managed: z
.boolean()
.optional()
.describe(
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
),
action_attempt_id: z
.string()
.uuid()
Expand Down
10 changes: 10 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18809,6 +18809,11 @@ export default {
format: 'uuid',
type: 'string',
},
access_code_is_managed: {
description:
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
type: 'boolean',
},
action_attempt_id: {
description:
'ID of the action attempt associated with the lock action.',
Expand Down Expand Up @@ -18894,6 +18899,11 @@ export default {
format: 'uuid',
type: 'string',
},
access_code_is_managed: {
description:
'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
type: 'boolean',
},
acs_entrance_id: {
description:
'\n undocumented: Unreleased.\n ---\n ID of the ACS entrance associated with the unlock event.\n ',
Expand Down
16 changes: 16 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38895,6 +38895,8 @@ export type Routes = {
event_type: 'lock.locked'
/** ID of the access code that was used to lock the device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the lock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -38933,6 +38935,8 @@ export type Routes = {
event_type: 'lock.unlocked'
/** ID of the access code that was used to unlock the affected device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the unlock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -41423,6 +41427,8 @@ export type Routes = {
event_type: 'lock.locked'
/** ID of the access code that was used to lock the device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the lock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -41456,6 +41462,8 @@ export type Routes = {
event_type: 'lock.unlocked'
/** ID of the access code that was used to unlock the affected device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the unlock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -65319,6 +65327,8 @@ export type Routes = {
event_type: 'lock.locked'
/** ID of the access code that was used to lock the device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the lock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -65352,6 +65362,8 @@ export type Routes = {
event_type: 'lock.unlocked'
/** ID of the access code that was used to unlock the affected device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the unlock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -99378,6 +99390,8 @@ export type Routes = {
event_type: 'lock.locked'
/** ID of the access code that was used to lock the device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the lock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down Expand Up @@ -99416,6 +99430,8 @@ export type Routes = {
event_type: 'lock.unlocked'
/** ID of the access code that was used to unlock the affected device. */
access_code_id?: string | undefined
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
access_code_is_managed?: boolean | undefined
/** ID of the action attempt associated with the unlock action. */
action_attempt_id?: string | undefined
/** 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. */
Expand Down