diff --git a/src/lib/seam/connect/models/action-attempts/lock-door.ts b/src/lib/seam/connect/models/action-attempts/lock-door.ts index 58c9a54d..97958a78 100644 --- a/src/lib/seam/connect/models/action-attempts/lock-door.ts +++ b/src/lib/seam/connect/models/action-attempts/lock-door.ts @@ -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 diff --git a/src/lib/seam/connect/models/action-attempts/unlock-door.ts b/src/lib/seam/connect/models/action-attempts/unlock-door.ts index 824768f9..77a36cec 100644 --- a/src/lib/seam/connect/models/action-attempts/unlock-door.ts +++ b/src/lib/seam/connect/models/action-attempts/unlock-door.ts @@ -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 diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 0191729a..5bd214d0 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -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' }, @@ -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' }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index a8e7d863..3571a50b 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -74,7 +74,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -112,7 +115,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -2660,7 +2666,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -2698,7 +2707,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -6967,7 +6979,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -7005,7 +7020,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -9587,7 +9605,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -9625,7 +9646,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -14520,7 +14544,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -14558,7 +14585,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -21539,7 +21569,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -21577,7 +21610,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -23111,7 +23147,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -23149,7 +23188,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -27546,7 +27588,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -27584,7 +27629,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -29007,7 +29055,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -29045,7 +29096,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -51169,7 +51223,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -51207,7 +51264,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -52631,7 +52691,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -52669,7 +52732,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -54091,7 +54157,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -54129,7 +54198,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -55553,7 +55625,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -55591,7 +55666,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -60322,7 +60400,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -60360,7 +60441,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -61803,7 +61887,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -61841,7 +61928,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -63340,7 +63430,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -63378,7 +63471,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -65703,7 +65799,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -65741,7 +65840,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -75020,7 +75122,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -75058,7 +75163,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -76486,7 +76594,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -76524,7 +76635,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -78064,7 +78178,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -78102,7 +78219,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -81162,7 +81282,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -81200,7 +81323,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -82632,7 +82758,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -82670,7 +82799,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -87418,7 +87550,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -87456,7 +87591,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -89083,7 +89221,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -89121,7 +89262,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -90581,7 +90725,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -90619,7 +90766,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -92196,7 +92346,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -92234,7 +92387,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -100806,7 +100962,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -100844,7 +101003,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -108281,7 +108443,10 @@ export type Routes = { /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the lock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */ @@ -108319,7 +108484,10 @@ export type Routes = { /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR' /** Result of the action. */ - result: {} + result: { + /** Indicates whether the device confirmed that the unlock action occurred. */ + was_confirmed_by_device?: boolean | undefined + } } | { /** ID of the action attempt. */