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

20 lines
395 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 entity types
*/
type PleromaConfig = v.InferOutput<typeof pleromaConfigSchema>
export { pleromaConfigSchema, type PleromaConfig };