2024-10-13 15:25:30 -07:00
|
|
|
import * as v from 'valibot';
|
2024-08-28 04:43:23 -07:00
|
|
|
|
2024-10-16 08:03:27 -07:00
|
|
|
import { datetimeSchema } from './utils';
|
2024-08-28 04:43:23 -07:00
|
|
|
|
2024-10-29 14:44:28 -07:00
|
|
|
/**
|
|
|
|
* @category Schemas
|
|
|
|
* @see {@link https://docs.joinmastodon.org/entities/ExtendedDescription}
|
|
|
|
*/
|
2024-10-13 15:25:30 -07:00
|
|
|
const extendedDescriptionSchema = v.object({
|
2024-10-16 08:03:27 -07:00
|
|
|
updated_at: datetimeSchema,
|
2024-10-13 15:25:30 -07:00
|
|
|
content: v.string(),
|
2024-08-28 04:43:23 -07:00
|
|
|
});
|
|
|
|
|
2024-11-29 07:01:54 -08:00
|
|
|
/**
|
|
|
|
* @category Entity types
|
|
|
|
*/
|
2024-10-13 15:25:30 -07:00
|
|
|
type ExtendedDescription = v.InferOutput<typeof extendedDescriptionSchema>;
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
export { extendedDescriptionSchema, type ExtendedDescription };
|