lemmy-js-client 0.15.0-rc.3 → 0.15.0-rc.30

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
2
2
  import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
3
- import { AddAdmin, AddAdminResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
3
+ import { AddAdmin, AddAdminResponse, BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail, VerifyEmailResponse } from "./interfaces/api/person";
4
4
  import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
5
5
  import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite, GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, SaveSiteConfig, Search, SearchResponse, SiteResponse, TransferSite } from "./interfaces/api/site";
6
6
  /**
@@ -245,6 +245,10 @@ export declare class LemmyHttp {
245
245
  * Ban a person from your site.
246
246
  */
247
247
  banPerson(form: BanPerson): Promise<BanPersonResponse>;
248
+ /**
249
+ * Get a list of banned users
250
+ */
251
+ getBannedPersons(form: GetBannedPersons): Promise<BannedPersonsResponse>;
248
252
  /**
249
253
  * Block a person.
250
254
  */
@@ -288,7 +292,7 @@ export declare class LemmyHttp {
288
292
  /**
289
293
  * Verify your email
290
294
  */
291
- verifyEmail(form: VerifyEmail): Promise<LoginResponse>;
295
+ verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse>;
292
296
  /**
293
297
  * Add an admin to your site.
294
298
  */
package/dist/http.js CHANGED
@@ -642,6 +642,16 @@ var LemmyHttp = /** @class */ (function () {
642
642
  });
643
643
  });
644
644
  };
645
+ /**
646
+ * Get a list of banned users
647
+ */
648
+ LemmyHttp.prototype.getBannedPersons = function (form) {
649
+ return __awaiter(this, void 0, void 0, function () {
650
+ return __generator(this, function (_a) {
651
+ return [2 /*return*/, this.wrapper(HttpType.Get, "/user/banned", form)];
652
+ });
653
+ });
654
+ };
645
655
  /**
646
656
  * Block a person.
647
657
  */
