mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
23 lines
866 B
TypeScript
23 lines
866 B
TypeScript
import { z } from "zod";
|
|
|
|
export const Appeal = z
|
|
.object({
|
|
text: z.string().meta({
|
|
description:
|
|
"Text of the appeal from the moderated account to the moderators.",
|
|
example: "I believe this action was taken in error.",
|
|
}),
|
|
state: z.enum(["approved", "rejected", "pending"]).meta({
|
|
description:
|
|
"State of the appeal. 'approved' = The appeal has been approved by a moderator, 'rejected' = The appeal has been rejected by a moderator, 'pending' = The appeal has been submitted, but neither approved nor rejected yet.",
|
|
example: "pending",
|
|
}),
|
|
})
|
|
.meta({
|
|
description: "Appeal against a moderation action.",
|
|
externalDocs: {
|
|
url: "https://docs.joinmastodon.org/entities/Appeal",
|
|
},
|
|
id: "Appeal",
|
|
});
|