lemmy-js-client 0.20.0-alpha.7 → 0.20.0-ap-id.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/http.d.ts +347 -457
- package/dist/http.js +1458 -572
- package/dist/index.d.ts +93 -25
- 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/AdminBlockInstanceView.d.ts +11 -0
- package/dist/types/AdminPurgeComment.d.ts +8 -4
- package/dist/types/AdminPurgeCommentId.d.ts +1 -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/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 +7 -0
- 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 +26 -3
- package/dist/types/CommentAggregates.d.ts +10 -2
- 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 -2
- 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 -2
- package/dist/types/CommentResponse.d.ts +5 -2
- package/dist/types/CommentSlimView.d.ts +20 -0
- package/dist/types/CommentSortType.d.ts +3 -0
- package/dist/types/CommentView.d.ts +5 -2
- package/dist/types/Community.d.ts +47 -6
- package/dist/types/CommunityAggregates.d.ts +19 -2
- package/dist/types/CommunityFollowerState.d.ts +1 -0
- package/dist/types/CommunityFollowerState.js +3 -0
- 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 +16 -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 -2
- package/dist/types/CommunityVisibility.d.ts +4 -1
- 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 +9 -5
- package/dist/types/CreatePost.d.ts +23 -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 +16 -13
- package/dist/types/CreateTagline.d.ts +6 -0
- package/dist/types/CreateTagline.js +3 -0
- package/dist/types/CustomEmoji.d.ts +7 -5
- 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 +7 -0
- 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 +16 -12
- package/dist/types/EditPost.d.ts +20 -2
- package/dist/types/EditPrivateMessage.d.ts +5 -2
- package/dist/types/EditSite.d.ts +124 -14
- 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 +4 -0
- package/dist/types/FederationMode.js +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 +4 -0
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +3 -0
- package/dist/types/GetCommunityPendingFollowsCountResponse.js +3 -0
- 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 +30 -4
- package/dist/types/GetPostsResponse.d.ts +8 -2
- package/dist/types/GetRandomCommunity.d.ts +8 -0
- 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 +13 -7
- 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 +28 -100
- 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 -0
- package/dist/types/ListCommunityPendingFollows.js +3 -0
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +4 -0
- package/dist/types/ListCustomEmojis.d.ts +9 -0
- package/dist/types/ListCustomEmojis.js +3 -0
- package/dist/types/ListCustomEmojisResponse.d.ts +7 -0
- 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/ListPersonContent.js +2 -0
- package/dist/types/ListPersonContentResponse.d.ts +7 -0
- package/dist/types/ListPersonContentResponse.js +2 -0
- package/dist/types/ListPersonSaved.d.ts +10 -0
- package/dist/types/ListPersonSaved.js +2 -0
- package/dist/types/ListPersonSavedResponse.d.ts +7 -0
- package/dist/types/ListPersonSavedResponse.js +2 -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/ListReports.js +2 -0
- package/dist/types/ListReportsResponse.d.ts +7 -0
- package/dist/types/ListReportsResponse.js +2 -0
- package/dist/types/ListTaglines.d.ts +7 -0
- package/dist/types/ListTaglines.js +3 -0
- package/dist/types/ListTaglinesResponse.d.ts +7 -0
- package/dist/types/ListTaglinesResponse.js +2 -0
- 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 +92 -5
- 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 +71 -6
- package/dist/types/LocalUserId.d.ts +3 -0
- package/dist/types/LocalUserView.d.ts +5 -2
- 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/MarkManyPostsAsRead.js +2 -0
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPersonCommentMentionAsRead.js +2 -0
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPersonPostMentionAsRead.js +2 -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/ModlogCombinedView.js +2 -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 +9 -0
- package/dist/types/PendingFollow.js +2 -0
- package/dist/types/Person.d.ts +42 -5
- package/dist/types/PersonAggregates.d.ts +5 -2
- 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 -4
- 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 +32 -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 -2
- package/dist/types/Post.d.ts +59 -6
- package/dist/types/PostAggregates.d.ts +10 -2
- 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 -2
- package/dist/types/PostResponse.d.ts +2 -2
- package/dist/types/PostSortType.d.ts +4 -0
- package/dist/types/PostSortType.js +3 -0
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PostView.d.ts +7 -2
- 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 +97 -9
- package/dist/types/Search.d.ts +15 -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 +4 -1
- 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 +9 -4
- package/dist/types/SiteView.d.ts +5 -2
- package/dist/types/SubscribedType.d.ts +4 -1
- 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 -4
- package/dist/types/Tagline.js +1 -0
- package/dist/types/TaglineId.d.ts +4 -0
- package/dist/types/TaglineId.js +3 -0
- package/dist/types/TaglineResponse.d.ts +4 -0
- package/dist/types/TaglineResponse.js +2 -0
- package/dist/types/TransferCommunity.d.ts +5 -2
- package/dist/types/UpdateTagline.d.ts +8 -0
- package/dist/types/UpdateTagline.js +2 -0
- 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 +14 -10
- package/dist/types/BlockInstanceResponse.d.ts +0 -3
- package/dist/types/CommentReplyResponse.d.ts +0 -4
- 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/OAuthProviderInsertForm.d.ts +0 -14
- package/dist/types/OAuthProviderUpdateForm.d.ts +0 -13
- package/dist/types/PersonMentionId.d.ts +0 -1
- package/dist/types/PersonMentionResponse.d.ts +0 -4
- package/dist/types/PrivateMessagesResponse.d.ts +0 -4
- package/dist/types/SortType.d.ts +0 -1
- /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/{CommentReplyResponse.js → AdminAllowInstanceView.js} +0 -0
- /package/dist/types/{GetPersonMentions.js → AdminBlockInstance.js} +0 -0
- /package/dist/types/{OAuthProviderInsertForm.js → AdminBlockInstanceId.js} +0 -0
- /package/dist/types/{OAuthProviderUpdateForm.js → AdminBlockInstanceParams.js} +0 -0
- /package/dist/types/{GetPersonMentionsResponse.js → AdminBlockInstanceView.js} +0 -0
- /package/dist/types/{PersonMentionId.js → AdminPurgeCommentId.js} +0 -0
- /package/dist/types/{SortType.js → AdminPurgeCommunityId.js} +0 -0
- /package/dist/types/{GetPrivateMessages.js → ApproveCommunityPendingFollower.js} +0 -0
- /package/dist/types/{GetReplies.js → CommentSlimView.js} +0 -0
- /package/dist/types/{GetRepliesResponse.js → CommunityReport.js} +0 -0
- /package/dist/types/{ListCommentReports.js → CommunityReportView.js} +0 -0
- /package/dist/types/{ListCommentReportsResponse.js → DeleteTagline.js} +0 -0
- /package/dist/types/{ListPostReports.js → FederationBlockList.js} +0 -0
- /package/dist/types/{ListPostReportsResponse.js → GetCommentsSlimResponse.js} +0 -0
- /package/dist/types/{ListPrivateMessageReportsResponse.js → GetCommunityPendingFollowsCount.js} +0 -0
- /package/dist/types/{MarkPersonMentionAsRead.js → GetRandomCommunity.js} +0 -0
- /package/dist/types/{ModlogListParams.js → InboxCombinedView.js} +0 -0
- /package/dist/types/{PersonMention.js → ListCommunityPendingFollowsResponse.js} +0 -0
- /package/dist/types/{PersonMentionResponse.js → ListCustomEmojisResponse.js} +0 -0
- /package/dist/types/{PersonMentionView.js → ListInbox.js} +0 -0
- /package/dist/types/{PrivateMessagesResponse.js → ListInboxResponse.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,881 +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
|
-
getSite() {
|
62
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {});
|
69
|
+
getSite(options) {
|
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
|
-
createSite(form) {
|
70
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form);
|
75
|
+
createSite(form, options) {
|
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
|
-
editSite(form) {
|
78
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form);
|
81
|
+
editSite(form, options) {
|
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
|
-
leaveAdmin() {
|
86
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
87
|
+
leaveAdmin(options) {
|
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
|
-
generateTotpSecret() {
|
96
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
96
|
+
generateTotpSecret(options) {
|
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
|
-
exportSettings() {
|
105
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
111
|
+
exportSettings(options) {
|
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
|
-
importSettings(form) {
|
113
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
117
|
+
importSettings(form, options) {
|
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
|
-
listLogins() {
|
121
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
123
|
+
listLogins(options) {
|
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
|
-
validateAuth() {
|
129
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
129
|
+
validateAuth(options) {
|
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
|
-
listMedia(form = {}) {
|
137
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form);
|
135
|
+
listMedia(form = {}, options) {
|
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
|
-
listAllMedia(form = {}) {
|
145
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form);
|
141
|
+
listAllMedia(form = {}, options) {
|
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
|
-
updateTotp(form) {
|
157
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
151
|
+
updateTotp(form, options) {
|
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
|
-
getModlog(form = {}) {
|
165
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form);
|
157
|
+
getModlog(form = {}, options) {
|
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
|
-
search(form) {
|
173
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form);
|
163
|
+
search(form, options) {
|
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
|
-
resolveObject(form) {
|
181
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form);
|
169
|
+
resolveObject(form, options) {
|
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
|
-
createCommunity(form) {
|
189
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form);
|
175
|
+
createCommunity(form, options) {
|
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
|
-
getCommunity(form = {}) {
|
197
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form);
|
181
|
+
getCommunity(form = {}, options) {
|
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
|
-
editCommunity(form) {
|
205
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form);
|
187
|
+
editCommunity(form, options) {
|
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
|
-
listCommunities(form = {}) {
|
213
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form);
|
193
|
+
listCommunities(form = {}, options) {
|
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
|
-
followCommunity(form) {
|
221
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form);
|
199
|
+
followCommunity(form, options) {
|
200
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
222
201
|
}
|
223
202
|
/**
|
224
|
-
*
|
225
|
-
*
|
226
|
-
* `HTTP.POST /community/block`
|
203
|
+
* @summary Get a community's pending follows count.
|
227
204
|
*/
|
228
|
-
|
229
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
205
|
+
getCommunityPendingFollowsCount(form, options) {
|
206
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
230
207
|
}
|
231
208
|
/**
|
232
|
-
*
|
233
|
-
*
|
234
|
-
* `HTTP.POST /community/delete`
|
209
|
+
* @summary Get a community's pending followers.
|
235
210
|
*/
|
236
|
-
|
237
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
211
|
+
listCommunityPendingFollows(form, options) {
|
212
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
238
213
|
}
|
239
214
|
/**
|
240
|
-
*
|
241
|
-
*
|
242
|
-
* `HTTP.PUT /community/hide`
|
215
|
+
* @summary Approve a community pending follow request.
|
243
216
|
*/
|
244
|
-
|
245
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
217
|
+
approveCommunityPendingFollow(form, options) {
|
218
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
246
219
|
}
|
247
220
|
/**
|
248
|
-
*
|
249
|
-
*
|
250
|
-
* `HTTP.POST /community/remove`
|
221
|
+
* @summary Block a community.
|
251
222
|
*/
|
252
|
-
|
253
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community
|
223
|
+
blockCommunity(form, options) {
|
224
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
254
225
|
}
|
255
226
|
/**
|
256
|
-
*
|
257
|
-
*
|
258
|
-
* `HTTP.POST /community/transfer`
|
227
|
+
* @summary Delete a community.
|
259
228
|
*/
|
260
|
-
|
261
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/
|
229
|
+
deleteCommunity(form, options) {
|
230
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
262
231
|
}
|
263
232
|
/**
|
264
|
-
*
|
265
|
-
*
|
266
|
-
* `HTTP.POST /community/ban_user`
|
233
|
+
* @summary Hide a community from public / "All" view. Admins only.
|
267
234
|
*/
|
268
|
-
|
269
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
235
|
+
hideCommunity(form, options) {
|
236
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
270
237
|
}
|
271
238
|
/**
|
272
|
-
*
|
273
|
-
*
|
274
|
-
* `HTTP.POST /community/mod`
|
239
|
+
* @summary A moderator remove for a community.
|
275
240
|
*/
|
276
|
-
|
277
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/
|
241
|
+
removeCommunity(form, options) {
|
242
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
278
243
|
}
|
279
244
|
/**
|
280
|
-
*
|
281
|
-
*
|
282
|
-
* `HTTP.POST /post`
|
245
|
+
* @summary Transfer your community to an existing moderator.
|
283
246
|
*/
|
284
|
-
|
285
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
247
|
+
transferCommunity(form, options) {
|
248
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
286
249
|
}
|
287
250
|
/**
|
288
|
-
*
|
289
|
-
*
|
290
|
-
* `HTTP.GET /post`
|
251
|
+
* @summary Ban a user from a community.
|
291
252
|
*/
|
292
|
-
|
293
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
253
|
+
banFromCommunity(form, options) {
|
254
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
294
255
|
}
|
295
256
|
/**
|
296
|
-
*
|
297
|
-
*
|
298
|
-
* `HTTP.PUT /post`
|
257
|
+
* @summary Add a moderator to your community.
|
299
258
|
*/
|
300
|
-
|
301
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
259
|
+
addModToCommunity(form, options) {
|
260
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
302
261
|
}
|
303
262
|
/**
|
304
|
-
*
|
305
|
-
*
|
306
|
-
* `HTTP.POST /post/delete`
|
263
|
+
* @summary Get a random community.
|
307
264
|
*/
|
308
|
-
|
309
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
265
|
+
getRandomCommunity(form, options) {
|
266
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
310
267
|
}
|
311
268
|
/**
|
312
|
-
*
|
313
|
-
*
|
314
|
-
* `HTTP.POST /post/remove`
|
269
|
+
* @summary Create a post.
|
315
270
|
*/
|
316
|
-
|
317
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post
|
271
|
+
createPost(form, options) {
|
272
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
318
273
|
}
|
319
274
|
/**
|
320
|
-
*
|
321
|
-
*
|
322
|
-
* `HTTP.POST /post/mark_as_read`
|
275
|
+
* @summary Get / fetch a post.
|
323
276
|
*/
|
324
|
-
|
325
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
277
|
+
getPost(form = {}, options) {
|
278
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
326
279
|
}
|
327
280
|
/**
|
328
|
-
*
|
329
|
-
*
|
330
|
-
* `HTTP.POST /post/hide`
|
281
|
+
* @summary Edit a post.
|
331
282
|
*/
|
332
|
-
|
333
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
283
|
+
editPost(form, options) {
|
284
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
334
285
|
}
|
335
286
|
/**
|
336
|
-
*
|
337
|
-
*
|
338
|
-
* `HTTP.POST /post/lock`
|
287
|
+
* @summary Delete a post.
|
339
288
|
*/
|
340
|
-
|
341
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/
|
289
|
+
deletePost(form, options) {
|
290
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
342
291
|
}
|
343
292
|
/**
|
344
|
-
* A moderator
|
345
|
-
*
|
346
|
-
* `HTTP.POST /post/feature`
|
293
|
+
* @summary A moderator remove for a post.
|
347
294
|
*/
|
348
|
-
|
349
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/
|
295
|
+
removePost(form, options) {
|
296
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
350
297
|
}
|
351
298
|
/**
|
352
|
-
*
|
353
|
-
*
|
354
|
-
* `HTTP.GET /post/list`
|
299
|
+
* @summary Mark a post as read.
|
355
300
|
*/
|
356
|
-
|
357
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
301
|
+
markPostAsRead(form, options) {
|
302
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
358
303
|
}
|
359
304
|
/**
|
360
|
-
*
|
361
|
-
*
|
362
|
-
* `HTTP.POST /post/like`
|
305
|
+
* @summary Mark multiple posts as read.
|
363
306
|
*/
|
364
|
-
|
365
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/
|
307
|
+
markManyPostAsRead(form, options) {
|
308
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
366
309
|
}
|
367
310
|
/**
|
368
|
-
*
|
369
|
-
*
|
370
|
-
* `HTTP.GET /post/like/list`
|
311
|
+
* @summary Hide a post from list views.
|
371
312
|
*/
|
372
|
-
|
373
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
313
|
+
hidePost(form, options) {
|
314
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
374
315
|
}
|
375
316
|
/**
|
376
|
-
*
|
377
|
-
*
|
378
|
-
* `HTTP.PUT /post/save`
|
317
|
+
* @summary A moderator can lock a post ( IE disable new comments ).
|
379
318
|
*/
|
380
|
-
|
381
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
319
|
+
lockPost(form, options) {
|
320
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
382
321
|
}
|
383
322
|
/**
|
384
|
-
*
|
385
|
-
*
|
386
|
-
* `HTTP.POST /post/report`
|
323
|
+
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
387
324
|
*/
|
388
|
-
|
389
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/
|
325
|
+
featurePost(form, options) {
|
326
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
390
327
|
}
|
391
328
|
/**
|
392
|
-
*
|
393
|
-
*
|
394
|
-
* `HTTP.PUT /post/report/resolve`
|
329
|
+
* @summary Get / fetch posts, with various filters.
|
395
330
|
*/
|
396
|
-
|
397
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
331
|
+
getPosts(form = {}, options) {
|
332
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
398
333
|
}
|
399
334
|
/**
|
400
|
-
*
|
401
|
-
*
|
402
|
-
* `HTTP.GET /post/report/list`
|
335
|
+
* @summary Like / vote on a post.
|
403
336
|
*/
|
404
|
-
|
405
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
337
|
+
likePost(form, options) {
|
338
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
406
339
|
}
|
407
340
|
/**
|
408
|
-
*
|
409
|
-
*
|
410
|
-
* `HTTP.GET /post/site_metadata`
|
341
|
+
* @summary List a post's likes. Admin-only.
|
411
342
|
*/
|
412
|
-
|
413
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/
|
343
|
+
listPostLikes(form, options) {
|
344
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
414
345
|
}
|
415
346
|
/**
|
416
|
-
*
|
417
|
-
*
|
418
|
-
* `HTTP.POST /comment`
|
347
|
+
* @summary Save a post.
|
419
348
|
*/
|
420
|
-
|
421
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
349
|
+
savePost(form, options) {
|
350
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
422
351
|
}
|
423
352
|
/**
|
424
|
-
*
|
425
|
-
*
|
426
|
-
* `HTTP.PUT /comment`
|
353
|
+
* @summary Report a post.
|
427
354
|
*/
|
428
|
-
|
429
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
355
|
+
createPostReport(form, options) {
|
356
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
430
357
|
}
|
431
358
|
/**
|
432
|
-
*
|
433
|
-
*
|
434
|
-
* `HTTP.POST /comment/delete`
|
359
|
+
* @summary Resolve a post report. Only a mod can do this.
|
435
360
|
*/
|
436
|
-
|
437
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
361
|
+
resolvePostReport(form, options) {
|
362
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
438
363
|
}
|
439
364
|
/**
|
440
|
-
*
|
441
|
-
*
|
442
|
-
* `HTTP.POST /comment/remove`
|
365
|
+
* @summary Fetch metadata for any given site.
|
443
366
|
*/
|
444
|
-
|
445
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
367
|
+
getSiteMetadata(form, options) {
|
368
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
446
369
|
}
|
447
370
|
/**
|
448
|
-
*
|
449
|
-
*
|
450
|
-
* `HTTP.POST /comment/mark_as_read`
|
371
|
+
* @summary Create a comment.
|
451
372
|
*/
|
452
|
-
|
453
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment
|
373
|
+
createComment(form, options) {
|
374
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
454
375
|
}
|
455
376
|
/**
|
456
|
-
*
|
457
|
-
*
|
458
|
-
* `HTTP.POST /comment/like`
|
377
|
+
* @summary Edit a comment.
|
459
378
|
*/
|
460
|
-
|
461
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
379
|
+
editComment(form, options) {
|
380
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
462
381
|
}
|
463
382
|
/**
|
464
|
-
*
|
465
|
-
*
|
466
|
-
* `HTTP.GET /comment/like/list`
|
383
|
+
* @summary Delete a comment.
|
467
384
|
*/
|
468
|
-
|
469
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
385
|
+
deleteComment(form, options) {
|
386
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
470
387
|
}
|
471
388
|
/**
|
472
|
-
*
|
473
|
-
*
|
474
|
-
* `HTTP.PUT /comment/save`
|
389
|
+
* @summary A moderator remove for a comment.
|
475
390
|
*/
|
476
|
-
|
477
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
391
|
+
removeComment(form, options) {
|
392
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
478
393
|
}
|
479
394
|
/**
|
480
|
-
*
|
481
|
-
*
|
482
|
-
* `HTTP.POST /comment/distinguish`
|
395
|
+
* @summary Mark a comment as read.
|
483
396
|
*/
|
484
|
-
|
485
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/
|
397
|
+
markCommentReplyAsRead(form, options) {
|
398
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
486
399
|
}
|
487
400
|
/**
|
488
|
-
*
|
489
|
-
*
|
490
|
-
* `HTTP.GET /comment/list`
|
401
|
+
* @summary Like / vote on a comment.
|
491
402
|
*/
|
492
|
-
|
493
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
403
|
+
likeComment(form, options) {
|
404
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
494
405
|
}
|
495
406
|
/**
|
496
|
-
*
|
497
|
-
*
|
498
|
-
* `HTTP.GET /comment`
|
407
|
+
* @summary List a comment's likes. Admin-only.
|
499
408
|
*/
|
500
|
-
|
501
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form);
|
409
|
+
listCommentLikes(form, options) {
|
410
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
502
411
|
}
|
503
412
|
/**
|
504
|
-
*
|
505
|
-
*
|
506
|
-
* `HTTP.POST /comment/report`
|
413
|
+
* @summary Save a comment.
|
507
414
|
*/
|
508
|
-
|
509
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
415
|
+
saveComment(form, options) {
|
416
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
510
417
|
}
|
511
418
|
/**
|
512
|
-
*
|
513
|
-
*
|
514
|
-
* `HTTP.PUT /comment/report/resolve`
|
419
|
+
* @summary Distinguishes a comment (speak as moderator)
|
515
420
|
*/
|
516
|
-
|
517
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
421
|
+
distinguishComment(form, options) {
|
422
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
518
423
|
}
|
519
424
|
/**
|
520
|
-
*
|
521
|
-
*
|
522
|
-
* `HTTP.GET /comment/report/list`
|
425
|
+
* @summary Get / fetch comments.
|
523
426
|
*/
|
524
|
-
|
525
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/
|
427
|
+
getComments(form = {}, options) {
|
428
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
526
429
|
}
|
527
430
|
/**
|
528
|
-
* Get / fetch
|
529
|
-
*
|
530
|
-
* `HTTP.GET /private_message/list`
|
431
|
+
* @summary Get / fetch comments, but without the post or community.
|
531
432
|
*/
|
532
|
-
|
533
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
433
|
+
getCommentsSlim(form = {}, options) {
|
434
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
534
435
|
}
|
535
436
|
/**
|
536
|
-
*
|
537
|
-
*
|
538
|
-
* `HTTP.POST /private_message`
|
437
|
+
* @summary Get / fetch comment.
|
539
438
|
*/
|
540
|
-
|
541
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
439
|
+
getComment(form, options) {
|
440
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
542
441
|
}
|
543
442
|
/**
|
544
|
-
*
|
545
|
-
*
|
546
|
-
* `HTTP.PUT /private_message`
|
443
|
+
* @summary Report a comment.
|
547
444
|
*/
|
548
|
-
|
549
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
445
|
+
createCommentReport(form, options) {
|
446
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
550
447
|
}
|
551
448
|
/**
|
552
|
-
*
|
553
|
-
*
|
554
|
-
* `HTTP.POST /private_message/delete`
|
449
|
+
* @summary Resolve a comment report. Only a mod can do this.
|
555
450
|
*/
|
556
|
-
|
557
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
451
|
+
resolveCommentReport(form, options) {
|
452
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
558
453
|
}
|
559
454
|
/**
|
560
|
-
*
|
561
|
-
*
|
562
|
-
* `HTTP.POST /private_message/mark_as_read`
|
455
|
+
* @summary Create a private message.
|
563
456
|
*/
|
564
|
-
|
565
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message
|
457
|
+
createPrivateMessage(form, options) {
|
458
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
566
459
|
}
|
567
460
|
/**
|
568
|
-
*
|
569
|
-
*
|
570
|
-
* `HTTP.POST /private_message/report`
|
461
|
+
* @summary Edit a private message.
|
571
462
|
*/
|
572
|
-
|
573
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
463
|
+
editPrivateMessage(form, options) {
|
464
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
574
465
|
}
|
575
466
|
/**
|
576
|
-
*
|
577
|
-
*
|
578
|
-
* `HTTP.PUT /private_message/report/resolve`
|
467
|
+
* @summary Delete a private message.
|
579
468
|
*/
|
580
|
-
|
581
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
469
|
+
deletePrivateMessage(form, options) {
|
470
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
582
471
|
}
|
583
472
|
/**
|
584
|
-
*
|
585
|
-
*
|
586
|
-
* `HTTP.GET /private_message/report/list`
|
473
|
+
* @summary Mark a private message as read.
|
587
474
|
*/
|
588
|
-
|
589
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
475
|
+
markPrivateMessageAsRead(form, options) {
|
476
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
590
477
|
}
|
591
478
|
/**
|
592
|
-
*
|
593
|
-
*
|
594
|
-
* `HTTP.POST /user/register`
|
479
|
+
* @summary Create a report for a private message.
|
595
480
|
*/
|
596
|
-
|
597
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
481
|
+
createPrivateMessageReport(form, options) {
|
482
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
598
483
|
}
|
599
484
|
/**
|
600
|
-
*
|
601
|
-
*
|
602
|
-
* `HTTP.POST /user/login`
|
485
|
+
* @summary Resolve a report for a private message.
|
603
486
|
*/
|
604
|
-
|
605
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
487
|
+
resolvePrivateMessageReport(form, options) {
|
488
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
606
489
|
}
|
607
490
|
/**
|
608
|
-
*
|
609
|
-
*
|
610
|
-
* `HTTP.POST /user/logout`
|
491
|
+
* @summary Register a new user.
|
611
492
|
*/
|
612
|
-
|
613
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
493
|
+
register(form, options) {
|
494
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
614
495
|
}
|
615
496
|
/**
|
616
|
-
*
|
617
|
-
*
|
618
|
-
* `HTTP.GET /user`
|
497
|
+
* @summary Log into lemmy.
|
619
498
|
*/
|
620
|
-
|
621
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
499
|
+
login(form, options) {
|
500
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
622
501
|
}
|
623
502
|
/**
|
624
|
-
*
|
625
|
-
*
|
626
|
-
* `HTTP.GET /user/mention`
|
503
|
+
* @summary Invalidate the currently used auth token.
|
627
504
|
*/
|
628
|
-
|
629
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
505
|
+
logout(options) {
|
506
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
630
507
|
}
|
631
508
|
/**
|
632
|
-
*
|
633
|
-
*
|
634
|
-
* `HTTP.POST /user/mention/mark_as_read`
|
509
|
+
* @summary Get the details for a person.
|
635
510
|
*/
|
636
|
-
|
637
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
511
|
+
getPersonDetails(form = {}, options) {
|
512
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
638
513
|
}
|
639
514
|
/**
|
640
|
-
*
|
641
|
-
*
|
642
|
-
* `HTTP.GET /user/replies`
|
515
|
+
* @summary List the content for a person.
|
643
516
|
*/
|
644
|
-
|
645
|
-
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);
|
646
519
|
}
|
647
520
|
/**
|
648
|
-
*
|
649
|
-
*
|
650
|
-
* `HTTP.POST /user/ban`
|
521
|
+
* @summary Mark a person mention as read.
|
651
522
|
*/
|
652
|
-
|
653
|
-
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);
|
654
525
|
}
|
655
526
|
/**
|
656
|
-
*
|
657
|
-
*
|
658
|
-
* `HTTP.GET /user/banned`
|
527
|
+
* @summary Mark a person post body mention as read.
|
659
528
|
*/
|
660
|
-
|
661
|
-
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);
|
662
531
|
}
|
663
532
|
/**
|
664
|
-
*
|
665
|
-
*
|
666
|
-
* `HTTP.POST /user/block`
|
533
|
+
* @summary Ban a person from your site.
|
667
534
|
*/
|
668
|
-
|
669
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
535
|
+
banPerson(form, options) {
|
536
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
670
537
|
}
|
671
538
|
/**
|
672
|
-
*
|
673
|
-
*
|
674
|
-
* `HTTP.GET /user/get_captcha`
|
539
|
+
* @summary Get a list of banned users.
|
675
540
|
*/
|
676
|
-
|
677
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
541
|
+
getBannedPersons(options) {
|
542
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
|
678
543
|
}
|
679
544
|
/**
|
680
|
-
*
|
681
|
-
*
|
682
|
-
* `HTTP.POST /user/delete_account`
|
545
|
+
* @summary Block a person.
|
683
546
|
*/
|
684
|
-
|
685
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
547
|
+
blockPerson(form, options) {
|
548
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
686
549
|
}
|
687
550
|
/**
|
688
|
-
*
|
689
|
-
*
|
690
|
-
* `HTTP.POST /user/password_reset`
|
551
|
+
* @summary Fetch a Captcha.
|
691
552
|
*/
|
692
|
-
|
693
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
553
|
+
getCaptcha(options) {
|
554
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
694
555
|
}
|
695
556
|
/**
|
696
|
-
*
|
697
|
-
*
|
698
|
-
* `HTTP.POST /user/password_change`
|
557
|
+
* @summary Delete your account.
|
699
558
|
*/
|
700
|
-
|
701
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
559
|
+
deleteAccount(form, options) {
|
560
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
702
561
|
}
|
703
562
|
/**
|
704
|
-
*
|
705
|
-
*
|
706
|
-
* `HTTP.POST /user/mark_all_as_read`
|
563
|
+
* @summary Reset your password.
|
707
564
|
*/
|
708
|
-
|
709
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
565
|
+
passwordReset(form, options) {
|
566
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
710
567
|
}
|
711
568
|
/**
|
712
|
-
*
|
713
|
-
*
|
714
|
-
* `HTTP.PUT /user/save_user_settings`
|
569
|
+
* @summary Change your password from an email / token based reset.
|
715
570
|
*/
|
716
|
-
|
717
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
571
|
+
passwordChangeAfterReset(form, options) {
|
572
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
718
573
|
}
|
719
574
|
/**
|
720
|
-
*
|
721
|
-
*
|
722
|
-
* `HTTP.PUT /user/change_password`
|
575
|
+
* @summary Mark all replies as read.
|
723
576
|
*/
|
724
|
-
|
725
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
577
|
+
markAllNotificationsAsRead(options) {
|
578
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
726
579
|
}
|
727
580
|
/**
|
728
|
-
*
|
729
|
-
*
|
730
|
-
* `HTTP.GET /user/report_count`
|
581
|
+
* @summary Save your user settings.
|
731
582
|
*/
|
732
|
-
|
733
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
583
|
+
saveUserSettings(form, options) {
|
584
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
734
585
|
}
|
735
586
|
/**
|
736
|
-
*
|
737
|
-
*
|
738
|
-
* `HTTP.GET /user/unread_count`
|
587
|
+
* @summary Change your user password.
|
739
588
|
*/
|
740
|
-
|
741
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
589
|
+
changePassword(form, options) {
|
590
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
742
591
|
}
|
743
592
|
/**
|
744
|
-
*
|
745
|
-
*
|
746
|
-
* `HTTP.POST /user/verify_email`
|
593
|
+
* @summary Get counts for your reports.
|
747
594
|
*/
|
748
|
-
|
749
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
595
|
+
getReportCount(form, options) {
|
596
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
750
597
|
}
|
751
598
|
/**
|
752
|
-
*
|
753
|
-
*
|
754
|
-
* `HTTP.POST /admin/add`
|
599
|
+
* @summary Get your unread counts.
|
755
600
|
*/
|
756
|
-
|
757
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
601
|
+
getUnreadCount(options) {
|
602
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
758
603
|
}
|
759
604
|
/**
|
760
|
-
* Get
|
761
|
-
*
|
762
|
-
* `HTTP.GET /admin/registration_application/count`
|
605
|
+
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
763
606
|
*/
|
764
|
-
|
765
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
607
|
+
listInbox(form, options) {
|
608
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
|
766
609
|
}
|
767
610
|
/**
|
768
|
-
*
|
769
|
-
*
|
770
|
-
* `HTTP.GET /admin/registration_application/list`
|
611
|
+
* @summary Verify your email
|
771
612
|
*/
|
772
|
-
|
773
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
613
|
+
verifyEmail(form, options) {
|
614
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
774
615
|
}
|
775
616
|
/**
|
776
|
-
*
|
777
|
-
*
|
778
|
-
* `HTTP.PUT /admin/registration_application/approve`
|
617
|
+
* @summary List your saved content.
|
779
618
|
*/
|
780
|
-
|
781
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
619
|
+
listPersonSaved(form, options) {
|
620
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
|
782
621
|
}
|
783
622
|
/**
|
784
|
-
*
|
785
|
-
*
|
786
|
-
* `HTTP.GET /admin/registration_application`
|
623
|
+
* @summary Add an admin to your site.
|
787
624
|
*/
|
788
|
-
|
789
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
625
|
+
addAdmin(form, options) {
|
626
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
790
627
|
}
|
791
628
|
/**
|
792
|
-
*
|
793
|
-
*
|
794
|
-
* `HTTP.POST /admin/purge/person`
|
629
|
+
* @summary Get the unread registration applications count.
|
795
630
|
*/
|
796
|
-
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
631
|
+
getUnreadRegistrationApplicationCount(options) {
|
632
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
798
633
|
}
|
799
634
|
/**
|
800
|
-
*
|
801
|
-
*
|
802
|
-
* `HTTP.POST /admin/purge/community`
|
635
|
+
* @summary List the registration applications.
|
803
636
|
*/
|
804
|
-
|
805
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
637
|
+
listRegistrationApplications(form, options) {
|
638
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
806
639
|
}
|
807
640
|
/**
|
808
|
-
*
|
809
|
-
*
|
810
|
-
* `HTTP.POST /admin/purge/post`
|
641
|
+
* @summary Approve a registration application
|
811
642
|
*/
|
812
|
-
|
813
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
643
|
+
approveRegistrationApplication(form, options) {
|
644
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
814
645
|
}
|
815
646
|
/**
|
816
|
-
*
|
817
|
-
*
|
818
|
-
* `HTTP.POST /admin/purge/comment`
|
647
|
+
* @summary Get the application a user submitted when they first registered their account
|
819
648
|
*/
|
820
|
-
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
649
|
+
getRegistrationApplication(form, options) {
|
650
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
822
651
|
}
|
823
652
|
/**
|
824
|
-
*
|
825
|
-
*
|
826
|
-
* `HTTP.POST /custom_emoji`
|
653
|
+
* @summary Purge / Delete a person from the database.
|
827
654
|
*/
|
828
|
-
|
829
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
655
|
+
purgePerson(form, options) {
|
656
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
830
657
|
}
|
831
658
|
/**
|
832
|
-
*
|
833
|
-
*
|
834
|
-
* `HTTP.PUT /custom_emoji`
|
659
|
+
* @summary Purge / Delete a community from the database.
|
835
660
|
*/
|
836
|
-
|
837
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
661
|
+
purgeCommunity(form, options) {
|
662
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
838
663
|
}
|
839
664
|
/**
|
840
|
-
* Delete a
|
841
|
-
*
|
842
|
-
* `HTTP.Post /custom_emoji/delete`
|
665
|
+
* @summary Purge / Delete a post from the database.
|
843
666
|
*/
|
844
|
-
|
845
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
667
|
+
purgePost(form, options) {
|
668
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
846
669
|
}
|
847
670
|
/**
|
848
|
-
*
|
849
|
-
*
|
850
|
-
* `HTTP.POST /oauth_provider`
|
671
|
+
* @summary Purge / Delete a comment from the database.
|
851
672
|
*/
|
852
|
-
|
853
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
673
|
+
purgeComment(form, options) {
|
674
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
854
675
|
}
|
855
676
|
/**
|
856
|
-
*
|
857
|
-
*
|
858
|
-
* `HTTP.PUT /oauth_provider`
|
677
|
+
* @summary Create a new custom emoji.
|
859
678
|
*/
|
860
|
-
|
861
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
679
|
+
createCustomEmoji(form, options) {
|
680
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
862
681
|
}
|
863
682
|
/**
|
864
|
-
*
|
865
|
-
*
|
866
|
-
* `HTTP.Post /oauth_provider/delete`
|
683
|
+
* @summary Edit an existing custom emoji.
|
867
684
|
*/
|
868
|
-
|
869
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
685
|
+
editCustomEmoji(form, options) {
|
686
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
870
687
|
}
|
871
688
|
/**
|
872
|
-
*
|
873
|
-
*
|
874
|
-
* `HTTP.Post /oauth/authenticate`
|
689
|
+
* @summary Delete a custom emoji.
|
875
690
|
*/
|
876
|
-
|
877
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
691
|
+
deleteCustomEmoji(form, options) {
|
692
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
878
693
|
}
|
879
694
|
/**
|
880
|
-
*
|
881
|
-
*
|
882
|
-
* `HTTP.Get /federated_instances`
|
695
|
+
* @summary List custom emojis
|
883
696
|
*/
|
884
|
-
|
885
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
697
|
+
listCustomEmojis(form, options) {
|
698
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
886
699
|
}
|
887
700
|
/**
|
888
|
-
*
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
701
|
+
* @summary Create a new tagline
|
702
|
+
*/
|
703
|
+
createTagline(form, options) {
|
704
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
705
|
+
}
|
706
|
+
/**
|
707
|
+
* @summary Edit an existing tagline
|
708
|
+
*/
|
709
|
+
editTagline(form, options) {
|
710
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
711
|
+
}
|
712
|
+
/**
|
713
|
+
* @summary Delete a tagline
|
714
|
+
*/
|
715
|
+
deleteTagline(form, options) {
|
716
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
717
|
+
}
|
718
|
+
/**
|
719
|
+
* @summary List taglines.
|
720
|
+
*/
|
721
|
+
listTaglines(form, options) {
|
722
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
723
|
+
}
|
724
|
+
/**
|
725
|
+
* @summary Create a new oauth provider method
|
726
|
+
*/
|
727
|
+
createOAuthProvider(form, options) {
|
728
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
729
|
+
}
|
730
|
+
/**
|
731
|
+
* @summary Edit an existing oauth provider method
|
732
|
+
*/
|
733
|
+
editOAuthProvider(form, options) {
|
734
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
735
|
+
}
|
736
|
+
/**
|
737
|
+
* @summary Delete an oauth provider method
|
738
|
+
*/
|
739
|
+
deleteOAuthProvider(form, options) {
|
740
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
741
|
+
}
|
742
|
+
/**
|
743
|
+
* @summary Authenticate with OAuth
|
744
|
+
*/
|
745
|
+
authenticateWithOAuth(form, options) {
|
746
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
747
|
+
}
|
748
|
+
/**
|
749
|
+
* @summary Fetch federated instances.
|
750
|
+
*/
|
751
|
+
getFederatedInstances(options) {
|
752
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
753
|
+
}
|
754
|
+
/**
|
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);
|
784
|
+
});
|
785
|
+
}
|
786
|
+
/**
|
787
|
+
* @summary Delete the user avatar.
|
788
|
+
*/
|
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);
|
919
872
|
});
|
920
873
|
}
|
921
874
|
/**
|
922
|
-
*
|
875
|
+
* @summary Upload an image to the server.
|
923
876
|
*/
|
924
|
-
|
925
|
-
return __awaiter(this,
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
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);
|
932
896
|
});
|
933
897
|
}
|
934
898
|
/**
|
@@ -937,27 +901,32 @@ class LemmyHttp {
|
|
937
901
|
setHeaders(headers) {
|
938
902
|
__classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
|
939
903
|
}
|
940
|
-
}
|
904
|
+
};
|
941
905
|
exports.LemmyHttp = LemmyHttp;
|
942
|
-
_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) {
|
943
911
|
return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
|
944
|
-
}
|
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) {
|
945
921
|
return __awaiter(this, void 0, void 0, function* () {
|
946
922
|
var _a;
|
947
923
|
let response;
|
948
924
|
if (type_ === HttpType.Get) {
|
949
925
|
const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
|
950
|
-
response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
|
951
|
-
method: HttpType.Get,
|
952
|
-
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
953
|
-
});
|
926
|
+
response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, Object.assign(Object.assign({}, options), { method: HttpType.Get, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
|
954
927
|
}
|
955
928
|
else {
|
956
|
-
response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
|
957
|
-
method: type_,
|
958
|
-
headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")),
|
959
|
-
body: JSON.stringify(form),
|
960
|
-
});
|
929
|
+
response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), Object.assign(Object.assign({}, options), { method: type_, headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")), body: JSON.stringify(form) }));
|
961
930
|
}
|
962
931
|
let json = undefined;
|
963
932
|
try {
|
@@ -974,6 +943,923 @@ _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHtt
|
|
974
943
|
}
|
975
944
|
});
|
976
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);
|
977
1863
|
function encodeGetParams(p) {
|
978
1864
|
return Object.entries(p)
|
979
1865
|
.filter(kv => kv[1] !== undefined && kv[1] !== null)
|