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
24 changes: 24 additions & 0 deletions src/lib/seam/connect/models/events/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,16 @@ export const camera_activated_event = device_event.extend({
.enum(['human', 'vehicle', 'package', 'other'])
.optional()
.describe('Sub-type of motion detected, if available.'),
image_url: z
.string()
.url()
.optional()
.describe('URL to a thumbnail image captured at the time of activation.'),
video_url: z
.string()
.url()
.optional()
.describe('URL to a short video clip captured at the time of activation.'),
}).describe(`
---
route_path: /devices
Expand All @@ -726,6 +736,20 @@ export type CameraActivatedEvent = z.infer<typeof camera_activated_event>

export const device_doorbell_rang_event = device_event.extend({
event_type: z.literal('device.doorbell_rang'),
image_url: z
.string()
.url()
.optional()
.describe(
'URL to a thumbnail image captured at the time the doorbell was pressed.',
),
video_url: z
.string()
.url()
.optional()
.describe(
'URL to a short video clip captured at the time the doorbell was pressed.',
),
}).describe(`
---
route_path: /devices
Expand Down
24 changes: 24 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23162,6 +23162,12 @@ export default {
type: 'string',
},
event_type: { enum: ['camera.activated'], type: 'string' },
image_url: {
description:
'URL to a thumbnail image captured at the time of activation.',
format: 'uri',
type: 'string',
},
motion_sub_type: {
description: 'Sub-type of motion detected, if available.',
enum: ['human', 'vehicle', 'package', 'other'],
Expand All @@ -23172,6 +23178,12 @@ export default {
format: 'date-time',
type: 'string',
},
video_url: {
description:
'URL to a short video clip captured at the time of activation.',
format: 'uri',
type: 'string',
},
workspace_id: {
description:
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
Expand Down Expand Up @@ -23239,11 +23251,23 @@ export default {
type: 'string',
},
event_type: { enum: ['device.doorbell_rang'], type: 'string' },
image_url: {
description:
'URL to a thumbnail image captured at the time the doorbell was pressed.',
format: 'uri',
type: 'string',
},
occurred_at: {
description: 'Date and time at which the event occurred.',
format: 'date-time',
type: 'string',
},
video_url: {
description:
'URL to a short video clip captured at the time the doorbell was pressed.',
format: 'uri',
type: 'string',
},
workspace_id: {
description:
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
Expand Down
32 changes: 32 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42531,6 +42531,10 @@ export type Routes = {
motion_sub_type?:
| ('human' | 'vehicle' | 'package' | 'other')
| undefined
/** URL to a thumbnail image captured at the time of activation. */
image_url?: string | undefined
/** URL to a short video clip captured at the time of activation. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -42560,6 +42564,10 @@ export type Routes = {
}
| undefined
event_type: 'device.doorbell_rang'
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
image_url?: string | undefined
/** URL to a short video clip captured at the time the doorbell was pressed. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -45912,6 +45920,10 @@ export type Routes = {
motion_sub_type?:
| ('human' | 'vehicle' | 'package' | 'other')
| undefined
/** URL to a thumbnail image captured at the time of activation. */
image_url?: string | undefined
/** URL to a short video clip captured at the time of activation. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -45941,6 +45953,10 @@ export type Routes = {
}
| undefined
event_type: 'device.doorbell_rang'
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
image_url?: string | undefined
/** URL to a short video clip captured at the time the doorbell was pressed. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -73152,6 +73168,10 @@ export type Routes = {
motion_sub_type?:
| ('human' | 'vehicle' | 'package' | 'other')
| undefined
/** URL to a thumbnail image captured at the time of activation. */
image_url?: string | undefined
/** URL to a short video clip captured at the time of activation. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -73181,6 +73201,10 @@ export type Routes = {
}
| undefined
event_type: 'device.doorbell_rang'
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
image_url?: string | undefined
/** URL to a short video clip captured at the time the doorbell was pressed. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -109588,6 +109612,10 @@ export type Routes = {
motion_sub_type?:
| ('human' | 'vehicle' | 'package' | 'other')
| undefined
/** URL to a thumbnail image captured at the time of activation. */
image_url?: string | undefined
/** URL to a short video clip captured at the time of activation. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down Expand Up @@ -109617,6 +109645,10 @@ export type Routes = {
}
| undefined
event_type: 'device.doorbell_rang'
/** URL to a thumbnail image captured at the time the doorbell was pressed. */
image_url?: string | undefined
/** URL to a short video clip captured at the time the doorbell was pressed. */
video_url?: string | undefined
}
| {
/** ID of the event. */
Expand Down
Loading