iceshrimp/packages/backend/src/models/schema/muting.ts
ThatOneCalculator 2aab2de38d refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

36 lines
597 B
TypeScript

export const packedMutingSchema = {
type: "object",
properties: {
id: {
type: "string",
optional: false,
nullable: false,
format: "id",
example: "xxxxxxxxxx",
},
createdAt: {
type: "string",
optional: false,
nullable: false,
format: "date-time",
},
expiresAt: {
type: "string",
optional: false,
nullable: true,
format: "date-time",
},
muteeId: {
type: "string",
optional: false,
nullable: false,
format: "id",
},
mutee: {
type: "object",
optional: false,
nullable: false,
ref: "UserDetailed",
},
},
} as const;