mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 53s
Build Docker Images / lint (push) Failing after 10s
Build Docker Images / check (push) Failing after 10s
Build Docker Images / tests (push) Failing after 6s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / build (push) Failing after 5s
Mirror to Codeberg / Mirror (push) Failing after 0s
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Nix Build / check (push) Failing after 5s
27 lines
898 B
TypeScript
27 lines
898 B
TypeScript
import { z } from "@hono/zod-openapi";
|
|
import { Id } from "./common.ts";
|
|
|
|
export const Marker = z
|
|
.object({
|
|
last_read_id: Id.openapi({
|
|
description: "The ID of the most recently viewed entity.",
|
|
example: "ead15c9d-8eda-4b2c-9546-ecbf851f001c",
|
|
}),
|
|
version: z.number().openapi({
|
|
description:
|
|
"An incrementing counter, used for locking to prevent write conflicts.",
|
|
example: 462,
|
|
}),
|
|
updated_at: z.string().datetime().openapi({
|
|
description: "The timestamp of when the marker was set.",
|
|
example: "2025-01-12T13:11:00Z",
|
|
}),
|
|
})
|
|
.openapi("Marker", {
|
|
description:
|
|
"Represents the last read position within a user's timelines.",
|
|
externalDocs: {
|
|
url: "https://docs.joinmastodon.org/entities/Marker",
|
|
},
|
|
});
|