lemmy-js-client 0.20.0-private-community.9 → 0.20.0-remove-aggregate-tables.0
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/README.md +1 -1
- package/dist/http.d.ts +252 -417
- package/dist/http.js +1264 -422
- package/dist/index.d.ts +74 -26
- package/dist/other_types.d.ts +81 -17
- package/dist/other_types.js +1 -1
- package/dist/types/AddAdmin.d.ts +5 -2
- package/dist/types/AddAdminResponse.d.ts +5 -2
- package/dist/types/AddModToCommunity.d.ts +5 -2
- package/dist/types/AddModToCommunityResponse.d.ts +5 -2
- package/dist/types/AdminAllowInstance.d.ts +11 -0
- package/dist/types/AdminAllowInstanceId.d.ts +1 -0
- package/dist/types/AdminAllowInstanceParams.d.ts +5 -0
- package/dist/types/AdminAllowInstanceView.d.ts +11 -0
- package/dist/types/AdminBlockInstance.d.ts +12 -0
- package/dist/types/AdminBlockInstanceId.d.ts +1 -0
- package/dist/types/AdminBlockInstanceParams.d.ts +6 -0
- package/dist/types/AdminBlockInstanceParams.js +3 -0
- package/dist/types/AdminBlockInstanceView.d.ts +11 -0
- package/dist/types/AdminPurgeComment.d.ts +8 -4
- package/dist/types/AdminPurgeCommentId.d.ts +1 -0
- package/dist/types/AdminPurgeCommentId.js +3 -0
- package/dist/types/AdminPurgeCommentView.d.ts +5 -2
- package/dist/types/AdminPurgeCommunity.d.ts +8 -4
- package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
- package/dist/types/AdminPurgeCommunityId.js +3 -0
- package/dist/types/AdminPurgeCommunityView.d.ts +5 -2
- package/dist/types/AdminPurgePerson.d.ts +8 -4
- package/dist/types/AdminPurgePersonId.d.ts +1 -0
- package/dist/types/AdminPurgePersonId.js +3 -0
- package/dist/types/AdminPurgePersonView.d.ts +5 -2
- package/dist/types/AdminPurgePost.d.ts +8 -4
- package/dist/types/AdminPurgePostId.d.ts +1 -0
- package/dist/types/AdminPurgePostId.js +3 -0
- package/dist/types/AdminPurgePostView.d.ts +5 -2
- package/dist/types/ApproveCommunityPendingFollower.d.ts +2 -2
- package/dist/types/ApproveRegistrationApplication.d.ts +5 -2
- package/dist/types/AuthenticateWithOauth.d.ts +14 -3
- package/dist/types/AuthenticateWithOauth.js +0 -1
- package/dist/types/BanFromCommunity.d.ts +14 -2
- package/dist/types/BanFromCommunityResponse.d.ts +5 -2
- package/dist/types/BanPerson.d.ts +14 -2
- package/dist/types/BanPersonResponse.d.ts +5 -2
- package/dist/types/BannedPersonsResponse.d.ts +5 -2
- package/dist/types/BlockCommunity.d.ts +5 -2
- package/dist/types/BlockCommunityResponse.d.ts +5 -2
- package/dist/types/BlockPerson.d.ts +5 -2
- package/dist/types/BlockPersonResponse.d.ts +5 -2
- package/dist/types/CaptchaResponse.d.ts +14 -2
- package/dist/types/ChangePassword.d.ts +9 -5
- package/dist/types/ChangePassword.js +0 -1
- package/dist/types/Comment.d.ts +36 -3
- package/dist/types/CommentId.d.ts +3 -0
- package/dist/types/CommentReply.d.ts +5 -2
- package/dist/types/CommentReplyId.d.ts +3 -0
- package/dist/types/CommentReplyView.d.ts +5 -4
- package/dist/types/CommentReport.d.ts +5 -2
- package/dist/types/CommentReportId.d.ts +3 -0
- package/dist/types/CommentReportResponse.d.ts +5 -2
- package/dist/types/CommentReportView.d.ts +5 -4
- package/dist/types/CommentResponse.d.ts +5 -2
- package/dist/types/CommentSlimView.d.ts +18 -0
- package/dist/types/CommentSortType.d.ts +3 -0
- package/dist/types/CommentView.d.ts +5 -4
- package/dist/types/Community.d.ts +69 -6
- package/dist/types/CommunityFollowerView.d.ts +5 -2
- package/dist/types/CommunityId.d.ts +3 -0
- package/dist/types/CommunityModeratorView.d.ts +5 -2
- package/dist/types/CommunityReport.d.ts +22 -0
- package/dist/types/CommunityReportId.d.ts +4 -0
- package/dist/types/CommunityReportId.js +3 -0
- package/dist/types/CommunityReportView.d.ts +14 -0
- package/dist/types/CommunityResponse.d.ts +5 -2
- package/dist/types/CommunitySortType.d.ts +4 -0
- package/dist/types/CommunitySortType.js +3 -0
- package/dist/types/CommunityView.d.ts +5 -4
- package/dist/types/CommunityVisibility.d.ts +3 -0
- package/dist/types/CreateComment.d.ts +5 -2
- package/dist/types/CreateCommentLike.d.ts +8 -2
- package/dist/types/CreateCommentReport.d.ts +5 -2
- package/dist/types/CreateCommunity.d.ts +30 -2
- package/dist/types/CreateCustomEmoji.d.ts +5 -2
- package/dist/types/CreateOAuthProvider.d.ts +6 -2
- package/dist/types/CreatePost.d.ts +22 -2
- package/dist/types/CreatePostLike.d.ts +8 -2
- package/dist/types/CreatePostReport.d.ts +5 -2
- package/dist/types/CreatePrivateMessage.d.ts +5 -2
- package/dist/types/CreatePrivateMessageReport.d.ts +5 -2
- package/dist/types/CreateSite.d.ts +6 -8
- package/dist/types/CreateTagline.d.ts +5 -2
- package/dist/types/CustomEmoji.d.ts +7 -3
- package/dist/types/CustomEmojiId.d.ts +3 -0
- package/dist/types/CustomEmojiKeyword.d.ts +5 -2
- package/dist/types/CustomEmojiResponse.d.ts +5 -2
- package/dist/types/CustomEmojiView.d.ts +5 -2
- package/dist/types/DbUrl.d.ts +1 -0
- package/dist/types/DbUrl.js +3 -0
- package/dist/types/DeleteAccount.d.ts +7 -3
- package/dist/types/DeleteAccount.js +0 -1
- package/dist/types/DeleteComment.d.ts +5 -2
- package/dist/types/DeleteCommunity.d.ts +5 -2
- package/dist/types/DeleteCustomEmoji.d.ts +5 -2
- package/dist/types/DeleteImageParams.d.ts +3 -0
- package/dist/types/DeleteImageParams.js +3 -0
- package/dist/types/DeleteOAuthProvider.d.ts +5 -2
- package/dist/types/DeletePost.d.ts +5 -2
- package/dist/types/DeletePrivateMessage.d.ts +5 -2
- package/dist/types/DeleteTagline.d.ts +5 -2
- package/dist/types/DistinguishComment.d.ts +5 -2
- package/dist/types/EditComment.d.ts +5 -2
- package/dist/types/EditCommunity.d.ts +21 -4
- package/dist/types/EditCustomEmoji.d.ts +5 -2
- package/dist/types/EditOAuthProvider.d.ts +6 -2
- package/dist/types/EditPost.d.ts +19 -2
- package/dist/types/EditPrivateMessage.d.ts +5 -2
- package/dist/types/EditSite.d.ts +113 -8
- package/dist/types/FeaturePost.d.ts +5 -2
- package/dist/types/FederatedInstances.d.ts +5 -2
- package/dist/types/FederationBlockList.d.ts +7 -0
- package/dist/types/FederationError.d.ts +10 -0
- package/dist/types/FederationError.js +3 -0
- package/dist/types/FederationMode.d.ts +3 -0
- package/dist/types/FollowCommunity.d.ts +5 -2
- package/dist/types/GenerateTotpSecretResponse.d.ts +4 -3
- package/dist/types/GenerateTotpSecretResponse.js +0 -1
- package/dist/types/GetCaptchaResponse.d.ts +8 -2
- package/dist/types/GetComment.d.ts +5 -2
- package/dist/types/GetComments.d.ts +5 -3
- package/dist/types/GetCommentsResponse.d.ts +5 -2
- package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
- package/dist/types/GetCommunity.d.ts +8 -2
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +2 -2
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +2 -2
- package/dist/types/GetCommunityResponse.d.ts +5 -2
- package/dist/types/GetFederatedInstancesResponse.d.ts +8 -2
- package/dist/types/GetModlog.d.ts +8 -4
- package/dist/types/GetModlogResponse.d.ts +7 -32
- package/dist/types/GetPersonDetails.d.ts +10 -9
- package/dist/types/GetPersonDetailsResponse.d.ts +5 -6
- package/dist/types/GetPost.d.ts +5 -2
- package/dist/types/GetPostResponse.d.ts +8 -2
- package/dist/types/GetPosts.d.ts +28 -2
- package/dist/types/GetPostsResponse.d.ts +8 -2
- package/dist/types/GetRandomCommunity.d.ts +6 -2
- package/dist/types/GetRegistrationApplication.d.ts +5 -2
- package/dist/types/GetReportCount.d.ts +5 -2
- package/dist/types/GetReportCountResponse.d.ts +6 -7
- package/dist/types/GetReportCountResponse.js +1 -0
- package/dist/types/GetSiteMetadata.d.ts +5 -2
- package/dist/types/GetSiteMetadataResponse.d.ts +5 -2
- package/dist/types/GetSiteResponse.d.ts +12 -6
- package/dist/types/GetUnreadCountResponse.d.ts +6 -5
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +5 -2
- package/dist/types/HideCommunity.d.ts +5 -2
- package/dist/types/HidePost.d.ts +6 -3
- package/dist/types/ImageDetails.d.ts +4 -3
- package/dist/types/ImageDetails.js +0 -1
- package/dist/types/ImageGetParams.d.ts +4 -0
- package/dist/types/ImageGetParams.js +3 -0
- package/dist/types/ImageProxyParams.d.ts +5 -0
- package/dist/types/ImageProxyParams.js +3 -0
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/InboxCombinedView.d.ts +13 -0
- package/dist/types/InboxDataType.d.ts +4 -0
- package/dist/types/InboxDataType.js +3 -0
- package/dist/types/Instance.d.ts +5 -2
- package/dist/types/InstanceId.d.ts +3 -0
- package/dist/types/InstanceWithFederationState.d.ts +7 -3
- package/dist/types/Language.d.ts +5 -2
- package/dist/types/LanguageId.d.ts +3 -0
- package/dist/types/LemmyErrorType.d.ts +25 -71
- package/dist/types/LemmyErrorType.js +0 -1
- package/dist/types/LinkMetadata.d.ts +9 -5
- package/dist/types/LinkMetadata.js +0 -1
- package/dist/types/ListCommentLikes.d.ts +5 -2
- package/dist/types/ListCommentLikesResponse.d.ts +5 -2
- package/dist/types/ListCommunities.d.ts +7 -4
- package/dist/types/ListCommunitiesResponse.d.ts +5 -2
- package/dist/types/ListCommunityPendingFollows.d.ts +9 -6
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
- package/dist/types/ListCustomEmojis.d.ts +5 -2
- package/dist/types/ListCustomEmojisResponse.d.ts +5 -2
- package/dist/types/ListInbox.d.ts +11 -0
- package/dist/types/ListInboxResponse.d.ts +7 -0
- package/dist/types/ListLoginsResponse.d.ts +2 -2
- package/dist/types/ListMedia.d.ts +5 -2
- package/dist/types/ListMediaResponse.d.ts +2 -2
- package/dist/types/ListPersonContent.d.ts +18 -0
- package/dist/types/ListPersonContentResponse.d.ts +7 -0
- package/dist/types/ListPersonSaved.d.ts +10 -0
- package/dist/types/ListPersonSavedResponse.d.ts +7 -0
- package/dist/types/ListPostLikes.d.ts +5 -2
- package/dist/types/ListPostLikesResponse.d.ts +5 -2
- package/dist/types/ListRegistrationApplications.d.ts +8 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +5 -2
- package/dist/types/ListReports.d.ts +27 -0
- package/dist/types/ListReportsResponse.d.ts +7 -0
- package/dist/types/ListTaglines.d.ts +5 -2
- package/dist/types/ListTaglinesResponse.d.ts +5 -2
- package/dist/types/ListingType.d.ts +3 -0
- package/dist/types/LocalImage.d.ts +2 -3
- package/dist/types/LocalImageView.d.ts +5 -2
- package/dist/types/LocalSite.d.ts +83 -2
- package/dist/types/LocalSiteId.d.ts +3 -0
- package/dist/types/LocalSiteRateLimit.d.ts +5 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +67 -3
- package/dist/types/LocalUserId.d.ts +3 -0
- package/dist/types/LocalUserView.d.ts +5 -4
- package/dist/types/LocalUserVoteDisplayMode.d.ts +5 -2
- package/dist/types/LockPost.d.ts +5 -2
- package/dist/types/Login.d.ts +11 -4
- package/dist/types/Login.js +0 -1
- package/dist/types/LoginResponse.d.ts +17 -3
- package/dist/types/LoginResponse.js +0 -1
- package/dist/types/LoginToken.d.ts +12 -2
- package/dist/types/MarkCommentReplyAsRead.d.ts +5 -2
- package/dist/types/MarkManyPostsAsRead.d.ts +7 -0
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPostAsRead.d.ts +6 -3
- package/dist/types/MarkPrivateMessageAsRead.d.ts +5 -2
- package/dist/types/ModAdd.d.ts +8 -4
- package/dist/types/ModAddCommunity.d.ts +8 -4
- package/dist/types/ModAddCommunityId.d.ts +1 -0
- package/dist/types/ModAddCommunityId.js +3 -0
- package/dist/types/ModAddCommunityView.d.ts +6 -3
- package/dist/types/ModAddId.d.ts +1 -0
- package/dist/types/ModAddId.js +3 -0
- package/dist/types/ModAddView.d.ts +6 -3
- package/dist/types/ModBan.d.ts +8 -4
- package/dist/types/ModBanFromCommunity.d.ts +8 -4
- package/dist/types/ModBanFromCommunityId.d.ts +1 -0
- package/dist/types/ModBanFromCommunityId.js +3 -0
- package/dist/types/ModBanFromCommunityView.d.ts +6 -3
- package/dist/types/ModBanId.d.ts +1 -0
- package/dist/types/ModBanId.js +3 -0
- package/dist/types/ModBanView.d.ts +6 -3
- package/dist/types/ModFeaturePost.d.ts +8 -4
- package/dist/types/ModFeaturePostId.d.ts +1 -0
- package/dist/types/ModFeaturePostId.js +3 -0
- package/dist/types/ModFeaturePostView.d.ts +6 -2
- package/dist/types/ModHideCommunity.d.ts +8 -4
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModHideCommunityView.d.ts +5 -2
- package/dist/types/ModLockPost.d.ts +8 -4
- package/dist/types/ModLockPostId.d.ts +1 -0
- package/dist/types/ModLockPostId.js +3 -0
- package/dist/types/ModLockPostView.d.ts +6 -2
- package/dist/types/ModRemoveComment.d.ts +8 -4
- package/dist/types/ModRemoveCommentId.d.ts +1 -0
- package/dist/types/ModRemoveCommentId.js +3 -0
- package/dist/types/ModRemoveCommentView.d.ts +6 -3
- package/dist/types/ModRemoveCommunity.d.ts +8 -4
- package/dist/types/ModRemoveCommunityId.d.ts +1 -0
- package/dist/types/ModRemoveCommunityId.js +3 -0
- package/dist/types/ModRemoveCommunityView.d.ts +5 -2
- package/dist/types/ModRemovePost.d.ts +8 -4
- package/dist/types/ModRemovePostId.d.ts +1 -0
- package/dist/types/ModRemovePostId.js +3 -0
- package/dist/types/ModRemovePostView.d.ts +6 -2
- package/dist/types/ModTransferCommunity.d.ts +8 -4
- package/dist/types/ModTransferCommunityId.d.ts +1 -0
- package/dist/types/ModTransferCommunityId.js +3 -0
- package/dist/types/ModTransferCommunityView.d.ts +6 -3
- package/dist/types/ModlogActionType.d.ts +4 -1
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogCombinedView.d.ts +52 -0
- package/dist/types/MyUserInfo.d.ts +5 -2
- package/dist/types/OAuthAccount.d.ts +5 -2
- package/dist/types/OAuthProvider.d.ts +48 -2
- package/dist/types/OAuthProviderId.d.ts +3 -0
- package/dist/types/OpenGraphData.d.ts +8 -4
- package/dist/types/OpenGraphData.js +0 -1
- package/dist/types/PaginationCursor.d.ts +6 -0
- package/dist/types/PasswordChangeAfterReset.d.ts +9 -5
- package/dist/types/PasswordChangeAfterReset.js +0 -1
- package/dist/types/PasswordReset.d.ts +7 -3
- package/dist/types/PasswordReset.js +0 -1
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +44 -5
- package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +7 -4
- package/dist/types/PersonCommentMention.js +2 -0
- package/dist/types/PersonCommentMentionId.d.ts +4 -0
- package/dist/types/PersonCommentMentionId.js +3 -0
- package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +7 -6
- package/dist/types/PersonCommentMentionView.js +2 -0
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentCombinedView.d.ts +7 -0
- package/dist/types/PersonContentCombinedView.js +2 -0
- package/dist/types/PersonContentType.d.ts +4 -0
- package/dist/types/PersonContentType.js +3 -0
- package/dist/types/PersonId.d.ts +3 -0
- package/dist/types/PersonPostMention.d.ts +13 -0
- package/dist/types/PersonPostMention.js +2 -0
- package/dist/types/PersonPostMentionId.d.ts +4 -0
- package/dist/types/PersonPostMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +30 -0
- package/dist/types/PersonPostMentionView.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonView.d.ts +5 -4
- package/dist/types/Post.d.ts +68 -6
- package/dist/types/PostFeatureType.d.ts +3 -0
- package/dist/types/PostId.d.ts +3 -0
- package/dist/types/PostListingMode.d.ts +3 -0
- package/dist/types/PostReport.d.ts +16 -3
- package/dist/types/PostReportId.d.ts +3 -0
- package/dist/types/PostReportResponse.d.ts +5 -2
- package/dist/types/PostReportView.d.ts +5 -4
- package/dist/types/PostResponse.d.ts +2 -2
- package/dist/types/PostSortType.d.ts +3 -0
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PostView.d.ts +7 -4
- package/dist/types/PrivateMessage.d.ts +7 -3
- package/dist/types/PrivateMessageId.d.ts +3 -0
- package/dist/types/PrivateMessageReport.d.ts +8 -2
- package/dist/types/PrivateMessageReportId.d.ts +3 -0
- package/dist/types/PrivateMessageReportResponse.d.ts +5 -2
- package/dist/types/PrivateMessageReportView.d.ts +5 -2
- package/dist/types/PrivateMessageResponse.d.ts +5 -2
- package/dist/types/PrivateMessageView.d.ts +5 -2
- package/dist/types/PurgeComment.d.ts +5 -2
- package/dist/types/PurgeCommunity.d.ts +5 -2
- package/dist/types/PurgePerson.d.ts +5 -2
- package/dist/types/PurgePost.d.ts +5 -2
- package/dist/types/ReadableFederationState.d.ts +15 -3
- package/dist/types/Register.d.ts +24 -5
- package/dist/types/Register.js +0 -1
- package/dist/types/RegistrationApplication.d.ts +5 -2
- package/dist/types/RegistrationApplicationId.d.ts +3 -0
- package/dist/types/RegistrationApplicationResponse.d.ts +5 -2
- package/dist/types/RegistrationApplicationView.d.ts +5 -2
- package/dist/types/RegistrationMode.d.ts +3 -0
- package/dist/types/RemoveComment.d.ts +5 -2
- package/dist/types/RemoveCommunity.d.ts +5 -2
- package/dist/types/RemovePost.d.ts +5 -2
- package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ReportCombinedPaginationCursor.js +3 -0
- package/dist/types/ReportCombinedView.d.ts +13 -0
- package/dist/types/ReportCombinedView.js +2 -0
- package/dist/types/ReportType.d.ts +4 -0
- package/dist/types/ReportType.js +3 -0
- package/dist/types/ResolveCommentReport.d.ts +5 -2
- package/dist/types/ResolveObject.d.ts +8 -2
- package/dist/types/ResolveObjectResponse.d.ts +5 -2
- package/dist/types/ResolvePostReport.d.ts +5 -2
- package/dist/types/ResolvePrivateMessageReport.d.ts +5 -2
- package/dist/types/SaveComment.d.ts +5 -2
- package/dist/types/SavePost.d.ts +5 -2
- package/dist/types/SaveUserSettings.d.ts +92 -5
- package/dist/types/Search.d.ts +11 -8
- package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/SearchCombinedPaginationCursor.js +3 -0
- package/dist/types/SearchCombinedView.d.ts +13 -0
- package/dist/types/SearchCombinedView.js +2 -0
- package/dist/types/SearchResponse.d.ts +7 -12
- package/dist/types/SearchSortType.d.ts +4 -0
- package/dist/types/SearchSortType.js +3 -0
- package/dist/types/SearchType.d.ts +3 -0
- package/dist/types/SensitiveString.d.ts +1 -0
- package/dist/types/SensitiveString.js +3 -0
- package/dist/types/Site.d.ts +35 -6
- package/dist/types/SiteAggregates.d.ts +17 -2
- package/dist/types/SiteId.d.ts +3 -0
- package/dist/types/SiteResponse.d.ts +8 -2
- package/dist/types/SiteView.d.ts +5 -2
- package/dist/types/SubscribedType.d.ts +3 -0
- package/dist/types/SuccessResponse.d.ts +5 -2
- package/dist/types/Tag.d.ts +27 -0
- package/dist/types/Tag.js +2 -0
- package/dist/types/TagId.d.ts +4 -0
- package/dist/types/TagId.js +3 -0
- package/dist/types/Tagline.d.ts +5 -2
- package/dist/types/TaglineId.d.ts +3 -0
- package/dist/types/TaglineResponse.d.ts +2 -2
- package/dist/types/TransferCommunity.d.ts +5 -2
- package/dist/types/UpdateTagline.d.ts +5 -2
- package/dist/types/UpdateTotp.d.ts +2 -2
- package/dist/types/UpdateTotpResponse.d.ts +2 -2
- package/dist/types/UploadImageResponse.d.ts +4 -0
- package/dist/types/UploadImageResponse.js +3 -0
- package/dist/types/{BlockInstance.d.ts → UserBlockInstanceParams.d.ts} +5 -2
- package/dist/types/UserBlockInstanceParams.js +2 -0
- package/dist/types/VerifyEmail.d.ts +5 -2
- package/dist/types/VoteView.d.ts +5 -2
- package/package.json +10 -5
- package/dist/types/BlockInstanceResponse.d.ts +0 -3
- package/dist/types/CommentAggregates.d.ts +0 -9
- package/dist/types/CommentReplyResponse.d.ts +0 -4
- package/dist/types/CommunityAggregates.d.ts +0 -13
- package/dist/types/GetPersonMentions.d.ts +0 -7
- package/dist/types/GetPersonMentionsResponse.d.ts +0 -4
- package/dist/types/GetPrivateMessages.d.ts +0 -7
- package/dist/types/GetReplies.d.ts +0 -7
- package/dist/types/GetRepliesResponse.d.ts +0 -4
- package/dist/types/ListCommentReports.d.ts +0 -9
- package/dist/types/ListCommentReportsResponse.d.ts +0 -4
- package/dist/types/ListPostReports.d.ts +0 -9
- package/dist/types/ListPostReportsResponse.d.ts +0 -4
- package/dist/types/ListPrivateMessageReports.d.ts +0 -5
- package/dist/types/ListPrivateMessageReportsResponse.d.ts +0 -4
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -5
- package/dist/types/ModlogListParams.d.ts +0 -14
- package/dist/types/PersonAggregates.d.ts +0 -6
- package/dist/types/PersonMentionId.d.ts +0 -1
- package/dist/types/PersonMentionResponse.d.ts +0 -4
- package/dist/types/PostAggregates.d.ts +0 -10
- package/dist/types/PrivateMessagesResponse.d.ts +0 -4
- /package/dist/types/{BlockInstance.js → AdminAllowInstance.js} +0 -0
- /package/dist/types/{BlockInstanceResponse.js → AdminAllowInstanceId.js} +0 -0
- /package/dist/types/{ListPrivateMessageReports.js → AdminAllowInstanceParams.js} +0 -0
- /package/dist/types/{CommentAggregates.js → AdminAllowInstanceView.js} +0 -0
- /package/dist/types/{CommentReplyResponse.js → AdminBlockInstance.js} +0 -0
- /package/dist/types/{PersonMentionId.js → AdminBlockInstanceId.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → AdminBlockInstanceView.js} +0 -0
- /package/dist/types/{GetPersonMentions.js → CommentSlimView.js} +0 -0
- /package/dist/types/{GetPersonMentionsResponse.js → CommunityReport.js} +0 -0
- /package/dist/types/{GetPrivateMessages.js → CommunityReportView.js} +0 -0
- /package/dist/types/{GetReplies.js → FederationBlockList.js} +0 -0
- /package/dist/types/{GetRepliesResponse.js → GetCommentsSlimResponse.js} +0 -0
- /package/dist/types/{ListCommentReports.js → InboxCombinedView.js} +0 -0
- /package/dist/types/{ListCommentReportsResponse.js → ListInbox.js} +0 -0
- /package/dist/types/{ListPostReports.js → ListInboxResponse.js} +0 -0
- /package/dist/types/{ListPostReportsResponse.js → ListPersonContent.js} +0 -0
- /package/dist/types/{ListPrivateMessageReportsResponse.js → ListPersonContentResponse.js} +0 -0
- /package/dist/types/{MarkPersonMentionAsRead.js → ListPersonSaved.js} +0 -0
- /package/dist/types/{ModlogListParams.js → ListPersonSavedResponse.js} +0 -0
- /package/dist/types/{PersonAggregates.js → ListReports.js} +0 -0
- /package/dist/types/{PersonMention.js → ListReportsResponse.js} +0 -0
- /package/dist/types/{PersonMentionResponse.js → MarkManyPostsAsRead.js} +0 -0
- /package/dist/types/{PersonMentionView.js → MarkPersonCommentMentionAsRead.js} +0 -0
- /package/dist/types/{PostAggregates.js → MarkPersonPostMentionAsRead.js} +0 -0
- /package/dist/types/{PrivateMessagesResponse.js → ModlogCombinedView.js} +0 -0
package/dist/http.js
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
10
|
+
};
|
2
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
13
|
return new (P || (P = Promise))(function (resolve, reject) {
|
@@ -19,33 +28,34 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
19
28
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
20
29
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
21
30
|
};
|
22
|
-
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers,
|
31
|
+
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
23
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
33
|
exports.LemmyHttp = void 0;
|
25
34
|
const other_types_1 = require("./other_types");
|
35
|
+
const tsoa_1 = require("tsoa");
|
26
36
|
var HttpType;
|
27
37
|
(function (HttpType) {
|
28
38
|
HttpType["Get"] = "GET";
|
29
39
|
HttpType["Post"] = "POST";
|
30
40
|
HttpType["Put"] = "PUT";
|
41
|
+
HttpType["Delete"] = "DELETE";
|
31
42
|
})(HttpType || (HttpType = {}));
|
32
43
|
/**
|
33
44
|
* Helps build lemmy HTTP requests.
|
34
45
|
*/
|
35
|
-
class LemmyHttp {
|
46
|
+
let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
36
47
|
/**
|
37
48
|
* Generates a new instance of LemmyHttp.
|
38
49
|
* @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
|
39
50
|
* @param headers optional headers. Should contain `x-real-ip` and `x-forwarded-for` .
|
40
51
|
*/
|
41
52
|
constructor(baseUrl, options) {
|
53
|
+
super();
|
42
54
|
_LemmyHttp_instances.add(this);
|
43
55
|
_LemmyHttp_apiUrl.set(this, void 0);
|
44
56
|
_LemmyHttp_headers.set(this, {});
|
45
|
-
_LemmyHttp_pictrsUrl.set(this, void 0);
|
46
57
|
_LemmyHttp_fetchFunction.set(this, fetch.bind(globalThis));
|
47
58
|
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
|
48
|
-
__classPrivateFieldSet(this, _LemmyHttp_pictrsUrl, `${baseUrl}/pictrs/image`, "f");
|
49
59
|
if (options === null || options === void 0 ? void 0 : options.headers) {
|
50
60
|
__classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
|
51
61
|
}
|
@@ -54,932 +64,835 @@ class LemmyHttp {
|
|
54
64
|
}
|
55
65
|
}
|
56
66
|
/**
|
57
|
-
* Gets the site, and your user data.
|
58
|
-
*
|
59
|
-
* `HTTP.GET /site`
|
67
|
+
* @summary Gets the site, and your user data.
|
60
68
|
*/
|
61
69
|
getSite(options) {
|
62
70
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
63
71
|
}
|
64
72
|
/**
|
65
|
-
* Create your site.
|
66
|
-
*
|
67
|
-
* `HTTP.POST /site`
|
73
|
+
* @summary Create your site.
|
68
74
|
*/
|
69
75
|
createSite(form, options) {
|
70
76
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
71
77
|
}
|
72
78
|
/**
|
73
|
-
* Edit your site.
|
74
|
-
*
|
75
|
-
* `HTTP.PUT /site`
|
79
|
+
* @summary Edit your site.
|
76
80
|
*/
|
77
81
|
editSite(form, options) {
|
78
82
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
79
83
|
}
|
80
84
|
/**
|
81
|
-
* Leave the Site admins.
|
82
|
-
*
|
83
|
-
* `HTTP.POST /user/leave_admin`
|
85
|
+
* @summary Leave the Site admins.
|
84
86
|
*/
|
85
87
|
leaveAdmin(options) {
|
86
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
88
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
87
89
|
}
|
88
90
|
/**
|
89
|
-
* Generate a TOTP / two-factor secret.
|
91
|
+
* @summary Generate a TOTP / two-factor secret.
|
90
92
|
*
|
91
|
-
*
|
92
|
-
*
|
93
|
-
* `HTTP.POST /user/totp/generate`
|
93
|
+
* Generate a TOTP / two-factor secret.
|
94
|
+
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
94
95
|
*/
|
95
96
|
generateTotpSecret(options) {
|
96
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
97
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
97
98
|
}
|
98
99
|
/**
|
100
|
+
* @summary Get data of current user.
|
101
|
+
*/
|
102
|
+
getMyUser(options) {
|
103
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
104
|
+
}
|
105
|
+
/**
|
106
|
+
* @summary Export a backup of your user settings.
|
107
|
+
*
|
99
108
|
* Export a backup of your user settings, including your saved content,
|
100
109
|
* followed communities, and blocks.
|
101
|
-
*
|
102
|
-
* `HTTP.GET /user/export_settings`
|
103
110
|
*/
|
104
111
|
exportSettings(options) {
|
105
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
112
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
106
113
|
}
|
107
114
|
/**
|
108
|
-
* Import a backup of your user settings.
|
109
|
-
*
|
110
|
-
* `HTTP.POST /user/import_settings`
|
115
|
+
* @summary Import a backup of your user settings.
|
111
116
|
*/
|
112
117
|
importSettings(form, options) {
|
113
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
118
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
114
119
|
}
|
115
120
|
/**
|
116
|
-
* List login tokens for your user
|
117
|
-
*
|
118
|
-
* `HTTP.GET /user/list_logins`
|
121
|
+
* @summary List login tokens for your user
|
119
122
|
*/
|
120
123
|
listLogins(options) {
|
121
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
124
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
|
122
125
|
}
|
123
126
|
/**
|
124
|
-
* Returns an error message if your auth token is invalid
|
125
|
-
*
|
126
|
-
* `HTTP.GET /user/validate_auth`
|
127
|
+
* @summary Returns an error message if your auth token is invalid
|
127
128
|
*/
|
128
129
|
validateAuth(options) {
|
129
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
130
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
130
131
|
}
|
131
132
|
/**
|
132
|
-
* List all the media for your user
|
133
|
-
*
|
134
|
-
* `HTTP.GET /account/list_media`
|
133
|
+
* @summary List all the media for your user
|
135
134
|
*/
|
136
135
|
listMedia(form = {}, options) {
|
137
136
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
|
138
137
|
}
|
139
138
|
/**
|
140
|
-
* List all the media known to your instance.
|
141
|
-
*
|
142
|
-
* `HTTP.GET /admin/list_all_media`
|
139
|
+
* @summary List all the media known to your instance.
|
143
140
|
*/
|
144
141
|
listAllMedia(form = {}, options) {
|
145
142
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
|
146
143
|
}
|
147
144
|
/**
|
148
|
-
* Enable / Disable TOTP / two-factor authentication.
|
145
|
+
* @summary Enable / Disable TOTP / two-factor authentication.
|
149
146
|
*
|
150
|
-
* To enable, you need to first call `/
|
147
|
+
* To enable, you need to first call `/account/auth/totp/generate` and then pass a valid token to this.
|
151
148
|
*
|
152
149
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
153
|
-
*
|
154
|
-
* `HTTP.POST /user/totp/update`
|
155
150
|
*/
|
156
151
|
updateTotp(form, options) {
|
157
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
152
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
158
153
|
}
|
159
154
|
/**
|
160
|
-
* Get the modlog.
|
161
|
-
*
|
162
|
-
* `HTTP.GET /modlog`
|
155
|
+
* @summary Get the modlog.
|
163
156
|
*/
|
164
157
|
getModlog(form = {}, options) {
|
165
158
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
166
159
|
}
|
167
160
|
/**
|
168
|
-
* Search lemmy.
|
169
|
-
*
|
170
|
-
* `HTTP.GET /search`
|
161
|
+
* @summary Search lemmy.
|
171
162
|
*/
|
172
163
|
search(form, options) {
|
173
164
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
174
165
|
}
|
175
166
|
/**
|
176
|
-
* Fetch a non-local / federated object.
|
177
|
-
*
|
178
|
-
* `HTTP.GET /resolve_object`
|
167
|
+
* @summary Fetch a non-local / federated object.
|
179
168
|
*/
|
180
169
|
resolveObject(form, options) {
|
181
170
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
182
171
|
}
|
183
172
|
/**
|
184
|
-
* Create a new community.
|
185
|
-
*
|
186
|
-
* `HTTP.POST /community`
|
173
|
+
* @summary Create a new community.
|
187
174
|
*/
|
188
175
|
createCommunity(form, options) {
|
189
176
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
190
177
|
}
|
191
178
|
/**
|
192
|
-
* Get / fetch a community.
|
193
|
-
*
|
194
|
-
* `HTTP.GET /community`
|
179
|
+
* @summary Get / fetch a community.
|
195
180
|
*/
|
196
181
|
getCommunity(form = {}, options) {
|
197
182
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
198
183
|
}
|
199
184
|
/**
|
200
|
-
* Edit a community.
|
201
|
-
*
|
202
|
-
* `HTTP.PUT /community`
|
185
|
+
* @summary Edit a community.
|
203
186
|
*/
|
204
187
|
editCommunity(form, options) {
|
205
188
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
206
189
|
}
|
207
190
|
/**
|
208
|
-
* List communities, with various filters.
|
209
|
-
*
|
210
|
-
* `HTTP.GET /community/list`
|
191
|
+
* @summary List communities, with various filters.
|
211
192
|
*/
|
212
193
|
listCommunities(form = {}, options) {
|
213
194
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
214
195
|
}
|
215
196
|
/**
|
216
|
-
* Follow / subscribe to a community.
|
217
|
-
*
|
218
|
-
* `HTTP.POST /community/follow`
|
197
|
+
* @summary Follow / subscribe to a community.
|
219
198
|
*/
|
220
199
|
followCommunity(form, options) {
|
221
200
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
222
201
|
}
|
223
|
-
|
224
|
-
|
202
|
+
/**
|
203
|
+
* @summary Get a community's pending follows count.
|
204
|
+
*/
|
205
|
+
getCommunityPendingFollowsCount(form, options) {
|
225
206
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
226
207
|
}
|
208
|
+
/**
|
209
|
+
* @summary Get a community's pending followers.
|
210
|
+
*/
|
227
211
|
listCommunityPendingFollows(form, options) {
|
228
212
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
229
213
|
}
|
214
|
+
/**
|
215
|
+
* @summary Approve a community pending follow request.
|
216
|
+
*/
|
230
217
|
approveCommunityPendingFollow(form, options) {
|
231
218
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
232
219
|
}
|
233
220
|
/**
|
234
|
-
* Block a community.
|
235
|
-
*
|
236
|
-
* `HTTP.POST /community/block`
|
221
|
+
* @summary Block a community.
|
237
222
|
*/
|
238
223
|
blockCommunity(form, options) {
|
239
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
224
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
240
225
|
}
|
241
226
|
/**
|
242
|
-
* Delete a community.
|
243
|
-
*
|
244
|
-
* `HTTP.POST /community/delete`
|
227
|
+
* @summary Delete a community.
|
245
228
|
*/
|
246
229
|
deleteCommunity(form, options) {
|
247
230
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
248
231
|
}
|
249
232
|
/**
|
250
|
-
* Hide a community from public / "All" view. Admins only.
|
251
|
-
*
|
252
|
-
* `HTTP.PUT /community/hide`
|
233
|
+
* @summary Hide a community from public / "All" view. Admins only.
|
253
234
|
*/
|
254
235
|
hideCommunity(form, options) {
|
255
236
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
256
237
|
}
|
257
238
|
/**
|
258
|
-
* A moderator remove for a community.
|
259
|
-
*
|
260
|
-
* `HTTP.POST /community/remove`
|
239
|
+
* @summary A moderator remove for a community.
|
261
240
|
*/
|
262
241
|
removeCommunity(form, options) {
|
263
242
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
264
243
|
}
|
265
244
|
/**
|
266
|
-
* Transfer your community to an existing moderator.
|
267
|
-
*
|
268
|
-
* `HTTP.POST /community/transfer`
|
245
|
+
* @summary Transfer your community to an existing moderator.
|
269
246
|
*/
|
270
247
|
transferCommunity(form, options) {
|
271
248
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
272
249
|
}
|
273
250
|
/**
|
274
|
-
* Ban a user from a community.
|
275
|
-
*
|
276
|
-
* `HTTP.POST /community/ban_user`
|
251
|
+
* @summary Ban a user from a community.
|
277
252
|
*/
|
278
253
|
banFromCommunity(form, options) {
|
279
254
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
280
255
|
}
|
281
256
|
/**
|
282
|
-
* Add a moderator to your community.
|
283
|
-
*
|
284
|
-
* `HTTP.POST /community/mod`
|
257
|
+
* @summary Add a moderator to your community.
|
285
258
|
*/
|
286
259
|
addModToCommunity(form, options) {
|
287
260
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
288
261
|
}
|
289
262
|
/**
|
290
|
-
* Get a random community.
|
291
|
-
*
|
292
|
-
* `HTTP.GET /community/random`
|
263
|
+
* @summary Get a random community.
|
293
264
|
*/
|
294
265
|
getRandomCommunity(form, options) {
|
295
266
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
296
267
|
}
|
297
268
|
/**
|
298
|
-
* Create a post.
|
299
|
-
*
|
300
|
-
* `HTTP.POST /post`
|
269
|
+
* @summary Create a post.
|
301
270
|
*/
|
302
271
|
createPost(form, options) {
|
303
272
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
304
273
|
}
|
305
274
|
/**
|
306
|
-
* Get / fetch a post.
|
307
|
-
*
|
308
|
-
* `HTTP.GET /post`
|
275
|
+
* @summary Get / fetch a post.
|
309
276
|
*/
|
310
277
|
getPost(form = {}, options) {
|
311
278
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
312
279
|
}
|
313
280
|
/**
|
314
|
-
* Edit a post.
|
315
|
-
*
|
316
|
-
* `HTTP.PUT /post`
|
281
|
+
* @summary Edit a post.
|
317
282
|
*/
|
318
283
|
editPost(form, options) {
|
319
284
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
320
285
|
}
|
321
286
|
/**
|
322
|
-
* Delete a post.
|
323
|
-
*
|
324
|
-
* `HTTP.POST /post/delete`
|
287
|
+
* @summary Delete a post.
|
325
288
|
*/
|
326
289
|
deletePost(form, options) {
|
327
290
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
328
291
|
}
|
329
292
|
/**
|
330
|
-
* A moderator remove for a post.
|
331
|
-
*
|
332
|
-
* `HTTP.POST /post/remove`
|
293
|
+
* @summary A moderator remove for a post.
|
333
294
|
*/
|
334
295
|
removePost(form, options) {
|
335
296
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
336
297
|
}
|
337
298
|
/**
|
338
|
-
* Mark a post as read.
|
339
|
-
*
|
340
|
-
* `HTTP.POST /post/mark_as_read`
|
299
|
+
* @summary Mark a post as read.
|
341
300
|
*/
|
342
301
|
markPostAsRead(form, options) {
|
343
302
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
344
303
|
}
|
345
304
|
/**
|
346
|
-
*
|
347
|
-
|
348
|
-
|
305
|
+
* @summary Mark multiple posts as read.
|
306
|
+
*/
|
307
|
+
markManyPostAsRead(form, options) {
|
308
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
309
|
+
}
|
310
|
+
/**
|
311
|
+
* @summary Hide a post from list views.
|
349
312
|
*/
|
350
313
|
hidePost(form, options) {
|
351
314
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
352
315
|
}
|
353
316
|
/**
|
354
|
-
* A moderator can lock a post ( IE disable new comments ).
|
355
|
-
*
|
356
|
-
* `HTTP.POST /post/lock`
|
317
|
+
* @summary A moderator can lock a post ( IE disable new comments ).
|
357
318
|
*/
|
358
319
|
lockPost(form, options) {
|
359
320
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
360
321
|
}
|
361
322
|
/**
|
362
|
-
* A moderator can feature a community post ( IE stick it to the top of a community ).
|
363
|
-
*
|
364
|
-
* `HTTP.POST /post/feature`
|
323
|
+
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
365
324
|
*/
|
366
325
|
featurePost(form, options) {
|
367
326
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
368
327
|
}
|
369
328
|
/**
|
370
|
-
* Get / fetch posts, with various filters.
|
371
|
-
*
|
372
|
-
* `HTTP.GET /post/list`
|
329
|
+
* @summary Get / fetch posts, with various filters.
|
373
330
|
*/
|
374
331
|
getPosts(form = {}, options) {
|
375
332
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
376
333
|
}
|
377
334
|
/**
|
378
|
-
* Like / vote on a post.
|
379
|
-
*
|
380
|
-
* `HTTP.POST /post/like`
|
335
|
+
* @summary Like / vote on a post.
|
381
336
|
*/
|
382
337
|
likePost(form, options) {
|
383
338
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
384
339
|
}
|
385
340
|
/**
|
386
|
-
* List a post's likes. Admin-only.
|
387
|
-
*
|
388
|
-
* `HTTP.GET /post/like/list`
|
341
|
+
* @summary List a post's likes. Admin-only.
|
389
342
|
*/
|
390
343
|
listPostLikes(form, options) {
|
391
344
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
392
345
|
}
|
393
346
|
/**
|
394
|
-
* Save a post.
|
395
|
-
*
|
396
|
-
* `HTTP.PUT /post/save`
|
347
|
+
* @summary Save a post.
|
397
348
|
*/
|
398
349
|
savePost(form, options) {
|
399
350
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
400
351
|
}
|
401
352
|
/**
|
402
|
-
* Report a post.
|
403
|
-
*
|
404
|
-
* `HTTP.POST /post/report`
|
353
|
+
* @summary Report a post.
|
405
354
|
*/
|
406
355
|
createPostReport(form, options) {
|
407
356
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
408
357
|
}
|
409
358
|
/**
|
410
|
-
* Resolve a post report. Only a mod can do this.
|
411
|
-
*
|
412
|
-
* `HTTP.PUT /post/report/resolve`
|
359
|
+
* @summary Resolve a post report. Only a mod can do this.
|
413
360
|
*/
|
414
361
|
resolvePostReport(form, options) {
|
415
362
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
416
363
|
}
|
417
364
|
/**
|
418
|
-
*
|
419
|
-
*
|
420
|
-
* `HTTP.GET /post/report/list`
|
421
|
-
*/
|
422
|
-
listPostReports(form, options) {
|
423
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/report/list", form, options);
|
424
|
-
}
|
425
|
-
/**
|
426
|
-
* Fetch metadata for any given site.
|
427
|
-
*
|
428
|
-
* `HTTP.GET /post/site_metadata`
|
365
|
+
* @summary Fetch metadata for any given site.
|
429
366
|
*/
|
430
367
|
getSiteMetadata(form, options) {
|
431
368
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
432
369
|
}
|
433
370
|
/**
|
434
|
-
* Create a comment.
|
435
|
-
*
|
436
|
-
* `HTTP.POST /comment`
|
371
|
+
* @summary Create a comment.
|
437
372
|
*/
|
438
373
|
createComment(form, options) {
|
439
374
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
440
375
|
}
|
441
376
|
/**
|
442
|
-
* Edit a comment.
|
443
|
-
*
|
444
|
-
* `HTTP.PUT /comment`
|
377
|
+
* @summary Edit a comment.
|
445
378
|
*/
|
446
379
|
editComment(form, options) {
|
447
380
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
448
381
|
}
|
449
382
|
/**
|
450
|
-
* Delete a comment.
|
451
|
-
*
|
452
|
-
* `HTTP.POST /comment/delete`
|
383
|
+
* @summary Delete a comment.
|
453
384
|
*/
|
454
385
|
deleteComment(form, options) {
|
455
386
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
456
387
|
}
|
457
388
|
/**
|
458
|
-
* A moderator remove for a comment.
|
459
|
-
*
|
460
|
-
* `HTTP.POST /comment/remove`
|
389
|
+
* @summary A moderator remove for a comment.
|
461
390
|
*/
|
462
391
|
removeComment(form, options) {
|
463
392
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
464
393
|
}
|
465
394
|
/**
|
466
|
-
* Mark a comment as read.
|
467
|
-
*
|
468
|
-
* `HTTP.POST /comment/mark_as_read`
|
395
|
+
* @summary Mark a comment as read.
|
469
396
|
*/
|
470
397
|
markCommentReplyAsRead(form, options) {
|
471
398
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
472
399
|
}
|
473
400
|
/**
|
474
|
-
* Like / vote on a comment.
|
475
|
-
*
|
476
|
-
* `HTTP.POST /comment/like`
|
401
|
+
* @summary Like / vote on a comment.
|
477
402
|
*/
|
478
403
|
likeComment(form, options) {
|
479
404
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
480
405
|
}
|
481
406
|
/**
|
482
|
-
* List a comment's likes. Admin-only.
|
483
|
-
*
|
484
|
-
* `HTTP.GET /comment/like/list`
|
407
|
+
* @summary List a comment's likes. Admin-only.
|
485
408
|
*/
|
486
409
|
listCommentLikes(form, options) {
|
487
410
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
488
411
|
}
|
489
412
|
/**
|
490
|
-
* Save a comment.
|
491
|
-
*
|
492
|
-
* `HTTP.PUT /comment/save`
|
413
|
+
* @summary Save a comment.
|
493
414
|
*/
|
494
415
|
saveComment(form, options) {
|
495
416
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
496
417
|
}
|
497
418
|
/**
|
498
|
-
* Distinguishes a comment (speak as moderator)
|
499
|
-
*
|
500
|
-
* `HTTP.POST /comment/distinguish`
|
419
|
+
* @summary Distinguishes a comment (speak as moderator)
|
501
420
|
*/
|
502
421
|
distinguishComment(form, options) {
|
503
422
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
504
423
|
}
|
505
424
|
/**
|
506
|
-
* Get / fetch comments.
|
507
|
-
*
|
508
|
-
* `HTTP.GET /comment/list`
|
425
|
+
* @summary Get / fetch comments.
|
509
426
|
*/
|
510
427
|
getComments(form = {}, options) {
|
511
428
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
512
429
|
}
|
513
430
|
/**
|
514
|
-
* Get / fetch
|
515
|
-
|
516
|
-
|
431
|
+
* @summary Get / fetch comments, but without the post or community.
|
432
|
+
*/
|
433
|
+
getCommentsSlim(form = {}, options) {
|
434
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
435
|
+
}
|
436
|
+
/**
|
437
|
+
* @summary Get / fetch comment.
|
517
438
|
*/
|
518
439
|
getComment(form, options) {
|
519
440
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
520
441
|
}
|
521
442
|
/**
|
522
|
-
* Report a comment.
|
523
|
-
*
|
524
|
-
* `HTTP.POST /comment/report`
|
443
|
+
* @summary Report a comment.
|
525
444
|
*/
|
526
445
|
createCommentReport(form, options) {
|
527
446
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
528
447
|
}
|
529
448
|
/**
|
530
|
-
* Resolve a comment report. Only a mod can do this.
|
531
|
-
*
|
532
|
-
* `HTTP.PUT /comment/report/resolve`
|
449
|
+
* @summary Resolve a comment report. Only a mod can do this.
|
533
450
|
*/
|
534
451
|
resolveCommentReport(form, options) {
|
535
452
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
536
453
|
}
|
537
454
|
/**
|
538
|
-
*
|
539
|
-
*
|
540
|
-
* `HTTP.GET /comment/report/list`
|
541
|
-
*/
|
542
|
-
listCommentReports(form, options) {
|
543
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/report/list", form, options);
|
544
|
-
}
|
545
|
-
/**
|
546
|
-
* Get / fetch private messages.
|
547
|
-
*
|
548
|
-
* `HTTP.GET /private_message/list`
|
549
|
-
*/
|
550
|
-
getPrivateMessages(form, options) {
|
551
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form, options);
|
552
|
-
}
|
553
|
-
/**
|
554
|
-
* Create a private message.
|
555
|
-
*
|
556
|
-
* `HTTP.POST /private_message`
|
455
|
+
* @summary Create a private message.
|
557
456
|
*/
|
558
457
|
createPrivateMessage(form, options) {
|
559
458
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
560
459
|
}
|
561
460
|
/**
|
562
|
-
* Edit a private message.
|
563
|
-
*
|
564
|
-
* `HTTP.PUT /private_message`
|
461
|
+
* @summary Edit a private message.
|
565
462
|
*/
|
566
463
|
editPrivateMessage(form, options) {
|
567
464
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
568
465
|
}
|
569
466
|
/**
|
570
|
-
* Delete a private message.
|
571
|
-
*
|
572
|
-
* `HTTP.POST /private_message/delete`
|
467
|
+
* @summary Delete a private message.
|
573
468
|
*/
|
574
469
|
deletePrivateMessage(form, options) {
|
575
470
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
576
471
|
}
|
577
472
|
/**
|
578
|
-
* Mark a private message as read.
|
579
|
-
*
|
580
|
-
* `HTTP.POST /private_message/mark_as_read`
|
473
|
+
* @summary Mark a private message as read.
|
581
474
|
*/
|
582
475
|
markPrivateMessageAsRead(form, options) {
|
583
476
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
584
477
|
}
|
585
478
|
/**
|
586
|
-
* Create a report for a private message.
|
587
|
-
*
|
588
|
-
* `HTTP.POST /private_message/report`
|
479
|
+
* @summary Create a report for a private message.
|
589
480
|
*/
|
590
481
|
createPrivateMessageReport(form, options) {
|
591
482
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
592
483
|
}
|
593
484
|
/**
|
594
|
-
* Resolve a report for a private message.
|
595
|
-
*
|
596
|
-
* `HTTP.PUT /private_message/report/resolve`
|
485
|
+
* @summary Resolve a report for a private message.
|
597
486
|
*/
|
598
487
|
resolvePrivateMessageReport(form, options) {
|
599
488
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
600
489
|
}
|
601
490
|
/**
|
602
|
-
*
|
603
|
-
*
|
604
|
-
* `HTTP.GET /private_message/report/list`
|
605
|
-
*/
|
606
|
-
listPrivateMessageReports(form, options) {
|
607
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/report/list", form, options);
|
608
|
-
}
|
609
|
-
/**
|
610
|
-
* Register a new user.
|
611
|
-
*
|
612
|
-
* `HTTP.POST /user/register`
|
491
|
+
* @summary Register a new user.
|
613
492
|
*/
|
614
493
|
register(form, options) {
|
615
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
494
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
616
495
|
}
|
617
496
|
/**
|
618
|
-
* Log into lemmy.
|
619
|
-
*
|
620
|
-
* `HTTP.POST /user/login`
|
497
|
+
* @summary Log into lemmy.
|
621
498
|
*/
|
622
499
|
login(form, options) {
|
623
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
500
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
624
501
|
}
|
625
502
|
/**
|
626
|
-
* Invalidate the currently used auth token.
|
627
|
-
*
|
628
|
-
* `HTTP.POST /user/logout`
|
503
|
+
* @summary Invalidate the currently used auth token.
|
629
504
|
*/
|
630
505
|
logout(options) {
|
631
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
506
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
632
507
|
}
|
633
508
|
/**
|
634
|
-
* Get the details for a person.
|
635
|
-
*
|
636
|
-
* `HTTP.GET /user`
|
509
|
+
* @summary Get the details for a person.
|
637
510
|
*/
|
638
511
|
getPersonDetails(form = {}, options) {
|
639
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
512
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
640
513
|
}
|
641
514
|
/**
|
642
|
-
*
|
643
|
-
*
|
644
|
-
* `HTTP.GET /user/mention`
|
515
|
+
* @summary List the content for a person.
|
645
516
|
*/
|
646
|
-
|
647
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
517
|
+
listPersonContent(form = {}, options) {
|
518
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
648
519
|
}
|
649
520
|
/**
|
650
|
-
* Mark a person mention as read.
|
651
|
-
*
|
652
|
-
* `HTTP.POST /user/mention/mark_as_read`
|
521
|
+
* @summary Mark a person mention as read.
|
653
522
|
*/
|
654
|
-
|
655
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
523
|
+
markCommentMentionAsRead(form, options) {
|
524
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
656
525
|
}
|
657
526
|
/**
|
658
|
-
*
|
659
|
-
*
|
660
|
-
* `HTTP.GET /user/replies`
|
527
|
+
* @summary Mark a person post body mention as read.
|
661
528
|
*/
|
662
|
-
|
663
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
529
|
+
markPostMentionAsRead(form, options) {
|
530
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
664
531
|
}
|
665
532
|
/**
|
666
|
-
* Ban a person from your site.
|
667
|
-
*
|
668
|
-
* `HTTP.POST /user/ban`
|
533
|
+
* @summary Ban a person from your site.
|
669
534
|
*/
|
670
535
|
banPerson(form, options) {
|
671
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
536
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
672
537
|
}
|
673
538
|
/**
|
674
|
-
* Get a list of banned users
|
675
|
-
*
|
676
|
-
* `HTTP.GET /user/banned`
|
539
|
+
* @summary Get a list of banned users.
|
677
540
|
*/
|
678
541
|
getBannedPersons(options) {
|
679
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
542
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
|
680
543
|
}
|
681
544
|
/**
|
682
|
-
* Block a person.
|
683
|
-
*
|
684
|
-
* `HTTP.POST /user/block`
|
545
|
+
* @summary Block a person.
|
685
546
|
*/
|
686
547
|
blockPerson(form, options) {
|
687
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
548
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
688
549
|
}
|
689
550
|
/**
|
690
|
-
* Fetch a Captcha.
|
691
|
-
*
|
692
|
-
* `HTTP.GET /user/get_captcha`
|
551
|
+
* @summary Fetch a Captcha.
|
693
552
|
*/
|
694
553
|
getCaptcha(options) {
|
695
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
554
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
696
555
|
}
|
697
556
|
/**
|
698
|
-
* Delete your account.
|
699
|
-
*
|
700
|
-
* `HTTP.POST /user/delete_account`
|
557
|
+
* @summary Delete your account.
|
701
558
|
*/
|
702
559
|
deleteAccount(form, options) {
|
703
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
560
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
704
561
|
}
|
705
562
|
/**
|
706
|
-
* Reset your password.
|
707
|
-
*
|
708
|
-
* `HTTP.POST /user/password_reset`
|
563
|
+
* @summary Reset your password.
|
709
564
|
*/
|
710
565
|
passwordReset(form, options) {
|
711
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
566
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
712
567
|
}
|
713
568
|
/**
|
714
|
-
* Change your password from an email / token based reset.
|
715
|
-
*
|
716
|
-
* `HTTP.POST /user/password_change`
|
569
|
+
* @summary Change your password from an email / token based reset.
|
717
570
|
*/
|
718
571
|
passwordChangeAfterReset(form, options) {
|
719
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
572
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
720
573
|
}
|
721
574
|
/**
|
722
|
-
* Mark all replies as read.
|
723
|
-
*
|
724
|
-
* `HTTP.POST /user/mark_all_as_read`
|
575
|
+
* @summary Mark all replies as read.
|
725
576
|
*/
|
726
|
-
|
727
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
577
|
+
markAllNotificationsAsRead(options) {
|
578
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
728
579
|
}
|
729
580
|
/**
|
730
|
-
* Save your user settings.
|
731
|
-
*
|
732
|
-
* `HTTP.PUT /user/save_user_settings`
|
581
|
+
* @summary Save your user settings.
|
733
582
|
*/
|
734
583
|
saveUserSettings(form, options) {
|
735
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/
|
584
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
736
585
|
}
|
737
586
|
/**
|
738
|
-
* Change your user password.
|
739
|
-
*
|
740
|
-
* `HTTP.PUT /user/change_password`
|
587
|
+
* @summary Change your user password.
|
741
588
|
*/
|
742
589
|
changePassword(form, options) {
|
743
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/
|
590
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
744
591
|
}
|
745
592
|
/**
|
746
|
-
* Get counts for your reports
|
747
|
-
*
|
748
|
-
* `HTTP.GET /user/report_count`
|
593
|
+
* @summary Get counts for your reports.
|
749
594
|
*/
|
750
595
|
getReportCount(form, options) {
|
751
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
596
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
752
597
|
}
|
753
598
|
/**
|
754
|
-
* Get your unread counts
|
755
|
-
*
|
756
|
-
* `HTTP.GET /user/unread_count`
|
599
|
+
* @summary Get your unread counts.
|
757
600
|
*/
|
758
601
|
getUnreadCount(options) {
|
759
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
602
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
760
603
|
}
|
761
604
|
/**
|
762
|
-
*
|
763
|
-
|
764
|
-
|
605
|
+
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
606
|
+
*/
|
607
|
+
listInbox(form, options) {
|
608
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
|
609
|
+
}
|
610
|
+
/**
|
611
|
+
* @summary Verify your email
|
765
612
|
*/
|
766
613
|
verifyEmail(form, options) {
|
767
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
614
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
768
615
|
}
|
769
616
|
/**
|
770
|
-
*
|
771
|
-
|
772
|
-
|
617
|
+
* @summary List your saved content.
|
618
|
+
*/
|
619
|
+
listPersonSaved(form, options) {
|
620
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
|
621
|
+
}
|
622
|
+
/**
|
623
|
+
* @summary Add an admin to your site.
|
773
624
|
*/
|
774
625
|
addAdmin(form, options) {
|
775
626
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
776
627
|
}
|
777
628
|
/**
|
778
|
-
* Get the unread registration applications count.
|
779
|
-
*
|
780
|
-
* `HTTP.GET /admin/registration_application/count`
|
629
|
+
* @summary Get the unread registration applications count.
|
781
630
|
*/
|
782
631
|
getUnreadRegistrationApplicationCount(options) {
|
783
632
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
784
633
|
}
|
785
634
|
/**
|
786
|
-
* List the registration applications.
|
787
|
-
*
|
788
|
-
* `HTTP.GET /admin/registration_application/list`
|
635
|
+
* @summary List the registration applications.
|
789
636
|
*/
|
790
637
|
listRegistrationApplications(form, options) {
|
791
638
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
792
639
|
}
|
793
640
|
/**
|
794
|
-
* Approve a registration application
|
795
|
-
*
|
796
|
-
* `HTTP.PUT /admin/registration_application/approve`
|
641
|
+
* @summary Approve a registration application
|
797
642
|
*/
|
798
643
|
approveRegistrationApplication(form, options) {
|
799
644
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
800
645
|
}
|
801
646
|
/**
|
802
|
-
* Get the application a user submitted when they first registered their account
|
803
|
-
*
|
804
|
-
* `HTTP.GET /admin/registration_application`
|
647
|
+
* @summary Get the application a user submitted when they first registered their account
|
805
648
|
*/
|
806
649
|
getRegistrationApplication(form, options) {
|
807
650
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
808
651
|
}
|
809
652
|
/**
|
810
|
-
* Purge / Delete a person from the database.
|
811
|
-
*
|
812
|
-
* `HTTP.POST /admin/purge/person`
|
653
|
+
* @summary Purge / Delete a person from the database.
|
813
654
|
*/
|
814
655
|
purgePerson(form, options) {
|
815
656
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
816
657
|
}
|
817
658
|
/**
|
818
|
-
* Purge / Delete a community from the database.
|
819
|
-
*
|
820
|
-
* `HTTP.POST /admin/purge/community`
|
659
|
+
* @summary Purge / Delete a community from the database.
|
821
660
|
*/
|
822
661
|
purgeCommunity(form, options) {
|
823
662
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
824
663
|
}
|
825
664
|
/**
|
826
|
-
* Purge / Delete a post from the database.
|
827
|
-
*
|
828
|
-
* `HTTP.POST /admin/purge/post`
|
665
|
+
* @summary Purge / Delete a post from the database.
|
829
666
|
*/
|
830
667
|
purgePost(form, options) {
|
831
668
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
832
669
|
}
|
833
670
|
/**
|
834
|
-
* Purge / Delete a comment from the database.
|
835
|
-
*
|
836
|
-
* `HTTP.POST /admin/purge/comment`
|
671
|
+
* @summary Purge / Delete a comment from the database.
|
837
672
|
*/
|
838
673
|
purgeComment(form, options) {
|
839
674
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
840
675
|
}
|
841
676
|
/**
|
842
|
-
* Create a new custom emoji
|
843
|
-
*
|
844
|
-
* `HTTP.POST /custom_emoji`
|
677
|
+
* @summary Create a new custom emoji.
|
845
678
|
*/
|
846
679
|
createCustomEmoji(form, options) {
|
847
680
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
848
681
|
}
|
849
682
|
/**
|
850
|
-
* Edit an existing custom emoji
|
851
|
-
*
|
852
|
-
* `HTTP.PUT /custom_emoji`
|
683
|
+
* @summary Edit an existing custom emoji.
|
853
684
|
*/
|
854
685
|
editCustomEmoji(form, options) {
|
855
686
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
856
687
|
}
|
857
688
|
/**
|
858
|
-
* Delete a custom emoji
|
859
|
-
*
|
860
|
-
* `HTTP.Post /custom_emoji/delete`
|
689
|
+
* @summary Delete a custom emoji.
|
861
690
|
*/
|
862
691
|
deleteCustomEmoji(form, options) {
|
863
692
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
864
693
|
}
|
865
694
|
/**
|
866
|
-
* List custom emojis
|
867
|
-
*
|
868
|
-
* `HTTP.GET /custom_emoji/list`
|
695
|
+
* @summary List custom emojis
|
869
696
|
*/
|
870
697
|
listCustomEmojis(form, options) {
|
871
698
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
872
699
|
}
|
873
700
|
/**
|
874
|
-
* Create a new tagline
|
875
|
-
*
|
876
|
-
* `HTTP.POST /admin/tagline`
|
701
|
+
* @summary Create a new tagline
|
877
702
|
*/
|
878
703
|
createTagline(form, options) {
|
879
704
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
880
705
|
}
|
881
706
|
/**
|
882
|
-
* Edit an existing tagline
|
883
|
-
*
|
884
|
-
* `HTTP.PUT /admin/tagline`
|
707
|
+
* @summary Edit an existing tagline
|
885
708
|
*/
|
886
709
|
editTagline(form, options) {
|
887
710
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
888
711
|
}
|
889
712
|
/**
|
890
|
-
* Delete a tagline
|
891
|
-
*
|
892
|
-
* `HTTP.Post /admin/tagline/delete`
|
713
|
+
* @summary Delete a tagline
|
893
714
|
*/
|
894
715
|
deleteTagline(form, options) {
|
895
716
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
896
717
|
}
|
897
718
|
/**
|
898
|
-
* List taglines
|
899
|
-
*
|
900
|
-
* `HTTP.GET /admin/tagline/list`
|
719
|
+
* @summary List taglines.
|
901
720
|
*/
|
902
721
|
listTaglines(form, options) {
|
903
722
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
904
723
|
}
|
905
724
|
/**
|
906
|
-
* Create a new oauth provider method
|
907
|
-
*
|
908
|
-
* `HTTP.POST /oauth_provider`
|
725
|
+
* @summary Create a new oauth provider method
|
909
726
|
*/
|
910
727
|
createOAuthProvider(form, options) {
|
911
728
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
912
729
|
}
|
913
730
|
/**
|
914
|
-
* Edit an existing oauth provider method
|
915
|
-
*
|
916
|
-
* `HTTP.PUT /oauth_provider`
|
731
|
+
* @summary Edit an existing oauth provider method
|
917
732
|
*/
|
918
733
|
editOAuthProvider(form, options) {
|
919
734
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
920
735
|
}
|
921
736
|
/**
|
922
|
-
* Delete an oauth provider method
|
923
|
-
*
|
924
|
-
* `HTTP.Post /oauth_provider/delete`
|
737
|
+
* @summary Delete an oauth provider method
|
925
738
|
*/
|
926
739
|
deleteOAuthProvider(form, options) {
|
927
740
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
928
741
|
}
|
929
742
|
/**
|
930
|
-
* Authenticate with OAuth
|
931
|
-
*
|
932
|
-
* `HTTP.Post /oauth/authenticate`
|
743
|
+
* @summary Authenticate with OAuth
|
933
744
|
*/
|
934
745
|
authenticateWithOAuth(form, options) {
|
935
746
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
936
747
|
}
|
937
748
|
/**
|
938
|
-
* Fetch federated instances.
|
939
|
-
*
|
940
|
-
* `HTTP.Get /federated_instances`
|
749
|
+
* @summary Fetch federated instances.
|
941
750
|
*/
|
942
751
|
getFederatedInstances(options) {
|
943
752
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
944
753
|
}
|
945
754
|
/**
|
946
|
-
*
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
755
|
+
* @summary List user reports.
|
756
|
+
*/
|
757
|
+
listReports(form, options) {
|
758
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
759
|
+
}
|
760
|
+
/**
|
761
|
+
* @summary Block an instance as user.
|
762
|
+
*/
|
763
|
+
userBlockInstance(form, options) {
|
764
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
765
|
+
}
|
766
|
+
/**
|
767
|
+
* @summary Globally block an instance as admin.
|
768
|
+
*/
|
769
|
+
adminBlockInstance(form, options) {
|
770
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
771
|
+
}
|
772
|
+
/**
|
773
|
+
* @summary Globally allow an instance as admin.
|
774
|
+
*/
|
775
|
+
adminAllowInstance(form, options) {
|
776
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
777
|
+
}
|
778
|
+
/**
|
779
|
+
* @summary Upload new user avatar.
|
780
|
+
*/
|
781
|
+
uploadUserAvatar(image, options) {
|
782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
783
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
|
973
784
|
});
|
974
785
|
}
|
975
786
|
/**
|
976
|
-
* Delete
|
787
|
+
* @summary Delete the user avatar.
|
977
788
|
*/
|
978
|
-
|
979
|
-
return __awaiter(this,
|
980
|
-
|
981
|
-
|
982
|
-
|
789
|
+
deleteUserAvatar(options) {
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
791
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
|
792
|
+
});
|
793
|
+
}
|
794
|
+
/**
|
795
|
+
* @summary Upload new user banner.
|
796
|
+
*/
|
797
|
+
uploadUserBanner(image, options) {
|
798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
799
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
|
800
|
+
});
|
801
|
+
}
|
802
|
+
/**
|
803
|
+
* @summary Delete the user banner.
|
804
|
+
*/
|
805
|
+
deleteUserBanner(options) {
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
807
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
|
808
|
+
});
|
809
|
+
}
|
810
|
+
/**
|
811
|
+
* @summary Upload new community icon.
|
812
|
+
*/
|
813
|
+
uploadCommunityIcon(image, options) {
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
815
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
|
816
|
+
});
|
817
|
+
}
|
818
|
+
/**
|
819
|
+
* @summary Delete the community icon.
|
820
|
+
*/
|
821
|
+
deleteCommunityIcon(options) {
|
822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
823
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
|
824
|
+
});
|
825
|
+
}
|
826
|
+
/**
|
827
|
+
* @summary Upload new community banner.
|
828
|
+
*/
|
829
|
+
uploadCommunityBanner(image, options) {
|
830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
831
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
|
832
|
+
});
|
833
|
+
}
|
834
|
+
/**
|
835
|
+
* @summary Delete the community banner.
|
836
|
+
*/
|
837
|
+
deleteCommunityBanner(options) {
|
838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
839
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
|
840
|
+
});
|
841
|
+
}
|
842
|
+
/**
|
843
|
+
* @summary Upload new site icon.
|
844
|
+
*/
|
845
|
+
uploadSiteIcon(image, options) {
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
847
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
|
848
|
+
});
|
849
|
+
}
|
850
|
+
/**
|
851
|
+
* @summary Delete the site icon.
|
852
|
+
*/
|
853
|
+
deleteSiteIcon(options) {
|
854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
855
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
|
856
|
+
});
|
857
|
+
}
|
858
|
+
/**
|
859
|
+
* @summary Upload new site banner.
|
860
|
+
*/
|
861
|
+
uploadSiteBanner(image, options) {
|
862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
863
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
|
864
|
+
});
|
865
|
+
}
|
866
|
+
/**
|
867
|
+
* @summary Delete the site banner.
|
868
|
+
*/
|
869
|
+
deleteSiteBanner(options) {
|
870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
871
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
|
872
|
+
});
|
873
|
+
}
|
874
|
+
/**
|
875
|
+
* @summary Upload an image to the server.
|
876
|
+
*/
|
877
|
+
uploadImage(image, options) {
|
878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
879
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
880
|
+
});
|
881
|
+
}
|
882
|
+
/**
|
883
|
+
* @summary Delete a pictrs image
|
884
|
+
*/
|
885
|
+
deleteImage(form, options) {
|
886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
887
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
888
|
+
});
|
889
|
+
}
|
890
|
+
/**
|
891
|
+
* @summary Health check for image functionality
|
892
|
+
*/
|
893
|
+
imageHealth(options) {
|
894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
895
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
|
983
896
|
});
|
984
897
|
}
|
985
898
|
/**
|
@@ -988,11 +901,23 @@ class LemmyHttp {
|
|
988
901
|
setHeaders(headers) {
|
989
902
|
__classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
|
990
903
|
}
|
991
|
-
}
|
904
|
+
};
|
992
905
|
exports.LemmyHttp = LemmyHttp;
|
993
|
-
_LemmyHttp_apiUrl = new WeakMap()
|
906
|
+
_LemmyHttp_apiUrl = new WeakMap();
|
907
|
+
_LemmyHttp_headers = new WeakMap();
|
908
|
+
_LemmyHttp_fetchFunction = new WeakMap();
|
909
|
+
_LemmyHttp_instances = new WeakSet();
|
910
|
+
_LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
|
994
911
|
return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
|
995
|
-
}
|
912
|
+
};
|
913
|
+
_LemmyHttp_upload = function _LemmyHttp_upload(path_1, _a, options_1) {
|
914
|
+
return __awaiter(this, arguments, void 0, function* (path, { image }, options) {
|
915
|
+
const formData = createFormData(image);
|
916
|
+
const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
|
917
|
+
return response.json();
|
918
|
+
});
|
919
|
+
};
|
920
|
+
_LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
|
996
921
|
return __awaiter(this, void 0, void 0, function* () {
|
997
922
|
var _a;
|
998
923
|
let response;
|
@@ -1018,6 +943,923 @@ _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHtt
|
|
1018
943
|
}
|
1019
944
|
});
|
1020
945
|
};
|
946
|
+
__decorate([
|
947
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
948
|
+
(0, tsoa_1.Security)({}),
|
949
|
+
(0, tsoa_1.Get)("/site"),
|
950
|
+
(0, tsoa_1.Tags)("Site"),
|
951
|
+
__param(0, (0, tsoa_1.Inject)())
|
952
|
+
], LemmyHttp.prototype, "getSite", null);
|
953
|
+
__decorate([
|
954
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
955
|
+
(0, tsoa_1.Post)("/site"),
|
956
|
+
(0, tsoa_1.Tags)("Site"),
|
957
|
+
__param(0, (0, tsoa_1.Body)()),
|
958
|
+
__param(1, (0, tsoa_1.Inject)())
|
959
|
+
], LemmyHttp.prototype, "createSite", null);
|
960
|
+
__decorate([
|
961
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
962
|
+
(0, tsoa_1.Put)("/site"),
|
963
|
+
(0, tsoa_1.Tags)("Site"),
|
964
|
+
__param(0, (0, tsoa_1.Body)()),
|
965
|
+
__param(1, (0, tsoa_1.Inject)())
|
966
|
+
], LemmyHttp.prototype, "editSite", null);
|
967
|
+
__decorate([
|
968
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
969
|
+
(0, tsoa_1.Post)("/admin/leave"),
|
970
|
+
(0, tsoa_1.Tags)("Admin"),
|
971
|
+
__param(0, (0, tsoa_1.Inject)())
|
972
|
+
], LemmyHttp.prototype, "leaveAdmin", null);
|
973
|
+
__decorate([
|
974
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
975
|
+
(0, tsoa_1.Post)("/account/auth/totp/generate"),
|
976
|
+
(0, tsoa_1.Tags)("Account"),
|
977
|
+
__param(0, (0, tsoa_1.Inject)())
|
978
|
+
], LemmyHttp.prototype, "generateTotpSecret", null);
|
979
|
+
__decorate([
|
980
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
981
|
+
(0, tsoa_1.Get)("/account"),
|
982
|
+
(0, tsoa_1.Tags)("Account"),
|
983
|
+
__param(0, (0, tsoa_1.Inject)())
|
984
|
+
], LemmyHttp.prototype, "getMyUser", null);
|
985
|
+
__decorate([
|
986
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
987
|
+
(0, tsoa_1.Get)("/account/settings/export"),
|
988
|
+
(0, tsoa_1.Tags)("Account"),
|
989
|
+
__param(0, (0, tsoa_1.Inject)())
|
990
|
+
], LemmyHttp.prototype, "exportSettings", null);
|
991
|
+
__decorate([
|
992
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
993
|
+
(0, tsoa_1.Post)("/account/settings/import"),
|
994
|
+
(0, tsoa_1.Tags)("Account"),
|
995
|
+
__param(0, (0, tsoa_1.Body)()),
|
996
|
+
__param(1, (0, tsoa_1.Inject)())
|
997
|
+
], LemmyHttp.prototype, "importSettings", null);
|
998
|
+
__decorate([
|
999
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1000
|
+
(0, tsoa_1.Get)("/account/list_logins"),
|
1001
|
+
(0, tsoa_1.Tags)("Account"),
|
1002
|
+
__param(0, (0, tsoa_1.Inject)())
|
1003
|
+
], LemmyHttp.prototype, "listLogins", null);
|
1004
|
+
__decorate([
|
1005
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1006
|
+
(0, tsoa_1.Get)("/account/validate_auth"),
|
1007
|
+
(0, tsoa_1.Tags)("Account"),
|
1008
|
+
__param(0, (0, tsoa_1.Inject)())
|
1009
|
+
], LemmyHttp.prototype, "validateAuth", null);
|
1010
|
+
__decorate([
|
1011
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1012
|
+
(0, tsoa_1.Get)("/account/list_media"),
|
1013
|
+
(0, tsoa_1.Tags)("Account", "Media"),
|
1014
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1015
|
+
__param(1, (0, tsoa_1.Inject)())
|
1016
|
+
], LemmyHttp.prototype, "listMedia", null);
|
1017
|
+
__decorate([
|
1018
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1019
|
+
(0, tsoa_1.Get)("/admin/list_all_media"),
|
1020
|
+
(0, tsoa_1.Tags)("Admin", "Media"),
|
1021
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1022
|
+
__param(1, (0, tsoa_1.Inject)())
|
1023
|
+
], LemmyHttp.prototype, "listAllMedia", null);
|
1024
|
+
__decorate([
|
1025
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1026
|
+
(0, tsoa_1.Post)("/account/auth/totp/update"),
|
1027
|
+
(0, tsoa_1.Tags)("Account"),
|
1028
|
+
__param(0, (0, tsoa_1.Body)()),
|
1029
|
+
__param(1, (0, tsoa_1.Inject)())
|
1030
|
+
], LemmyHttp.prototype, "updateTotp", null);
|
1031
|
+
__decorate([
|
1032
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1033
|
+
(0, tsoa_1.Security)({}),
|
1034
|
+
(0, tsoa_1.Get)("/modlog"),
|
1035
|
+
(0, tsoa_1.Tags)("Miscellaneous"),
|
1036
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1037
|
+
__param(1, (0, tsoa_1.Inject)())
|
1038
|
+
], LemmyHttp.prototype, "getModlog", null);
|
1039
|
+
__decorate([
|
1040
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1041
|
+
(0, tsoa_1.Security)({}),
|
1042
|
+
(0, tsoa_1.Get)("/search"),
|
1043
|
+
(0, tsoa_1.Tags)("Miscellaneous"),
|
1044
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1045
|
+
__param(1, (0, tsoa_1.Inject)())
|
1046
|
+
], LemmyHttp.prototype, "search", null);
|
1047
|
+
__decorate([
|
1048
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1049
|
+
(0, tsoa_1.Security)({}),
|
1050
|
+
(0, tsoa_1.Get)("/resolve_object"),
|
1051
|
+
(0, tsoa_1.Tags)("Miscellaneous"),
|
1052
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1053
|
+
__param(1, (0, tsoa_1.Inject)())
|
1054
|
+
], LemmyHttp.prototype, "resolveObject", null);
|
1055
|
+
__decorate([
|
1056
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1057
|
+
(0, tsoa_1.Post)("/community"),
|
1058
|
+
(0, tsoa_1.Tags)("Community"),
|
1059
|
+
__param(0, (0, tsoa_1.Body)()),
|
1060
|
+
__param(1, (0, tsoa_1.Inject)())
|
1061
|
+
], LemmyHttp.prototype, "createCommunity", null);
|
1062
|
+
__decorate([
|
1063
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1064
|
+
(0, tsoa_1.Security)({}),
|
1065
|
+
(0, tsoa_1.Get)("/community"),
|
1066
|
+
(0, tsoa_1.Tags)("Community"),
|
1067
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1068
|
+
__param(1, (0, tsoa_1.Inject)())
|
1069
|
+
], LemmyHttp.prototype, "getCommunity", null);
|
1070
|
+
__decorate([
|
1071
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1072
|
+
(0, tsoa_1.Put)("/community"),
|
1073
|
+
(0, tsoa_1.Tags)("Community"),
|
1074
|
+
__param(0, (0, tsoa_1.Body)()),
|
1075
|
+
__param(1, (0, tsoa_1.Inject)())
|
1076
|
+
], LemmyHttp.prototype, "editCommunity", null);
|
1077
|
+
__decorate([
|
1078
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1079
|
+
(0, tsoa_1.Security)({}),
|
1080
|
+
(0, tsoa_1.Get)("/community/list"),
|
1081
|
+
(0, tsoa_1.Tags)("Community"),
|
1082
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1083
|
+
__param(1, (0, tsoa_1.Inject)())
|
1084
|
+
], LemmyHttp.prototype, "listCommunities", null);
|
1085
|
+
__decorate([
|
1086
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1087
|
+
(0, tsoa_1.Post)("/community/follow"),
|
1088
|
+
(0, tsoa_1.Tags)("Community"),
|
1089
|
+
__param(0, (0, tsoa_1.Body)()),
|
1090
|
+
__param(1, (0, tsoa_1.Inject)()),
|
1091
|
+
__param(1, (0, tsoa_1.Inject)())
|
1092
|
+
], LemmyHttp.prototype, "followCommunity", null);
|
1093
|
+
__decorate([
|
1094
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1095
|
+
(0, tsoa_1.Get)("/community/pending_follows/count"),
|
1096
|
+
(0, tsoa_1.Tags)("Community"),
|
1097
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1098
|
+
__param(1, (0, tsoa_1.Inject)())
|
1099
|
+
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
1100
|
+
__decorate([
|
1101
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1102
|
+
(0, tsoa_1.Get)("/community/pending_follows/list"),
|
1103
|
+
(0, tsoa_1.Tags)("Community"),
|
1104
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1105
|
+
__param(1, (0, tsoa_1.Inject)())
|
1106
|
+
], LemmyHttp.prototype, "listCommunityPendingFollows", null);
|
1107
|
+
__decorate([
|
1108
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1109
|
+
(0, tsoa_1.Post)("/community/pending_follows/approve"),
|
1110
|
+
(0, tsoa_1.Tags)("Community"),
|
1111
|
+
__param(0, (0, tsoa_1.Body)()),
|
1112
|
+
__param(1, (0, tsoa_1.Inject)())
|
1113
|
+
], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
|
1114
|
+
__decorate([
|
1115
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1116
|
+
(0, tsoa_1.Post)("/account/block/community"),
|
1117
|
+
(0, tsoa_1.Tags)("Account", "Community"),
|
1118
|
+
__param(0, (0, tsoa_1.Body)()),
|
1119
|
+
__param(1, (0, tsoa_1.Inject)())
|
1120
|
+
], LemmyHttp.prototype, "blockCommunity", null);
|
1121
|
+
__decorate([
|
1122
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1123
|
+
(0, tsoa_1.Post)("/community/delete"),
|
1124
|
+
(0, tsoa_1.Tags)("Community"),
|
1125
|
+
__param(0, (0, tsoa_1.Body)()),
|
1126
|
+
__param(1, (0, tsoa_1.Inject)())
|
1127
|
+
], LemmyHttp.prototype, "deleteCommunity", null);
|
1128
|
+
__decorate([
|
1129
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1130
|
+
(0, tsoa_1.Put)("/community/hide"),
|
1131
|
+
(0, tsoa_1.Tags)("Community", "Admin"),
|
1132
|
+
__param(0, (0, tsoa_1.Body)()),
|
1133
|
+
__param(1, (0, tsoa_1.Inject)())
|
1134
|
+
], LemmyHttp.prototype, "hideCommunity", null);
|
1135
|
+
__decorate([
|
1136
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1137
|
+
(0, tsoa_1.Post)("/community/remove"),
|
1138
|
+
(0, tsoa_1.Tags)("Community", "Moderator"),
|
1139
|
+
__param(0, (0, tsoa_1.Body)()),
|
1140
|
+
__param(1, (0, tsoa_1.Inject)())
|
1141
|
+
], LemmyHttp.prototype, "removeCommunity", null);
|
1142
|
+
__decorate([
|
1143
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1144
|
+
(0, tsoa_1.Post)("/community/transfer"),
|
1145
|
+
(0, tsoa_1.Tags)("Community", "Moderator"),
|
1146
|
+
__param(0, (0, tsoa_1.Body)()),
|
1147
|
+
__param(1, (0, tsoa_1.Inject)())
|
1148
|
+
], LemmyHttp.prototype, "transferCommunity", null);
|
1149
|
+
__decorate([
|
1150
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1151
|
+
(0, tsoa_1.Post)("/community/ban_user"),
|
1152
|
+
(0, tsoa_1.Tags)("Community", "Moderator"),
|
1153
|
+
__param(0, (0, tsoa_1.Body)()),
|
1154
|
+
__param(1, (0, tsoa_1.Inject)())
|
1155
|
+
], LemmyHttp.prototype, "banFromCommunity", null);
|
1156
|
+
__decorate([
|
1157
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1158
|
+
(0, tsoa_1.Post)("/community/mod"),
|
1159
|
+
(0, tsoa_1.Tags)("Community", "Moderator"),
|
1160
|
+
__param(0, (0, tsoa_1.Body)()),
|
1161
|
+
__param(1, (0, tsoa_1.Inject)())
|
1162
|
+
], LemmyHttp.prototype, "addModToCommunity", null);
|
1163
|
+
__decorate([
|
1164
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1165
|
+
(0, tsoa_1.Security)({}),
|
1166
|
+
(0, tsoa_1.Get)("/community/random"),
|
1167
|
+
(0, tsoa_1.Tags)("Community"),
|
1168
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1169
|
+
__param(1, (0, tsoa_1.Inject)())
|
1170
|
+
], LemmyHttp.prototype, "getRandomCommunity", null);
|
1171
|
+
__decorate([
|
1172
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1173
|
+
(0, tsoa_1.Post)("/post"),
|
1174
|
+
(0, tsoa_1.Tags)("Post"),
|
1175
|
+
__param(0, (0, tsoa_1.Body)()),
|
1176
|
+
__param(1, (0, tsoa_1.Inject)())
|
1177
|
+
], LemmyHttp.prototype, "createPost", null);
|
1178
|
+
__decorate([
|
1179
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1180
|
+
(0, tsoa_1.Security)({}),
|
1181
|
+
(0, tsoa_1.Get)("/post"),
|
1182
|
+
(0, tsoa_1.Tags)("Post"),
|
1183
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1184
|
+
__param(1, (0, tsoa_1.Inject)())
|
1185
|
+
], LemmyHttp.prototype, "getPost", null);
|
1186
|
+
__decorate([
|
1187
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1188
|
+
(0, tsoa_1.Put)("/post"),
|
1189
|
+
(0, tsoa_1.Tags)("Post"),
|
1190
|
+
__param(0, (0, tsoa_1.Body)()),
|
1191
|
+
__param(1, (0, tsoa_1.Inject)())
|
1192
|
+
], LemmyHttp.prototype, "editPost", null);
|
1193
|
+
__decorate([
|
1194
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1195
|
+
(0, tsoa_1.Post)("/post/delete"),
|
1196
|
+
(0, tsoa_1.Tags)("Post"),
|
1197
|
+
__param(0, (0, tsoa_1.Body)()),
|
1198
|
+
__param(1, (0, tsoa_1.Inject)())
|
1199
|
+
], LemmyHttp.prototype, "deletePost", null);
|
1200
|
+
__decorate([
|
1201
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1202
|
+
(0, tsoa_1.Post)("/post/remove"),
|
1203
|
+
(0, tsoa_1.Tags)("Post", "Moderator"),
|
1204
|
+
__param(0, (0, tsoa_1.Body)()),
|
1205
|
+
__param(1, (0, tsoa_1.Inject)())
|
1206
|
+
], LemmyHttp.prototype, "removePost", null);
|
1207
|
+
__decorate([
|
1208
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1209
|
+
(0, tsoa_1.Post)("/post/mark_as_read"),
|
1210
|
+
(0, tsoa_1.Tags)("Post"),
|
1211
|
+
__param(0, (0, tsoa_1.Body)()),
|
1212
|
+
__param(1, (0, tsoa_1.Inject)())
|
1213
|
+
], LemmyHttp.prototype, "markPostAsRead", null);
|
1214
|
+
__decorate([
|
1215
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1216
|
+
(0, tsoa_1.Post)("/post/mark_as_read/many"),
|
1217
|
+
(0, tsoa_1.Tags)("Post"),
|
1218
|
+
__param(0, (0, tsoa_1.Body)()),
|
1219
|
+
__param(1, (0, tsoa_1.Inject)())
|
1220
|
+
], LemmyHttp.prototype, "markManyPostAsRead", null);
|
1221
|
+
__decorate([
|
1222
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1223
|
+
(0, tsoa_1.Post)("/post/hide"),
|
1224
|
+
(0, tsoa_1.Tags)("Post"),
|
1225
|
+
__param(0, (0, tsoa_1.Body)()),
|
1226
|
+
__param(1, (0, tsoa_1.Inject)())
|
1227
|
+
], LemmyHttp.prototype, "hidePost", null);
|
1228
|
+
__decorate([
|
1229
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1230
|
+
(0, tsoa_1.Post)("/post/lock"),
|
1231
|
+
(0, tsoa_1.Tags)("Post"),
|
1232
|
+
__param(0, (0, tsoa_1.Body)()),
|
1233
|
+
__param(1, (0, tsoa_1.Inject)())
|
1234
|
+
], LemmyHttp.prototype, "lockPost", null);
|
1235
|
+
__decorate([
|
1236
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1237
|
+
(0, tsoa_1.Post)("/post/feature"),
|
1238
|
+
(0, tsoa_1.Tags)("Post", "Moderator"),
|
1239
|
+
__param(0, (0, tsoa_1.Body)()),
|
1240
|
+
__param(1, (0, tsoa_1.Inject)())
|
1241
|
+
], LemmyHttp.prototype, "featurePost", null);
|
1242
|
+
__decorate([
|
1243
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1244
|
+
(0, tsoa_1.Security)({}),
|
1245
|
+
(0, tsoa_1.Get)("/post/list"),
|
1246
|
+
(0, tsoa_1.Tags)("Post"),
|
1247
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1248
|
+
__param(1, (0, tsoa_1.Inject)())
|
1249
|
+
], LemmyHttp.prototype, "getPosts", null);
|
1250
|
+
__decorate([
|
1251
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1252
|
+
(0, tsoa_1.Post)("/post/like"),
|
1253
|
+
(0, tsoa_1.Tags)("Post"),
|
1254
|
+
__param(0, (0, tsoa_1.Body)()),
|
1255
|
+
__param(1, (0, tsoa_1.Inject)())
|
1256
|
+
], LemmyHttp.prototype, "likePost", null);
|
1257
|
+
__decorate([
|
1258
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1259
|
+
(0, tsoa_1.Get)("/post/like/list"),
|
1260
|
+
(0, tsoa_1.Tags)("Post", "Admin"),
|
1261
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1262
|
+
__param(1, (0, tsoa_1.Inject)())
|
1263
|
+
], LemmyHttp.prototype, "listPostLikes", null);
|
1264
|
+
__decorate([
|
1265
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1266
|
+
(0, tsoa_1.Put)("/post/save"),
|
1267
|
+
(0, tsoa_1.Tags)("Post"),
|
1268
|
+
__param(0, (0, tsoa_1.Body)()),
|
1269
|
+
__param(1, (0, tsoa_1.Inject)())
|
1270
|
+
], LemmyHttp.prototype, "savePost", null);
|
1271
|
+
__decorate([
|
1272
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1273
|
+
(0, tsoa_1.Post)("/post/report"),
|
1274
|
+
(0, tsoa_1.Tags)("Post"),
|
1275
|
+
__param(0, (0, tsoa_1.Body)()),
|
1276
|
+
__param(1, (0, tsoa_1.Inject)())
|
1277
|
+
], LemmyHttp.prototype, "createPostReport", null);
|
1278
|
+
__decorate([
|
1279
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1280
|
+
(0, tsoa_1.Put)("/post/report/resolve"),
|
1281
|
+
(0, tsoa_1.Tags)("Post", "Moderator"),
|
1282
|
+
__param(0, (0, tsoa_1.Body)()),
|
1283
|
+
__param(1, (0, tsoa_1.Inject)())
|
1284
|
+
], LemmyHttp.prototype, "resolvePostReport", null);
|
1285
|
+
__decorate([
|
1286
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1287
|
+
(0, tsoa_1.Get)("/post/site_metadata"),
|
1288
|
+
(0, tsoa_1.Tags)("Miscellaneous", "Post"),
|
1289
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1290
|
+
__param(1, (0, tsoa_1.Inject)())
|
1291
|
+
], LemmyHttp.prototype, "getSiteMetadata", null);
|
1292
|
+
__decorate([
|
1293
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1294
|
+
(0, tsoa_1.Post)("/comment"),
|
1295
|
+
(0, tsoa_1.Tags)("Comment"),
|
1296
|
+
__param(0, (0, tsoa_1.Body)()),
|
1297
|
+
__param(1, (0, tsoa_1.Inject)())
|
1298
|
+
], LemmyHttp.prototype, "createComment", null);
|
1299
|
+
__decorate([
|
1300
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1301
|
+
(0, tsoa_1.Put)("/comment"),
|
1302
|
+
(0, tsoa_1.Tags)("Comment"),
|
1303
|
+
__param(0, (0, tsoa_1.Body)()),
|
1304
|
+
__param(1, (0, tsoa_1.Inject)())
|
1305
|
+
], LemmyHttp.prototype, "editComment", null);
|
1306
|
+
__decorate([
|
1307
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1308
|
+
(0, tsoa_1.Post)("/comment/delete"),
|
1309
|
+
(0, tsoa_1.Tags)("Comment"),
|
1310
|
+
__param(0, (0, tsoa_1.Body)()),
|
1311
|
+
__param(1, (0, tsoa_1.Inject)())
|
1312
|
+
], LemmyHttp.prototype, "deleteComment", null);
|
1313
|
+
__decorate([
|
1314
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1315
|
+
(0, tsoa_1.Post)("/comment/remove"),
|
1316
|
+
(0, tsoa_1.Tags)("Comment", "Moderator"),
|
1317
|
+
__param(0, (0, tsoa_1.Body)()),
|
1318
|
+
__param(1, (0, tsoa_1.Inject)())
|
1319
|
+
], LemmyHttp.prototype, "removeComment", null);
|
1320
|
+
__decorate([
|
1321
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1322
|
+
(0, tsoa_1.Post)("/comment/mark_as_read"),
|
1323
|
+
(0, tsoa_1.Tags)("Comment"),
|
1324
|
+
__param(0, (0, tsoa_1.Body)()),
|
1325
|
+
__param(1, (0, tsoa_1.Inject)())
|
1326
|
+
], LemmyHttp.prototype, "markCommentReplyAsRead", null);
|
1327
|
+
__decorate([
|
1328
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1329
|
+
(0, tsoa_1.Post)("/comment/like"),
|
1330
|
+
(0, tsoa_1.Tags)("Comment"),
|
1331
|
+
__param(0, (0, tsoa_1.Body)()),
|
1332
|
+
__param(1, (0, tsoa_1.Inject)())
|
1333
|
+
], LemmyHttp.prototype, "likeComment", null);
|
1334
|
+
__decorate([
|
1335
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1336
|
+
(0, tsoa_1.Get)("/comment/like/list"),
|
1337
|
+
(0, tsoa_1.Tags)("Comment", "Admin"),
|
1338
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1339
|
+
__param(1, (0, tsoa_1.Inject)())
|
1340
|
+
], LemmyHttp.prototype, "listCommentLikes", null);
|
1341
|
+
__decorate([
|
1342
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1343
|
+
(0, tsoa_1.Put)("/comment/save"),
|
1344
|
+
(0, tsoa_1.Tags)("Comment"),
|
1345
|
+
__param(0, (0, tsoa_1.Body)()),
|
1346
|
+
__param(1, (0, tsoa_1.Inject)())
|
1347
|
+
], LemmyHttp.prototype, "saveComment", null);
|
1348
|
+
__decorate([
|
1349
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1350
|
+
(0, tsoa_1.Post)("/comment/distinguish"),
|
1351
|
+
(0, tsoa_1.Tags)("Comment", "Moderator"),
|
1352
|
+
__param(0, (0, tsoa_1.Body)()),
|
1353
|
+
__param(1, (0, tsoa_1.Inject)())
|
1354
|
+
], LemmyHttp.prototype, "distinguishComment", null);
|
1355
|
+
__decorate([
|
1356
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1357
|
+
(0, tsoa_1.Security)({}),
|
1358
|
+
(0, tsoa_1.Get)("/comment/list"),
|
1359
|
+
(0, tsoa_1.Tags)("Comment"),
|
1360
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1361
|
+
__param(1, (0, tsoa_1.Inject)())
|
1362
|
+
], LemmyHttp.prototype, "getComments", null);
|
1363
|
+
__decorate([
|
1364
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1365
|
+
(0, tsoa_1.Security)({}),
|
1366
|
+
(0, tsoa_1.Get)("/comment/list/slim"),
|
1367
|
+
(0, tsoa_1.Tags)("Comment"),
|
1368
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1369
|
+
__param(1, (0, tsoa_1.Inject)())
|
1370
|
+
], LemmyHttp.prototype, "getCommentsSlim", null);
|
1371
|
+
__decorate([
|
1372
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1373
|
+
(0, tsoa_1.Security)({}),
|
1374
|
+
(0, tsoa_1.Get)("/comment"),
|
1375
|
+
(0, tsoa_1.Tags)("Comment"),
|
1376
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1377
|
+
__param(1, (0, tsoa_1.Inject)())
|
1378
|
+
], LemmyHttp.prototype, "getComment", null);
|
1379
|
+
__decorate([
|
1380
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1381
|
+
(0, tsoa_1.Post)("/comment/report"),
|
1382
|
+
(0, tsoa_1.Tags)("Comment"),
|
1383
|
+
__param(0, (0, tsoa_1.Body)()),
|
1384
|
+
__param(1, (0, tsoa_1.Inject)())
|
1385
|
+
], LemmyHttp.prototype, "createCommentReport", null);
|
1386
|
+
__decorate([
|
1387
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1388
|
+
(0, tsoa_1.Put)("/comment/report/resolve"),
|
1389
|
+
(0, tsoa_1.Tags)("Comment", "Moderator"),
|
1390
|
+
__param(0, (0, tsoa_1.Body)()),
|
1391
|
+
__param(1, (0, tsoa_1.Inject)())
|
1392
|
+
], LemmyHttp.prototype, "resolveCommentReport", null);
|
1393
|
+
__decorate([
|
1394
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1395
|
+
(0, tsoa_1.Post)("/private_message"),
|
1396
|
+
(0, tsoa_1.Tags)("PrivateMessage"),
|
1397
|
+
__param(0, (0, tsoa_1.Body)()),
|
1398
|
+
__param(1, (0, tsoa_1.Inject)())
|
1399
|
+
], LemmyHttp.prototype, "createPrivateMessage", null);
|
1400
|
+
__decorate([
|
1401
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1402
|
+
(0, tsoa_1.Put)("/private_message"),
|
1403
|
+
(0, tsoa_1.Tags)("PrivateMessage"),
|
1404
|
+
__param(0, (0, tsoa_1.Body)()),
|
1405
|
+
__param(1, (0, tsoa_1.Inject)())
|
1406
|
+
], LemmyHttp.prototype, "editPrivateMessage", null);
|
1407
|
+
__decorate([
|
1408
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1409
|
+
(0, tsoa_1.Post)("/private_message/delete"),
|
1410
|
+
(0, tsoa_1.Tags)("PrivateMessage"),
|
1411
|
+
__param(0, (0, tsoa_1.Body)()),
|
1412
|
+
__param(1, (0, tsoa_1.Inject)())
|
1413
|
+
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
1414
|
+
__decorate([
|
1415
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1416
|
+
(0, tsoa_1.Post)("/private_message/mark_as_read"),
|
1417
|
+
(0, tsoa_1.Tags)("PrivateMessage"),
|
1418
|
+
__param(0, (0, tsoa_1.Body)()),
|
1419
|
+
__param(1, (0, tsoa_1.Inject)())
|
1420
|
+
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
1421
|
+
__decorate([
|
1422
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1423
|
+
(0, tsoa_1.Post)("/private_message/report"),
|
1424
|
+
(0, tsoa_1.Tags)("PrivateMessage"),
|
1425
|
+
__param(0, (0, tsoa_1.Body)()),
|
1426
|
+
__param(1, (0, tsoa_1.Inject)())
|
1427
|
+
], LemmyHttp.prototype, "createPrivateMessageReport", null);
|
1428
|
+
__decorate([
|
1429
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1430
|
+
(0, tsoa_1.Put)("/private_message/report/resolve"),
|
1431
|
+
(0, tsoa_1.Tags)("PrivateMessage", "Admin"),
|
1432
|
+
__param(0, (0, tsoa_1.Body)()),
|
1433
|
+
__param(1, (0, tsoa_1.Inject)())
|
1434
|
+
], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
|
1435
|
+
__decorate([
|
1436
|
+
(0, tsoa_1.Post)("/account/auth/register"),
|
1437
|
+
(0, tsoa_1.Tags)("Account"),
|
1438
|
+
__param(0, (0, tsoa_1.Body)()),
|
1439
|
+
__param(1, (0, tsoa_1.Inject)())
|
1440
|
+
], LemmyHttp.prototype, "register", null);
|
1441
|
+
__decorate([
|
1442
|
+
(0, tsoa_1.Post)("/account/auth/login"),
|
1443
|
+
(0, tsoa_1.Tags)("Account"),
|
1444
|
+
__param(0, (0, tsoa_1.Body)()),
|
1445
|
+
__param(1, (0, tsoa_1.Inject)())
|
1446
|
+
], LemmyHttp.prototype, "login", null);
|
1447
|
+
__decorate([
|
1448
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1449
|
+
(0, tsoa_1.Post)("/account/auth/logout"),
|
1450
|
+
(0, tsoa_1.Tags)("Account"),
|
1451
|
+
__param(0, (0, tsoa_1.Inject)())
|
1452
|
+
], LemmyHttp.prototype, "logout", null);
|
1453
|
+
__decorate([
|
1454
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1455
|
+
(0, tsoa_1.Security)({}),
|
1456
|
+
(0, tsoa_1.Get)("/person"),
|
1457
|
+
(0, tsoa_1.Tags)("Person"),
|
1458
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1459
|
+
__param(1, (0, tsoa_1.Inject)())
|
1460
|
+
], LemmyHttp.prototype, "getPersonDetails", null);
|
1461
|
+
__decorate([
|
1462
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1463
|
+
(0, tsoa_1.Security)({}),
|
1464
|
+
(0, tsoa_1.Get)("/person/content"),
|
1465
|
+
(0, tsoa_1.Tags)("Person"),
|
1466
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1467
|
+
__param(1, (0, tsoa_1.Inject)())
|
1468
|
+
], LemmyHttp.prototype, "listPersonContent", null);
|
1469
|
+
__decorate([
|
1470
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1471
|
+
(0, tsoa_1.Post)("/account/mention/comment/mark_as_read"),
|
1472
|
+
(0, tsoa_1.Tags)("Account", "Person"),
|
1473
|
+
__param(0, (0, tsoa_1.Body)()),
|
1474
|
+
__param(1, (0, tsoa_1.Inject)())
|
1475
|
+
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
1476
|
+
__decorate([
|
1477
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1478
|
+
(0, tsoa_1.Post)("/account/mention/post/mark_as_read"),
|
1479
|
+
(0, tsoa_1.Tags)("Account", "Post"),
|
1480
|
+
__param(0, (0, tsoa_1.Body)()),
|
1481
|
+
__param(1, (0, tsoa_1.Inject)())
|
1482
|
+
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1483
|
+
__decorate([
|
1484
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1485
|
+
(0, tsoa_1.Post)("/admin/ban"),
|
1486
|
+
(0, tsoa_1.Tags)("Admin"),
|
1487
|
+
__param(0, (0, tsoa_1.Body)()),
|
1488
|
+
__param(1, (0, tsoa_1.Inject)())
|
1489
|
+
], LemmyHttp.prototype, "banPerson", null);
|
1490
|
+
__decorate([
|
1491
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1492
|
+
(0, tsoa_1.Get)("/admin/banned"),
|
1493
|
+
(0, tsoa_1.Tags)("Admin", "Miscellaneous"),
|
1494
|
+
__param(0, (0, tsoa_1.Inject)())
|
1495
|
+
], LemmyHttp.prototype, "getBannedPersons", null);
|
1496
|
+
__decorate([
|
1497
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1498
|
+
(0, tsoa_1.Post)("/account/block/person"),
|
1499
|
+
(0, tsoa_1.Tags)("Account"),
|
1500
|
+
__param(0, (0, tsoa_1.Body)()),
|
1501
|
+
__param(1, (0, tsoa_1.Inject)())
|
1502
|
+
], LemmyHttp.prototype, "blockPerson", null);
|
1503
|
+
__decorate([
|
1504
|
+
(0, tsoa_1.Get)("/account/auth/get_captcha"),
|
1505
|
+
(0, tsoa_1.Tags)("Account"),
|
1506
|
+
__param(0, (0, tsoa_1.Inject)())
|
1507
|
+
], LemmyHttp.prototype, "getCaptcha", null);
|
1508
|
+
__decorate([
|
1509
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1510
|
+
(0, tsoa_1.Post)("/account/delete"),
|
1511
|
+
(0, tsoa_1.Tags)("Account"),
|
1512
|
+
__param(0, (0, tsoa_1.Body)()),
|
1513
|
+
__param(1, (0, tsoa_1.Inject)())
|
1514
|
+
], LemmyHttp.prototype, "deleteAccount", null);
|
1515
|
+
__decorate([
|
1516
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1517
|
+
(0, tsoa_1.Post)("/account/auth/password_reset"),
|
1518
|
+
(0, tsoa_1.Tags)("Account"),
|
1519
|
+
__param(0, (0, tsoa_1.Body)()),
|
1520
|
+
__param(1, (0, tsoa_1.Inject)())
|
1521
|
+
], LemmyHttp.prototype, "passwordReset", null);
|
1522
|
+
__decorate([
|
1523
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1524
|
+
(0, tsoa_1.Post)("/account/auth/password_change"),
|
1525
|
+
(0, tsoa_1.Tags)("Account"),
|
1526
|
+
__param(0, (0, tsoa_1.Body)()),
|
1527
|
+
__param(1, (0, tsoa_1.Inject)())
|
1528
|
+
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
1529
|
+
__decorate([
|
1530
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1531
|
+
(0, tsoa_1.Post)("/account/mark_as_read/all"),
|
1532
|
+
(0, tsoa_1.Tags)("Account"),
|
1533
|
+
__param(0, (0, tsoa_1.Inject)())
|
1534
|
+
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1535
|
+
__decorate([
|
1536
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1537
|
+
(0, tsoa_1.Put)("/account/settings/save"),
|
1538
|
+
(0, tsoa_1.Tags)("Account"),
|
1539
|
+
__param(0, (0, tsoa_1.Body)()),
|
1540
|
+
__param(1, (0, tsoa_1.Inject)())
|
1541
|
+
], LemmyHttp.prototype, "saveUserSettings", null);
|
1542
|
+
__decorate([
|
1543
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1544
|
+
(0, tsoa_1.Put)("/account/auth/change_password"),
|
1545
|
+
(0, tsoa_1.Tags)("Account"),
|
1546
|
+
__param(0, (0, tsoa_1.Body)()),
|
1547
|
+
__param(1, (0, tsoa_1.Inject)())
|
1548
|
+
], LemmyHttp.prototype, "changePassword", null);
|
1549
|
+
__decorate([
|
1550
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1551
|
+
(0, tsoa_1.Get)("/account/report_count"),
|
1552
|
+
(0, tsoa_1.Tags)("Account"),
|
1553
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1554
|
+
__param(1, (0, tsoa_1.Inject)())
|
1555
|
+
], LemmyHttp.prototype, "getReportCount", null);
|
1556
|
+
__decorate([
|
1557
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1558
|
+
(0, tsoa_1.Get)("/account/unread_count"),
|
1559
|
+
(0, tsoa_1.Tags)("Account"),
|
1560
|
+
__param(0, (0, tsoa_1.Inject)())
|
1561
|
+
], LemmyHttp.prototype, "getUnreadCount", null);
|
1562
|
+
__decorate([
|
1563
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1564
|
+
(0, tsoa_1.Get)("/account/inbox"),
|
1565
|
+
(0, tsoa_1.Tags)("Account"),
|
1566
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1567
|
+
__param(1, (0, tsoa_1.Inject)())
|
1568
|
+
], LemmyHttp.prototype, "listInbox", null);
|
1569
|
+
__decorate([
|
1570
|
+
(0, tsoa_1.Post)("/account/auth/verify_email"),
|
1571
|
+
(0, tsoa_1.Tags)("Account"),
|
1572
|
+
__param(0, (0, tsoa_1.Body)()),
|
1573
|
+
__param(1, (0, tsoa_1.Inject)())
|
1574
|
+
], LemmyHttp.prototype, "verifyEmail", null);
|
1575
|
+
__decorate([
|
1576
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1577
|
+
(0, tsoa_1.Get)("/account/auth/saved"),
|
1578
|
+
(0, tsoa_1.Tags)("Account"),
|
1579
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1580
|
+
__param(1, (0, tsoa_1.Inject)())
|
1581
|
+
], LemmyHttp.prototype, "listPersonSaved", null);
|
1582
|
+
__decorate([
|
1583
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1584
|
+
(0, tsoa_1.Post)("/admin/add"),
|
1585
|
+
(0, tsoa_1.Tags)("Admin"),
|
1586
|
+
__param(0, (0, tsoa_1.Body)()),
|
1587
|
+
__param(1, (0, tsoa_1.Inject)())
|
1588
|
+
], LemmyHttp.prototype, "addAdmin", null);
|
1589
|
+
__decorate([
|
1590
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1591
|
+
(0, tsoa_1.Get)("/admin/registration_application/count"),
|
1592
|
+
(0, tsoa_1.Tags)("Admin"),
|
1593
|
+
__param(0, (0, tsoa_1.Inject)())
|
1594
|
+
], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
|
1595
|
+
__decorate([
|
1596
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1597
|
+
(0, tsoa_1.Get)("/admin/registration_application/list"),
|
1598
|
+
(0, tsoa_1.Tags)("Admin"),
|
1599
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1600
|
+
__param(1, (0, tsoa_1.Inject)())
|
1601
|
+
], LemmyHttp.prototype, "listRegistrationApplications", null);
|
1602
|
+
__decorate([
|
1603
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1604
|
+
(0, tsoa_1.Put)("/admin/registration_application/approve"),
|
1605
|
+
(0, tsoa_1.Tags)("Admin"),
|
1606
|
+
__param(0, (0, tsoa_1.Body)()),
|
1607
|
+
__param(1, (0, tsoa_1.Inject)())
|
1608
|
+
], LemmyHttp.prototype, "approveRegistrationApplication", null);
|
1609
|
+
__decorate([
|
1610
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1611
|
+
(0, tsoa_1.Get)("/admin/registration_application"),
|
1612
|
+
(0, tsoa_1.Tags)("Admin"),
|
1613
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1614
|
+
__param(1, (0, tsoa_1.Inject)())
|
1615
|
+
], LemmyHttp.prototype, "getRegistrationApplication", null);
|
1616
|
+
__decorate([
|
1617
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1618
|
+
(0, tsoa_1.Post)("/admin/purge/person"),
|
1619
|
+
(0, tsoa_1.Tags)("Admin"),
|
1620
|
+
__param(0, (0, tsoa_1.Body)()),
|
1621
|
+
__param(1, (0, tsoa_1.Inject)())
|
1622
|
+
], LemmyHttp.prototype, "purgePerson", null);
|
1623
|
+
__decorate([
|
1624
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1625
|
+
(0, tsoa_1.Post)("/admin/purge/community"),
|
1626
|
+
(0, tsoa_1.Tags)("Admin"),
|
1627
|
+
__param(0, (0, tsoa_1.Body)()),
|
1628
|
+
__param(1, (0, tsoa_1.Inject)())
|
1629
|
+
], LemmyHttp.prototype, "purgeCommunity", null);
|
1630
|
+
__decorate([
|
1631
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1632
|
+
(0, tsoa_1.Post)("/admin/purge/post"),
|
1633
|
+
(0, tsoa_1.Tags)("Admin"),
|
1634
|
+
__param(0, (0, tsoa_1.Body)()),
|
1635
|
+
__param(1, (0, tsoa_1.Inject)())
|
1636
|
+
], LemmyHttp.prototype, "purgePost", null);
|
1637
|
+
__decorate([
|
1638
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1639
|
+
(0, tsoa_1.Post)("/admin/purge/comment"),
|
1640
|
+
(0, tsoa_1.Tags)("Admin"),
|
1641
|
+
__param(0, (0, tsoa_1.Body)()),
|
1642
|
+
__param(1, (0, tsoa_1.Inject)())
|
1643
|
+
], LemmyHttp.prototype, "purgeComment", null);
|
1644
|
+
__decorate([
|
1645
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1646
|
+
(0, tsoa_1.Post)("/custom_emoji"),
|
1647
|
+
(0, tsoa_1.Tags)("CustomEmoji"),
|
1648
|
+
__param(0, (0, tsoa_1.Body)()),
|
1649
|
+
__param(1, (0, tsoa_1.Inject)())
|
1650
|
+
], LemmyHttp.prototype, "createCustomEmoji", null);
|
1651
|
+
__decorate([
|
1652
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1653
|
+
(0, tsoa_1.Put)("/custom_emoji"),
|
1654
|
+
(0, tsoa_1.Tags)("CustomEmoji"),
|
1655
|
+
__param(0, (0, tsoa_1.Body)()),
|
1656
|
+
__param(1, (0, tsoa_1.Inject)())
|
1657
|
+
], LemmyHttp.prototype, "editCustomEmoji", null);
|
1658
|
+
__decorate([
|
1659
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1660
|
+
(0, tsoa_1.Post)("/custom_emoji/delete"),
|
1661
|
+
(0, tsoa_1.Tags)("CustomEmoji"),
|
1662
|
+
__param(0, (0, tsoa_1.Body)()),
|
1663
|
+
__param(1, (0, tsoa_1.Inject)())
|
1664
|
+
], LemmyHttp.prototype, "deleteCustomEmoji", null);
|
1665
|
+
__decorate([
|
1666
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1667
|
+
(0, tsoa_1.Security)({}),
|
1668
|
+
(0, tsoa_1.Get)("/custom_emoji/list"),
|
1669
|
+
(0, tsoa_1.Tags)("CustomEmoji"),
|
1670
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1671
|
+
__param(1, (0, tsoa_1.Inject)())
|
1672
|
+
], LemmyHttp.prototype, "listCustomEmojis", null);
|
1673
|
+
__decorate([
|
1674
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1675
|
+
(0, tsoa_1.Post)("/admin/tagline"),
|
1676
|
+
(0, tsoa_1.Tags)("Admin", "Tagline"),
|
1677
|
+
__param(0, (0, tsoa_1.Body)()),
|
1678
|
+
__param(1, (0, tsoa_1.Inject)())
|
1679
|
+
], LemmyHttp.prototype, "createTagline", null);
|
1680
|
+
__decorate([
|
1681
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1682
|
+
(0, tsoa_1.Put)("/admin/tagline"),
|
1683
|
+
(0, tsoa_1.Tags)("Admin", "Tagline"),
|
1684
|
+
__param(0, (0, tsoa_1.Body)()),
|
1685
|
+
__param(1, (0, tsoa_1.Inject)())
|
1686
|
+
], LemmyHttp.prototype, "editTagline", null);
|
1687
|
+
__decorate([
|
1688
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1689
|
+
(0, tsoa_1.Post)("/admin/tagline/delete"),
|
1690
|
+
(0, tsoa_1.Tags)("Admin", "Tagline"),
|
1691
|
+
__param(0, (0, tsoa_1.Body)()),
|
1692
|
+
__param(1, (0, tsoa_1.Inject)())
|
1693
|
+
], LemmyHttp.prototype, "deleteTagline", null);
|
1694
|
+
__decorate([
|
1695
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1696
|
+
(0, tsoa_1.Security)({}),
|
1697
|
+
(0, tsoa_1.Get)("/admin/tagline/list"),
|
1698
|
+
(0, tsoa_1.Tags)("Admin", "Tagline"),
|
1699
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1700
|
+
__param(1, (0, tsoa_1.Inject)())
|
1701
|
+
], LemmyHttp.prototype, "listTaglines", null);
|
1702
|
+
__decorate([
|
1703
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1704
|
+
(0, tsoa_1.Post)("/oauth_provider"),
|
1705
|
+
(0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
|
1706
|
+
__param(0, (0, tsoa_1.Body)()),
|
1707
|
+
__param(1, (0, tsoa_1.Inject)())
|
1708
|
+
], LemmyHttp.prototype, "createOAuthProvider", null);
|
1709
|
+
__decorate([
|
1710
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1711
|
+
(0, tsoa_1.Put)("/oauth_provider"),
|
1712
|
+
(0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
|
1713
|
+
__param(0, (0, tsoa_1.Body)()),
|
1714
|
+
__param(1, (0, tsoa_1.Inject)())
|
1715
|
+
], LemmyHttp.prototype, "editOAuthProvider", null);
|
1716
|
+
__decorate([
|
1717
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1718
|
+
(0, tsoa_1.Post)("/oauth_provider/delete"),
|
1719
|
+
(0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
|
1720
|
+
__param(0, (0, tsoa_1.Body)()),
|
1721
|
+
__param(1, (0, tsoa_1.Inject)())
|
1722
|
+
], LemmyHttp.prototype, "deleteOAuthProvider", null);
|
1723
|
+
__decorate([
|
1724
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1725
|
+
(0, tsoa_1.Post)("/oauth/authenticate"),
|
1726
|
+
(0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
|
1727
|
+
__param(0, (0, tsoa_1.Body)()),
|
1728
|
+
__param(1, (0, tsoa_1.Inject)())
|
1729
|
+
], LemmyHttp.prototype, "authenticateWithOAuth", null);
|
1730
|
+
__decorate([
|
1731
|
+
(0, tsoa_1.Get)("/federated_instances"),
|
1732
|
+
(0, tsoa_1.Tags)("Miscellaneous"),
|
1733
|
+
__param(0, (0, tsoa_1.Inject)())
|
1734
|
+
], LemmyHttp.prototype, "getFederatedInstances", null);
|
1735
|
+
__decorate([
|
1736
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1737
|
+
(0, tsoa_1.Get)("/report/list"),
|
1738
|
+
(0, tsoa_1.Tags)("Admin"),
|
1739
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1740
|
+
__param(1, (0, tsoa_1.Inject)())
|
1741
|
+
], LemmyHttp.prototype, "listReports", null);
|
1742
|
+
__decorate([
|
1743
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1744
|
+
(0, tsoa_1.Post)("/account/block/instance"),
|
1745
|
+
(0, tsoa_1.Tags)("Account"),
|
1746
|
+
__param(0, (0, tsoa_1.Body)()),
|
1747
|
+
__param(1, (0, tsoa_1.Inject)())
|
1748
|
+
], LemmyHttp.prototype, "userBlockInstance", null);
|
1749
|
+
__decorate([
|
1750
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1751
|
+
(0, tsoa_1.Post)("/admin/instance/block"),
|
1752
|
+
(0, tsoa_1.Tags)("Admin"),
|
1753
|
+
__param(0, (0, tsoa_1.Body)()),
|
1754
|
+
__param(1, (0, tsoa_1.Inject)())
|
1755
|
+
], LemmyHttp.prototype, "adminBlockInstance", null);
|
1756
|
+
__decorate([
|
1757
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1758
|
+
(0, tsoa_1.Post)("/admin/instance/allow"),
|
1759
|
+
(0, tsoa_1.Tags)("Admin"),
|
1760
|
+
__param(0, (0, tsoa_1.Body)()),
|
1761
|
+
__param(1, (0, tsoa_1.Inject)())
|
1762
|
+
], LemmyHttp.prototype, "adminAllowInstance", null);
|
1763
|
+
__decorate([
|
1764
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1765
|
+
(0, tsoa_1.Post)("/account/avatar"),
|
1766
|
+
(0, tsoa_1.Tags)("Account", "Media"),
|
1767
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1768
|
+
__param(1, (0, tsoa_1.Inject)())
|
1769
|
+
], LemmyHttp.prototype, "uploadUserAvatar", null);
|
1770
|
+
__decorate([
|
1771
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1772
|
+
(0, tsoa_1.Delete)("/account/avatar"),
|
1773
|
+
(0, tsoa_1.Tags)("Account", "Media"),
|
1774
|
+
__param(0, (0, tsoa_1.Inject)())
|
1775
|
+
], LemmyHttp.prototype, "deleteUserAvatar", null);
|
1776
|
+
__decorate([
|
1777
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1778
|
+
(0, tsoa_1.Post)("/account/banner"),
|
1779
|
+
(0, tsoa_1.Tags)("Account", "Media"),
|
1780
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1781
|
+
__param(1, (0, tsoa_1.Inject)())
|
1782
|
+
], LemmyHttp.prototype, "uploadUserBanner", null);
|
1783
|
+
__decorate([
|
1784
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1785
|
+
(0, tsoa_1.Delete)("/account/banner"),
|
1786
|
+
(0, tsoa_1.Tags)("Account", "Media"),
|
1787
|
+
__param(0, (0, tsoa_1.Inject)())
|
1788
|
+
], LemmyHttp.prototype, "deleteUserBanner", null);
|
1789
|
+
__decorate([
|
1790
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1791
|
+
(0, tsoa_1.Post)("/community/icon"),
|
1792
|
+
(0, tsoa_1.Tags)("Community", "Media"),
|
1793
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1794
|
+
__param(1, (0, tsoa_1.Inject)())
|
1795
|
+
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
1796
|
+
__decorate([
|
1797
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1798
|
+
(0, tsoa_1.Delete)("/community/icon"),
|
1799
|
+
(0, tsoa_1.Tags)("Community", "Media"),
|
1800
|
+
__param(0, (0, tsoa_1.Inject)())
|
1801
|
+
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
1802
|
+
__decorate([
|
1803
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1804
|
+
(0, tsoa_1.Post)("/community/banner"),
|
1805
|
+
(0, tsoa_1.Tags)("Community", "Media"),
|
1806
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1807
|
+
__param(1, (0, tsoa_1.Inject)())
|
1808
|
+
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
1809
|
+
__decorate([
|
1810
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1811
|
+
(0, tsoa_1.Delete)("/community/banner"),
|
1812
|
+
(0, tsoa_1.Tags)("Community", "Media"),
|
1813
|
+
__param(0, (0, tsoa_1.Inject)())
|
1814
|
+
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
1815
|
+
__decorate([
|
1816
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1817
|
+
(0, tsoa_1.Post)("/site/icon"),
|
1818
|
+
(0, tsoa_1.Tags)("Site", "Media"),
|
1819
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1820
|
+
__param(1, (0, tsoa_1.Inject)())
|
1821
|
+
], LemmyHttp.prototype, "uploadSiteIcon", null);
|
1822
|
+
__decorate([
|
1823
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1824
|
+
(0, tsoa_1.Delete)("/site/icon"),
|
1825
|
+
(0, tsoa_1.Tags)("Site", "Media"),
|
1826
|
+
__param(0, (0, tsoa_1.Inject)())
|
1827
|
+
], LemmyHttp.prototype, "deleteSiteIcon", null);
|
1828
|
+
__decorate([
|
1829
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1830
|
+
(0, tsoa_1.Post)("/site/banner"),
|
1831
|
+
(0, tsoa_1.Tags)("Site", "Media"),
|
1832
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1833
|
+
__param(1, (0, tsoa_1.Inject)())
|
1834
|
+
], LemmyHttp.prototype, "uploadSiteBanner", null);
|
1835
|
+
__decorate([
|
1836
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1837
|
+
(0, tsoa_1.Delete)("/site/banner"),
|
1838
|
+
(0, tsoa_1.Tags)("Site", "Media"),
|
1839
|
+
__param(0, (0, tsoa_1.Inject)())
|
1840
|
+
], LemmyHttp.prototype, "deleteSiteBanner", null);
|
1841
|
+
__decorate([
|
1842
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1843
|
+
(0, tsoa_1.Post)("/image"),
|
1844
|
+
(0, tsoa_1.Tags)("Media"),
|
1845
|
+
__param(0, (0, tsoa_1.UploadedFile)()),
|
1846
|
+
__param(1, (0, tsoa_1.Inject)())
|
1847
|
+
], LemmyHttp.prototype, "uploadImage", null);
|
1848
|
+
__decorate([
|
1849
|
+
(0, tsoa_1.Security)("bearerAuth"),
|
1850
|
+
(0, tsoa_1.Delete)("/image"),
|
1851
|
+
(0, tsoa_1.Tags)("Media"),
|
1852
|
+
__param(0, (0, tsoa_1.Queries)()),
|
1853
|
+
__param(1, (0, tsoa_1.Inject)())
|
1854
|
+
], LemmyHttp.prototype, "deleteImage", null);
|
1855
|
+
__decorate([
|
1856
|
+
(0, tsoa_1.Get)("image/health"),
|
1857
|
+
(0, tsoa_1.Tags)("Media"),
|
1858
|
+
__param(0, (0, tsoa_1.Inject)())
|
1859
|
+
], LemmyHttp.prototype, "imageHealth", null);
|
1860
|
+
exports.LemmyHttp = LemmyHttp = __decorate([
|
1861
|
+
(0, tsoa_1.Route)("api/v4")
|
1862
|
+
], LemmyHttp);
|
1021
1863
|
function encodeGetParams(p) {
|
1022
1864
|
return Object.entries(p)
|
1023
1865
|
.filter(kv => kv[1] !== undefined && kv[1] !== null)
|