mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ♻️ Rewrite federation SDK
This commit is contained in:
parent
ad1dc13a51
commit
d638610361
72 changed files with 2137 additions and 738 deletions
30
types/api.ts
30
types/api.ts
|
|
@ -1,14 +1,4 @@
|
|||
import type {
|
||||
Delete,
|
||||
Follow,
|
||||
FollowAccept,
|
||||
FollowReject,
|
||||
InstanceMetadata,
|
||||
LikeExtension,
|
||||
Note,
|
||||
Unfollow,
|
||||
User,
|
||||
} from "@versia/federation/types";
|
||||
import type * as VersiaEntities from "@versia/sdk/entities";
|
||||
import type { SocketAddress } from "bun";
|
||||
import type { Hono } from "hono";
|
||||
import type { RouterRoute } from "hono/types";
|
||||
|
|
@ -33,12 +23,12 @@ export interface ApiRouteExports {
|
|||
}
|
||||
|
||||
export type KnownEntity =
|
||||
| Note
|
||||
| InstanceMetadata
|
||||
| User
|
||||
| Follow
|
||||
| FollowAccept
|
||||
| FollowReject
|
||||
| Unfollow
|
||||
| Delete
|
||||
| LikeExtension;
|
||||
| VersiaEntities.Note
|
||||
| VersiaEntities.InstanceMetadata
|
||||
| VersiaEntities.User
|
||||
| VersiaEntities.Follow
|
||||
| VersiaEntities.FollowAccept
|
||||
| VersiaEntities.FollowReject
|
||||
| VersiaEntities.Unfollow
|
||||
| VersiaEntities.Delete
|
||||
| VersiaEntities.Like;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue