mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore(federation): 👽 Initial Versia Working Draft 4.0 support
This commit is contained in:
parent
9c71c3fe51
commit
c3fa867e74
22 changed files with 269 additions and 197 deletions
22
types/api.ts
22
types/api.ts
|
|
@ -1,5 +1,16 @@
|
|||
import type { Hono } from "@hono/hono";
|
||||
import type { RouterRoute } from "@hono/hono/types";
|
||||
import type {
|
||||
Delete,
|
||||
Follow,
|
||||
FollowAccept,
|
||||
FollowReject,
|
||||
InstanceMetadata,
|
||||
LikeExtension,
|
||||
Note,
|
||||
Unfollow,
|
||||
User,
|
||||
} from "@versia/federation/types";
|
||||
import type { z } from "zod";
|
||||
import type { RolePermissions } from "~/drizzle/schema";
|
||||
|
||||
|
|
@ -40,3 +51,14 @@ export interface ApiRouteExports {
|
|||
};
|
||||
default: (app: Hono) => RouterRoute;
|
||||
}
|
||||
|
||||
export type KnownEntity =
|
||||
| Note
|
||||
| InstanceMetadata
|
||||
| User
|
||||
| Follow
|
||||
| FollowAccept
|
||||
| FollowReject
|
||||
| Unfollow
|
||||
| Delete
|
||||
| LikeExtension;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue