import type { DbUrl } from "./DbUrl"; import type { InstanceId } from "./InstanceId"; import type { SiteId } from "./SiteId"; /** * Additional data for federated instances. This may be missing for other platforms which are not * fully compatible. Basic data is guaranteed to be available via [[Instance]]. */ export type Site = { id: SiteId; name: string; /** * A sidebar for the site in markdown. */ sidebar?: string; published_at: string; updated_at?: string; /** * An icon URL. */ icon?: DbUrl; /** * A banner url. */ banner?: DbUrl; /** * A shorter, one-line summary of the site. */ summary?: string; /** * The federated ap_id. */ ap_id: DbUrl; /** * The time the site was last refreshed. */ last_refreshed_at: string; /** * The site inbox */ inbox_url: DbUrl; instance_id: InstanceId; /** * If present, nsfw content is visible by default. Should be displayed by frontends/clients * when the site is first opened by a user. */ content_warning?: string; };