2025-03-29 03:30:06 +01:00
|
|
|
import { z } from "zod";
|
2025-02-14 16:44:32 +01:00
|
|
|
|
|
|
|
|
export const TermsOfService = z
|
|
|
|
|
.object({
|
|
|
|
|
updated_at: z.string().datetime().openapi({
|
|
|
|
|
description: "A timestamp of when the ToS was last updated.",
|
|
|
|
|
example: "2025-01-12T13:11:00Z",
|
|
|
|
|
}),
|
|
|
|
|
content: z.string().openapi({
|
|
|
|
|
description: "The rendered HTML content of the ToS.",
|
|
|
|
|
example: "<p><h1>ToS</h1><p>None, have fun.</p></p>",
|
|
|
|
|
}),
|
|
|
|
|
})
|
2025-03-29 03:30:06 +01:00
|
|
|
.openapi({
|
2025-02-14 16:44:32 +01:00
|
|
|
description: "Represents the ToS of the instance.",
|
2025-03-29 03:30:06 +01:00
|
|
|
ref: "TermsOfService",
|
2025-02-14 16:44:32 +01:00
|
|
|
});
|