Skip to content

Commit a104027

Browse files
committed
feat: Sync with Seam API via 5b82297f4cd862048cd7823bcbe56f5cacf1afc0
1 parent 7e95b9c commit a104027

File tree

3 files changed

+149
-5
lines changed

3 files changed

+149
-5
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,31 @@ export const lock_unlocked_event = device_event.extend({
411411
method: lock_method.describe(
412412
'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.',
413413
),
414+
user_identity_id: z.string().uuid().optional().describe(`
415+
undocumented: Unreleased.
416+
---
417+
ID of the user identity associated with the unlock event.
418+
`),
419+
acs_system_id: z.string().uuid().optional().describe(`
420+
undocumented: Unreleased.
421+
---
422+
ID of the ACS system associated with the unlock event.
423+
`),
424+
acs_user_id: z.string().uuid().optional().describe(`
425+
undocumented: Unreleased.
426+
---
427+
ID of the ACS user associated with the unlock event.
428+
`),
429+
acs_entrance_id: z.string().uuid().optional().describe(`
430+
undocumented: Unreleased.
431+
---
432+
ID of the ACS entrance associated with the unlock event.
433+
`),
434+
device_id: z
435+
.string()
436+
.uuid()
437+
.optional()
438+
.describe('ID of the affected device.'),
414439
}).describe(`
415440
---
416441
route_path: /locks

src/lib/seam/connect/openapi.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18723,6 +18723,24 @@ export default {
1872318723
format: 'uuid',
1872418724
type: 'string',
1872518725
},
18726+
acs_entrance_id: {
18727+
description:
18728+
'\n undocumented: Unreleased.\n ---\n ID of the ACS entrance associated with the unlock event.\n ',
18729+
format: 'uuid',
18730+
type: 'string',
18731+
},
18732+
acs_system_id: {
18733+
description:
18734+
'\n undocumented: Unreleased.\n ---\n ID of the ACS system associated with the unlock event.\n ',
18735+
format: 'uuid',
18736+
type: 'string',
18737+
},
18738+
acs_user_id: {
18739+
description:
18740+
'\n undocumented: Unreleased.\n ---\n ID of the ACS user associated with the unlock event.\n ',
18741+
format: 'uuid',
18742+
type: 'string',
18743+
},
1872618744
action_attempt_id: {
1872718745
description:
1872818746
'ID of the action attempt associated with the unlock action.',
@@ -18778,6 +18796,12 @@ export default {
1877818796
format: 'date-time',
1877918797
type: 'string',
1878018798
},
18799+
user_identity_id: {
18800+
description:
18801+
'\n undocumented: Unreleased.\n ---\n ID of the user identity associated with the unlock event.\n ',
18802+
format: 'uuid',
18803+
type: 'string',
18804+
},
1878118805
workspace_id: {
1878218806
description:
1878318807
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
@@ -18790,7 +18814,6 @@ export default {
1879018814
'workspace_id',
1879118815
'created_at',
1879218816
'occurred_at',
18793-
'device_id',
1879418817
'connected_account_id',
1879518818
'event_type',
1879618819
'method',

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

Lines changed: 100 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38159,7 +38159,7 @@ export type Routes = {
3815938159
/** Date and time at which the event occurred. */
3816038160
occurred_at: string
3816138161
/** ID of the affected device. */
38162-
device_id: string
38162+
device_id?: string | undefined
3816338163
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
3816438164
connected_account_id: string
3816538165
/** Custom metadata of the device, present when device_id is provided. */
@@ -38186,6 +38186,30 @@ export type Routes = {
3818638186
| 'automatic'
3818738187
| 'unknown'
3818838188
| 'seamapi'
38189+
/**
38190+
undocumented: Unreleased.
38191+
---
38192+
ID of the user identity associated with the unlock event.
38193+
*/
38194+
user_identity_id?: string | undefined
38195+
/**
38196+
undocumented: Unreleased.
38197+
---
38198+
ID of the ACS system associated with the unlock event.
38199+
*/
38200+
acs_system_id?: string | undefined
38201+
/**
38202+
undocumented: Unreleased.
38203+
---
38204+
ID of the ACS user associated with the unlock event.
38205+
*/
38206+
acs_user_id?: string | undefined
38207+
/**
38208+
undocumented: Unreleased.
38209+
---
38210+
ID of the ACS entrance associated with the unlock event.
38211+
*/
38212+
acs_entrance_id?: string | undefined
3818938213
}
3819038214
| {
3819138215
/** ID of the event. */
@@ -40648,7 +40672,7 @@ export type Routes = {
4064840672
/** Date and time at which the event occurred. */
4064940673
occurred_at: string
4065040674
/** ID of the affected device. */
40651-
device_id: string
40675+
device_id?: string | undefined
4065240676
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
4065340677
connected_account_id: string
4065440678
/** Custom metadata of the device, present when device_id is provided. */
@@ -40670,6 +40694,30 @@ export type Routes = {
4067040694
action_attempt_id?: string | undefined
4067140695
/** 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. */
4067240696
method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi'
40697+
/**
40698+
undocumented: Unreleased.
40699+
---
40700+
ID of the user identity associated with the unlock event.
40701+
*/
40702+
user_identity_id?: string | undefined
40703+
/**
40704+
undocumented: Unreleased.
40705+
---
40706+
ID of the ACS system associated with the unlock event.
40707+
*/
40708+
acs_system_id?: string | undefined
40709+
/**
40710+
undocumented: Unreleased.
40711+
---
40712+
ID of the ACS user associated with the unlock event.
40713+
*/
40714+
acs_user_id?: string | undefined
40715+
/**
40716+
undocumented: Unreleased.
40717+
---
40718+
ID of the ACS entrance associated with the unlock event.
40719+
*/
40720+
acs_entrance_id?: string | undefined
4067340721
}
4067440722
| {
4067540723
/** ID of the event. */
@@ -64316,7 +64364,7 @@ export type Routes = {
6431664364
/** Date and time at which the event occurred. */
6431764365
occurred_at: string
6431864366
/** ID of the affected device. */
64319-
device_id: string
64367+
device_id?: string | undefined
6432064368
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
6432164369
connected_account_id: string
6432264370
/** Custom metadata of the device, present when device_id is provided. */
@@ -64338,6 +64386,30 @@ export type Routes = {
6433864386
action_attempt_id?: string | undefined
6433964387
/** 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. */
6434064388
method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi'
64389+
/**
64390+
undocumented: Unreleased.
64391+
---
64392+
ID of the user identity associated with the unlock event.
64393+
*/
64394+
user_identity_id?: string | undefined
64395+
/**
64396+
undocumented: Unreleased.
64397+
---
64398+
ID of the ACS system associated with the unlock event.
64399+
*/
64400+
acs_system_id?: string | undefined
64401+
/**
64402+
undocumented: Unreleased.
64403+
---
64404+
ID of the ACS user associated with the unlock event.
64405+
*/
64406+
acs_user_id?: string | undefined
64407+
/**
64408+
undocumented: Unreleased.
64409+
---
64410+
ID of the ACS entrance associated with the unlock event.
64411+
*/
64412+
acs_entrance_id?: string | undefined
6434164413
}
6434264414
| {
6434364415
/** ID of the event. */
@@ -98148,7 +98220,7 @@ export type Routes = {
9814898220
/** Date and time at which the event occurred. */
9814998221
occurred_at: string
9815098222
/** ID of the affected device. */
98151-
device_id: string
98223+
device_id?: string | undefined
9815298224
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
9815398225
connected_account_id: string
9815498226
/** Custom metadata of the device, present when device_id is provided. */
@@ -98175,6 +98247,30 @@ export type Routes = {
9817598247
| 'automatic'
9817698248
| 'unknown'
9817798249
| 'seamapi'
98250+
/**
98251+
undocumented: Unreleased.
98252+
---
98253+
ID of the user identity associated with the unlock event.
98254+
*/
98255+
user_identity_id?: string | undefined
98256+
/**
98257+
undocumented: Unreleased.
98258+
---
98259+
ID of the ACS system associated with the unlock event.
98260+
*/
98261+
acs_system_id?: string | undefined
98262+
/**
98263+
undocumented: Unreleased.
98264+
---
98265+
ID of the ACS user associated with the unlock event.
98266+
*/
98267+
acs_user_id?: string | undefined
98268+
/**
98269+
undocumented: Unreleased.
98270+
---
98271+
ID of the ACS entrance associated with the unlock event.
98272+
*/
98273+
acs_entrance_id?: string | undefined
9817898274
}
9817998275
| {
9818098276
/** ID of the event. */

0 commit comments

Comments
 (0)