lemmy-js-client 0.19.4-alpha.7 → 0.19.4-alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +6 -0
- package/dist/http.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +6 -0
- package/dist/types/ImageUpload.d.ts +7 -0
- package/dist/types/ImageUpload.js +2 -0
- package/dist/types/LocalImage.d.ts +1 -1
- package/dist/types/LocalUserView.d.ts +2 -0
- package/dist/types/LocalUserVoteDisplayMode.d.ts +8 -0
- package/dist/types/LocalUserVoteDisplayMode.js +2 -0
- package/dist/types/PostReportView.d.ts +9 -0
- package/dist/types/SaveUserSettings.d.ts +4 -1
- package/dist/types/Site.d.ts +0 -2
- package/dist/types/SiteMetadata.d.ts +6 -0
- package/dist/types/SiteMetadata.js +3 -0
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -214,6 +214,12 @@ export declare class LemmyHttp {
|
|
214
214
|
* `HTTP.GET /user/list_media`
|
215
215
|
*/
|
216
216
|
listMedia(form: ListMedia): Promise<ListMediaResponse>;
|
217
|
+
/**
|
218
|
+
* List all the media known to your instance.
|
219
|
+
*
|
220
|
+
* `HTTP.GET /admin/list_all_media`
|
221
|
+
*/
|
222
|
+
listAllMedia(form: ListMedia): Promise<ListMediaResponse>;
|
217
223
|
/**
|
218
224
|
* Enable / Disable TOTP / two-factor authentication.
|
219
225
|
*
|
package/dist/http.js
CHANGED
@@ -141,6 +141,14 @@ class LemmyHttp {
|
|
141
141
|
listMedia(form) {
|
142
142
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/list_media", form);
|
143
143
|
}
|
144
|
+
/**
|
145
|
+
* List all the media known to your instance.
|
146
|
+
*
|
147
|
+
* `HTTP.GET /admin/list_all_media`
|
148
|
+
*/
|
149
|
+
listAllMedia(form) {
|
150
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form);
|
151
|
+
}
|
144
152
|
/**
|
145
153
|
* Enable / Disable TOTP / two-factor authentication.
|
146
154
|
*
|
package/dist/index.d.ts
CHANGED
@@ -143,6 +143,7 @@ export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
|
143
143
|
export { LocalUser } from "./types/LocalUser";
|
144
144
|
export { LocalUserId } from "./types/LocalUserId";
|
145
145
|
export { LocalUserView } from "./types/LocalUserView";
|
146
|
+
export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
|
146
147
|
export { LockPost } from "./types/LockPost";
|
147
148
|
export { Login } from "./types/Login";
|
148
149
|
export { LoginResponse } from "./types/LoginResponse";
|
@@ -4,6 +4,7 @@ import type { CommentReport } from "./CommentReport";
|
|
4
4
|
import type { Community } from "./Community";
|
5
5
|
import type { Person } from "./Person";
|
6
6
|
import type { Post } from "./Post";
|
7
|
+
import type { SubscribedType } from "./SubscribedType";
|
7
8
|
export interface CommentReportView {
|
8
9
|
comment_report: CommentReport;
|
9
10
|
comment: Comment;
|
@@ -13,6 +14,11 @@ export interface CommentReportView {
|
|
13
14
|
comment_creator: Person;
|
14
15
|
counts: CommentAggregates;
|
15
16
|
creator_banned_from_community: boolean;
|
17
|
+
creator_is_moderator: boolean;
|
18
|
+
creator_is_admin: boolean;
|
19
|
+
creator_blocked: boolean;
|
20
|
+
subscribed: SubscribedType;
|
21
|
+
saved: boolean;
|
16
22
|
my_vote?: number;
|
17
23
|
resolver?: Person;
|
18
24
|
}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import type { LocalUser } from "./LocalUser";
|
2
|
+
import type { LocalUserVoteDisplayMode } from "./LocalUserVoteDisplayMode";
|
2
3
|
import type { Person } from "./Person";
|
3
4
|
import type { PersonAggregates } from "./PersonAggregates";
|
4
5
|
export interface LocalUserView {
|
5
6
|
local_user: LocalUser;
|
7
|
+
local_user_vote_display_mode: LocalUserVoteDisplayMode;
|
6
8
|
person: Person;
|
7
9
|
counts: PersonAggregates;
|
8
10
|
}
|
@@ -3,6 +3,7 @@ import type { Person } from "./Person";
|
|
3
3
|
import type { Post } from "./Post";
|
4
4
|
import type { PostAggregates } from "./PostAggregates";
|
5
5
|
import type { PostReport } from "./PostReport";
|
6
|
+
import type { SubscribedType } from "./SubscribedType";
|
6
7
|
export interface PostReportView {
|
7
8
|
post_report: PostReport;
|
8
9
|
post: Post;
|
@@ -10,7 +11,15 @@ export interface PostReportView {
|
|
10
11
|
creator: Person;
|
11
12
|
post_creator: Person;
|
12
13
|
creator_banned_from_community: boolean;
|
14
|
+
creator_is_moderator: boolean;
|
15
|
+
creator_is_admin: boolean;
|
16
|
+
subscribed: SubscribedType;
|
17
|
+
saved: boolean;
|
18
|
+
read: boolean;
|
19
|
+
hidden: boolean;
|
20
|
+
creator_blocked: boolean;
|
13
21
|
my_vote?: number;
|
22
|
+
unread_comments: number;
|
14
23
|
counts: PostAggregates;
|
15
24
|
resolver?: Person;
|
16
25
|
}
|
@@ -6,7 +6,6 @@ export interface SaveUserSettings {
|
|
6
6
|
show_nsfw?: boolean;
|
7
7
|
blur_nsfw?: boolean;
|
8
8
|
auto_expand?: boolean;
|
9
|
-
show_scores?: boolean;
|
10
9
|
theme?: string;
|
11
10
|
default_sort_type?: SortType;
|
12
11
|
default_listing_type?: ListingType;
|
@@ -29,4 +28,8 @@ export interface SaveUserSettings {
|
|
29
28
|
enable_keyboard_navigation?: boolean;
|
30
29
|
enable_animated_images?: boolean;
|
31
30
|
collapse_bot_comments?: boolean;
|
31
|
+
show_scores?: boolean;
|
32
|
+
show_upvotes?: boolean;
|
33
|
+
show_downvotes?: boolean;
|
34
|
+
show_upvote_percentage?: boolean;
|
32
35
|
}
|
package/dist/types/Site.d.ts
CHANGED
package/package.json
CHANGED