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
11 changes: 10 additions & 1 deletion src/lib/seam/connect/models/action-attempts/lock-door.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ const error = z
})
.describe('Error associated with the action.')

const result = z.object({}).describe('Result of the action.')
const result = z
.object({
was_confirmed_by_device: z
.boolean()
.optional()
.describe(
'Indicates whether the device confirmed that the lock action occurred.',
),
})
.describe('Result of the action.')

export const lock_door_action_attempt = z.discriminatedUnion('status', [
common_pending_action_attempt
Expand Down
11 changes: 10 additions & 1 deletion src/lib/seam/connect/models/action-attempts/unlock-door.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ const error = z
})
.describe('Error associated with the action.')

const result = z.object({}).describe('Result of the action.')
const result = z
.object({
was_confirmed_by_device: z
.boolean()
.optional()
.describe(
'Indicates whether the device confirmed that the unlock action occurred.',
),
})
.describe('Result of the action.')

export const unlock_door_action_attempt = z.discriminatedUnion('status', [
common_pending_action_attempt
Expand Down
16 changes: 14 additions & 2 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4874,7 +4874,13 @@ export default {
},
result: {
description: 'Result of the action.',
properties: {},
properties: {
was_confirmed_by_device: {
description:
'Indicates whether the device confirmed that the lock action occurred.',
type: 'boolean',
},
},
type: 'object',
},
status: { enum: ['success'], type: 'string' },
Expand Down Expand Up @@ -4987,7 +4993,13 @@ export default {
},
result: {
description: 'Result of the action.',
properties: {},
properties: {
was_confirmed_by_device: {
description:
'Indicates whether the device confirmed that the unlock action occurred.',
type: 'boolean',
},
},
type: 'object',
},
status: { enum: ['success'], type: 'string' },
Expand Down
Loading