diff --git a/src/index.ts b/src/index.ts index 695fa45..9529ea2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -140,6 +140,7 @@ export { LocalImage } from "./types/LocalImage"; export { LocalSite } from "./types/LocalSite"; export { LocalSiteId } from "./types/LocalSiteId"; export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit"; +export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist"; export { LocalUser } from "./types/LocalUser"; export { LocalUserId } from "./types/LocalUserId"; export { LocalUserView } from "./types/LocalUserView"; diff --git a/src/types/EditSite.ts b/src/types/EditSite.ts index b7b312d..ef98f5e 100644 --- a/src/types/EditSite.ts +++ b/src/types/EditSite.ts @@ -44,6 +44,7 @@ export interface EditSite { captcha_difficulty?: string; allowed_instances?: Array; blocked_instances?: Array; + blocked_urls?: Array; taglines?: Array; registration_mode?: RegistrationMode; reports_email_admins?: boolean; diff --git a/src/types/GetSiteResponse.ts b/src/types/GetSiteResponse.ts index ea13890..0419901 100644 --- a/src/types/GetSiteResponse.ts +++ b/src/types/GetSiteResponse.ts @@ -2,6 +2,7 @@ import type { CustomEmojiView } from "./CustomEmojiView"; import type { Language } from "./Language"; import type { LanguageId } from "./LanguageId"; +import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist"; import type { MyUserInfo } from "./MyUserInfo"; import type { PersonView } from "./PersonView"; import type { SiteView } from "./SiteView"; @@ -16,4 +17,5 @@ export interface GetSiteResponse { discussion_languages: Array; taglines: Array; custom_emojis: Array; + blocked_urls: Array; } diff --git a/src/types/LemmyErrorType.ts b/src/types/LemmyErrorType.ts index 712e071..885e9ea 100644 --- a/src/types/LemmyErrorType.ts +++ b/src/types/LemmyErrorType.ts @@ -125,6 +125,7 @@ export type LemmyErrorType = | { error: "couldnt_set_all_registrations_accepted" } | { error: "couldnt_set_all_email_verified" } | { error: "banned" } + | { error: "blocked_url" } | { error: "couldnt_get_comments" } | { error: "couldnt_get_posts" } | { error: "invalid_url" } diff --git a/src/types/LocalSiteUrlBlocklist.ts b/src/types/LocalSiteUrlBlocklist.ts new file mode 100644 index 0000000..44a5d0f --- /dev/null +++ b/src/types/LocalSiteUrlBlocklist.ts @@ -0,0 +1,8 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export interface LocalSiteUrlBlocklist { + id: number; + url: string; + published: string; + updated: string | null; +}