mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 16:38:20 +01:00
54 lines
858 B
TypeScript
54 lines
858 B
TypeScript
|
|
/**
|
||
|
|
* @file index.ts
|
||
|
|
* @fileoverview Main entrypoint and export for the module
|
||
|
|
* @module federation
|
||
|
|
* @see module:federation/schemas/base
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type { z } from "zod";
|
||
|
|
import {
|
||
|
|
Action,
|
||
|
|
ActorPublicKeyData,
|
||
|
|
ContentFormat,
|
||
|
|
Dislike,
|
||
|
|
Entity,
|
||
|
|
Extension,
|
||
|
|
Follow,
|
||
|
|
FollowAccept,
|
||
|
|
FollowReject,
|
||
|
|
Like,
|
||
|
|
Note,
|
||
|
|
Patch,
|
||
|
|
Publication,
|
||
|
|
Report,
|
||
|
|
ServerMetadata,
|
||
|
|
Undo,
|
||
|
|
User,
|
||
|
|
VanityExtension,
|
||
|
|
Visibility,
|
||
|
|
} from "~/federation/schemas/base";
|
||
|
|
|
||
|
|
export type InferType<T extends z.AnyZodObject> = z.infer<T>;
|
||
|
|
|
||
|
|
export {
|
||
|
|
Entity,
|
||
|
|
ContentFormat,
|
||
|
|
Visibility,
|
||
|
|
Publication,
|
||
|
|
Note,
|
||
|
|
Patch,
|
||
|
|
ActorPublicKeyData,
|
||
|
|
VanityExtension,
|
||
|
|
User,
|
||
|
|
Action,
|
||
|
|
Like,
|
||
|
|
Undo,
|
||
|
|
Dislike,
|
||
|
|
Follow,
|
||
|
|
FollowAccept,
|
||
|
|
FollowReject,
|
||
|
|
Extension,
|
||
|
|
Report,
|
||
|
|
ServerMetadata,
|
||
|
|
};
|