mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
|
|
import { z } from "zod";
|
||
|
|
import { url } from "./common.ts";
|
||
|
|
import { EntitySchema } from "./entity.ts";
|
||
|
|
|
||
|
|
export const DeleteSchema = EntitySchema.extend({
|
||
|
|
uri: z.null().optional(),
|
||
|
|
type: z.literal("Delete"),
|
||
|
|
author: url.nullable(),
|
||
|
|
deleted_type: z.string(),
|
||
|
|
deleted: url,
|
||
|
|
});
|