lemmy-js-client 0.19.4-alpha.7 → 0.19.4-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -140,6 +140,7 @@ export { LocalImage } from "./types/LocalImage";
140
140
  export { LocalSite } from "./types/LocalSite";
141
141
  export { LocalSiteId } from "./types/LocalSiteId";
142
142
  export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
143
+ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
143
144
  export { LocalUser } from "./types/LocalUser";
144
145
  export { LocalUserId } from "./types/LocalUserId";
145
146
  export { LocalUserView } from "./types/LocalUserView";
@@ -42,6 +42,7 @@ export interface EditSite {
42
42
  captcha_difficulty?: string;
43
43
  allowed_instances?: Array<string>;
44
44
  blocked_instances?: Array<string>;
45
+ blocked_urls?: Array<string>;
45
46
  taglines?: Array<string>;
46
47
  registration_mode?: RegistrationMode;
47
48
  reports_email_admins?: boolean;
@@ -1,6 +1,7 @@
1
1
  import type { CustomEmojiView } from "./CustomEmojiView";
2
2
  import type { Language } from "./Language";
3
3
  import type { LanguageId } from "./LanguageId";
4
+ import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
4
5
  import type { MyUserInfo } from "./MyUserInfo";
5
6
  import type { PersonView } from "./PersonView";
6
7
  import type { SiteView } from "./SiteView";
@@ -14,4 +15,5 @@ export interface GetSiteResponse {
14
15
  discussion_languages: Array<LanguageId>;
15
16
  taglines: Array<Tagline>;
16
17
  custom_emojis: Array<CustomEmojiView>;
18
+ blocked_urls: Array<LocalSiteUrlBlocklist>;
17
19
  }
@@ -249,6 +249,8 @@ export type LemmyErrorType = {
249
249
  error: "couldnt_set_all_email_verified";
250
250
  } | {
251
251
  error: "banned";
252
+ } | {
253
+ error: "blocked_url";
252
254
  } | {
253
255
  error: "couldnt_get_comments";
254
256
  } | {
@@ -0,0 +1,6 @@
1
+ export interface LocalSiteUrlBlocklist {
2
+ id: number;
3
+ url: string;
4
+ published: string;
5
+ updated?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.19.4-alpha.7",
4
+ "version": "0.19.4-alpha.8",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",