bigbuffet-rw/packages/pl-api/lib/entities/admin/pleroma-config.ts
2024-10-14 20:54:44 +02:00

14 lines
320 B
TypeScript

import * as v from 'valibot';
const pleromaConfigSchema = v.object({
configs: v.array(v.object({
value: v.any(),
group: v.string(),
key: v.string(),
})),
need_reboot: v.boolean(),
});
type PleromaConfig = v.InferOutput<typeof pleromaConfigSchema>
export { pleromaConfigSchema, type PleromaConfig };