lemmy-js-client 0.19.0-rc.11 → 0.19.0-rc.12
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/http.d.ts +8 -0
- package/dist/http.js +8 -0
- package/dist/types/BlockInstance.d.ts +0 -1
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -126,6 +126,8 @@ import { VerifyEmail } from "./types/VerifyEmail";
|
|
126
126
|
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
127
127
|
import { UploadImage, UploadImageResponse } from "./types/others";
|
128
128
|
import { HideCommunity } from "./types/HideCommunity";
|
129
|
+
import { BlockInstance } from "./types/BlockInstance";
|
130
|
+
import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
129
131
|
/**
|
130
132
|
* Helps build lemmy HTTP requests.
|
131
133
|
*/
|
@@ -658,6 +660,12 @@ export declare class LemmyHttp {
|
|
658
660
|
* `HTTP.Get /federated_instances`
|
659
661
|
*/
|
660
662
|
getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
|
663
|
+
/**
|
664
|
+
* Block an instance.
|
665
|
+
*
|
666
|
+
* `HTTP.Post /site/block`
|
667
|
+
*/
|
668
|
+
blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
|
661
669
|
/**
|
662
670
|
* Upload an image to the server.
|
663
671
|
*/
|
package/dist/http.js
CHANGED
@@ -746,6 +746,14 @@ class LemmyHttp {
|
|
746
746
|
getFederatedInstances() {
|
747
747
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {});
|
748
748
|
}
|
749
|
+
/**
|
750
|
+
* Block an instance.
|
751
|
+
*
|
752
|
+
* `HTTP.Post /site/block`
|
753
|
+
*/
|
754
|
+
blockInstance(form) {
|
755
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form);
|
756
|
+
}
|
749
757
|
/**
|
750
758
|
* Upload an image to the server.
|
751
759
|
*/
|
package/package.json
CHANGED