Skip to content

Commit c247c41

Browse files
authored
feat: Sync with Seam API via c7ee21995f215c69233dabc7bf6ad823358f1be1 (#2712)
1 parent 5e10c96 commit c247c41

3 files changed

Lines changed: 80 additions & 0 deletions

File tree

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,16 @@ export const camera_activated_event = device_event.extend({
715715
.enum(['human', 'vehicle', 'package', 'other'])
716716
.optional()
717717
.describe('Sub-type of motion detected, if available.'),
718+
image_url: z
719+
.string()
720+
.url()
721+
.optional()
722+
.describe('URL to a thumbnail image captured at the time of activation.'),
723+
video_url: z
724+
.string()
725+
.url()
726+
.optional()
727+
.describe('URL to a short video clip captured at the time of activation.'),
718728
}).describe(`
719729
---
720730
route_path: /devices
@@ -726,6 +736,20 @@ export type CameraActivatedEvent = z.infer<typeof camera_activated_event>
726736

727737
export const device_doorbell_rang_event = device_event.extend({
728738
event_type: z.literal('device.doorbell_rang'),
739+
image_url: z
740+
.string()
741+
.url()
742+
.optional()
743+
.describe(
744+
'URL to a thumbnail image captured at the time the doorbell was pressed.',
745+
),
746+
video_url: z
747+
.string()
748+
.url()
749+
.optional()
750+
.describe(
751+
'URL to a short video clip captured at the time the doorbell was pressed.',
752+
),
729753
}).describe(`
730754
---
731755
route_path: /devices

src/lib/seam/connect/openapi.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23162,6 +23162,12 @@ export default {
2316223162
type: 'string',
2316323163
},
2316423164
event_type: { enum: ['camera.activated'], type: 'string' },
23165+
image_url: {
23166+
description:
23167+
'URL to a thumbnail image captured at the time of activation.',
23168+
format: 'uri',
23169+
type: 'string',
23170+
},
2316523171
motion_sub_type: {
2316623172
description: 'Sub-type of motion detected, if available.',
2316723173
enum: ['human', 'vehicle', 'package', 'other'],
@@ -23172,6 +23178,12 @@ export default {
2317223178
format: 'date-time',
2317323179
type: 'string',
2317423180
},
23181+
video_url: {
23182+
description:
23183+
'URL to a short video clip captured at the time of activation.',
23184+
format: 'uri',
23185+
type: 'string',
23186+
},
2317523187
workspace_id: {
2317623188
description:
2317723189
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
@@ -23239,11 +23251,23 @@ export default {
2323923251
type: 'string',
2324023252
},
2324123253
event_type: { enum: ['device.doorbell_rang'], type: 'string' },
23254+
image_url: {
23255+
description:
23256+
'URL to a thumbnail image captured at the time the doorbell was pressed.',
23257+
format: 'uri',
23258+
type: 'string',
23259+
},
2324223260
occurred_at: {
2324323261
description: 'Date and time at which the event occurred.',
2324423262
format: 'date-time',
2324523263
type: 'string',
2324623264
},
23265+
video_url: {
23266+
description:
23267+
'URL to a short video clip captured at the time the doorbell was pressed.',
23268+
format: 'uri',
23269+
type: 'string',
23270+
},
2324723271
workspace_id: {
2324823272
description:
2324923273
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42531,6 +42531,10 @@ export type Routes = {
4253142531
motion_sub_type?:
4253242532
| ('human' | 'vehicle' | 'package' | 'other')
4253342533
| undefined
42534+
/** URL to a thumbnail image captured at the time of activation. */
42535+
image_url?: string | undefined
42536+
/** URL to a short video clip captured at the time of activation. */
42537+
video_url?: string | undefined
4253442538
}
4253542539
| {
4253642540
/** ID of the event. */
@@ -42560,6 +42564,10 @@ export type Routes = {
4256042564
}
4256142565
| undefined
4256242566
event_type: 'device.doorbell_rang'
42567+
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
42568+
image_url?: string | undefined
42569+
/** URL to a short video clip captured at the time the doorbell was pressed. */
42570+
video_url?: string | undefined
4256342571
}
4256442572
| {
4256542573
/** ID of the event. */
@@ -45912,6 +45920,10 @@ export type Routes = {
4591245920
motion_sub_type?:
4591345921
| ('human' | 'vehicle' | 'package' | 'other')
4591445922
| undefined
45923+
/** URL to a thumbnail image captured at the time of activation. */
45924+
image_url?: string | undefined
45925+
/** URL to a short video clip captured at the time of activation. */
45926+
video_url?: string | undefined
4591545927
}
4591645928
| {
4591745929
/** ID of the event. */
@@ -45941,6 +45953,10 @@ export type Routes = {
4594145953
}
4594245954
| undefined
4594345955
event_type: 'device.doorbell_rang'
45956+
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
45957+
image_url?: string | undefined
45958+
/** URL to a short video clip captured at the time the doorbell was pressed. */
45959+
video_url?: string | undefined
4594445960
}
4594545961
| {
4594645962
/** ID of the event. */
@@ -73152,6 +73168,10 @@ export type Routes = {
7315273168
motion_sub_type?:
7315373169
| ('human' | 'vehicle' | 'package' | 'other')
7315473170
| undefined
73171+
/** URL to a thumbnail image captured at the time of activation. */
73172+
image_url?: string | undefined
73173+
/** URL to a short video clip captured at the time of activation. */
73174+
video_url?: string | undefined
7315573175
}
7315673176
| {
7315773177
/** ID of the event. */
@@ -73181,6 +73201,10 @@ export type Routes = {
7318173201
}
7318273202
| undefined
7318373203
event_type: 'device.doorbell_rang'
73204+
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
73205+
image_url?: string | undefined
73206+
/** URL to a short video clip captured at the time the doorbell was pressed. */
73207+
video_url?: string | undefined
7318473208
}
7318573209
| {
7318673210
/** ID of the event. */
@@ -109588,6 +109612,10 @@ export type Routes = {
109588109612
motion_sub_type?:
109589109613
| ('human' | 'vehicle' | 'package' | 'other')
109590109614
| undefined
109615+
/** URL to a thumbnail image captured at the time of activation. */
109616+
image_url?: string | undefined
109617+
/** URL to a short video clip captured at the time of activation. */
109618+
video_url?: string | undefined
109591109619
}
109592109620
| {
109593109621
/** ID of the event. */
@@ -109617,6 +109645,10 @@ export type Routes = {
109617109645
}
109618109646
| undefined
109619109647
event_type: 'device.doorbell_rang'
109648+
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
109649+
image_url?: string | undefined
109650+
/** URL to a short video clip captured at the time the doorbell was pressed. */
109651+
video_url?: string | undefined
109620109652
}
109621109653
| {
109622109654
/** ID of the event. */

0 commit comments

Comments
 (0)