diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 4f8da0a..764993b 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -100,7 +100,7 @@ export interface GetSiteResponse { online: number; version: string; my_user?: UserSafeSettings; // Gives back your user and settings if logged in - federated_instances: string[]; + federated_instances?: FederatedInstances; } export interface TransferSite { @@ -120,3 +120,9 @@ export interface SaveSiteConfig { config_hjson: string; auth: string; } + +export interface FederatedInstances { + linked: string[]; + allowed: string[]; + blocked: string[]; +} diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 3f2e7f3..6a3aa28 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -73,6 +73,7 @@ export enum SortType { TopMonth = 'TopMonth', TopYear = 'TopYear', TopAll = 'TopAll', + MostComments = 'MostComments', } export enum ListingType {