bigbuffet-rw/packages/pl-api/lib/entities/admin/pleroma-config.ts
marcin mikołajczak b357261ff2 pl-api: Update docs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-11-29 15:52:33 +01:00

20 lines
388 B
TypeScript

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