lemmy-js-client 0.13.4-rc.2 → 0.15.0-rc.3
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 +20 -16
- package/dist/http.js +98 -88
- 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 +28 -23
- package/dist/interfaces/index.d.ts +5 -5
- package/dist/interfaces/index.js +1 -1
- package/dist/interfaces/others.d.ts +37 -36
- package/dist/interfaces/others.js +38 -37
- package/dist/interfaces/source.d.ts +16 -28
- package/dist/interfaces/views.d.ts +8 -20
- package/dist/websocket.d.ts +26 -22
- package/dist/websocket.js +30 -24
- 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, 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";
|
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
|
*/
|
@@ -256,7 +256,7 @@ export declare class LemmyHttp {
|
|
256
256
|
/**
|
257
257
|
* Delete your account.
|
258
258
|
*/
|
259
|
-
deleteAccount(form: DeleteAccount): Promise<
|
259
|
+
deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse>;
|
260
260
|
/**
|
261
261
|
* Reset your password.
|
262
262
|
*/
|
@@ -282,25 +282,29 @@ export declare class LemmyHttp {
|
|
282
282
|
*/
|
283
283
|
getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
|
284
284
|
/**
|
285
|
-
*
|
285
|
+
* Get your unread counts
|
286
286
|
*/
|
287
|
-
|
287
|
+
getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse>;
|
288
|
+
/**
|
289
|
+
* Verify your email
|
290
|
+
*/
|
291
|
+
verifyEmail(form: VerifyEmail): Promise<LoginResponse>;
|
288
292
|
/**
|
289
|
-
*
|
293
|
+
* Add an admin to your site.
|
290
294
|
*/
|
291
|
-
|
295
|
+
addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
|
292
296
|
/**
|
293
|
-
*
|
297
|
+
* Get the unread registration applications count.
|
294
298
|
*/
|
295
|
-
|
299
|
+
getUnreadRegistrationApplicationCount(form: GetUnreadRegistrationApplicationCount): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
296
300
|
/**
|
297
|
-
*
|
301
|
+
* List the unread registration applications.
|
298
302
|
*/
|
299
|
-
|
303
|
+
listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
|
300
304
|
/**
|
301
|
-
*
|
305
|
+
* Approve a registration application
|
302
306
|
*/
|
303
|
-
|
307
|
+
approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
|
304
308
|
private buildFullUrl;
|
305
309
|
private wrapper;
|
306
310
|
}
|