@@ -254,6 +254,8 @@ export interface GetUnreadCountResponse {
254
254
  export interface VerifyEmail {
255
255
  token: string;
256
256
  }
257
+ export interface VerifyEmailResponse {
258
+ }
257
259
  export interface BlockPerson {
258
260
  person_id: number;
259
261
  block: boolean;
@@ -263,3 +265,9 @@ export interface BlockPersonResponse {
263
265
  person_view: PersonViewSafe;
264
266
  blocked: boolean;
265
267
  }
268
+ export interface GetBannedPersons {
269
+ auth: string;
270
+ }
271
+ export interface BannedPersonsResponse {
272
+ banned: PersonViewSafe[];
273
+ }
@@ -41,6 +41,7 @@ export interface GetModlog {
41
41
  community_id?: number;
42
42
  page?: number;
43
43
  limit?: number;
44
+ auth?: string;
44
45
  }
45
46
  export interface GetModlogResponse {
46
47
  removed_posts: ModRemovePostView[];
@@ -98,7 +99,6 @@ export interface GetSiteResponse {
98
99
  */
99
100
  site_view?: SiteView;
100
101
  admins: PersonViewSafe[];
101
- banned: PersonViewSafe[];
102
102
  online: number;
103
103
  version: string;
104
104
  /**
@@ -0,0 +1,190 @@
1
+ import {
2
+ CommentView,
3
+ CommunityFollowerView,
4
+ CommunityModeratorView,
5
+ PostView,
6
+ PrivateMessageView,
7
+ UserMentionView,
8
+ UserViewSafe,
9
+ } from "../views";
10
+ export interface Login {
11
+ username_or_email: string;
12
+ password: string;
13
+ }
14
+ /**
15
+ * Only the first user will be able to be the admin.
16
+ */
17
+ export interface Register {
18
+ username: string;
19
+ email?: string;
20
+ password: string;
21
+ password_verify: string;
22
+ show_nsfw: boolean;
23
+ captcha_uuid?: string;
24
+ captcha_answer?: string;
25
+ }
26
+ export interface GetCaptcha {}
27
+ export interface GetCaptchaResponse {
28
+ ok?: CaptchaResponse;
29
+ }
30
+ export interface CaptchaResponse {
31
+ png: string;
32
+ wav?: string;
33
+ uuid: string;
34
+ }
35
+ export interface SaveUserSettings {
36
+ show_nsfw: boolean;
37
+ theme: string;
38
+ default_sort_type: number;
39
+ default_listing_type: number;
40
+ lang: string;
41
+ avatar?: string;
42
+ banner?: string;
43
+ preferred_username?: string;
44
+ email?: string;
45
+ bio?: string;
46
+ matrix_user_id?: string;
47
+ new_password?: string;
48
+ new_password_verify?: string;
49
+ old_password?: string;
50
+ show_avatars: boolean;
51
+ send_notifications_to_email: boolean;
52
+ auth: string;
53
+ }
54
+ /**
55
+ * The `jwt` string should be stored and used anywhere `auth` is called for.
56
+ */
57
+ export interface LoginResponse {
58
+ jwt: string;
59
+ }
60
+ /**
61
+ * `username` can only be used for local users. To get details for a federated user, pass `user_id` instead.
62
+ */
63
+ export interface GetUserDetails {
64
+ user_id?: number;
65
+ username?: string;
66
+ sort: string;
67
+ page?: number;
68
+ limit?: number;
69
+ community_id?: number;
70
+ saved_only: boolean;
71
+ auth?: string;
72
+ }
73
+ export interface GetUserDetailsResponse {
74
+ user_view: UserViewSafe;
75
+ follows: CommunityFollowerView[];
76
+ moderates: CommunityModeratorView[];
77
+ comments: CommentView[];
78
+ posts: PostView[];
79
+ }
80
+ export interface GetRepliesResponse {
81
+ replies: CommentView[];
82
+ }
83
+ export interface GetUserMentionsResponse {
84
+ mentions: UserMentionView[];
85
+ }
86
+ export interface MarkAllAsRead {
87
+ auth: string;
88
+ }
89
+ export interface AddAdmin {
90
+ user_id: number;
91
+ added: boolean;
92
+ auth: string;
93
+ }
94
+ export interface AddAdminResponse {
95
+ admins: UserViewSafe[];
96
+ }
97
+ export interface BanUser {
98
+ user_id: number;
99
+ ban: boolean;
100
+ remove_data: boolean;
101
+ reason?: string;
102
+ expires?: number;
103
+ auth: string;
104
+ }
105
+ export interface BanUserResponse {
106
+ user_view: UserViewSafe;
107
+ banned: boolean;
108
+ }
109
+ export interface GetReplies {
110
+ sort: string;
111
+ page?: number;
112
+ limit?: number;
113
+ unread_only: boolean;
114
+ auth: string;
115
+ }
116
+ export interface GetUserMentions {
117
+ sort: string;
118
+ page?: number;
119
+ limit?: number;
120
+ unread_only: boolean;
121
+ auth: string;
122
+ }
123
+ export interface MarkUserMentionAsRead {
124
+ user_mention_id: number;
125
+ read: boolean;
126
+ auth: string;
127
+ }
128
+ export interface UserMentionResponse {
129
+ user_mention_view: UserMentionView;
130
+ }
131
+ /**
132
+ * Permanently deletes your posts and comments
133
+ */
134
+ export interface DeleteAccount {
135
+ password: string;
136
+ auth: string;
137
+ }
138
+ export interface PasswordReset {
139
+ email: string;
140
+ }
141
+ export interface PasswordResetResponse {}
142
+ export interface PasswordChange {
143
+ token: string;
144
+ password: string;
145
+ password_verify: string;
146
+ }
147
+ export interface CreatePrivateMessage {
148
+ content: string;
149
+ recipient_id: number;
150
+ auth: string;
151
+ }
152
+ export interface EditPrivateMessage {
153
+ private_message_id: number;
154
+ content: string;
155
+ auth: string;
156
+ }
157
+ export interface DeletePrivateMessage {
158
+ private_message_id: number;
159
+ deleted: boolean;
160
+ auth: string;
161
+ }
162
+ export interface MarkPrivateMessageAsRead {
163
+ private_message_id: number;
164
+ read: boolean;
165
+ auth: string;
166
+ }
167
+ export interface GetPrivateMessages {
168
+ unread_only: boolean;
169
+ page?: number;
170
+ limit?: number;
171
+ auth: string;
172
+ }
173
+ export interface PrivateMessagesResponse {
174
+ private_messages: PrivateMessageView[];
175
+ }
176
+ export interface PrivateMessageResponse {
177
+ private_message_view: PrivateMessageView;
178
+ }
179
+ /**
180
+ * If a community is supplied, returns the report count for only that community, otherwise returns the report count for all communities the user moderates.
181
+ */
182
+ export interface GetReportCount {
183
+ community?: number;
184
+ auth: string;
185
+ }
186
+ export interface GetReportCountResponse {
187
+ community?: number;
188
+ comment_reports: number;
189
+ post_reports: number;
190
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,39 +45,40 @@ export declare enum UserOperation {
45
45
  ListRegistrationApplications = 39,
46
46
  ApproveRegistrationApplication = 40,
47
47
  BanPerson = 41,
48
- Search = 42,
49
- ResolveObject = 43,
50
- MarkAllAsRead = 44,
51
- SaveUserSettings = 45,
52
- TransferCommunity = 46,
53
- TransferSite = 47,
54
- DeleteAccount = 48,
55
- PasswordReset = 49,
56
- PasswordChange = 50,
57
- CreatePrivateMessage = 51,
58
- EditPrivateMessage = 52,
59
- DeletePrivateMessage = 53,
60
- MarkPrivateMessageAsRead = 54,
61
- GetPrivateMessages = 55,
62
- UserJoin = 56,
63
- GetComments = 57,
64
- GetSiteConfig = 58,
65
- SaveSiteConfig = 59,
66
- PostJoin = 60,
67
- CommunityJoin = 61,
68
- ChangePassword = 62,
69
- GetSiteMetadata = 63,
70
- BlockCommunity = 64,
71
- BlockPerson = 65,
72
- CreateCommentReport = 66,
73
- ResolveCommentReport = 67,
74
- ListCommentReports = 68,
75
- CreatePostReport = 69,
76
- ResolvePostReport = 70,
77
- ListPostReports = 71,
78
- GetReportCount = 72,
79
- GetUnreadCount = 73,
80
- VerifyEmail = 74
48
+ GetBannedPersons = 42,
49
+ Search = 43,
50
+ ResolveObject = 44,
51
+ MarkAllAsRead = 45,
52
+ SaveUserSettings = 46,
53
+ TransferCommunity = 47,
54
+ TransferSite = 48,
55
+ DeleteAccount = 49,
56
+ PasswordReset = 50,
57
+ PasswordChange = 51,
58
+ CreatePrivateMessage = 52,
59
+ EditPrivateMessage = 53,
60
+ DeletePrivateMessage = 54,
61
+ MarkPrivateMessageAsRead = 55,
62
+ GetPrivateMessages = 56,
63
+ UserJoin = 57,
64
+ GetComments = 58,
65
+ GetSiteConfig = 59,
66
+ SaveSiteConfig = 60,
67
+ PostJoin = 61,
68
+ CommunityJoin = 62,
69
+ ChangePassword = 63,
70
+ GetSiteMetadata = 64,
71
+ BlockCommunity = 65,
72
+ BlockPerson = 66,
73
+ CreateCommentReport = 67,
74
+ ResolveCommentReport = 68,
75
+ ListCommentReports = 69,
76
+ CreatePostReport = 70,
77
+ ResolvePostReport = 71,
78
+ ListPostReports = 72,
79
+ GetReportCount = 73,
80
+ GetUnreadCount = 74,
81
+ VerifyEmail = 75
81
82
  }
82
83
  /**
83
84
  * Different sort types used in lemmy.
@@ -49,39 +49,40 @@ var UserOperation;
49
49
  UserOperation[UserOperation["ListRegistrationApplications"] = 39] = "ListRegistrationApplications";
50
50
  UserOperation[UserOperation["ApproveRegistrationApplication"] = 40] = "ApproveRegistrationApplication";
51
51
  UserOperation[UserOperation["BanPerson"] = 41] = "BanPerson";
52
- UserOperation[UserOperation["Search"] = 42] = "Search";
53
- UserOperation[UserOperation["ResolveObject"] = 43] = "ResolveObject";
54
- UserOperation[UserOperation["MarkAllAsRead"] = 44] = "MarkAllAsRead";
55
- UserOperation[UserOperation["SaveUserSettings"] = 45] = "SaveUserSettings";
56
- UserOperation[UserOperation["TransferCommunity"] = 46] = "TransferCommunity";
57
- UserOperation[UserOperation["TransferSite"] = 47] = "TransferSite";
58
- UserOperation[UserOperation["DeleteAccount"] = 48] = "DeleteAccount";
59
- UserOperation[UserOperation["PasswordReset"] = 49] = "PasswordReset";
60
- UserOperation[UserOperation["PasswordChange"] = 50] = "PasswordChange";
61
- UserOperation[UserOperation["CreatePrivateMessage"] = 51] = "CreatePrivateMessage";
62
- UserOperation[UserOperation["EditPrivateMessage"] = 52] = "EditPrivateMessage";
63
- UserOperation[UserOperation["DeletePrivateMessage"] = 53] = "DeletePrivateMessage";
64
- UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 54] = "MarkPrivateMessageAsRead";
65
- UserOperation[UserOperation["GetPrivateMessages"] = 55] = "GetPrivateMessages";
66
- UserOperation[UserOperation["UserJoin"] = 56] = "UserJoin";
67
- UserOperation[UserOperation["GetComments"] = 57] = "GetComments";
68
- UserOperation[UserOperation["GetSiteConfig"] = 58] = "GetSiteConfig";
69
- UserOperation[UserOperation["SaveSiteConfig"] = 59] = "SaveSiteConfig";
70
- UserOperation[UserOperation["PostJoin"] = 60] = "PostJoin";
71
- UserOperation[UserOperation["CommunityJoin"] = 61] = "CommunityJoin";
72
- UserOperation[UserOperation["ChangePassword"] = 62] = "ChangePassword";
73
- UserOperation[UserOperation["GetSiteMetadata"] = 63] = "GetSiteMetadata";
74
- UserOperation[UserOperation["BlockCommunity"] = 64] = "BlockCommunity";
75
- UserOperation[UserOperation["BlockPerson"] = 65] = "BlockPerson";
76
- UserOperation[UserOperation["CreateCommentReport"] = 66] = "CreateCommentReport";
77
- UserOperation[UserOperation["ResolveCommentReport"] = 67] = "ResolveCommentReport";
78
- UserOperation[UserOperation["ListCommentReports"] = 68] = "ListCommentReports";
79
- UserOperation[UserOperation["CreatePostReport"] = 69] = "CreatePostReport";
80
- UserOperation[UserOperation["ResolvePostReport"] = 70] = "ResolvePostReport";
81
- UserOperation[UserOperation["ListPostReports"] = 71] = "ListPostReports";
82
- UserOperation[UserOperation["GetReportCount"] = 72] = "GetReportCount";
83
- UserOperation[UserOperation["GetUnreadCount"] = 73] = "GetUnreadCount";
84
- UserOperation[UserOperation["VerifyEmail"] = 74] = "VerifyEmail";
52
+ UserOperation[UserOperation["GetBannedPersons"] = 42] = "GetBannedPersons";
53
+ UserOperation[UserOperation["Search"] = 43] = "Search";
54
+ UserOperation[UserOperation["ResolveObject"] = 44] = "ResolveObject";
55
+ UserOperation[UserOperation["MarkAllAsRead"] = 45] = "MarkAllAsRead";
56
+ UserOperation[UserOperation["SaveUserSettings"] = 46] = "SaveUserSettings";
57
+ UserOperation[UserOperation["TransferCommunity"] = 47] = "TransferCommunity";
58
+ UserOperation[UserOperation["TransferSite"] = 48] = "TransferSite";
59
+ UserOperation[UserOperation["DeleteAccount"] = 49] = "DeleteAccount";
60
+ UserOperation[UserOperation["PasswordReset"] = 50] = "PasswordReset";
61
+ UserOperation[UserOperation["PasswordChange"] = 51] = "PasswordChange";
62
+ UserOperation[UserOperation["CreatePrivateMessage"] = 52] = "CreatePrivateMessage";
63
+ UserOperation[UserOperation["EditPrivateMessage"] = 53] = "EditPrivateMessage";
64
+ UserOperation[UserOperation["DeletePrivateMessage"] = 54] = "DeletePrivateMessage";
65
+ UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 55] = "MarkPrivateMessageAsRead";
66
+ UserOperation[UserOperation["GetPrivateMessages"] = 56] = "GetPrivateMessages";
67
+ UserOperation[UserOperation["UserJoin"] = 57] = "UserJoin";
68
+ UserOperation[UserOperation["GetComments"] = 58] = "GetComments";
69
+ UserOperation[UserOperation["GetSiteConfig"] = 59] = "GetSiteConfig";
70
+ UserOperation[UserOperation["SaveSiteConfig"] = 60] = "SaveSiteConfig";
71
+ UserOperation[UserOperation["PostJoin"] = 61] = "PostJoin";
72
+ UserOperation[UserOperation["CommunityJoin"] = 62] = "CommunityJoin";
73
+ UserOperation[UserOperation["ChangePassword"] = 63] = "ChangePassword";
74
+ UserOperation[UserOperation["GetSiteMetadata"] = 64] = "GetSiteMetadata";
75
+ UserOperation[UserOperation["BlockCommunity"] = 65] = "BlockCommunity";
76
+ UserOperation[UserOperation["BlockPerson"] = 66] = "BlockPerson";
77
+ UserOperation[UserOperation["CreateCommentReport"] = 67] = "CreateCommentReport";
78
+ UserOperation[UserOperation["ResolveCommentReport"] = 68] = "ResolveCommentReport";
79
+ UserOperation[UserOperation["ListCommentReports"] = 69] = "ListCommentReports";
80
+ UserOperation[UserOperation["CreatePostReport"] = 70] = "CreatePostReport";
81
+ UserOperation[UserOperation["ResolvePostReport"] = 71] = "ResolvePostReport";
82
+ UserOperation[UserOperation["ListPostReports"] = 72] = "ListPostReports";
83
+ UserOperation[UserOperation["GetReportCount"] = 73] = "GetReportCount";
84
+ UserOperation[UserOperation["GetUnreadCount"] = 74] = "GetUnreadCount";
85
+ UserOperation[UserOperation["VerifyEmail"] = 75] = "VerifyEmail";
85
86
  })(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
86
87
  /**
87
88
  * Different sort types used in lemmy.
@@ -1,6 +1,6 @@
1
1
  import { CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, ListCommentReports, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
2
2
  import { AddModToCommunity, BanFromCommunity, BlockCommunity, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, ListCommunities, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
3
- import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, Login, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
3
+ import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, Login, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
4
4
  import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPosts, GetSiteMetadata, ListPostReports, LockPost, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
5
5
  import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite, GetSiteConfig, GetUnreadRegistrationApplicationCount, ListRegistrationApplications, ResolveObject, SaveSiteConfig, Search, TransferSite } from "./interfaces/api/site";
6
6
  import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
@@ -193,6 +193,10 @@ export declare class LemmyWebsocket {
193
193
  * Ban a person from your site.
194
194
  */
195
195
  banPerson(form: BanPerson): string;
196
+ /**
197
+ * Get a list of banned users
198
+ */
199
+ getBannedPersons(form: GetBannedPersons): string;
196
200
  /**
197
201
  * Add an admin to your site.
198
202
  */
package/dist/websocket.js CHANGED
@@ -278,6 +278,12 @@ var LemmyWebsocket = /** @class */ (function () {
278
278
  LemmyWebsocket.prototype.banPerson = function (form) {
279
279
  return wrapper(others_1.UserOperation.BanPerson, form);
280
280
  };
281
+ /**
282
+ * Get a list of banned users
283
+ */
284
+ LemmyWebsocket.prototype.getBannedPersons = function (form) {
285
+ return wrapper(others_1.UserOperation.GetBannedPersons, form);
286
+ };
281
287
  /**
282
288
  * Add an admin to your site.
283
289
  */
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.15.0-rc.3",
4
+ "version": "0.15.0-rc.30",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",