lemmy-js-client 0.14.0-rc.1 → 0.15.0-rc.30
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 +26 -6
- package/dist/http.js +125 -75
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/interfaces/api/comment.d.ts +1 -1
- package/dist/interfaces/api/community.d.ts +1 -1
- package/dist/interfaces/api/index.d.ts +6 -6
- package/dist/interfaces/api/index.js +1 -1
- package/dist/interfaces/api/person.d.ts +27 -2
- package/dist/interfaces/api/post.d.ts +2 -2
- package/dist/interfaces/api/site.d.ts +37 -3
- package/dist/interfaces/api/user.d.ts +190 -0
- package/dist/interfaces/api/user.js +2 -0
- package/dist/interfaces/index.d.ts +5 -5
- package/dist/interfaces/index.js +1 -1
- package/dist/interfaces/others.d.ts +38 -33
- package/dist/interfaces/others.js +39 -34
- package/dist/interfaces/source.d.ts +16 -2
- package/dist/interfaces/views.d.ts +8 -2
- package/dist/websocket.d.ts +26 -6
- package/dist/websocket.js +30 -0
- package/package.json +20 -9
package/dist/http.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from
|
2
|
-
import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
1
|
+
import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
|
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, 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
|
+
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
|
+
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
|
/**
|
7
7
|
* Helps build lemmy HTTP requests.
|
8
8
|
*/
|
@@ -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
|
*/
|
@@ -256,7 +260,7 @@ export declare class LemmyHttp {
|
|
256
260
|
/**
|
257
261
|
* Delete your account.
|
258
262
|
*/
|
259
|
-
deleteAccount(form: DeleteAccount): Promise<
|
263
|
+
deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse>;
|
260
264
|
/**
|
261
265
|
* Reset your password.
|
262
266
|
*/
|
@@ -285,10 +289,26 @@ export declare class LemmyHttp {
|
|
285
289
|
* Get your unread counts
|
286
290
|
*/
|
287
291
|
getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse>;
|
292
|
+
/**
|
293
|
+
* Verify your email
|
294
|
+
*/
|
295
|
+
verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse>;
|
288
296
|
/**
|
289
297
|
* Add an admin to your site.
|
290
298
|
*/
|
291
299
|
addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
|
300
|
+
/**
|
301
|
+
* Get the unread registration applications count.
|
302
|
+
*/
|
303
|
+
getUnreadRegistrationApplicationCount(form: GetUnreadRegistrationApplicationCount): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
304
|
+
/**
|
305
|
+
* List the unread registration applications.
|
306
|
+
*/
|
307
|
+
listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
|
308
|
+
/**
|
309
|
+
* Approve a registration application
|
310
|
+
*/
|
311
|
+
approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
|
292
312
|
private buildFullUrl;
|
293
313
|
private wrapper;
|
294
314
|
}
|