mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
import { z } from "zod/v4";
|
|
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,
|
|
});
|