2024-08-28 04:43:23 -07:00
|
|
|
import { z } from 'zod';
|
|
|
|
|
|
|
|
import { statusSchema } from './status';
|
|
|
|
|
|
|
|
/** @see {@link https://docs.joinmastodon.org/entities/Context/} */
|
|
|
|
const contextSchema = z.object({
|
|
|
|
ancestors: z.array(statusSchema),
|
|
|
|
descendants: z.array(statusSchema),
|
|
|
|
});
|
|
|
|
|
2024-08-29 13:48:58 -07:00
|
|
|
type Context = z.infer<typeof contextSchema>;
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
export { contextSchema, type Context };
|