bigbuffet-rw/packages/pl-api/lib/entities/admin/pleroma-config.ts

15 lines
309 B
TypeScript
Raw Normal View History

import { z } from 'zod';
const pleromaConfigSchema = z.object({
configs: z.array(z.object({
value: z.any(),
group: z.string(),
key: z.string(),
})),
need_reboot: z.boolean(),
});
type PleromaConfig = z.infer<typeof pleromaConfigSchema>
export { pleromaConfigSchema, type PleromaConfig };