pl-api: basic support for pleroma shoutbox

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-03-28 21:12:42 +01:00
parent 42c5e6a151
commit e211dad0be
8 changed files with 156 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ export * from './rule';
export * from './scheduled-status';
export * from './scrobble';
export * from './search';
export * from './shout-message';
export * from './status';
export * from './status-edit';
export * from './status-source';

View File

@@ -0,0 +1,19 @@
import * as v from 'valibot';
import { accountSchema } from './account';
/**
* @category Schemas
*/
const shoutMessageSchema = v.object({
id: v.number(),
text: v.string(),
author: accountSchema,
});
/**
* @category Entity types
*/
type ShoutMessage = v.InferOutput<typeof shoutMessageSchema>;
export { shoutMessageSchema, type ShoutMessage };