import * as v from 'valibot';

import { datetimeSchema } from './utils';

/**
 * @category Schemas
 * @see {@link https://docs.joinmastodon.org/entities/ExtendedDescription}
 */
const extendedDescriptionSchema = v.object({
  updated_at: datetimeSchema,
  content: v.string(),
});

/**
 * @category Entity types
 */
type ExtendedDescription = v.InferOutput<typeof extendedDescriptionSchema>;

export { extendedDescriptionSchema, type ExtendedDescription };
