pl-api: basic support for pleroma shoutbox
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -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';
|
||||
|
||||
19
packages/pl-api/lib/entities/shout-message.ts
Normal file
19
packages/pl-api/lib/entities/shout-message.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user