feat(federation): Port to Versia 0.6

This commit is contained in:
Jesse Wierzbinski 2026-02-25 02:34:27 +01:00
parent de69f27877
commit fca30b4dad
No known key found for this signature in database
62 changed files with 1614 additions and 2008 deletions

View file

@ -1,12 +1,10 @@
import { z } from "zod";
import { url } from "../common.ts";
import { EntitySchema } from "../entity.ts";
import { ReferenceSchema, TransientEntitySchema } from "../entity.ts";
export const ReportSchema = EntitySchema.extend({
export const ReportSchema = TransientEntitySchema.extend({
type: z.literal("pub.versia:reports/Report"),
uri: z.null().optional(),
author: url.nullish(),
reported: z.array(url),
author: ReferenceSchema.nullish(),
reported: z.array(ReferenceSchema),
tags: z.array(z.string()),
comment: z
.string()