bigbuffet-rw/packages/pl-api/lib/entities/admin/pleroma-config.ts
marcin mikołajczak eb231d562e Migrate everything to pl-api
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 21:07:16 +02:00

14 lines
309 B
TypeScript

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 };