lemmy-js-client 0.20.0-api-v4.8 → 0.20.0-api-v4.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -312,7 +312,7 @@ export declare class LemmyHttp {
312
312
  /**
313
313
  * Block a community.
314
314
  *
315
- * `HTTP.POST /community/block`
315
+ * `HTTP.POST /account/block/community`
316
316
  */
317
317
  blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
318
318
  /**
@@ -654,7 +654,7 @@ export declare class LemmyHttp {
654
654
  /**
655
655
  * Block a person.
656
656
  *
657
- * `HTTP.POST /user/block`
657
+ * `HTTP.POST /account/block/person`
658
658
  */
659
659
  blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
660
660
  /**
@@ -852,13 +852,13 @@ export declare class LemmyHttp {
852
852
  /**
853
853
  * Block an instance as user.
854
854
  *
855
- * `HTTP.Post /site/block`
855
+ * `HTTP.Post /account/block/instance`
856
856
  */
857
857
  userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
858
858
  /**
859
859
  * Globally block an instance as admin.
860
860
  *
861
- * `HTTP.Post /admin/block_instance`
861
+ * `HTTP.Post /admin/block/instance`
862
862
  */
863
863
  adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
864
864
  /**
package/dist/http.js CHANGED
@@ -241,10 +241,10 @@ class LemmyHttp {
241
241
  /**
242
242
  * Block a community.
243
243
  *
244
- * `HTTP.POST /community/block`
244
+ * `HTTP.POST /account/block/community`
245
245
  */
246
246
  blockCommunity(form, options) {
247
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/block", form, options);
247
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
248
248
  }
249
249
  /**
250
250
  * Delete a community.
@@ -697,10 +697,10 @@ class LemmyHttp {
697
697
  /**
698
698
  * Block a person.
699
699
  *
700
- * `HTTP.POST /user/block`
700
+ * `HTTP.POST /account/block/person`
701
701
  */
702
702
  blockPerson(form, options) {
703
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/block", form, options);
703
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
704
704
  }
705
705
  /**
706
706
  * Fetch a Captcha.
@@ -961,18 +961,18 @@ class LemmyHttp {
961
961
  /**
962
962
  * Block an instance as user.
963
963
  *
964
- * `HTTP.Post /site/block`
964
+ * `HTTP.Post /account/block/instance`
965
965
  */
966
966
  userBlockInstance(form, options) {
967
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form, options);
967
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
968
968
  }
969
969
  /**
970
970
  * Globally block an instance as admin.
971
971
  *
972
- * `HTTP.Post /admin/block_instance`
972
+ * `HTTP.Post /admin/block/instance`
973
973
  */
974
974
  adminBlockInstance(form, options) {
975
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/block_instance", form, options);
975
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/block/instance", form, options);
976
976
  }
977
977
  /**
978
978
  * Globally allow an instance as admin.
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.20.0-api-v4.8",
4
+ "version": "0.20.0-api-v4.10",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",