/** * @file TypeScript type definitions * @module federation/types */ import type { z } from "zod"; import type { ActionSchema, ActorPublicKeyDataSchema, DislikeSchema, EntitySchema, ExtensionSchema, FollowAcceptSchema, FollowRejectSchema, FollowSchema, LikeSchema, NoteSchema, PatchSchema, PublicationSchema, ReportSchema, ServerMetadataSchema, UndoSchema, UserSchema, VisibilitySchema, } from "./schemas/base"; import type { ContentFormatSchema } from "./schemas/content_format"; import type { ExtensionPropertySchema } from "./schemas/extensions"; import type { CustomEmojiExtensionSchema } from "./schemas/extensions/custom_emojis"; import type { VanityExtensionSchema } from "./schemas/extensions/vanity"; // biome-ignore lint/suspicious/noExplicitAny: Used only as a base type type AnyZod = z.ZodType; type InferType = z.infer; export type Note = InferType; export type Patch = InferType; export type ActorPublicKeyData = InferType; export type ExtensionProperty = InferType; export type VanityExtension = InferType; export type User = InferType; export type Action = InferType; export type Like = InferType; export type Undo = InferType; export type Dislike = InferType; export type Follow = InferType; export type FollowAccept = InferType; export type FollowReject = InferType; export type Extension = InferType; export type Report = InferType; export type ServerMetadata = InferType; export type ContentFormat = InferType; export type CustomEmojiExtension = InferType; export type Visibility = InferType; export type Publication = InferType; export type Entity = InferType;