diff --git a/client/lysand/lysand.ts b/client/lysand/lysand.ts index cee8039..4ca789b 100644 --- a/client/lysand/lysand.ts +++ b/client/lysand/lysand.ts @@ -9,7 +9,7 @@ import type { Context } from "../types/context"; import type { Conversation } from "../types/conversation"; import type { Emoji } from "../types/emoji"; import type { FeaturedTag } from "../types/featured_tag"; -import type { Instance } from "../types/instance"; +import type { ExtendedDescription, Instance } from "../types/instance"; import type { List } from "../types/list"; import type { Marker } from "../types/marker"; import type { Notification } from "../types/notification"; @@ -994,6 +994,20 @@ export class LysandClient extends BaseClient { return this.get(`/api/v1/directory?${params}`, extra); } + /** + * GET /api/v1/instance/extended_description + * + * @returns Instance's extended description. + */ + public getInstanceExtendedDescription( + extra?: RequestInit, + ): Promise> { + return this.get( + "/api/v1/instance/extended_description", + extra, + ); + } + /** * GET /api/v1/instance/peers * diff --git a/client/types/instance.ts b/client/types/instance.ts index dead65e..c5e181d 100644 --- a/client/types/instance.ts +++ b/client/types/instance.ts @@ -79,3 +79,8 @@ export type InstanceRule = { id: string; text: string; }; + +export type ExtendedDescription = { + updated_at: string; + content: string; +};