2025-11-21 08:31:02 +01:00
|
|
|
import { z } from "zod";
|
2025-02-12 23:04:44 +01:00
|
|
|
|
|
|
|
|
export const ExtendedDescription = z
|
|
|
|
|
.object({
|
2025-07-07 03:42:35 +02:00
|
|
|
updated_at: z.iso.datetime().meta({
|
|
|
|
|
description:
|
|
|
|
|
"A timestamp of when the extended description was last updated.",
|
|
|
|
|
example: "2025-01-12T13:11:00Z",
|
|
|
|
|
externalDocs: {
|
|
|
|
|
url: "https://docs.joinmastodon.org/entities/ExtendedDescription/#updated_at",
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
content: z.string().meta({
|
2025-02-12 23:04:44 +01:00
|
|
|
description:
|
|
|
|
|
"The rendered HTML content of the extended description.",
|
|
|
|
|
example: "<p>We love casting spells.</p>",
|
|
|
|
|
externalDocs: {
|
|
|
|
|
url: "https://docs.joinmastodon.org/entities/ExtendedDescription/#content",
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
})
|
2025-07-07 03:42:35 +02:00
|
|
|
.meta({
|
2025-02-12 23:04:44 +01:00
|
|
|
description:
|
|
|
|
|
"Represents an extended description for the instance, to be shown on its about page.",
|
|
|
|
|
externalDocs: {
|
|
|
|
|
url: "https://docs.joinmastodon.org/entities/ExtendedDescription",
|
|
|
|
|
},
|
2025-07-07 03:42:35 +02:00
|
|
|
id: "ExtendedDescription",
|
2025-02-12 23:04:44 +01:00
|
|
|
});
|