2025-07-07 03:42:35 +02:00
import { z } from "zod/v4" ;
2025-02-12 23:04:44 +01:00
export const Appeal = z
. object ( {
2025-07-07 03:42:35 +02:00
text : z.string ( ) . meta ( {
2025-02-12 23:04:44 +01:00
description :
"Text of the appeal from the moderated account to the moderators." ,
example : "I believe this action was taken in error." ,
} ) ,
2025-07-07 03:42:35 +02:00
state : z.enum ( [ "approved" , "rejected" , "pending" ] ) . meta ( {
2025-02-12 23:04:44 +01:00
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" ,
} ) ,
} )
2025-07-07 03:42:35 +02:00
. meta ( {
2025-02-12 23:04:44 +01:00
description : "Appeal against a moderation action." ,
externalDocs : {
url : "https://docs.joinmastodon.org/entities/Appeal" ,
} ,
2025-07-07 03:42:35 +02:00
id : "Appeal" ,
2025-02-12 23:04:44 +01:00
} ) ;