-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add docs for device events (#1373)
- Loading branch information
Showing
4 changed files
with
1,476 additions
and
1,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
import { z } from 'zod' | ||
|
||
export const common_event = z.object({ | ||
event_id: z.string().uuid().describe(` | ||
--- | ||
title: Event ID | ||
--- | ||
The ID of the event. | ||
`), | ||
workspace_id: z.string().uuid().describe(` | ||
--- | ||
title: Workspace ID | ||
--- | ||
The ID of the workspace. | ||
`), | ||
created_at: z.string().datetime().describe(` | ||
--- | ||
title: Created At | ||
--- | ||
The time when the event was created. | ||
`), | ||
occurred_at: z.string().datetime().describe(` | ||
--- | ||
title: Occurred At | ||
--- | ||
The time when the event occurred. | ||
`), | ||
event_id: z.string().uuid().describe('ID of the event.'), | ||
workspace_id: z | ||
.string() | ||
.uuid() | ||
.describe( | ||
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).', | ||
), | ||
created_at: z | ||
.string() | ||
.datetime() | ||
.describe('Time at which the event was created.'), | ||
occurred_at: z.string().datetime().describe('Time when the event occurred.'), | ||
}) |
Oops, something went wrong.