lemmy-js-client 0.20.0-instance-blocks.1 → 0.20.0-instance-blocks.4
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 +1 -0
- package/dist/types/AdminAllowInstanceParams.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +0 -2
- package/dist/types/EditSite.d.ts +0 -8
- package/dist/types/InstanceIdOrDomain.d.ts +6 -0
- package/dist/types/InstanceIdOrDomain.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -135,6 +135,7 @@ export { HidePost } from "./types/HidePost";
|
|
135
135
|
export { ImageDetails } from "./types/ImageDetails";
|
136
136
|
export { Instance } from "./types/Instance";
|
137
137
|
export { InstanceId } from "./types/InstanceId";
|
138
|
+
export { InstanceIdOrDomain } from "./types/InstanceIdOrDomain";
|
138
139
|
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
139
140
|
export { Language } from "./types/Language";
|
140
141
|
export { LanguageId } from "./types/LanguageId";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
|
2
2
|
export type AdminBlockInstanceParams = {
|
3
|
-
|
3
|
+
instance: InstanceIdOrDomain;
|
4
4
|
block: boolean;
|
5
5
|
reason?: string;
|
6
6
|
expires?: string;
|
@@ -46,8 +46,6 @@ export type CreateSite = {
|
|
46
46
|
federation_debug?: boolean;
|
47
47
|
captcha_enabled?: boolean;
|
48
48
|
captcha_difficulty?: string;
|
49
|
-
allowed_instances?: Array<string>;
|
50
|
-
blocked_instances?: Array<string>;
|
51
49
|
registration_mode?: RegistrationMode;
|
52
50
|
oauth_registration?: boolean;
|
53
51
|
content_warning?: string;
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -136,14 +136,6 @@ export type EditSite = {
|
|
136
136
|
* The captcha difficulty. Can be easy, medium, or hard
|
137
137
|
*/
|
138
138
|
captcha_difficulty?: string;
|
139
|
-
/**
|
140
|
-
* A list of allowed instances. If none are set, federation is open.
|
141
|
-
*/
|
142
|
-
allowed_instances?: Array<string>;
|
143
|
-
/**
|
144
|
-
* A list of blocked instances.
|
145
|
-
*/
|
146
|
-
blocked_instances?: Array<string>;
|
147
139
|
/**
|
148
140
|
* A list of blocked URLs
|
149
141
|
*/
|
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-instance-blocks.
|
4
|
+
"version": "0.20.0-instance-blocks.4",
|
5
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|