mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 12:49:16 +02:00
8 lines
246 B
TypeScript
8 lines
246 B
TypeScript
import { z } from "zod";
|
|
import { EntitySchema, ReferenceSchema } from "../entity.ts";
|
|
|
|
export const ShareSchema = EntitySchema.extend({
|
|
type: z.literal("pub.versia:share/Share"),
|
|
author: ReferenceSchema,
|
|
shared: ReferenceSchema,
|
|
});
|