lemmy-js-client 0.17.2 → 0.18.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/http.d.ts +178 -15
- package/dist/http.js +390 -624
- package/dist/index.d.ts +248 -2
- package/dist/index.js +3 -2
- package/dist/types/AddAdmin.d.ts +6 -0
- package/dist/types/AddAdminResponse.d.ts +4 -0
- package/dist/types/AddModToCommunity.d.ts +8 -0
- package/dist/types/AddModToCommunityResponse.d.ts +4 -0
- package/dist/types/AdminPurgeComment.d.ts +9 -0
- package/dist/types/AdminPurgeCommentView.d.ts +8 -0
- package/dist/types/AdminPurgeCommunity.d.ts +7 -0
- package/dist/types/AdminPurgeCommunityView.d.ts +6 -0
- package/dist/types/AdminPurgePerson.d.ts +7 -0
- package/dist/types/AdminPurgePerson.js +2 -0
- package/dist/types/AdminPurgePersonView.d.ts +6 -0
- package/dist/types/AdminPurgePersonView.js +2 -0
- package/dist/types/AdminPurgePost.d.ts +9 -0
- package/dist/types/AdminPurgePost.js +2 -0
- package/dist/types/AdminPurgePostView.d.ts +8 -0
- package/dist/types/AdminPurgePostView.js +2 -0
- package/dist/types/ApproveRegistrationApplication.d.ts +6 -0
- package/dist/types/ApproveRegistrationApplication.js +3 -0
- package/dist/types/BanFromCommunity.d.ts +11 -0
- package/dist/types/BanFromCommunity.js +2 -0
- package/dist/types/BanFromCommunityResponse.d.ts +5 -0
- package/dist/types/BanFromCommunityResponse.js +2 -0
- package/dist/types/BanPerson.d.ts +9 -0
- package/dist/types/BanPerson.js +2 -0
- package/dist/types/BanPersonResponse.d.ts +5 -0
- package/dist/types/BanPersonResponse.js +2 -0
- package/dist/types/BannedPersonsResponse.d.ts +4 -0
- package/dist/types/BannedPersonsResponse.js +2 -0
- package/dist/types/BlockCommunity.d.ts +6 -0
- package/dist/types/BlockCommunity.js +2 -0
- package/dist/types/BlockCommunityResponse.d.ts +5 -0
- package/dist/types/BlockCommunityResponse.js +2 -0
- package/dist/types/BlockPerson.d.ts +6 -0
- package/dist/types/BlockPerson.js +2 -0
- package/dist/types/BlockPersonResponse.d.ts +5 -0
- package/dist/types/BlockPersonResponse.js +2 -0
- package/dist/types/CaptchaResponse.d.ts +5 -0
- package/dist/types/CaptchaResponse.js +3 -0
- package/dist/types/ChangePassword.d.ts +6 -0
- package/dist/types/ChangePassword.js +3 -0
- package/dist/types/Comment.d.ts +19 -0
- package/dist/types/Comment.js +2 -0
- package/dist/types/CommentAggregates.d.ts +11 -0
- package/dist/types/CommentAggregates.js +2 -0
- package/dist/types/CommentId.d.ts +1 -0
- package/dist/types/CommentId.js +3 -0
- package/dist/types/CommentReply.d.ts +10 -0
- package/dist/types/CommentReply.js +2 -0
- package/dist/types/CommentReplyId.d.ts +1 -0
- package/dist/types/CommentReplyId.js +3 -0
- package/dist/types/CommentReplyResponse.d.ts +4 -0
- package/dist/types/CommentReplyResponse.js +2 -0
- package/dist/types/CommentReplyView.d.ts +21 -0
- package/dist/types/CommentReplyView.js +2 -0
- package/dist/types/CommentReport.d.ts +14 -0
- package/dist/types/CommentReport.js +2 -0
- package/dist/types/CommentReportId.d.ts +1 -0
- package/dist/types/CommentReportId.js +3 -0
- package/dist/types/CommentReportResponse.d.ts +4 -0
- package/dist/types/CommentReportResponse.js +2 -0
- package/dist/types/CommentReportView.d.ts +18 -0
- package/dist/types/CommentReportView.js +2 -0
- package/dist/types/CommentResponse.d.ts +7 -0
- package/dist/types/CommentResponse.js +2 -0
- package/dist/types/CommentSortType.d.ts +1 -0
- package/dist/types/CommentSortType.js +3 -0
- package/dist/types/CommentView.d.ts +18 -0
- package/dist/types/CommentView.js +2 -0
- package/dist/types/Community.d.ts +20 -0
- package/dist/types/Community.js +2 -0
- package/dist/types/CommunityAggregates.d.ts +14 -0
- package/dist/types/CommunityAggregates.js +2 -0
- package/dist/types/CommunityBlockId.d.ts +1 -0
- package/dist/types/CommunityBlockId.js +3 -0
- package/dist/types/CommunityBlockView.d.ts +6 -0
- package/dist/types/CommunityBlockView.js +2 -0
- package/dist/types/CommunityFollowerView.d.ts +6 -0
- package/dist/types/CommunityFollowerView.js +2 -0
- package/dist/types/CommunityId.d.ts +1 -0
- package/dist/types/CommunityId.js +3 -0
- package/dist/types/CommunityJoin.d.ts +4 -0
- package/dist/types/CommunityJoin.js +2 -0
- package/dist/types/CommunityJoinResponse.d.ts +3 -0
- package/dist/types/CommunityJoinResponse.js +3 -0
- package/dist/types/CommunityModeratorView.d.ts +6 -0
- package/dist/types/CommunityModeratorView.js +2 -0
- package/dist/types/CommunityResponse.d.ts +6 -0
- package/dist/types/CommunityResponse.js +2 -0
- package/dist/types/CommunityView.d.ts +9 -0
- package/dist/types/CommunityView.js +2 -0
- package/dist/types/CreateComment.d.ts +11 -0
- package/dist/types/CreateComment.js +2 -0
- package/dist/types/CreateCommentLike.d.ts +6 -0
- package/dist/types/CreateCommentLike.js +2 -0
- package/dist/types/CreateCommentReport.d.ts +6 -0
- package/dist/types/CreateCommentReport.js +2 -0
- package/dist/types/CreateCommunity.d.ts +12 -0
- package/dist/types/CreateCommunity.js +2 -0
- package/dist/types/CreateCustomEmoji.d.ts +8 -0
- package/dist/types/CreateCustomEmoji.js +3 -0
- package/dist/types/CreatePost.d.ts +12 -0
- package/dist/types/CreatePost.js +2 -0
- package/dist/types/CreatePostLike.d.ts +6 -0
- package/dist/types/CreatePostLike.js +2 -0
- package/dist/types/CreatePostReport.d.ts +6 -0
- package/dist/types/CreatePostReport.js +2 -0
- package/dist/types/CreatePrivateMessage.d.ts +6 -0
- package/dist/types/CreatePrivateMessage.js +2 -0
- package/dist/types/CreatePrivateMessageReport.d.ts +6 -0
- package/dist/types/CreatePrivateMessageReport.js +2 -0
- package/dist/types/CreateSite.d.ts +46 -0
- package/dist/types/CreateSite.js +2 -0
- package/dist/types/CustomEmoji.d.ts +12 -0
- package/dist/types/CustomEmoji.js +2 -0
- package/dist/types/CustomEmojiId.d.ts +1 -0
- package/dist/types/CustomEmojiId.js +3 -0
- package/dist/types/CustomEmojiKeyword.d.ts +6 -0
- package/dist/types/CustomEmojiKeyword.js +2 -0
- package/dist/types/CustomEmojiResponse.d.ts +4 -0
- package/dist/types/CustomEmojiResponse.js +2 -0
- package/dist/types/CustomEmojiView.d.ts +6 -0
- package/dist/types/CustomEmojiView.js +2 -0
- package/dist/types/DeleteAccount.d.ts +4 -0
- package/dist/types/DeleteAccount.js +3 -0
- package/dist/types/DeleteAccountResponse.d.ts +1 -0
- package/dist/types/DeleteAccountResponse.js +3 -0
- package/dist/types/DeleteComment.d.ts +6 -0
- package/dist/types/DeleteComment.js +2 -0
- package/dist/types/DeleteCommunity.d.ts +6 -0
- package/dist/types/DeleteCommunity.js +2 -0
- package/dist/types/DeleteCustomEmoji.d.ts +5 -0
- package/dist/types/DeleteCustomEmoji.js +2 -0
- package/dist/types/DeleteCustomEmojiResponse.d.ts +5 -0
- package/dist/types/DeleteCustomEmojiResponse.js +2 -0
- package/dist/types/DeletePost.d.ts +6 -0
- package/dist/types/DeletePost.js +2 -0
- package/dist/types/DeletePrivateMessage.d.ts +6 -0
- package/dist/types/DeletePrivateMessage.js +2 -0
- package/dist/types/DistinguishComment.d.ts +6 -0
- package/dist/types/DistinguishComment.js +2 -0
- package/dist/types/EditComment.d.ts +9 -0
- package/dist/types/EditComment.js +2 -0
- package/dist/types/EditCommunity.d.ts +13 -0
- package/dist/types/EditCommunity.js +2 -0
- package/dist/types/EditCustomEmoji.d.ts +9 -0
- package/dist/types/EditCustomEmoji.js +2 -0
- package/dist/types/EditPost.d.ts +11 -0
- package/dist/types/EditPost.js +2 -0
- package/dist/types/EditPrivateMessage.d.ts +6 -0
- package/dist/types/EditPrivateMessage.js +2 -0
- package/dist/types/EditSite.d.ts +47 -0
- package/dist/types/EditSite.js +2 -0
- package/dist/types/FeaturePost.d.ts +8 -0
- package/dist/types/FeaturePost.js +2 -0
- package/dist/types/FederatedInstances.d.ts +6 -0
- package/dist/types/FederatedInstances.js +2 -0
- package/dist/types/FollowCommunity.d.ts +6 -0
- package/dist/types/FollowCommunity.js +2 -0
- package/dist/types/GetBannedPersons.d.ts +3 -0
- package/dist/types/GetBannedPersons.js +3 -0
- package/dist/types/GetCaptcha.d.ts +3 -0
- package/dist/types/GetCaptcha.js +3 -0
- package/dist/types/GetCaptchaResponse.d.ts +4 -0
- package/dist/types/GetCaptchaResponse.js +2 -0
- package/dist/types/GetComment.d.ts +5 -0
- package/dist/types/GetComment.js +2 -0
- package/dist/types/GetComments.d.ts +18 -0
- package/dist/types/GetComments.js +2 -0
- package/dist/types/GetCommentsResponse.d.ts +4 -0
- package/dist/types/GetCommentsResponse.js +2 -0
- package/dist/types/GetCommunity.d.ts +6 -0
- package/dist/types/GetCommunity.js +2 -0
- package/dist/types/GetCommunityResponse.d.ts +10 -0
- package/dist/types/GetCommunityResponse.js +2 -0
- package/dist/types/GetFederatedInstances.d.ts +3 -0
- package/dist/types/GetFederatedInstances.js +3 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +4 -0
- package/dist/types/GetFederatedInstancesResponse.js +2 -0
- package/dist/types/GetModlog.d.ts +12 -0
- package/dist/types/GetModlog.js +2 -0
- package/dist/types/GetModlogResponse.d.ts +32 -0
- package/dist/types/GetModlogResponse.js +2 -0
- package/dist/types/GetPersonDetails.d.ts +13 -0
- package/dist/types/GetPersonDetails.js +2 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +10 -0
- package/dist/types/GetPersonDetailsResponse.js +2 -0
- package/dist/types/GetPersonMentions.d.ts +8 -0
- package/dist/types/GetPersonMentions.js +2 -0
- package/dist/types/GetPersonMentionsResponse.d.ts +4 -0
- package/dist/types/GetPersonMentionsResponse.js +2 -0
- package/dist/types/GetPost.d.ts +7 -0
- package/dist/types/GetPost.js +2 -0
- package/dist/types/GetPostResponse.d.ts +9 -0
- package/dist/types/GetPostResponse.js +2 -0
- package/dist/types/GetPosts.d.ts +13 -0
- package/dist/types/GetPosts.js +2 -0
- package/dist/types/GetPostsResponse.d.ts +4 -0
- package/dist/types/GetPostsResponse.js +2 -0
- package/dist/types/GetPrivateMessages.d.ts +6 -0
- package/dist/types/GetPrivateMessages.js +3 -0
- package/dist/types/GetReplies.d.ts +8 -0
- package/dist/types/GetReplies.js +2 -0
- package/dist/types/GetRepliesResponse.d.ts +4 -0
- package/dist/types/GetRepliesResponse.js +2 -0
- package/dist/types/GetReportCount.d.ts +5 -0
- package/dist/types/GetReportCount.js +2 -0
- package/dist/types/GetReportCountResponse.d.ts +7 -0
- package/dist/types/GetReportCountResponse.js +2 -0
- package/dist/types/GetSite.d.ts +3 -0
- package/dist/types/GetSite.js +3 -0
- package/dist/types/GetSiteMetadata.d.ts +3 -0
- package/dist/types/GetSiteMetadata.js +3 -0
- package/dist/types/GetSiteMetadataResponse.d.ts +4 -0
- package/dist/types/GetSiteMetadataResponse.js +2 -0
- package/dist/types/GetSiteResponse.d.ts +17 -0
- package/dist/types/GetSiteResponse.js +2 -0
- package/dist/types/GetUnreadCount.d.ts +3 -0
- package/dist/types/GetUnreadCount.js +3 -0
- package/dist/types/GetUnreadCountResponse.d.ts +5 -0
- package/dist/types/GetUnreadCountResponse.js +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCount.js +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.js +3 -0
- package/dist/types/HideCommunity.d.ts +7 -0
- package/dist/types/HideCommunity.js +2 -0
- package/dist/types/Instance.d.ts +9 -0
- package/dist/types/Instance.js +2 -0
- package/dist/types/InstanceId.d.ts +1 -0
- package/dist/types/InstanceId.js +3 -0
- package/dist/types/Language.d.ts +6 -0
- package/dist/types/Language.js +2 -0
- package/dist/types/LanguageId.d.ts +1 -0
- package/dist/types/LanguageId.js +3 -0
- package/dist/types/LeaveAdmin.d.ts +3 -0
- package/dist/types/LeaveAdmin.js +3 -0
- package/dist/types/ListCommentReports.d.ts +8 -0
- package/dist/types/ListCommentReports.js +2 -0
- package/dist/types/ListCommentReportsResponse.d.ts +4 -0
- package/dist/types/ListCommentReportsResponse.js +2 -0
- package/dist/types/ListCommunities.d.ts +9 -0
- package/dist/types/ListCommunities.js +2 -0
- package/dist/types/ListCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListCommunitiesResponse.js +2 -0
- package/dist/types/ListPostReports.d.ts +8 -0
- package/dist/types/ListPostReports.js +2 -0
- package/dist/types/ListPostReportsResponse.d.ts +4 -0
- package/dist/types/ListPostReportsResponse.js +2 -0
- package/dist/types/ListPrivateMessageReports.d.ts +6 -0
- package/dist/types/ListPrivateMessageReports.js +3 -0
- package/dist/types/ListPrivateMessageReportsResponse.d.ts +4 -0
- package/dist/types/ListPrivateMessageReportsResponse.js +2 -0
- package/dist/types/ListRegistrationApplications.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.js +3 -0
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +4 -0
- package/dist/types/ListRegistrationApplicationsResponse.js +2 -0
- package/dist/types/ListingType.d.ts +1 -0
- package/dist/types/ListingType.js +3 -0
- package/dist/types/LocalSite.d.ts +30 -0
- package/dist/types/LocalSite.js +2 -0
- package/dist/types/LocalSiteId.d.ts +1 -0
- package/dist/types/LocalSiteId.js +3 -0
- package/dist/types/LocalSiteRateLimit.d.ts +19 -0
- package/dist/types/LocalSiteRateLimit.js +2 -0
- package/dist/types/LocalUser.d.ts +24 -0
- package/dist/types/LocalUser.js +2 -0
- package/dist/types/LocalUserId.d.ts +1 -0
- package/dist/types/LocalUserId.js +3 -0
- package/dist/types/LocalUserView.d.ts +8 -0
- package/dist/types/LocalUserView.js +2 -0
- package/dist/types/LockPost.d.ts +6 -0
- package/dist/types/LockPost.js +2 -0
- package/dist/types/Login.d.ts +5 -0
- package/dist/types/Login.js +3 -0
- package/dist/types/LoginResponse.d.ts +5 -0
- package/dist/types/LoginResponse.js +3 -0
- package/dist/types/MarkAllAsRead.d.ts +3 -0
- package/dist/types/MarkAllAsRead.js +3 -0
- package/dist/types/MarkCommentReplyAsRead.d.ts +6 -0
- package/dist/types/MarkCommentReplyAsRead.js +2 -0
- package/dist/types/MarkPersonMentionAsRead.d.ts +6 -0
- package/dist/types/MarkPersonMentionAsRead.js +2 -0
- package/dist/types/MarkPostAsRead.d.ts +6 -0
- package/dist/types/MarkPostAsRead.js +2 -0
- package/dist/types/MarkPrivateMessageAsRead.d.ts +6 -0
- package/dist/types/MarkPrivateMessageAsRead.js +2 -0
- package/dist/types/ModAdd.d.ts +8 -0
- package/dist/types/ModAdd.js +2 -0
- package/dist/types/ModAddCommunity.d.ts +10 -0
- package/dist/types/ModAddCommunity.js +2 -0
- package/dist/types/ModAddCommunityView.d.ts +9 -0
- package/dist/types/ModAddCommunityView.js +2 -0
- package/dist/types/ModAddView.d.ts +7 -0
- package/dist/types/ModAddView.js +2 -0
- package/dist/types/ModBan.d.ts +10 -0
- package/dist/types/ModBan.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +12 -0
- package/dist/types/ModBanFromCommunity.js +2 -0
- package/dist/types/ModBanFromCommunityView.d.ts +9 -0
- package/dist/types/ModBanFromCommunityView.js +2 -0
- package/dist/types/ModBanView.d.ts +7 -0
- package/dist/types/ModBanView.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +10 -0
- package/dist/types/ModFeaturePost.js +2 -0
- package/dist/types/ModFeaturePostView.d.ts +10 -0
- package/dist/types/ModFeaturePostView.js +2 -0
- package/dist/types/ModHideCommunity.d.ts +10 -0
- package/dist/types/ModHideCommunity.js +2 -0
- package/dist/types/ModHideCommunityView.d.ts +8 -0
- package/dist/types/ModHideCommunityView.js +2 -0
- package/dist/types/ModJoin.d.ts +4 -0
- package/dist/types/ModJoin.js +2 -0
- package/dist/types/ModJoinResponse.d.ts +3 -0
- package/dist/types/ModJoinResponse.js +3 -0
- package/dist/types/ModLockPost.d.ts +9 -0
- package/dist/types/ModLockPost.js +2 -0
- package/dist/types/ModLockPostView.d.ts +10 -0
- package/dist/types/ModLockPostView.js +2 -0
- package/dist/types/ModRemoveComment.d.ts +10 -0
- package/dist/types/ModRemoveComment.js +2 -0
- package/dist/types/ModRemoveCommentView.d.ts +13 -0
- package/dist/types/ModRemoveCommentView.js +2 -0
- package/dist/types/ModRemoveCommunity.d.ts +11 -0
- package/dist/types/ModRemoveCommunity.js +2 -0
- package/dist/types/ModRemoveCommunityView.d.ts +8 -0
- package/dist/types/ModRemoveCommunityView.js +2 -0
- package/dist/types/ModRemovePost.d.ts +10 -0
- package/dist/types/ModRemovePost.js +2 -0
- package/dist/types/ModRemovePostView.d.ts +10 -0
- package/dist/types/ModRemovePostView.js +2 -0
- package/dist/types/ModTransferCommunity.d.ts +9 -0
- package/dist/types/ModTransferCommunity.js +2 -0
- package/dist/types/ModTransferCommunityView.d.ts +9 -0
- package/dist/types/ModTransferCommunityView.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -0
- package/dist/types/ModlogActionType.js +3 -0
- package/dist/types/ModlogListParams.d.ts +10 -0
- package/dist/types/ModlogListParams.js +2 -0
- package/dist/types/MyUserInfo.d.ts +14 -0
- package/dist/types/MyUserInfo.js +2 -0
- package/dist/types/PasswordChangeAfterReset.d.ts +5 -0
- package/dist/types/PasswordChangeAfterReset.js +3 -0
- package/dist/types/PasswordReset.d.ts +3 -0
- package/dist/types/PasswordReset.js +3 -0
- package/dist/types/PasswordResetResponse.d.ts +1 -0
- package/dist/types/PasswordResetResponse.js +3 -0
- package/dist/types/Person.d.ts +21 -0
- package/dist/types/Person.js +2 -0
- package/dist/types/PersonAggregates.d.ts +9 -0
- package/dist/types/PersonAggregates.js +2 -0
- package/dist/types/PersonBlockId.d.ts +1 -0
- package/dist/types/PersonBlockId.js +3 -0
- package/dist/types/PersonBlockView.d.ts +5 -0
- package/dist/types/PersonBlockView.js +2 -0
- package/dist/types/PersonId.d.ts +1 -0
- package/dist/types/PersonId.js +3 -0
- package/dist/types/PersonMention.d.ts +10 -0
- package/dist/types/PersonMention.js +2 -0
- package/dist/types/PersonMentionId.d.ts +1 -0
- package/dist/types/PersonMentionId.js +3 -0
- package/dist/types/PersonMentionResponse.d.ts +4 -0
- package/dist/types/PersonMentionResponse.js +2 -0
- package/dist/types/PersonMentionView.d.ts +21 -0
- package/dist/types/PersonMentionView.js +2 -0
- package/dist/types/PersonView.d.ts +6 -0
- package/dist/types/PersonView.js +2 -0
- package/dist/types/Post.d.ts +27 -0
- package/dist/types/Post.js +2 -0
- package/dist/types/PostAggregates.d.ts +16 -0
- package/dist/types/PostAggregates.js +2 -0
- package/dist/types/PostFeatureType.d.ts +1 -0
- package/dist/types/PostFeatureType.js +3 -0
- package/dist/types/PostId.d.ts +1 -0
- package/dist/types/PostId.js +3 -0
- package/dist/types/PostJoin.d.ts +4 -0
- package/dist/types/PostJoin.js +2 -0
- package/dist/types/PostJoinResponse.d.ts +3 -0
- package/dist/types/PostJoinResponse.js +3 -0
- package/dist/types/PostOrCommentId.d.ts +7 -0
- package/dist/types/PostOrCommentId.js +2 -0
- package/dist/types/PostReport.d.ts +16 -0
- package/dist/types/PostReport.js +2 -0
- package/dist/types/PostReportId.d.ts +1 -0
- package/dist/types/PostReportId.js +3 -0
- package/dist/types/PostReportResponse.d.ts +4 -0
- package/dist/types/PostReportResponse.js +2 -0
- package/dist/types/PostReportView.d.ts +16 -0
- package/dist/types/PostReportView.js +2 -0
- package/dist/types/PostResponse.d.ts +4 -0
- package/dist/types/PostResponse.js +2 -0
- package/dist/types/PostView.d.ts +18 -0
- package/dist/types/PostView.js +2 -0
- package/dist/types/PrivateMessage.d.ts +14 -0
- package/dist/types/PrivateMessage.js +2 -0
- package/dist/types/PrivateMessageId.d.ts +1 -0
- package/dist/types/PrivateMessageId.js +3 -0
- package/dist/types/PrivateMessageReport.d.ts +14 -0
- package/dist/types/PrivateMessageReport.js +2 -0
- package/dist/types/PrivateMessageReportId.d.ts +1 -0
- package/dist/types/PrivateMessageReportId.js +3 -0
- package/dist/types/PrivateMessageReportResponse.d.ts +4 -0
- package/dist/types/PrivateMessageReportResponse.js +2 -0
- package/dist/types/PrivateMessageReportView.d.ts +10 -0
- package/dist/types/PrivateMessageReportView.js +2 -0
- package/dist/types/PrivateMessageResponse.d.ts +4 -0
- package/dist/types/PrivateMessageResponse.js +2 -0
- package/dist/types/PrivateMessageView.d.ts +7 -0
- package/dist/types/PrivateMessageView.js +2 -0
- package/dist/types/PrivateMessagesResponse.d.ts +4 -0
- package/dist/types/PrivateMessagesResponse.js +2 -0
- package/dist/types/PurgeComment.d.ts +6 -0
- package/dist/types/PurgeComment.js +2 -0
- package/dist/types/PurgeCommunity.d.ts +6 -0
- package/dist/types/PurgeCommunity.js +2 -0
- package/dist/types/PurgeItemResponse.d.ts +3 -0
- package/dist/types/PurgeItemResponse.js +3 -0
- package/dist/types/PurgePerson.d.ts +6 -0
- package/dist/types/PurgePerson.js +2 -0
- package/dist/types/PurgePost.d.ts +6 -0
- package/dist/types/PurgePost.js +2 -0
- package/dist/types/Register.d.ts +11 -0
- package/dist/types/Register.js +3 -0
- package/dist/types/RegistrationApplication.d.ts +10 -0
- package/dist/types/RegistrationApplication.js +2 -0
- package/dist/types/RegistrationApplicationResponse.d.ts +4 -0
- package/dist/types/RegistrationApplicationResponse.js +2 -0
- package/dist/types/RegistrationApplicationView.d.ts +9 -0
- package/dist/types/RegistrationApplicationView.js +2 -0
- package/dist/types/RegistrationMode.d.ts +1 -0
- package/dist/types/RegistrationMode.js +3 -0
- package/dist/types/RemoveComment.d.ts +7 -0
- package/dist/types/RemoveComment.js +2 -0
- package/dist/types/RemoveCommunity.d.ts +8 -0
- package/dist/types/RemoveCommunity.js +2 -0
- package/dist/types/RemovePost.d.ts +7 -0
- package/dist/types/RemovePost.js +2 -0
- package/dist/types/ResolveCommentReport.d.ts +6 -0
- package/dist/types/ResolveCommentReport.js +2 -0
- package/dist/types/ResolveObject.d.ts +4 -0
- package/dist/types/ResolveObject.js +3 -0
- package/dist/types/ResolveObjectResponse.d.ts +10 -0
- package/dist/types/ResolveObjectResponse.js +2 -0
- package/dist/types/ResolvePostReport.d.ts +6 -0
- package/dist/types/ResolvePostReport.js +2 -0
- package/dist/types/ResolvePrivateMessageReport.d.ts +6 -0
- package/dist/types/ResolvePrivateMessageReport.js +2 -0
- package/dist/types/SaveComment.d.ts +6 -0
- package/dist/types/SaveComment.js +2 -0
- package/dist/types/SavePost.d.ts +6 -0
- package/dist/types/SavePost.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +26 -0
- package/dist/types/SaveUserSettings.js +2 -0
- package/dist/types/Search.d.ts +17 -0
- package/dist/types/Search.js +2 -0
- package/dist/types/SearchResponse.d.ts +12 -0
- package/dist/types/SearchResponse.js +2 -0
- package/dist/types/SearchType.d.ts +1 -0
- package/dist/types/SearchType.js +3 -0
- package/dist/types/Site.d.ts +18 -0
- package/dist/types/Site.js +2 -0
- package/dist/types/SiteAggregates.d.ts +13 -0
- package/dist/types/SiteAggregates.js +2 -0
- package/dist/types/SiteId.d.ts +1 -0
- package/dist/types/SiteId.js +3 -0
- package/dist/types/SiteMetadata.d.ts +6 -0
- package/dist/types/SiteMetadata.js +3 -0
- package/dist/types/SiteResponse.d.ts +6 -0
- package/dist/types/SiteResponse.js +2 -0
- package/dist/types/SiteView.d.ts +10 -0
- package/dist/types/SiteView.js +2 -0
- package/dist/types/SortType.d.ts +1 -0
- package/dist/types/SortType.js +3 -0
- package/dist/types/SubscribedType.d.ts +1 -0
- package/dist/types/SubscribedType.js +3 -0
- package/dist/types/Tagline.d.ts +8 -0
- package/dist/types/Tagline.js +2 -0
- package/dist/types/TransferCommunity.d.ts +7 -0
- package/dist/types/TransferCommunity.js +2 -0
- package/dist/types/UserJoin.d.ts +3 -0
- package/dist/types/UserJoin.js +3 -0
- package/dist/types/UserJoinResponse.d.ts +3 -0
- package/dist/types/UserJoinResponse.js +3 -0
- package/dist/types/VerifyEmail.d.ts +3 -0
- package/dist/types/VerifyEmail.js +3 -0
- package/dist/types/VerifyEmailResponse.d.ts +1 -0
- package/dist/types/VerifyEmailResponse.js +3 -0
- package/dist/types/others.d.ts +114 -0
- package/dist/types/others.js +97 -0
- package/dist/websocket.d.ts +110 -9
- package/dist/websocket.js +202 -174
- package/package.json +16 -17
- package/dist/interfaces/aggregates.d.ts +0 -93
- package/dist/interfaces/api/comment.d.ts +0 -116
- package/dist/interfaces/api/community.d.ts +0 -125
- package/dist/interfaces/api/index.d.ts +0 -6
- package/dist/interfaces/api/index.js +0 -22
- package/dist/interfaces/api/person.d.ts +0 -303
- package/dist/interfaces/api/post.d.ts +0 -141
- package/dist/interfaces/api/site.d.ts +0 -243
- package/dist/interfaces/api/websocket.d.ts +0 -27
- package/dist/interfaces/index.d.ts +0 -5
- package/dist/interfaces/index.js +0 -21
- package/dist/interfaces/others.d.ts +0 -223
- package/dist/interfaces/others.js +0 -225
- package/dist/interfaces/source.d.ts +0 -357
- package/dist/interfaces/source.js +0 -9
- package/dist/interfaces/views.d.ts +0 -221
- /package/dist/{interfaces/aggregates.js → types/AddAdmin.js} +0 -0
- /package/dist/{interfaces/api/comment.js → types/AddAdminResponse.js} +0 -0
- /package/dist/{interfaces/api/community.js → types/AddModToCommunity.js} +0 -0
- /package/dist/{interfaces/api/person.js → types/AddModToCommunityResponse.js} +0 -0
- /package/dist/{interfaces/api/post.js → types/AdminPurgeComment.js} +0 -0
- /package/dist/{interfaces/api/site.js → types/AdminPurgeCommentView.js} +0 -0
- /package/dist/{interfaces/api/websocket.js → types/AdminPurgeCommunity.js} +0 -0
- /package/dist/{interfaces/views.js → types/AdminPurgeCommunityView.js} +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
export declare const VERSION = "v3";
|
3
|
+
/**
|
4
|
+
* All of the websocket operations available.
|
5
|
+
*/
|
6
|
+
export declare enum UserOperation {
|
7
|
+
Login = 0,
|
8
|
+
Register = 1,
|
9
|
+
GetCaptcha = 2,
|
10
|
+
CreateCommunity = 3,
|
11
|
+
CreatePost = 4,
|
12
|
+
ListCommunities = 5,
|
13
|
+
GetPost = 6,
|
14
|
+
GetCommunity = 7,
|
15
|
+
CreateComment = 8,
|
16
|
+
EditComment = 9,
|
17
|
+
DeleteComment = 10,
|
18
|
+
RemoveComment = 11,
|
19
|
+
SaveComment = 12,
|
20
|
+
CreateCommentLike = 13,
|
21
|
+
GetPosts = 14,
|
22
|
+
CreatePostLike = 15,
|
23
|
+
EditPost = 16,
|
24
|
+
DeletePost = 17,
|
25
|
+
RemovePost = 18,
|
26
|
+
LockPost = 19,
|
27
|
+
FeaturePost = 20,
|
28
|
+
MarkPostAsRead = 21,
|
29
|
+
SavePost = 22,
|
30
|
+
EditCommunity = 23,
|
31
|
+
DeleteCommunity = 24,
|
32
|
+
RemoveCommunity = 25,
|
33
|
+
FollowCommunity = 26,
|
34
|
+
GetPersonDetails = 27,
|
35
|
+
GetReplies = 28,
|
36
|
+
GetPersonMentions = 29,
|
37
|
+
MarkPersonMentionAsRead = 30,
|
38
|
+
MarkCommentReplyAsRead = 31,
|
39
|
+
GetModlog = 32,
|
40
|
+
BanFromCommunity = 33,
|
41
|
+
AddModToCommunity = 34,
|
42
|
+
CreateSite = 35,
|
43
|
+
EditSite = 36,
|
44
|
+
GetSite = 37,
|
45
|
+
AddAdmin = 38,
|
46
|
+
GetUnreadRegistrationApplicationCount = 39,
|
47
|
+
ListRegistrationApplications = 40,
|
48
|
+
ApproveRegistrationApplication = 41,
|
49
|
+
BanPerson = 42,
|
50
|
+
GetBannedPersons = 43,
|
51
|
+
Search = 44,
|
52
|
+
ResolveObject = 45,
|
53
|
+
MarkAllAsRead = 46,
|
54
|
+
SaveUserSettings = 47,
|
55
|
+
TransferCommunity = 48,
|
56
|
+
LeaveAdmin = 49,
|
57
|
+
DeleteAccount = 50,
|
58
|
+
PasswordReset = 51,
|
59
|
+
PasswordChangeAfterReset = 52,
|
60
|
+
CreatePrivateMessage = 53,
|
61
|
+
EditPrivateMessage = 54,
|
62
|
+
DeletePrivateMessage = 55,
|
63
|
+
MarkPrivateMessageAsRead = 56,
|
64
|
+
CreatePrivateMessageReport = 57,
|
65
|
+
ResolvePrivateMessageReport = 58,
|
66
|
+
ListPrivateMessageReports = 59,
|
67
|
+
GetPrivateMessages = 60,
|
68
|
+
UserJoin = 61,
|
69
|
+
GetComments = 62,
|
70
|
+
GetComment = 63,
|
71
|
+
PostJoin = 64,
|
72
|
+
CommunityJoin = 65,
|
73
|
+
ChangePassword = 66,
|
74
|
+
GetSiteMetadata = 67,
|
75
|
+
BlockCommunity = 68,
|
76
|
+
BlockPerson = 69,
|
77
|
+
PurgePerson = 70,
|
78
|
+
PurgeCommunity = 71,
|
79
|
+
PurgePost = 72,
|
80
|
+
PurgeComment = 73,
|
81
|
+
CreateCommentReport = 74,
|
82
|
+
ResolveCommentReport = 75,
|
83
|
+
ListCommentReports = 76,
|
84
|
+
CreatePostReport = 77,
|
85
|
+
ResolvePostReport = 78,
|
86
|
+
ListPostReports = 79,
|
87
|
+
GetReportCount = 80,
|
88
|
+
GetUnreadCount = 81,
|
89
|
+
VerifyEmail = 82,
|
90
|
+
CreateCustomEmoji = 83,
|
91
|
+
EditCustomEmoji = 84,
|
92
|
+
DeleteCustomEmoji = 85,
|
93
|
+
GetFederatedInstances = 86
|
94
|
+
}
|
95
|
+
export interface UploadImage {
|
96
|
+
image: File | Buffer;
|
97
|
+
/**
|
98
|
+
* Optional if cookie with jwt set is already present. Otherwise, auth is required.
|
99
|
+
*/
|
100
|
+
auth?: string;
|
101
|
+
}
|
102
|
+
export interface UploadImageResponse {
|
103
|
+
/**
|
104
|
+
* Is "ok" if the upload was successful; is something else otherwise.
|
105
|
+
*/
|
106
|
+
msg: string;
|
107
|
+
files?: ImageFile[];
|
108
|
+
url?: string;
|
109
|
+
delete_url?: string;
|
110
|
+
}
|
111
|
+
export interface ImageFile {
|
112
|
+
file: string;
|
113
|
+
delete_token: string;
|
114
|
+
}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UserOperation = exports.VERSION = void 0;
|
4
|
+
exports.VERSION = "v3";
|
5
|
+
/**
|
6
|
+
* All of the websocket operations available.
|
7
|
+
*/
|
8
|
+
var UserOperation;
|
9
|
+
(function (UserOperation) {
|
10
|
+
UserOperation[UserOperation["Login"] = 0] = "Login";
|
11
|
+
UserOperation[UserOperation["Register"] = 1] = "Register";
|
12
|
+
UserOperation[UserOperation["GetCaptcha"] = 2] = "GetCaptcha";
|
13
|
+
UserOperation[UserOperation["CreateCommunity"] = 3] = "CreateCommunity";
|
14
|
+
UserOperation[UserOperation["CreatePost"] = 4] = "CreatePost";
|
15
|
+
UserOperation[UserOperation["ListCommunities"] = 5] = "ListCommunities";
|
16
|
+
UserOperation[UserOperation["GetPost"] = 6] = "GetPost";
|
17
|
+
UserOperation[UserOperation["GetCommunity"] = 7] = "GetCommunity";
|
18
|
+
UserOperation[UserOperation["CreateComment"] = 8] = "CreateComment";
|
19
|
+
UserOperation[UserOperation["EditComment"] = 9] = "EditComment";
|
20
|
+
UserOperation[UserOperation["DeleteComment"] = 10] = "DeleteComment";
|
21
|
+
UserOperation[UserOperation["RemoveComment"] = 11] = "RemoveComment";
|
22
|
+
UserOperation[UserOperation["SaveComment"] = 12] = "SaveComment";
|
23
|
+
UserOperation[UserOperation["CreateCommentLike"] = 13] = "CreateCommentLike";
|
24
|
+
UserOperation[UserOperation["GetPosts"] = 14] = "GetPosts";
|
25
|
+
UserOperation[UserOperation["CreatePostLike"] = 15] = "CreatePostLike";
|
26
|
+
UserOperation[UserOperation["EditPost"] = 16] = "EditPost";
|
27
|
+
UserOperation[UserOperation["DeletePost"] = 17] = "DeletePost";
|
28
|
+
UserOperation[UserOperation["RemovePost"] = 18] = "RemovePost";
|
29
|
+
UserOperation[UserOperation["LockPost"] = 19] = "LockPost";
|
30
|
+
UserOperation[UserOperation["FeaturePost"] = 20] = "FeaturePost";
|
31
|
+
UserOperation[UserOperation["MarkPostAsRead"] = 21] = "MarkPostAsRead";
|
32
|
+
UserOperation[UserOperation["SavePost"] = 22] = "SavePost";
|
33
|
+
UserOperation[UserOperation["EditCommunity"] = 23] = "EditCommunity";
|
34
|
+
UserOperation[UserOperation["DeleteCommunity"] = 24] = "DeleteCommunity";
|
35
|
+
UserOperation[UserOperation["RemoveCommunity"] = 25] = "RemoveCommunity";
|
36
|
+
UserOperation[UserOperation["FollowCommunity"] = 26] = "FollowCommunity";
|
37
|
+
UserOperation[UserOperation["GetPersonDetails"] = 27] = "GetPersonDetails";
|
38
|
+
UserOperation[UserOperation["GetReplies"] = 28] = "GetReplies";
|
39
|
+
UserOperation[UserOperation["GetPersonMentions"] = 29] = "GetPersonMentions";
|
40
|
+
UserOperation[UserOperation["MarkPersonMentionAsRead"] = 30] = "MarkPersonMentionAsRead";
|
41
|
+
UserOperation[UserOperation["MarkCommentReplyAsRead"] = 31] = "MarkCommentReplyAsRead";
|
42
|
+
UserOperation[UserOperation["GetModlog"] = 32] = "GetModlog";
|
43
|
+
UserOperation[UserOperation["BanFromCommunity"] = 33] = "BanFromCommunity";
|
44
|
+
UserOperation[UserOperation["AddModToCommunity"] = 34] = "AddModToCommunity";
|
45
|
+
UserOperation[UserOperation["CreateSite"] = 35] = "CreateSite";
|
46
|
+
UserOperation[UserOperation["EditSite"] = 36] = "EditSite";
|
47
|
+
UserOperation[UserOperation["GetSite"] = 37] = "GetSite";
|
48
|
+
UserOperation[UserOperation["AddAdmin"] = 38] = "AddAdmin";
|
49
|
+
UserOperation[UserOperation["GetUnreadRegistrationApplicationCount"] = 39] = "GetUnreadRegistrationApplicationCount";
|
50
|
+
UserOperation[UserOperation["ListRegistrationApplications"] = 40] = "ListRegistrationApplications";
|
51
|
+
UserOperation[UserOperation["ApproveRegistrationApplication"] = 41] = "ApproveRegistrationApplication";
|
52
|
+
UserOperation[UserOperation["BanPerson"] = 42] = "BanPerson";
|
53
|
+
UserOperation[UserOperation["GetBannedPersons"] = 43] = "GetBannedPersons";
|
54
|
+
UserOperation[UserOperation["Search"] = 44] = "Search";
|
55
|
+
UserOperation[UserOperation["ResolveObject"] = 45] = "ResolveObject";
|
56
|
+
UserOperation[UserOperation["MarkAllAsRead"] = 46] = "MarkAllAsRead";
|
57
|
+
UserOperation[UserOperation["SaveUserSettings"] = 47] = "SaveUserSettings";
|
58
|
+
UserOperation[UserOperation["TransferCommunity"] = 48] = "TransferCommunity";
|
59
|
+
UserOperation[UserOperation["LeaveAdmin"] = 49] = "LeaveAdmin";
|
60
|
+
UserOperation[UserOperation["DeleteAccount"] = 50] = "DeleteAccount";
|
61
|
+
UserOperation[UserOperation["PasswordReset"] = 51] = "PasswordReset";
|
62
|
+
UserOperation[UserOperation["PasswordChangeAfterReset"] = 52] = "PasswordChangeAfterReset";
|
63
|
+
UserOperation[UserOperation["CreatePrivateMessage"] = 53] = "CreatePrivateMessage";
|
64
|
+
UserOperation[UserOperation["EditPrivateMessage"] = 54] = "EditPrivateMessage";
|
65
|
+
UserOperation[UserOperation["DeletePrivateMessage"] = 55] = "DeletePrivateMessage";
|
66
|
+
UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 56] = "MarkPrivateMessageAsRead";
|
67
|
+
UserOperation[UserOperation["CreatePrivateMessageReport"] = 57] = "CreatePrivateMessageReport";
|
68
|
+
UserOperation[UserOperation["ResolvePrivateMessageReport"] = 58] = "ResolvePrivateMessageReport";
|
69
|
+
UserOperation[UserOperation["ListPrivateMessageReports"] = 59] = "ListPrivateMessageReports";
|
70
|
+
UserOperation[UserOperation["GetPrivateMessages"] = 60] = "GetPrivateMessages";
|
71
|
+
UserOperation[UserOperation["UserJoin"] = 61] = "UserJoin";
|
72
|
+
UserOperation[UserOperation["GetComments"] = 62] = "GetComments";
|
73
|
+
UserOperation[UserOperation["GetComment"] = 63] = "GetComment";
|
74
|
+
UserOperation[UserOperation["PostJoin"] = 64] = "PostJoin";
|
75
|
+
UserOperation[UserOperation["CommunityJoin"] = 65] = "CommunityJoin";
|
76
|
+
UserOperation[UserOperation["ChangePassword"] = 66] = "ChangePassword";
|
77
|
+
UserOperation[UserOperation["GetSiteMetadata"] = 67] = "GetSiteMetadata";
|
78
|
+
UserOperation[UserOperation["BlockCommunity"] = 68] = "BlockCommunity";
|
79
|
+
UserOperation[UserOperation["BlockPerson"] = 69] = "BlockPerson";
|
80
|
+
UserOperation[UserOperation["PurgePerson"] = 70] = "PurgePerson";
|
81
|
+
UserOperation[UserOperation["PurgeCommunity"] = 71] = "PurgeCommunity";
|
82
|
+
UserOperation[UserOperation["PurgePost"] = 72] = "PurgePost";
|
83
|
+
UserOperation[UserOperation["PurgeComment"] = 73] = "PurgeComment";
|
84
|
+
UserOperation[UserOperation["CreateCommentReport"] = 74] = "CreateCommentReport";
|
85
|
+
UserOperation[UserOperation["ResolveCommentReport"] = 75] = "ResolveCommentReport";
|
86
|
+
UserOperation[UserOperation["ListCommentReports"] = 76] = "ListCommentReports";
|
87
|
+
UserOperation[UserOperation["CreatePostReport"] = 77] = "CreatePostReport";
|
88
|
+
UserOperation[UserOperation["ResolvePostReport"] = 78] = "ResolvePostReport";
|
89
|
+
UserOperation[UserOperation["ListPostReports"] = 79] = "ListPostReports";
|
90
|
+
UserOperation[UserOperation["GetReportCount"] = 80] = "GetReportCount";
|
91
|
+
UserOperation[UserOperation["GetUnreadCount"] = 81] = "GetUnreadCount";
|
92
|
+
UserOperation[UserOperation["VerifyEmail"] = 82] = "VerifyEmail";
|
93
|
+
UserOperation[UserOperation["CreateCustomEmoji"] = 83] = "CreateCustomEmoji";
|
94
|
+
UserOperation[UserOperation["EditCustomEmoji"] = 84] = "EditCustomEmoji";
|
95
|
+
UserOperation[UserOperation["DeleteCustomEmoji"] = 85] = "DeleteCustomEmoji";
|
96
|
+
UserOperation[UserOperation["GetFederatedInstances"] = 86] = "GetFederatedInstances";
|
97
|
+
})(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
|
package/dist/websocket.d.ts
CHANGED
@@ -1,10 +1,91 @@
|
|
1
|
-
import {
|
2
|
-
import { AddModToCommunity
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
1
|
+
import { AddAdmin } from "./types/AddAdmin";
|
2
|
+
import { AddModToCommunity } from "./types/AddModToCommunity";
|
3
|
+
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
4
|
+
import { BanFromCommunity } from "./types/BanFromCommunity";
|
5
|
+
import { BanPerson } from "./types/BanPerson";
|
6
|
+
import { BlockCommunity } from "./types/BlockCommunity";
|
7
|
+
import { BlockPerson } from "./types/BlockPerson";
|
8
|
+
import { ChangePassword } from "./types/ChangePassword";
|
9
|
+
import { CommunityJoin } from "./types/CommunityJoin";
|
10
|
+
import { CreateComment } from "./types/CreateComment";
|
11
|
+
import { CreateCommentLike } from "./types/CreateCommentLike";
|
12
|
+
import { CreateCommentReport } from "./types/CreateCommentReport";
|
13
|
+
import { CreateCommunity } from "./types/CreateCommunity";
|
14
|
+
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
15
|
+
import { CreatePost } from "./types/CreatePost";
|
16
|
+
import { CreatePostLike } from "./types/CreatePostLike";
|
17
|
+
import { CreatePostReport } from "./types/CreatePostReport";
|
18
|
+
import { CreatePrivateMessage } from "./types/CreatePrivateMessage";
|
19
|
+
import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
|
20
|
+
import { CreateSite } from "./types/CreateSite";
|
21
|
+
import { DeleteAccount } from "./types/DeleteAccount";
|
22
|
+
import { DeleteComment } from "./types/DeleteComment";
|
23
|
+
import { DeleteCommunity } from "./types/DeleteCommunity";
|
24
|
+
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
25
|
+
import { DeletePost } from "./types/DeletePost";
|
26
|
+
import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
27
|
+
import { EditComment } from "./types/EditComment";
|
28
|
+
import { EditCommunity } from "./types/EditCommunity";
|
29
|
+
import { EditCustomEmoji } from "./types/EditCustomEmoji";
|
30
|
+
import { EditPost } from "./types/EditPost";
|
31
|
+
import { EditPrivateMessage } from "./types/EditPrivateMessage";
|
32
|
+
import { EditSite } from "./types/EditSite";
|
33
|
+
import { FeaturePost } from "./types/FeaturePost";
|
34
|
+
import { FollowCommunity } from "./types/FollowCommunity";
|
35
|
+
import { GetBannedPersons } from "./types/GetBannedPersons";
|
36
|
+
import { GetCaptcha } from "./types/GetCaptcha";
|
37
|
+
import { GetComment } from "./types/GetComment";
|
38
|
+
import { GetComments } from "./types/GetComments";
|
39
|
+
import { GetCommunity } from "./types/GetCommunity";
|
40
|
+
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
41
|
+
import { GetModlog } from "./types/GetModlog";
|
42
|
+
import { GetPersonDetails } from "./types/GetPersonDetails";
|
43
|
+
import { GetPersonMentions } from "./types/GetPersonMentions";
|
44
|
+
import { GetPost } from "./types/GetPost";
|
45
|
+
import { GetPosts } from "./types/GetPosts";
|
46
|
+
import { GetPrivateMessages } from "./types/GetPrivateMessages";
|
47
|
+
import { GetReplies } from "./types/GetReplies";
|
48
|
+
import { GetReportCount } from "./types/GetReportCount";
|
49
|
+
import { GetSite } from "./types/GetSite";
|
50
|
+
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
51
|
+
import { GetUnreadCount } from "./types/GetUnreadCount";
|
52
|
+
import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
|
53
|
+
import { LeaveAdmin } from "./types/LeaveAdmin";
|
54
|
+
import { ListCommentReports } from "./types/ListCommentReports";
|
55
|
+
import { ListCommunities } from "./types/ListCommunities";
|
56
|
+
import { ListPostReports } from "./types/ListPostReports";
|
57
|
+
import { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
|
58
|
+
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
59
|
+
import { LockPost } from "./types/LockPost";
|
60
|
+
import { Login } from "./types/Login";
|
61
|
+
import { MarkAllAsRead } from "./types/MarkAllAsRead";
|
62
|
+
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
63
|
+
import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
|
64
|
+
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
65
|
+
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
66
|
+
import { UserOperation } from "./types/others";
|
67
|
+
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
68
|
+
import { PasswordReset } from "./types/PasswordReset";
|
69
|
+
import { PostJoin } from "./types/PostJoin";
|
70
|
+
import { PurgeComment } from "./types/PurgeComment";
|
71
|
+
import { PurgeCommunity } from "./types/PurgeCommunity";
|
72
|
+
import { PurgePerson } from "./types/PurgePerson";
|
73
|
+
import { PurgePost } from "./types/PurgePost";
|
74
|
+
import { Register } from "./types/Register";
|
75
|
+
import { RemoveComment } from "./types/RemoveComment";
|
76
|
+
import { RemoveCommunity } from "./types/RemoveCommunity";
|
77
|
+
import { RemovePost } from "./types/RemovePost";
|
78
|
+
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
79
|
+
import { ResolveObject } from "./types/ResolveObject";
|
80
|
+
import { ResolvePostReport } from "./types/ResolvePostReport";
|
81
|
+
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
82
|
+
import { SaveComment } from "./types/SaveComment";
|
83
|
+
import { SavePost } from "./types/SavePost";
|
84
|
+
import { SaveUserSettings } from "./types/SaveUserSettings";
|
85
|
+
import { Search } from "./types/Search";
|
86
|
+
import { TransferCommunity } from "./types/TransferCommunity";
|
87
|
+
import { UserJoin } from "./types/UserJoin";
|
88
|
+
import { VerifyEmail } from "./types/VerifyEmail";
|
8
89
|
/**
|
9
90
|
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
10
91
|
*
|
@@ -45,7 +126,7 @@ export declare class LemmyWebsocket {
|
|
45
126
|
/**
|
46
127
|
* Fetch a Captcha.
|
47
128
|
*/
|
48
|
-
getCaptcha(): string;
|
129
|
+
getCaptcha(form: GetCaptcha): string;
|
49
130
|
/**
|
50
131
|
* Create a new community.
|
51
132
|
*/
|
@@ -130,6 +211,10 @@ export declare class LemmyWebsocket {
|
|
130
211
|
* Get / fetch comments.
|
131
212
|
*/
|
132
213
|
getComments(form: GetComments): string;
|
214
|
+
/**
|
215
|
+
* Get / fetch comment.
|
216
|
+
*/
|
217
|
+
getComment(form: GetComment): string;
|
133
218
|
/**
|
134
219
|
* Like / vote on a post.
|
135
220
|
*/
|
@@ -293,7 +378,7 @@ export declare class LemmyWebsocket {
|
|
293
378
|
/**
|
294
379
|
* Change your password from an email / token based reset.
|
295
380
|
*/
|
296
|
-
passwordChange(form:
|
381
|
+
passwordChange(form: PasswordChangeAfterReset): string;
|
297
382
|
/**
|
298
383
|
* Create a private message.
|
299
384
|
*/
|
@@ -350,6 +435,22 @@ export declare class LemmyWebsocket {
|
|
350
435
|
* Purge / Delete a comment from the database.
|
351
436
|
*/
|
352
437
|
purgeComment(form: PurgeComment): string;
|
438
|
+
/**
|
439
|
+
* Create a custom emoji
|
440
|
+
*/
|
441
|
+
createCustomEmoji(form: CreateCustomEmoji): string;
|
442
|
+
/**
|
443
|
+
* Edit a custom emoji
|
444
|
+
*/
|
445
|
+
editCustomEmoji(form: EditCustomEmoji): string;
|
446
|
+
/**
|
447
|
+
* Delete a custom emoji
|
448
|
+
*/
|
449
|
+
deleteCustomEmoji(form: DeleteCustomEmoji): string;
|
450
|
+
/**
|
451
|
+
* Fetch federated instances.
|
452
|
+
*/
|
453
|
+
getFederatedInstances(form: GetFederatedInstances): string;
|
353
454
|
}
|
354
455
|
export declare function wsUserOp(msg: any): UserOperation;
|
355
456
|
/**
|