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