lemmy-js-client 1.0.0-action-structs.1 → 1.0.0-media-fixes.0
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 +18 -14
- package/dist/http.js +1052 -801
- package/dist/index.d.ts +1 -0
- package/dist/types/Comment.d.ts +5 -0
- package/dist/types/CommentReplyView.d.ts +3 -0
- package/dist/types/CommentSlimView.d.ts +3 -0
- package/dist/types/CommentView.d.ts +3 -0
- package/dist/types/Community.d.ts +1 -0
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/EditSite.d.ts +0 -5
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/InstanceActions.d.ts +8 -0
- package/dist/types/LemmyErrorType.d.ts +3 -2
- package/dist/types/LocalSite.d.ts +0 -5
- package/dist/types/LocalUserView.d.ts +2 -0
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/Person.d.ts +0 -8
- package/dist/types/PersonCommentMentionView.d.ts +3 -0
- package/dist/types/PersonPostMentionView.d.ts +3 -0
- package/dist/types/PersonView.d.ts +4 -0
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/PluginMetadata.js +3 -0
- package/dist/types/Post.d.ts +5 -0
- package/dist/types/PostView.d.ts +3 -0
- package/dist/types/SiteView.d.ts +2 -0
- package/package.json +6 -3
package/dist/index.d.ts
CHANGED
@@ -256,6 +256,7 @@ export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
|
256
256
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
257
257
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
258
258
|
export { PersonView } from "./types/PersonView";
|
259
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
259
260
|
export { Post } from "./types/Post";
|
260
261
|
export { PostActions } from "./types/PostActions";
|
261
262
|
export { PostFeatureType } from "./types/PostFeatureType";
|
package/dist/types/Comment.d.ts
CHANGED
@@ -48,4 +48,9 @@ export type Comment = {
|
|
48
48
|
child_count: number;
|
49
49
|
report_count: number;
|
50
50
|
unresolved_report_count: number;
|
51
|
+
/**
|
52
|
+
* If a local user comments in a remote community, the comment is hidden until it is confirmed
|
53
|
+
* accepted by the community (by receiving it back via federation).
|
54
|
+
*/
|
55
|
+
federation_pending: boolean;
|
51
56
|
};
|
@@ -21,7 +21,10 @@ export type CommentReplyView = {
|
|
21
21
|
comment_actions?: CommentActions;
|
22
22
|
person_actions?: PersonActions;
|
23
23
|
instance_actions?: InstanceActions;
|
24
|
+
creator_home_instance_actions?: InstanceActions;
|
25
|
+
creator_local_instance_actions?: InstanceActions;
|
24
26
|
creator_community_actions?: CommunityActions;
|
25
27
|
creator_is_admin: boolean;
|
26
28
|
can_mod: boolean;
|
29
|
+
creator_banned: boolean;
|
27
30
|
};
|
@@ -14,6 +14,9 @@ export type CommentSlimView = {
|
|
14
14
|
person_actions?: PersonActions;
|
15
15
|
creator_community_actions?: CommunityActions;
|
16
16
|
instance_actions?: InstanceActions;
|
17
|
+
creator_home_instance_actions?: InstanceActions;
|
18
|
+
creator_local_instance_actions?: InstanceActions;
|
17
19
|
creator_is_admin: boolean;
|
18
20
|
can_mod: boolean;
|
21
|
+
creator_banned: boolean;
|
19
22
|
};
|
@@ -18,7 +18,10 @@ export type CommentView = {
|
|
18
18
|
comment_actions?: CommentActions;
|
19
19
|
person_actions?: PersonActions;
|
20
20
|
instance_actions?: InstanceActions;
|
21
|
+
creator_home_instance_actions?: InstanceActions;
|
22
|
+
creator_local_instance_actions?: InstanceActions;
|
21
23
|
creator_community_actions?: CommunityActions;
|
22
24
|
creator_is_admin: boolean;
|
23
25
|
can_mod: boolean;
|
26
|
+
creator_banned: boolean;
|
24
27
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -158,11 +158,6 @@ export type EditSite = {
|
|
158
158
|
* What kind of comment downvotes your site allows.
|
159
159
|
*/
|
160
160
|
comment_downvotes?: FederationMode;
|
161
|
-
/**
|
162
|
-
* If this is true, users will never see the dialog asking to support Lemmy development with
|
163
|
-
* donations.
|
164
|
-
*/
|
165
|
-
disable_donation_dialog?: boolean;
|
166
161
|
/**
|
167
162
|
* Block NSFW content being created
|
168
163
|
*/
|
@@ -3,6 +3,7 @@ import type { LanguageId } from "./LanguageId";
|
|
3
3
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
4
4
|
import type { OAuthProvider } from "./OAuthProvider";
|
5
5
|
import type { PersonView } from "./PersonView";
|
6
|
+
import type { PluginMetadata } from "./PluginMetadata";
|
6
7
|
import type { PublicOAuthProvider } from "./PublicOAuthProvider";
|
7
8
|
import type { SiteView } from "./SiteView";
|
8
9
|
import type { Tagline } from "./Tagline";
|
@@ -26,4 +27,5 @@ export type GetSiteResponse = {
|
|
26
27
|
admin_oauth_providers: Array<OAuthProvider>;
|
27
28
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
28
29
|
image_upload_disabled: boolean;
|
30
|
+
active_plugins: Array<PluginMetadata>;
|
29
31
|
};
|
@@ -75,8 +75,6 @@ export type LemmyErrorType = {
|
|
75
75
|
error: "honeypot_failed";
|
76
76
|
} | {
|
77
77
|
error: "registration_application_is_pending";
|
78
|
-
} | {
|
79
|
-
error: "cant_enable_private_instance_and_federation_together";
|
80
78
|
} | {
|
81
79
|
error: "locked";
|
82
80
|
} | {
|
@@ -287,4 +285,7 @@ export type LemmyErrorType = {
|
|
287
285
|
};
|
288
286
|
} | {
|
289
287
|
error: "couldnt_parse_pagination_token";
|
288
|
+
} | {
|
289
|
+
error: "plugin_error";
|
290
|
+
message: string;
|
290
291
|
};
|
@@ -113,11 +113,6 @@ export type LocalSite = {
|
|
113
113
|
* What kind of comment downvotes your site allows.
|
114
114
|
*/
|
115
115
|
comment_downvotes: FederationMode;
|
116
|
-
/**
|
117
|
-
* If this is true, users will never see the dialog asking to support Lemmy development with
|
118
|
-
* donations.
|
119
|
-
*/
|
120
|
-
disable_donation_dialog: boolean;
|
121
116
|
/**
|
122
117
|
* A default time range limit to apply to post sorts, in seconds.
|
123
118
|
*/
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { InstanceActions } from "./InstanceActions";
|
1
2
|
import type { LocalUser } from "./LocalUser";
|
2
3
|
import type { Person } from "./Person";
|
3
4
|
/**
|
@@ -6,4 +7,5 @@ import type { Person } from "./Person";
|
|
6
7
|
export type LocalUserView = {
|
7
8
|
local_user: LocalUser;
|
8
9
|
person: Person;
|
10
|
+
instance_actions?: InstanceActions;
|
9
11
|
};
|
package/dist/types/ModBan.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { InstanceId } from "./InstanceId";
|
1
2
|
import type { ModBanId } from "./ModBanId";
|
2
3
|
import type { PersonId } from "./PersonId";
|
3
4
|
/**
|
@@ -11,4 +12,5 @@ export type ModBan = {
|
|
11
12
|
banned: boolean;
|
12
13
|
expires?: string;
|
13
14
|
published: string;
|
15
|
+
instance_id: InstanceId;
|
14
16
|
};
|
package/dist/types/Person.d.ts
CHANGED
@@ -15,10 +15,6 @@ export type Person = {
|
|
15
15
|
* A URL for an avatar.
|
16
16
|
*/
|
17
17
|
avatar?: DbUrl;
|
18
|
-
/**
|
19
|
-
* Whether the person is banned.
|
20
|
-
*/
|
21
|
-
banned: boolean;
|
22
18
|
published: string;
|
23
19
|
updated?: string;
|
24
20
|
/**
|
@@ -49,10 +45,6 @@ export type Person = {
|
|
49
45
|
* Whether the person is a bot account.
|
50
46
|
*/
|
51
47
|
bot_account: boolean;
|
52
|
-
/**
|
53
|
-
* When their ban, if it exists, expires, if at all.
|
54
|
-
*/
|
55
|
-
ban_expires?: string;
|
56
48
|
instance_id: InstanceId;
|
57
49
|
post_count: number;
|
58
50
|
comment_count: number;
|
@@ -21,7 +21,10 @@ export type PersonCommentMentionView = {
|
|
21
21
|
comment_actions?: CommentActions;
|
22
22
|
person_actions?: PersonActions;
|
23
23
|
instance_actions?: InstanceActions;
|
24
|
+
creator_home_instance_actions?: InstanceActions;
|
25
|
+
creator_local_instance_actions?: InstanceActions;
|
24
26
|
creator_community_actions?: CommunityActions;
|
25
27
|
creator_is_admin: boolean;
|
26
28
|
can_mod: boolean;
|
29
|
+
creator_banned: boolean;
|
27
30
|
};
|
@@ -21,7 +21,10 @@ export type PersonPostMentionView = {
|
|
21
21
|
person_actions?: PersonActions;
|
22
22
|
post_actions?: PostActions;
|
23
23
|
instance_actions?: InstanceActions;
|
24
|
+
creator_home_instance_actions?: InstanceActions;
|
25
|
+
creator_local_instance_actions?: InstanceActions;
|
24
26
|
creator_community_actions?: CommunityActions;
|
25
27
|
creator_is_admin: boolean;
|
26
28
|
can_mod: boolean;
|
29
|
+
creator_banned: boolean;
|
27
30
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { InstanceActions } from "./InstanceActions";
|
1
2
|
import type { Person } from "./Person";
|
2
3
|
/**
|
3
4
|
* A person view.
|
@@ -5,4 +6,7 @@ import type { Person } from "./Person";
|
|
5
6
|
export type PersonView = {
|
6
7
|
person: Person;
|
7
8
|
is_admin: boolean;
|
9
|
+
home_instance_actions?: InstanceActions;
|
10
|
+
local_instance_actions?: InstanceActions;
|
11
|
+
creator_banned: boolean;
|
8
12
|
};
|
package/dist/types/Post.d.ts
CHANGED
@@ -89,4 +89,9 @@ export type Post = {
|
|
89
89
|
newest_comment_time: string;
|
90
90
|
report_count: number;
|
91
91
|
unresolved_report_count: number;
|
92
|
+
/**
|
93
|
+
* If a local user posts in a remote community, the comment is hidden until it is confirmed
|
94
|
+
* accepted by the community (by receiving it back via federation).
|
95
|
+
*/
|
96
|
+
federation_pending: boolean;
|
92
97
|
};
|
package/dist/types/PostView.d.ts
CHANGED
@@ -18,7 +18,10 @@ export type PostView = {
|
|
18
18
|
person_actions?: PersonActions;
|
19
19
|
post_actions?: PostActions;
|
20
20
|
instance_actions?: InstanceActions;
|
21
|
+
creator_home_instance_actions?: InstanceActions;
|
22
|
+
creator_local_instance_actions?: InstanceActions;
|
21
23
|
creator_community_actions?: CommunityActions;
|
22
24
|
creator_is_admin: boolean;
|
23
25
|
can_mod: boolean;
|
26
|
+
creator_banned: boolean;
|
24
27
|
};
|
package/dist/types/SiteView.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Instance } from "./Instance";
|
1
2
|
import type { LocalSite } from "./LocalSite";
|
2
3
|
import type { LocalSiteRateLimit } from "./LocalSiteRateLimit";
|
3
4
|
import type { Site } from "./Site";
|
@@ -8,4 +9,5 @@ export type SiteView = {
|
|
8
9
|
site: Site;
|
9
10
|
local_site: LocalSite;
|
10
11
|
local_site_rate_limit: LocalSiteRateLimit;
|
12
|
+
instance: Instance;
|
11
13
|
};
|
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": "1.0.0-
|
4
|
+
"version": "1.0.0-media-fixes.0",
|
5
5
|
"author": "Dessalines",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|
@@ -19,6 +19,9 @@
|
|
19
19
|
"type": "git",
|
20
20
|
"url": "git+https://github.com/LemmyNet/lemmy-js-client.git"
|
21
21
|
},
|
22
|
+
"dependencies": {
|
23
|
+
"@tsoa/runtime": "^6.6.0"
|
24
|
+
},
|
22
25
|
"devDependencies": {
|
23
26
|
"@eslint/js": "^9.20.0",
|
24
27
|
"@redocly/cli": "^1.27.2",
|
@@ -36,11 +39,11 @@
|
|
36
39
|
"prettier-plugin-packagejson": "^2.5.1",
|
37
40
|
"sortpack": "^2.4.0",
|
38
41
|
"tsoa": "^6.6.0",
|
39
|
-
"typedoc": "^0.
|
42
|
+
"typedoc": "^0.28.0",
|
40
43
|
"typescript": "^5.5.4",
|
41
44
|
"typescript-eslint": "^8.7.0"
|
42
45
|
},
|
43
|
-
"packageManager": "pnpm@10.
|
46
|
+
"packageManager": "pnpm@10.7.0",
|
44
47
|
"types": "./dist/index.d.ts",
|
45
48
|
"lint-staged": {
|
46
49
|
"*.{ts,tsx,js}": [
|