lemmy-js-client 1.0.0-site-person-ban.1 → 1.0.0-test-fix-errors-1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/http.d.ts +176 -105
- package/dist/http.js +1156 -959
- package/dist/index.d.ts +63 -104
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +25 -10
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +6 -0
- package/dist/types/AllLemmyErrors.d.ts +1 -0
- package/dist/types/AllLemmyErrors.js +117 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/BanFromCommunity.d.ts +2 -2
- package/dist/types/BanPerson.d.ts +2 -2
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/Comment.d.ts +11 -2
- package/dist/types/CommentActions.d.ts +6 -10
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +5 -1
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +3 -5
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +7 -4
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +11 -17
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportView.d.ts +6 -0
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +2 -2
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommunityTag.d.ts +10 -0
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +17 -15
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +30 -25
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +3 -5
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationMode.d.ts +1 -1
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +2 -3
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +3 -3
- package/dist/types/GetMultiCommunity.d.ts +5 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +6 -12
- package/dist/types/GetSiteResponse.d.ts +8 -0
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +8 -8
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +45 -94
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +2 -1
- package/dist/types/ListCommunities.d.ts +2 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -2
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListMedia.d.ts +2 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMultiCommunities.d.ts +16 -0
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +4 -4
- package/dist/types/ListPersonContent.d.ts +1 -1
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -3
- package/dist/types/ListPersonLiked.d.ts +12 -0
- package/dist/types/ListPersonRead.d.ts +8 -0
- package/dist/types/ListPersonSaved.d.ts +1 -1
- package/dist/types/ListPostLikes.d.ts +2 -1
- package/dist/types/ListRegistrationApplications.d.ts +2 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListReports.d.ts +1 -1
- package/dist/types/ListTaglines.d.ts +2 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +9 -15
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +13 -14
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +7 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +20 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunityResponse.d.ts +4 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +8 -0
- package/dist/types/MyUserInfo.d.ts +5 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/Notification.d.ts +18 -0
- package/dist/types/NotificationData.d.ts +13 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PagedResponse.d.ts +11 -0
- package/dist/types/PaginationCursor.d.ts +5 -1
- package/dist/types/PendingFollowerView.d.ts +9 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonView.d.ts +4 -3
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +14 -7
- package/dist/types/PostActions.d.ts +15 -17
- package/dist/types/{PersonSavedCombinedView.d.ts → PostCommentCombinedView.d.ts} +3 -3
- package/dist/types/PostFeatureType.d.ts +1 -1
- package/dist/types/PostListingMode.d.ts +1 -1
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +5 -1
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +7 -4
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +3 -0
- package/dist/types/PurgeComment.d.ts +1 -1
- package/dist/types/PurgeCommunity.d.ts +1 -1
- package/dist/types/PurgePerson.d.ts +1 -1
- package/dist/types/PurgePost.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationApplication.d.ts +2 -1
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +1 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +12 -6
- package/dist/types/Search.d.ts +10 -2
- package/dist/types/SearchCombinedView.d.ts +8 -5
- package/dist/types/SearchResponse.d.ts +12 -1
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +7 -13
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/UnreadCountsResponse.d.ts +11 -0
- package/dist/types/UntranslatedError.d.ts +14 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.d.ts +9 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserSettingsBackup.d.ts +29 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteView.d.ts +5 -1
- package/package.json +11 -7
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanPersonResponse.d.ts +0 -8
- package/dist/types/BannedPersonsResponse.d.ts +0 -12
- package/dist/types/BlockCommunityResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.d.ts +0 -8
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -28
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederationError.d.ts +0 -10
- package/dist/types/GetCommentsResponse.d.ts +0 -7
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -7
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +0 -3
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetModlogResponse.d.ts +0 -12
- package/dist/types/GetPostsResponse.d.ts +0 -12
- package/dist/types/GetReportCount.d.ts +0 -7
- package/dist/types/GetReportCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +0 -6
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/ListCommentLikesResponse.d.ts +0 -7
- package/dist/types/ListCommunitiesResponse.d.ts +0 -7
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -4
- package/dist/types/ListInboxResponse.d.ts +0 -12
- package/dist/types/ListMediaResponse.d.ts +0 -4
- package/dist/types/ListPersonContentResponse.d.ts +0 -12
- package/dist/types/ListPersonSavedResponse.d.ts +0 -12
- package/dist/types/ListPostLikesResponse.d.ts +0 -7
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -7
- package/dist/types/ListReportsResponse.d.ts +0 -12
- package/dist/types/ListTaglinesResponse.d.ts +0 -7
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.js +0 -2
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAdd.js +0 -2
- package/dist/types/ModAddCommunity.d.ts +0 -14
- package/dist/types/ModAddCommunity.js +0 -2
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddCommunityView.d.ts +0 -12
- package/dist/types/ModAddCommunityView.js +0 -2
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModAddView.d.ts +0 -10
- package/dist/types/ModAddView.js +0 -2
- package/dist/types/ModBan.d.ts +0 -16
- package/dist/types/ModBan.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModBanView.d.ts +0 -10
- package/dist/types/ModBanView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -13
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemoveCommunity.d.ts +0 -14
- package/dist/types/ModRemoveCommunity.js +0 -2
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.js +0 -3
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMention.js +0 -2
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionId.js +0 -3
- package/dist/types/PersonCommentMentionView.d.ts +0 -28
- package/dist/types/PersonCommentMentionView.js +0 -2
- package/dist/types/PersonContentCombinedView.d.ts +0 -7
- package/dist/types/PersonContentCombinedView.js +0 -2
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMention.js +0 -2
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionId.js +0 -3
- package/dist/types/PersonPostMentionView.d.ts +0 -28
- package/dist/types/PersonPostMentionView.js +0 -2
- package/dist/types/PersonSavedCombinedView.js +0 -2
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/PostPaginationCursor.js +0 -3
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/ResolveObjectResponse.js +0 -2
- package/dist/types/UserBlockInstanceParams.js +0 -2
- /package/dist/types/{AdminAllowInstance.js → AdminListUsers.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → LikeType.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → ListNotifications.js} +0 -0
- /package/dist/types/{BannedPersonsResponse.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → ListPersonRead.js} +0 -0
- /package/dist/types/{CommentReply.js → LockComment.js} +0 -0
- /package/dist/types/{CommentReplyView.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{FederatedInstances.js → ModEditPost.js} +0 -0
- /package/dist/types/{GetCommentsResponse.js → Modlog.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → ModlogId.js} +0 -0
- /package/dist/types/{CommentReplyId.js → ModlogKind.js} +0 -0
- /package/dist/types/{GetCommentsSlimResponse.js → ModlogView.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → MultiCommunity.js} +0 -0
- /package/dist/types/{GetFederatedInstancesResponse.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{GetModlogResponse.js → MultiCommunityFollow.js} +0 -0
- /package/dist/types/{FederationError.js → MultiCommunityId.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{GetPostsResponse.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{GetReportCountResponse.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{GetReportCount.js → MultiCommunityView.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → NotePerson.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → Notification.js} +0 -0
- /package/dist/types/{ListCommentLikesResponse.js → NotificationData.js} +0 -0
- /package/dist/types/{GetUnreadCountResponse.js → NotificationDataType.js} +0 -0
- /package/dist/types/{GetUnreadRegistrationApplicationCountResponse.js → NotificationId.js} +0 -0
- /package/dist/types/{InboxDataType.js → NotificationType.js} +0 -0
- /package/dist/types/{ListCommunitiesResponse.js → NotificationView.js} +0 -0
- /package/dist/types/{ListCommunityPendingFollowsResponse.js → PagedResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → PluginMetadata.js} +0 -0
- /package/dist/types/{ListMediaResponse.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{ModAddId.js → PostNotificationsMode.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{ListPersonSavedResponse.js → TagsView.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → UnreadCountsResponse.js} +0 -0
- /package/dist/types/{ModBanId.js → UntranslatedError.js} +0 -0
- /package/dist/types/{ListPostLikesResponse.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{ListRegistrationApplicationsResponse.js → UpdateCommunityTag.js} +0 -0
- /package/dist/types/{ListReportsResponse.js → UpdateMultiCommunity.js} +0 -0
- /package/dist/types/{ListTaglinesResponse.js → UpdatePostNotifications.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → UserBlockInstancePersonsParams.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → UserSettingsBackup.js} +0 -0
- /package/dist/types/{ModChangeCommunityVisibilityId.js → VoteShow.js} +0 -0
package/dist/http.js
CHANGED
|
@@ -8,15 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
9
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
10
|
};
|
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
11
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
21
12
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
22
13
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -28,10 +19,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
28
19
|
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");
|
|
29
20
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
30
21
|
};
|
|
31
|
-
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
|
22
|
+
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
|
|
32
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.LemmyHttp = void 0;
|
|
34
|
-
const
|
|
24
|
+
exports.LemmyError = exports.LemmyHttp = void 0;
|
|
25
|
+
const runtime_1 = require("@tsoa/runtime");
|
|
35
26
|
const other_types_1 = require("./other_types");
|
|
36
27
|
var HttpType;
|
|
37
28
|
(function (HttpType) {
|
|
@@ -43,7 +34,7 @@ var HttpType;
|
|
|
43
34
|
/**
|
|
44
35
|
* Helps build lemmy HTTP requests.
|
|
45
36
|
*/
|
|
46
|
-
let LemmyHttp = class LemmyHttp extends
|
|
37
|
+
let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
47
38
|
/**
|
|
48
39
|
* Generates a new instance of LemmyHttp.
|
|
49
40
|
* @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
|
|
@@ -56,35 +47,35 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
|
56
47
|
_LemmyHttp_headers.set(this, {});
|
|
57
48
|
_LemmyHttp_fetchFunction.set(this, fetch.bind(globalThis));
|
|
58
49
|
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
|
|
59
|
-
if (options
|
|
50
|
+
if (options?.headers) {
|
|
60
51
|
__classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
|
|
61
52
|
}
|
|
62
|
-
if (options
|
|
53
|
+
if (options?.fetchFunction) {
|
|
63
54
|
__classPrivateFieldSet(this, _LemmyHttp_fetchFunction, options.fetchFunction, "f");
|
|
64
55
|
}
|
|
65
56
|
}
|
|
66
57
|
/**
|
|
67
58
|
* @summary Gets the site, and your user data.
|
|
68
59
|
*/
|
|
69
|
-
getSite(options) {
|
|
60
|
+
async getSite(options) {
|
|
70
61
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
|
71
62
|
}
|
|
72
63
|
/**
|
|
73
64
|
* @summary Create your site.
|
|
74
65
|
*/
|
|
75
|
-
createSite(form, options) {
|
|
66
|
+
async createSite(form, options) {
|
|
76
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
|
77
68
|
}
|
|
78
69
|
/**
|
|
79
70
|
* @summary Edit your site.
|
|
80
71
|
*/
|
|
81
|
-
editSite(form, options) {
|
|
72
|
+
async editSite(form, options) {
|
|
82
73
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
|
83
74
|
}
|
|
84
75
|
/**
|
|
85
76
|
* @summary Leave the Site admins.
|
|
86
77
|
*/
|
|
87
|
-
leaveAdmin(options) {
|
|
78
|
+
async leaveAdmin(options) {
|
|
88
79
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
|
89
80
|
}
|
|
90
81
|
/**
|
|
@@ -93,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
|
93
84
|
* Generate a TOTP / two-factor secret.
|
|
94
85
|
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
|
95
86
|
*/
|
|
96
|
-
generateTotpSecret(options) {
|
|
87
|
+
async generateTotpSecret(options) {
|
|
97
88
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
|
98
89
|
}
|
|
99
90
|
/**
|
|
100
91
|
* @summary Get data of current user.
|
|
101
92
|
*/
|
|
102
|
-
getMyUser(options) {
|
|
93
|
+
async getMyUser(options) {
|
|
103
94
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
|
104
95
|
}
|
|
105
96
|
/**
|
|
@@ -108,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
|
108
99
|
* Export a backup of your user settings, including your saved content,
|
|
109
100
|
* followed communities, and blocks.
|
|
110
101
|
*/
|
|
111
|
-
exportSettings(options) {
|
|
102
|
+
async exportSettings(options) {
|
|
112
103
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
|
113
104
|
}
|
|
114
105
|
/**
|
|
115
106
|
* @summary Import a backup of your user settings.
|
|
116
107
|
*/
|
|
117
|
-
importSettings(form, options) {
|
|
108
|
+
async importSettings(form, options) {
|
|
118
109
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
|
119
110
|
}
|
|
120
111
|
/**
|
|
121
112
|
* @summary List login tokens for your user
|
|
122
113
|
*/
|
|
123
|
-
listLogins(options) {
|
|
124
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
114
|
+
async listLogins(options) {
|
|
115
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/login/list", {}, options);
|
|
125
116
|
}
|
|
126
117
|
/**
|
|
127
118
|
* @summary Returns an error message if your auth token is invalid
|
|
128
119
|
*/
|
|
129
|
-
validateAuth(options) {
|
|
120
|
+
async validateAuth(options) {
|
|
130
121
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
|
131
122
|
}
|
|
132
123
|
/**
|
|
133
|
-
* @summary List all the media for your
|
|
124
|
+
* @summary List all the media for your account.
|
|
125
|
+
*/
|
|
126
|
+
async listMedia(form = {}, options) {
|
|
127
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @summary Delete media for your account.
|
|
131
|
+
*/
|
|
132
|
+
async deleteMedia(form, options) {
|
|
133
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @summary Delete any media. (Admin only)
|
|
134
137
|
*/
|
|
135
|
-
|
|
136
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
138
|
+
async deleteMediaAdmin(form, options) {
|
|
139
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
|
137
140
|
}
|
|
138
141
|
/**
|
|
139
142
|
* @summary List all the media known to your instance.
|
|
140
143
|
*/
|
|
141
|
-
|
|
142
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
|
144
|
+
async listMediaAdmin(form = {}, options) {
|
|
145
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
|
|
143
146
|
}
|
|
144
147
|
/**
|
|
145
148
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
|
@@ -148,758 +151,798 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
|
148
151
|
*
|
|
149
152
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
|
150
153
|
*/
|
|
151
|
-
updateTotp(form, options) {
|
|
154
|
+
async updateTotp(form, options) {
|
|
152
155
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
|
153
156
|
}
|
|
154
157
|
/**
|
|
155
158
|
* @summary Get the modlog.
|
|
156
159
|
*/
|
|
157
|
-
getModlog(form = {}, options) {
|
|
160
|
+
async getModlog(form = {}, options) {
|
|
158
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
|
159
162
|
}
|
|
160
163
|
/**
|
|
161
|
-
* @summary Search lemmy.
|
|
164
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
162
165
|
*/
|
|
163
|
-
search(form, options) {
|
|
166
|
+
async search(form, options) {
|
|
164
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
|
165
168
|
}
|
|
166
169
|
/**
|
|
167
170
|
* @summary Fetch a non-local / federated object.
|
|
168
171
|
*/
|
|
169
|
-
resolveObject(form, options) {
|
|
172
|
+
async resolveObject(form, options) {
|
|
170
173
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
|
171
174
|
}
|
|
172
175
|
/**
|
|
173
176
|
* @summary Create a new community.
|
|
174
177
|
*/
|
|
175
|
-
createCommunity(form, options) {
|
|
178
|
+
async createCommunity(form, options) {
|
|
176
179
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
|
177
180
|
}
|
|
178
181
|
/**
|
|
179
182
|
* @summary Get / fetch a community.
|
|
180
183
|
*/
|
|
181
|
-
getCommunity(form = {}, options) {
|
|
184
|
+
async getCommunity(form = {}, options) {
|
|
182
185
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
|
183
186
|
}
|
|
184
187
|
/**
|
|
185
188
|
* @summary Edit a community.
|
|
186
189
|
*/
|
|
187
|
-
editCommunity(form, options) {
|
|
190
|
+
async editCommunity(form, options) {
|
|
188
191
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
|
189
192
|
}
|
|
190
193
|
/**
|
|
191
194
|
* @summary List communities, with various filters.
|
|
192
195
|
*/
|
|
193
|
-
listCommunities(form = {}, options) {
|
|
196
|
+
async listCommunities(form = {}, options) {
|
|
194
197
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
|
195
198
|
}
|
|
196
199
|
/**
|
|
197
200
|
* @summary Follow / subscribe to a community.
|
|
198
201
|
*/
|
|
199
|
-
followCommunity(form, options) {
|
|
202
|
+
async followCommunity(form, options) {
|
|
200
203
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
|
201
204
|
}
|
|
202
205
|
/**
|
|
203
|
-
* @summary
|
|
206
|
+
* @summary Returns the amount of unread items of various types. For normal users this means * the number of unread notifications, mods and admins get additional unread counts for
|
|
207
|
+
* reports, registration applications and pending follows to private communities.
|
|
204
208
|
*/
|
|
205
|
-
|
|
206
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
|
209
|
+
async getUnreadCounts(options) {
|
|
210
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_counts", {}, options);
|
|
207
211
|
}
|
|
208
212
|
/**
|
|
209
213
|
* @summary Get a community's pending followers.
|
|
210
214
|
*/
|
|
211
|
-
listCommunityPendingFollows(form, options) {
|
|
215
|
+
async listCommunityPendingFollows(form, options) {
|
|
212
216
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
|
213
217
|
}
|
|
214
218
|
/**
|
|
215
219
|
* @summary Approve a community pending follow request.
|
|
216
220
|
*/
|
|
217
|
-
approveCommunityPendingFollow(form, options) {
|
|
221
|
+
async approveCommunityPendingFollow(form, options) {
|
|
218
222
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
|
219
223
|
}
|
|
220
224
|
/**
|
|
221
225
|
* @summary Block a community.
|
|
222
226
|
*/
|
|
223
|
-
blockCommunity(form, options) {
|
|
227
|
+
async blockCommunity(form, options) {
|
|
224
228
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
|
225
229
|
}
|
|
226
230
|
/**
|
|
227
231
|
* @summary Delete a community.
|
|
228
232
|
*/
|
|
229
|
-
deleteCommunity(form, options) {
|
|
230
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
233
|
+
async deleteCommunity(form, options) {
|
|
234
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community", form, options);
|
|
231
235
|
}
|
|
232
236
|
/**
|
|
233
237
|
* @summary Hide a community from public / "All" view. Admins only.
|
|
234
238
|
*/
|
|
235
|
-
hideCommunity(form, options) {
|
|
239
|
+
async hideCommunity(form, options) {
|
|
236
240
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
|
237
241
|
}
|
|
238
242
|
/**
|
|
239
243
|
* @summary A moderator remove for a community.
|
|
240
244
|
*/
|
|
241
|
-
removeCommunity(form, options) {
|
|
245
|
+
async removeCommunity(form, options) {
|
|
242
246
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
|
243
247
|
}
|
|
244
248
|
/**
|
|
245
249
|
* @summary Transfer your community to an existing moderator.
|
|
246
250
|
*/
|
|
247
|
-
transferCommunity(form, options) {
|
|
251
|
+
async transferCommunity(form, options) {
|
|
248
252
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
|
249
253
|
}
|
|
250
254
|
/**
|
|
251
255
|
* @summary Ban a user from a community.
|
|
252
256
|
*/
|
|
253
|
-
banFromCommunity(form, options) {
|
|
257
|
+
async banFromCommunity(form, options) {
|
|
254
258
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
|
255
259
|
}
|
|
256
260
|
/**
|
|
257
261
|
* @summary Add a moderator to your community.
|
|
258
262
|
*/
|
|
259
|
-
addModToCommunity(form, options) {
|
|
263
|
+
async addModToCommunity(form, options) {
|
|
260
264
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
|
261
265
|
}
|
|
262
266
|
/**
|
|
263
267
|
* @summary Get a random community.
|
|
264
268
|
*/
|
|
265
|
-
getRandomCommunity(form, options) {
|
|
269
|
+
async getRandomCommunity(form, options) {
|
|
266
270
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
|
267
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* @summary Create a report for a community.
|
|
274
|
+
*/
|
|
275
|
+
async createCommunityReport(form, options) {
|
|
276
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* @summary Resolve a report for a private message.
|
|
280
|
+
*/
|
|
281
|
+
async resolveCommunityReport(form, options) {
|
|
282
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
|
|
283
|
+
}
|
|
268
284
|
/**
|
|
269
285
|
* @summary Create a post.
|
|
270
286
|
*/
|
|
271
|
-
createPost(form, options) {
|
|
287
|
+
async createPost(form, options) {
|
|
272
288
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
|
273
289
|
}
|
|
274
290
|
/**
|
|
275
291
|
* @summary Get / fetch a post.
|
|
276
292
|
*/
|
|
277
|
-
getPost(form = {}, options) {
|
|
293
|
+
async getPost(form = {}, options) {
|
|
278
294
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
|
279
295
|
}
|
|
280
296
|
/**
|
|
281
297
|
* @summary Edit a post.
|
|
282
298
|
*/
|
|
283
|
-
editPost(form, options) {
|
|
299
|
+
async editPost(form, options) {
|
|
284
300
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
|
285
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
304
|
+
*/
|
|
305
|
+
async modEditPost(form, options) {
|
|
306
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/mod_update", form, options);
|
|
307
|
+
}
|
|
286
308
|
/**
|
|
287
309
|
* @summary Delete a post.
|
|
288
310
|
*/
|
|
289
|
-
deletePost(form, options) {
|
|
290
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
311
|
+
async deletePost(form, options) {
|
|
312
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/post", form, options);
|
|
291
313
|
}
|
|
292
314
|
/**
|
|
293
315
|
* @summary A moderator remove for a post.
|
|
294
316
|
*/
|
|
295
|
-
removePost(form, options) {
|
|
317
|
+
async removePost(form, options) {
|
|
296
318
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
|
297
319
|
}
|
|
298
320
|
/**
|
|
299
321
|
* @summary Mark a post as read.
|
|
300
322
|
*/
|
|
301
|
-
markPostAsRead(form, options) {
|
|
323
|
+
async markPostAsRead(form, options) {
|
|
302
324
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
|
303
325
|
}
|
|
304
326
|
/**
|
|
305
327
|
* @summary Mark multiple posts as read.
|
|
306
328
|
*/
|
|
307
|
-
markManyPostAsRead(form, options) {
|
|
329
|
+
async markManyPostAsRead(form, options) {
|
|
308
330
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
|
309
331
|
}
|
|
310
332
|
/**
|
|
311
333
|
* @summary Hide a post from list views.
|
|
312
334
|
*/
|
|
313
|
-
hidePost(form, options) {
|
|
335
|
+
async hidePost(form, options) {
|
|
314
336
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
|
315
337
|
}
|
|
316
338
|
/**
|
|
317
339
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
|
318
340
|
*/
|
|
319
|
-
lockPost(form, options) {
|
|
341
|
+
async lockPost(form, options) {
|
|
320
342
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
|
321
343
|
}
|
|
322
344
|
/**
|
|
323
345
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
|
324
346
|
*/
|
|
325
|
-
featurePost(form, options) {
|
|
347
|
+
async featurePost(form, options) {
|
|
326
348
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
|
327
349
|
}
|
|
328
350
|
/**
|
|
329
351
|
* @summary Get / fetch posts, with various filters.
|
|
330
352
|
*/
|
|
331
|
-
getPosts(form = {}, options) {
|
|
353
|
+
async getPosts(form = {}, options) {
|
|
332
354
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
|
333
355
|
}
|
|
334
356
|
/**
|
|
335
357
|
* @summary Like / vote on a post.
|
|
336
358
|
*/
|
|
337
|
-
likePost(form, options) {
|
|
359
|
+
async likePost(form, options) {
|
|
338
360
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
|
339
361
|
}
|
|
340
362
|
/**
|
|
341
363
|
* @summary List a post's likes. Admin-only.
|
|
342
364
|
*/
|
|
343
|
-
listPostLikes(form, options) {
|
|
365
|
+
async listPostLikes(form, options) {
|
|
344
366
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
|
345
367
|
}
|
|
346
368
|
/**
|
|
347
369
|
* @summary Save a post.
|
|
348
370
|
*/
|
|
349
|
-
savePost(form, options) {
|
|
371
|
+
async savePost(form, options) {
|
|
350
372
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
|
351
373
|
}
|
|
352
374
|
/**
|
|
353
375
|
* @summary Report a post.
|
|
354
376
|
*/
|
|
355
|
-
createPostReport(form, options) {
|
|
377
|
+
async createPostReport(form, options) {
|
|
356
378
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
|
357
379
|
}
|
|
358
380
|
/**
|
|
359
381
|
* @summary Resolve a post report. Only a mod can do this.
|
|
360
382
|
*/
|
|
361
|
-
resolvePostReport(form, options) {
|
|
383
|
+
async resolvePostReport(form, options) {
|
|
362
384
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
|
363
385
|
}
|
|
364
386
|
/**
|
|
365
387
|
* @summary Fetch metadata for any given site.
|
|
366
388
|
*/
|
|
367
|
-
getSiteMetadata(form, options) {
|
|
389
|
+
async getSiteMetadata(form, options) {
|
|
368
390
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
|
369
391
|
}
|
|
370
392
|
/**
|
|
371
393
|
* @summary Create a comment.
|
|
372
394
|
*/
|
|
373
|
-
createComment(form, options) {
|
|
395
|
+
async createComment(form, options) {
|
|
374
396
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
|
375
397
|
}
|
|
376
398
|
/**
|
|
377
399
|
* @summary Edit a comment.
|
|
378
400
|
*/
|
|
379
|
-
editComment(form, options) {
|
|
401
|
+
async editComment(form, options) {
|
|
380
402
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
|
381
403
|
}
|
|
382
404
|
/**
|
|
383
405
|
* @summary Delete a comment.
|
|
384
406
|
*/
|
|
385
|
-
deleteComment(form, options) {
|
|
386
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
407
|
+
async deleteComment(form, options) {
|
|
408
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/comment", form, options);
|
|
387
409
|
}
|
|
388
410
|
/**
|
|
389
411
|
* @summary A moderator remove for a comment.
|
|
390
412
|
*/
|
|
391
|
-
removeComment(form, options) {
|
|
413
|
+
async removeComment(form, options) {
|
|
392
414
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
|
393
415
|
}
|
|
394
416
|
/**
|
|
395
|
-
* @summary
|
|
417
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
396
418
|
*/
|
|
397
|
-
|
|
398
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/
|
|
419
|
+
async lockComment(form, options) {
|
|
420
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/lock", form, options);
|
|
399
421
|
}
|
|
400
422
|
/**
|
|
401
|
-
* @
|
|
423
|
+
* @Summary Like / vote on a comment.
|
|
402
424
|
*/
|
|
403
|
-
likeComment(form, options) {
|
|
425
|
+
async likeComment(form, options) {
|
|
404
426
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
|
405
427
|
}
|
|
406
428
|
/**
|
|
407
429
|
* @summary List a comment's likes. Admin-only.
|
|
408
430
|
*/
|
|
409
|
-
listCommentLikes(form, options) {
|
|
431
|
+
async listCommentLikes(form, options) {
|
|
410
432
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
|
411
433
|
}
|
|
412
434
|
/**
|
|
413
435
|
* @summary Save a comment.
|
|
414
436
|
*/
|
|
415
|
-
saveComment(form, options) {
|
|
437
|
+
async saveComment(form, options) {
|
|
416
438
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
|
417
439
|
}
|
|
418
440
|
/**
|
|
419
441
|
* @summary Distinguishes a comment (speak as moderator)
|
|
420
442
|
*/
|
|
421
|
-
distinguishComment(form, options) {
|
|
443
|
+
async distinguishComment(form, options) {
|
|
422
444
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
|
423
445
|
}
|
|
424
446
|
/**
|
|
425
447
|
* @summary Get / fetch comments.
|
|
426
448
|
*/
|
|
427
|
-
getComments(form = {}, options) {
|
|
449
|
+
async getComments(form = {}, options) {
|
|
428
450
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
|
429
451
|
}
|
|
430
452
|
/**
|
|
431
453
|
* @summary Get / fetch comments, but without the post or community.
|
|
432
454
|
*/
|
|
433
|
-
getCommentsSlim(form = {}, options) {
|
|
455
|
+
async getCommentsSlim(form = {}, options) {
|
|
434
456
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
|
435
457
|
}
|
|
436
458
|
/**
|
|
437
459
|
* @summary Get / fetch comment.
|
|
438
460
|
*/
|
|
439
|
-
getComment(form, options) {
|
|
461
|
+
async getComment(form, options) {
|
|
440
462
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
|
441
463
|
}
|
|
442
464
|
/**
|
|
443
465
|
* @summary Report a comment.
|
|
444
466
|
*/
|
|
445
|
-
createCommentReport(form, options) {
|
|
467
|
+
async createCommentReport(form, options) {
|
|
446
468
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
|
447
469
|
}
|
|
448
470
|
/**
|
|
449
471
|
* @summary Resolve a comment report. Only a mod can do this.
|
|
450
472
|
*/
|
|
451
|
-
resolveCommentReport(form, options) {
|
|
473
|
+
async resolveCommentReport(form, options) {
|
|
452
474
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
|
453
475
|
}
|
|
454
476
|
/**
|
|
455
477
|
* @summary Create a private message.
|
|
456
478
|
*/
|
|
457
|
-
createPrivateMessage(form, options) {
|
|
479
|
+
async createPrivateMessage(form, options) {
|
|
458
480
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
|
459
481
|
}
|
|
460
482
|
/**
|
|
461
483
|
* @summary Edit a private message.
|
|
462
484
|
*/
|
|
463
|
-
editPrivateMessage(form, options) {
|
|
485
|
+
async editPrivateMessage(form, options) {
|
|
464
486
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
|
465
487
|
}
|
|
466
488
|
/**
|
|
467
489
|
* @summary Delete a private message.
|
|
468
490
|
*/
|
|
469
|
-
deletePrivateMessage(form, options) {
|
|
470
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* @summary Mark a private message as read.
|
|
474
|
-
*/
|
|
475
|
-
markPrivateMessageAsRead(form, options) {
|
|
476
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
|
491
|
+
async deletePrivateMessage(form, options) {
|
|
492
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/private_message", form, options);
|
|
477
493
|
}
|
|
478
494
|
/**
|
|
479
495
|
* @summary Create a report for a private message.
|
|
480
496
|
*/
|
|
481
|
-
createPrivateMessageReport(form, options) {
|
|
497
|
+
async createPrivateMessageReport(form, options) {
|
|
482
498
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
|
483
499
|
}
|
|
484
500
|
/**
|
|
485
501
|
* @summary Resolve a report for a private message.
|
|
486
502
|
*/
|
|
487
|
-
resolvePrivateMessageReport(form, options) {
|
|
503
|
+
async resolvePrivateMessageReport(form, options) {
|
|
488
504
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
|
489
505
|
}
|
|
490
506
|
/**
|
|
491
507
|
* @summary Register a new user.
|
|
492
508
|
*/
|
|
493
|
-
register(form, options) {
|
|
509
|
+
async register(form, options) {
|
|
494
510
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
|
495
511
|
}
|
|
496
512
|
/**
|
|
497
513
|
* @summary Log into lemmy.
|
|
498
514
|
*/
|
|
499
|
-
login(form, options) {
|
|
515
|
+
async login(form, options) {
|
|
500
516
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
|
501
517
|
}
|
|
502
518
|
/**
|
|
503
519
|
* @summary Invalidate the currently used auth token.
|
|
504
520
|
*/
|
|
505
|
-
logout(options) {
|
|
521
|
+
async logout(options) {
|
|
506
522
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
|
507
523
|
}
|
|
508
524
|
/**
|
|
509
525
|
* @summary Get the details for a person.
|
|
510
526
|
*/
|
|
511
|
-
getPersonDetails(form = {}, options) {
|
|
527
|
+
async getPersonDetails(form = {}, options) {
|
|
512
528
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
|
513
529
|
}
|
|
514
530
|
/**
|
|
515
531
|
* @summary List the content for a person.
|
|
516
532
|
*/
|
|
517
|
-
listPersonContent(form = {}, options) {
|
|
533
|
+
async listPersonContent(form = {}, options) {
|
|
518
534
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
|
519
535
|
}
|
|
520
536
|
/**
|
|
521
|
-
* @summary
|
|
537
|
+
* @summary Make a note for a person.
|
|
522
538
|
*/
|
|
523
|
-
|
|
524
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* @summary Mark a person post body mention as read.
|
|
528
|
-
*/
|
|
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);
|
|
539
|
+
async notePerson(form, options) {
|
|
540
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
|
|
531
541
|
}
|
|
532
542
|
/**
|
|
533
543
|
* @summary Ban a person from your site.
|
|
534
544
|
*/
|
|
535
|
-
banPerson(form, options) {
|
|
545
|
+
async banPerson(form, options) {
|
|
536
546
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
|
537
547
|
}
|
|
538
548
|
/**
|
|
539
|
-
* @summary Get a list of
|
|
549
|
+
* @summary Get a list of users.
|
|
540
550
|
*/
|
|
541
|
-
|
|
542
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/
|
|
551
|
+
async listUsers(form = {}, options) {
|
|
552
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
|
|
543
553
|
}
|
|
544
554
|
/**
|
|
545
555
|
* @summary Block a person.
|
|
546
556
|
*/
|
|
547
|
-
blockPerson(form, options) {
|
|
557
|
+
async blockPerson(form, options) {
|
|
548
558
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
|
549
559
|
}
|
|
550
560
|
/**
|
|
551
561
|
* @summary Fetch a Captcha.
|
|
552
562
|
*/
|
|
553
|
-
getCaptcha(options) {
|
|
563
|
+
async getCaptcha(options) {
|
|
554
564
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
|
555
565
|
}
|
|
556
566
|
/**
|
|
557
567
|
* @summary Delete your account.
|
|
558
568
|
*/
|
|
559
|
-
deleteAccount(form, options) {
|
|
560
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
569
|
+
async deleteAccount(form, options) {
|
|
570
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account", form, options);
|
|
561
571
|
}
|
|
562
572
|
/**
|
|
563
573
|
* @summary Reset your password.
|
|
564
574
|
*/
|
|
565
|
-
passwordReset(form, options) {
|
|
575
|
+
async passwordReset(form, options) {
|
|
566
576
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
|
567
577
|
}
|
|
568
578
|
/**
|
|
569
579
|
* @summary Change your password from an email / token based reset.
|
|
570
580
|
*/
|
|
571
|
-
passwordChangeAfterReset(form, options) {
|
|
581
|
+
async passwordChangeAfterReset(form, options) {
|
|
572
582
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
|
573
583
|
}
|
|
574
584
|
/**
|
|
575
|
-
* @summary Mark all
|
|
585
|
+
* @summary Mark all notifications as read.
|
|
576
586
|
*/
|
|
577
|
-
markAllNotificationsAsRead(options) {
|
|
578
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
|
587
|
+
async markAllNotificationsAsRead(options) {
|
|
588
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read/all", {}, options);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* @summary Mark a notification as read.
|
|
592
|
+
*/
|
|
593
|
+
async markNotificationAsRead(form, options) {
|
|
594
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read", form, options);
|
|
579
595
|
}
|
|
580
596
|
/**
|
|
581
597
|
* @summary Save your user settings.
|
|
582
598
|
*/
|
|
583
|
-
saveUserSettings(form, options) {
|
|
599
|
+
async saveUserSettings(form, options) {
|
|
584
600
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
|
585
601
|
}
|
|
586
602
|
/**
|
|
587
603
|
* @summary Change your user password.
|
|
588
604
|
*/
|
|
589
|
-
changePassword(form, options) {
|
|
605
|
+
async changePassword(form, options) {
|
|
590
606
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
|
591
607
|
}
|
|
592
|
-
/**
|
|
593
|
-
* @summary Get counts for your reports.
|
|
594
|
-
*/
|
|
595
|
-
getReportCount(form, options) {
|
|
596
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* @summary Get your unread counts.
|
|
600
|
-
*/
|
|
601
|
-
getUnreadCount(options) {
|
|
602
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
|
603
|
-
}
|
|
604
608
|
/**
|
|
605
609
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
606
610
|
*/
|
|
607
|
-
|
|
608
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
611
|
+
async listNotifications(form, options) {
|
|
612
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
|
|
609
613
|
}
|
|
610
614
|
/**
|
|
611
615
|
* @summary Verify your email
|
|
612
616
|
*/
|
|
613
|
-
verifyEmail(form, options) {
|
|
617
|
+
async verifyEmail(form, options) {
|
|
614
618
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
|
615
619
|
}
|
|
616
620
|
/**
|
|
617
621
|
* @summary Resend a verification email.
|
|
618
622
|
*/
|
|
619
|
-
resendVerificationEmail(form, options) {
|
|
623
|
+
async resendVerificationEmail(form, options) {
|
|
620
624
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
|
621
625
|
}
|
|
622
626
|
/**
|
|
623
627
|
* @summary List your saved content.
|
|
624
628
|
*/
|
|
625
|
-
listPersonSaved(form, options) {
|
|
626
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
629
|
+
async listPersonSaved(form, options) {
|
|
630
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
|
627
631
|
}
|
|
628
632
|
/**
|
|
629
|
-
* @summary
|
|
633
|
+
* @summary List your read content.
|
|
630
634
|
*/
|
|
631
|
-
|
|
632
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
635
|
+
async listPersonRead(form, options) {
|
|
636
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
|
|
633
637
|
}
|
|
634
638
|
/**
|
|
635
|
-
* @summary
|
|
639
|
+
* @summary List your hidden content.
|
|
636
640
|
*/
|
|
637
|
-
|
|
638
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
|
641
|
+
async listPersonHidden(form, options) {
|
|
642
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* @summary List your liked content.
|
|
646
|
+
*/
|
|
647
|
+
async listPersonLiked(form, options) {
|
|
648
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* @summary Add an admin to your site.
|
|
652
|
+
*/
|
|
653
|
+
async addAdmin(form, options) {
|
|
654
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
|
639
655
|
}
|
|
640
656
|
/**
|
|
641
657
|
* @summary List the registration applications.
|
|
642
658
|
*/
|
|
643
|
-
listRegistrationApplications(form, options) {
|
|
659
|
+
async listRegistrationApplications(form, options) {
|
|
644
660
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
|
645
661
|
}
|
|
646
662
|
/**
|
|
647
663
|
* @summary Approve a registration application
|
|
648
664
|
*/
|
|
649
|
-
approveRegistrationApplication(form, options) {
|
|
665
|
+
async approveRegistrationApplication(form, options) {
|
|
650
666
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
|
651
667
|
}
|
|
652
668
|
/**
|
|
653
669
|
* @summary Get the application a user submitted when they first registered their account
|
|
654
670
|
*/
|
|
655
|
-
getRegistrationApplication(form, options) {
|
|
671
|
+
async getRegistrationApplication(form, options) {
|
|
656
672
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
|
657
673
|
}
|
|
658
674
|
/**
|
|
659
675
|
* @summary Purge / Delete a person from the database.
|
|
660
676
|
*/
|
|
661
|
-
purgePerson(form, options) {
|
|
677
|
+
async purgePerson(form, options) {
|
|
662
678
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
|
663
679
|
}
|
|
664
680
|
/**
|
|
665
681
|
* @summary Purge / Delete a community from the database.
|
|
666
682
|
*/
|
|
667
|
-
purgeCommunity(form, options) {
|
|
683
|
+
async purgeCommunity(form, options) {
|
|
668
684
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
|
669
685
|
}
|
|
670
686
|
/**
|
|
671
687
|
* @summary Purge / Delete a post from the database.
|
|
672
688
|
*/
|
|
673
|
-
purgePost(form, options) {
|
|
689
|
+
async purgePost(form, options) {
|
|
674
690
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
|
675
691
|
}
|
|
676
692
|
/**
|
|
677
693
|
* @summary Purge / Delete a comment from the database.
|
|
678
694
|
*/
|
|
679
|
-
purgeComment(form, options) {
|
|
695
|
+
async purgeComment(form, options) {
|
|
680
696
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
|
681
697
|
}
|
|
682
698
|
/**
|
|
683
699
|
* @summary Create a new custom emoji.
|
|
684
700
|
*/
|
|
685
|
-
createCustomEmoji(form, options) {
|
|
701
|
+
async createCustomEmoji(form, options) {
|
|
686
702
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
|
687
703
|
}
|
|
688
704
|
/**
|
|
689
705
|
* @summary Edit an existing custom emoji.
|
|
690
706
|
*/
|
|
691
|
-
editCustomEmoji(form, options) {
|
|
707
|
+
async editCustomEmoji(form, options) {
|
|
692
708
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
|
693
709
|
}
|
|
694
710
|
/**
|
|
695
711
|
* @summary Delete a custom emoji.
|
|
696
712
|
*/
|
|
697
|
-
deleteCustomEmoji(form, options) {
|
|
713
|
+
async deleteCustomEmoji(form, options) {
|
|
698
714
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
|
699
715
|
}
|
|
700
716
|
/**
|
|
701
717
|
* @summary List custom emojis
|
|
702
718
|
*/
|
|
703
|
-
listCustomEmojis(form, options) {
|
|
719
|
+
async listCustomEmojis(form, options) {
|
|
704
720
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
|
705
721
|
}
|
|
706
722
|
/**
|
|
707
723
|
* @summary Create a new tagline
|
|
708
724
|
*/
|
|
709
|
-
createTagline(form, options) {
|
|
725
|
+
async createTagline(form, options) {
|
|
710
726
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
|
711
727
|
}
|
|
712
728
|
/**
|
|
713
729
|
* @summary Edit an existing tagline
|
|
714
730
|
*/
|
|
715
|
-
editTagline(form, options) {
|
|
731
|
+
async editTagline(form, options) {
|
|
716
732
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
|
717
733
|
}
|
|
718
734
|
/**
|
|
719
735
|
* @summary Delete a tagline
|
|
720
736
|
*/
|
|
721
|
-
deleteTagline(form, options) {
|
|
722
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
737
|
+
async deleteTagline(form, options) {
|
|
738
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
|
|
723
739
|
}
|
|
724
740
|
/**
|
|
725
741
|
* @summary List taglines.
|
|
726
742
|
*/
|
|
727
|
-
listTaglines(form, options) {
|
|
743
|
+
async listTaglines(form, options) {
|
|
728
744
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
|
729
745
|
}
|
|
746
|
+
/**
|
|
747
|
+
* @summary Create a community post tag.
|
|
748
|
+
*/
|
|
749
|
+
createCommunityTag(form, options) {
|
|
750
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @summary Edit a community post tag.
|
|
754
|
+
*/
|
|
755
|
+
updateCommunityTag(form, options) {
|
|
756
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* @summary Delete a post tag in a community.
|
|
760
|
+
*/
|
|
761
|
+
deleteCommunityTag(form, options) {
|
|
762
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
|
|
763
|
+
}
|
|
730
764
|
/**
|
|
731
765
|
* @summary Create a new oauth provider method
|
|
732
766
|
*/
|
|
733
|
-
createOAuthProvider(form, options) {
|
|
767
|
+
async createOAuthProvider(form, options) {
|
|
734
768
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
|
735
769
|
}
|
|
736
770
|
/**
|
|
737
771
|
* @summary Edit an existing oauth provider method
|
|
738
772
|
*/
|
|
739
|
-
editOAuthProvider(form, options) {
|
|
773
|
+
async editOAuthProvider(form, options) {
|
|
740
774
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
|
741
775
|
}
|
|
742
776
|
/**
|
|
743
777
|
* @summary Delete an oauth provider method
|
|
744
778
|
*/
|
|
745
|
-
deleteOAuthProvider(form, options) {
|
|
746
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
779
|
+
async deleteOAuthProvider(form, options) {
|
|
780
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
|
|
747
781
|
}
|
|
748
782
|
/**
|
|
749
783
|
* @summary Authenticate with OAuth
|
|
750
784
|
*/
|
|
751
|
-
authenticateWithOAuth(form, options) {
|
|
785
|
+
async authenticateWithOAuth(form, options) {
|
|
752
786
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
|
753
787
|
}
|
|
754
788
|
/**
|
|
755
789
|
* @summary Fetch federated instances.
|
|
756
790
|
*/
|
|
757
|
-
getFederatedInstances(options) {
|
|
758
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances",
|
|
791
|
+
async getFederatedInstances(form, options) {
|
|
792
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form, options);
|
|
759
793
|
}
|
|
760
794
|
/**
|
|
761
795
|
* @summary List user reports.
|
|
762
796
|
*/
|
|
763
|
-
listReports(form, options) {
|
|
797
|
+
async listReports(form, options) {
|
|
764
798
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
|
765
799
|
}
|
|
766
800
|
/**
|
|
767
|
-
* @summary Block an instance as user.
|
|
801
|
+
* @summary Block an instance's communities as a user.
|
|
802
|
+
*/
|
|
803
|
+
async userBlockInstanceCommunities(form, options) {
|
|
804
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @summary Block an instance's persons as a user.
|
|
768
808
|
*/
|
|
769
|
-
|
|
770
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
|
809
|
+
async userBlockInstancePersons(form, options) {
|
|
810
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
|
|
771
811
|
}
|
|
772
812
|
/**
|
|
773
813
|
* @summary Globally block an instance as admin.
|
|
774
814
|
*/
|
|
775
|
-
adminBlockInstance(form, options) {
|
|
815
|
+
async adminBlockInstance(form, options) {
|
|
776
816
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
|
777
817
|
}
|
|
778
818
|
/**
|
|
779
819
|
* @summary Globally allow an instance as admin.
|
|
780
820
|
*/
|
|
781
|
-
adminAllowInstance(form, options) {
|
|
821
|
+
async adminAllowInstance(form, options) {
|
|
782
822
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
|
783
823
|
}
|
|
784
824
|
/**
|
|
785
825
|
* @summary Upload new user avatar.
|
|
786
826
|
*/
|
|
787
|
-
uploadUserAvatar(image, options) {
|
|
788
|
-
return
|
|
789
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
|
|
790
|
-
});
|
|
827
|
+
async uploadUserAvatar(image, options) {
|
|
828
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
|
|
791
829
|
}
|
|
792
830
|
/**
|
|
793
831
|
* @summary Delete the user avatar.
|
|
794
832
|
*/
|
|
795
|
-
deleteUserAvatar(options) {
|
|
796
|
-
return
|
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
|
|
798
|
-
});
|
|
833
|
+
async deleteUserAvatar(options) {
|
|
834
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
|
|
799
835
|
}
|
|
800
836
|
/**
|
|
801
837
|
* @summary Upload new user banner.
|
|
802
838
|
*/
|
|
803
|
-
uploadUserBanner(image, options) {
|
|
804
|
-
return
|
|
805
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
|
|
806
|
-
});
|
|
839
|
+
async uploadUserBanner(image, options) {
|
|
840
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
|
|
807
841
|
}
|
|
808
842
|
/**
|
|
809
843
|
* @summary Delete the user banner.
|
|
810
844
|
*/
|
|
811
|
-
deleteUserBanner(options) {
|
|
812
|
-
return
|
|
813
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
|
|
814
|
-
});
|
|
845
|
+
async deleteUserBanner(options) {
|
|
846
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
|
|
815
847
|
}
|
|
816
848
|
/**
|
|
817
849
|
* @summary Upload new community icon.
|
|
818
850
|
*/
|
|
819
|
-
uploadCommunityIcon(image, options) {
|
|
820
|
-
return
|
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
|
|
822
|
-
});
|
|
851
|
+
async uploadCommunityIcon(query, image, options) {
|
|
852
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
|
|
823
853
|
}
|
|
824
854
|
/**
|
|
825
855
|
* @summary Delete the community icon.
|
|
826
856
|
*/
|
|
827
|
-
deleteCommunityIcon(options) {
|
|
828
|
-
return
|
|
829
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
|
|
830
|
-
});
|
|
857
|
+
async deleteCommunityIcon(form, options) {
|
|
858
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
|
|
831
859
|
}
|
|
832
860
|
/**
|
|
833
861
|
* @summary Upload new community banner.
|
|
834
862
|
*/
|
|
835
|
-
uploadCommunityBanner(image, options) {
|
|
836
|
-
return
|
|
837
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
|
|
838
|
-
});
|
|
863
|
+
async uploadCommunityBanner(query, image, options) {
|
|
864
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
|
|
839
865
|
}
|
|
840
866
|
/**
|
|
841
867
|
* @summary Delete the community banner.
|
|
842
868
|
*/
|
|
843
|
-
deleteCommunityBanner(options) {
|
|
844
|
-
return
|
|
845
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
|
|
846
|
-
});
|
|
869
|
+
async deleteCommunityBanner(form, options) {
|
|
870
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
|
|
847
871
|
}
|
|
848
872
|
/**
|
|
849
873
|
* @summary Upload new site icon.
|
|
850
874
|
*/
|
|
851
|
-
uploadSiteIcon(image, options) {
|
|
852
|
-
return
|
|
853
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
|
|
854
|
-
});
|
|
875
|
+
async uploadSiteIcon(image, options) {
|
|
876
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
|
|
855
877
|
}
|
|
856
878
|
/**
|
|
857
879
|
* @summary Delete the site icon.
|
|
858
880
|
*/
|
|
859
|
-
deleteSiteIcon(options) {
|
|
860
|
-
return
|
|
861
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
|
|
862
|
-
});
|
|
881
|
+
async deleteSiteIcon(options) {
|
|
882
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
|
|
863
883
|
}
|
|
864
884
|
/**
|
|
865
885
|
* @summary Upload new site banner.
|
|
866
886
|
*/
|
|
867
|
-
uploadSiteBanner(image, options) {
|
|
868
|
-
return
|
|
869
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
|
|
870
|
-
});
|
|
887
|
+
async uploadSiteBanner(image, options) {
|
|
888
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
|
|
871
889
|
}
|
|
872
890
|
/**
|
|
873
891
|
* @summary Delete the site banner.
|
|
874
892
|
*/
|
|
875
|
-
deleteSiteBanner(options) {
|
|
876
|
-
return
|
|
877
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
|
|
878
|
-
});
|
|
893
|
+
async deleteSiteBanner(options) {
|
|
894
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
|
|
879
895
|
}
|
|
880
896
|
/**
|
|
881
897
|
* @summary Upload an image to the server.
|
|
882
898
|
*/
|
|
883
|
-
uploadImage(image, options) {
|
|
884
|
-
return
|
|
885
|
-
|
|
886
|
-
|
|
899
|
+
async uploadImage(image, options) {
|
|
900
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* @summary Health check for image functionality
|
|
904
|
+
*/
|
|
905
|
+
async imageHealth(options) {
|
|
906
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
|
|
887
907
|
}
|
|
888
908
|
/**
|
|
889
|
-
*
|
|
909
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
890
910
|
*/
|
|
891
|
-
|
|
892
|
-
return
|
|
893
|
-
|
|
894
|
-
|
|
911
|
+
donationDialogShown(options) {
|
|
912
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/donation_dialog_shown", {}, options);
|
|
913
|
+
}
|
|
914
|
+
createMultiCommunity(form, options) {
|
|
915
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
|
916
|
+
}
|
|
917
|
+
updateMultiCommunity(form, options) {
|
|
918
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
|
|
919
|
+
}
|
|
920
|
+
getMultiCommunity(form, options) {
|
|
921
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
|
|
922
|
+
}
|
|
923
|
+
createMultiCommunityEntry(form, options) {
|
|
924
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
|
|
925
|
+
}
|
|
926
|
+
deleteMultiCommunityEntry(form, options) {
|
|
927
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
|
|
928
|
+
}
|
|
929
|
+
listMultiCommunities(form, options) {
|
|
930
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
|
|
931
|
+
}
|
|
932
|
+
followMultiCommunity(form, options) {
|
|
933
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
|
|
895
934
|
}
|
|
896
935
|
/**
|
|
897
|
-
* @summary
|
|
936
|
+
* @summary Change notification settings for a community
|
|
898
937
|
*/
|
|
899
|
-
|
|
900
|
-
return
|
|
901
|
-
|
|
902
|
-
|
|
938
|
+
updateCommunityNotifications(form, options) {
|
|
939
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/notifications", form, options);
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @summary Change notification settings for a post
|
|
943
|
+
*/
|
|
944
|
+
updatePostNotifications(form, options) {
|
|
945
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/notifications", form, options);
|
|
903
946
|
}
|
|
904
947
|
/**
|
|
905
948
|
* Set the headers (can be used to set the auth header)
|
|
@@ -916,962 +959,1100 @@ _LemmyHttp_instances = new WeakSet();
|
|
|
916
959
|
_LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
|
|
917
960
|
return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
|
|
918
961
|
};
|
|
919
|
-
_LemmyHttp_upload = function _LemmyHttp_upload(
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
962
|
+
_LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
|
|
963
|
+
const formData = createFormData(image);
|
|
964
|
+
const response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), {
|
|
965
|
+
...options,
|
|
966
|
+
method: HttpType.Post,
|
|
967
|
+
body: formData,
|
|
968
|
+
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
|
924
969
|
});
|
|
970
|
+
return response.json();
|
|
925
971
|
};
|
|
926
|
-
|
|
927
|
-
return
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
972
|
+
_LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
|
|
973
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
|
|
974
|
+
};
|
|
975
|
+
_LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
|
|
976
|
+
let response;
|
|
977
|
+
if (type_ === HttpType.Get) {
|
|
978
|
+
const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
|
|
979
|
+
response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
|
|
980
|
+
...options,
|
|
981
|
+
method: HttpType.Get,
|
|
982
|
+
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
else {
|
|
986
|
+
response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
|
|
987
|
+
...options,
|
|
988
|
+
method: type_,
|
|
989
|
+
headers: {
|
|
990
|
+
"Content-Type": "application/json",
|
|
991
|
+
...__classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
|
992
|
+
},
|
|
993
|
+
body: JSON.stringify(form),
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
let json = undefined;
|
|
997
|
+
try {
|
|
998
|
+
json = await response.json();
|
|
999
|
+
}
|
|
1000
|
+
catch {
|
|
1001
|
+
throw new LemmyError(response.statusText, response.status);
|
|
1002
|
+
}
|
|
1003
|
+
if (!response.ok) {
|
|
1004
|
+
console.error(`Request error while calling ${type_} ${endpoint} with ${JSON.stringify(form)}`);
|
|
1005
|
+
let err = new LemmyError(json.error ?? response.statusText, response.status, json.message);
|
|
1006
|
+
throw err;
|
|
1007
|
+
}
|
|
1008
|
+
else {
|
|
1009
|
+
return json;
|
|
1010
|
+
}
|
|
951
1011
|
};
|
|
952
1012
|
__decorate([
|
|
953
|
-
(0,
|
|
954
|
-
(0,
|
|
955
|
-
(0,
|
|
956
|
-
(0,
|
|
957
|
-
__param(0, (0,
|
|
1013
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1014
|
+
(0, runtime_1.Security)({}),
|
|
1015
|
+
(0, runtime_1.Get)("/site"),
|
|
1016
|
+
(0, runtime_1.Tags)("Site"),
|
|
1017
|
+
__param(0, (0, runtime_1.Inject)())
|
|
958
1018
|
], LemmyHttp.prototype, "getSite", null);
|
|
959
1019
|
__decorate([
|
|
960
|
-
(0,
|
|
961
|
-
(0,
|
|
962
|
-
(0,
|
|
963
|
-
__param(0, (0,
|
|
964
|
-
__param(1, (0,
|
|
1020
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1021
|
+
(0, runtime_1.Post)("/site"),
|
|
1022
|
+
(0, runtime_1.Tags)("Site"),
|
|
1023
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1024
|
+
__param(1, (0, runtime_1.Inject)())
|
|
965
1025
|
], LemmyHttp.prototype, "createSite", null);
|
|
966
1026
|
__decorate([
|
|
967
|
-
(0,
|
|
968
|
-
(0,
|
|
969
|
-
(0,
|
|
970
|
-
__param(0, (0,
|
|
971
|
-
__param(1, (0,
|
|
1027
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1028
|
+
(0, runtime_1.Put)("/site"),
|
|
1029
|
+
(0, runtime_1.Tags)("Site"),
|
|
1030
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1031
|
+
__param(1, (0, runtime_1.Inject)())
|
|
972
1032
|
], LemmyHttp.prototype, "editSite", null);
|
|
973
1033
|
__decorate([
|
|
974
|
-
(0,
|
|
975
|
-
(0,
|
|
976
|
-
(0,
|
|
977
|
-
__param(0, (0,
|
|
1034
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1035
|
+
(0, runtime_1.Post)("/admin/leave"),
|
|
1036
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1037
|
+
__param(0, (0, runtime_1.Inject)())
|
|
978
1038
|
], LemmyHttp.prototype, "leaveAdmin", null);
|
|
979
1039
|
__decorate([
|
|
980
|
-
(0,
|
|
981
|
-
(0,
|
|
982
|
-
(0,
|
|
983
|
-
__param(0, (0,
|
|
1040
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1041
|
+
(0, runtime_1.Post)("/account/auth/totp/generate"),
|
|
1042
|
+
(0, runtime_1.Tags)("Account"),
|
|
1043
|
+
__param(0, (0, runtime_1.Inject)())
|
|
984
1044
|
], LemmyHttp.prototype, "generateTotpSecret", null);
|
|
985
1045
|
__decorate([
|
|
986
|
-
(0,
|
|
987
|
-
(0,
|
|
988
|
-
(0,
|
|
989
|
-
__param(0, (0,
|
|
1046
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1047
|
+
(0, runtime_1.Get)("/account"),
|
|
1048
|
+
(0, runtime_1.Tags)("Account"),
|
|
1049
|
+
__param(0, (0, runtime_1.Inject)())
|
|
990
1050
|
], LemmyHttp.prototype, "getMyUser", null);
|
|
991
1051
|
__decorate([
|
|
992
|
-
(0,
|
|
993
|
-
(0,
|
|
994
|
-
(0,
|
|
995
|
-
__param(0, (0,
|
|
1052
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1053
|
+
(0, runtime_1.Get)("/account/settings/export"),
|
|
1054
|
+
(0, runtime_1.Tags)("Account"),
|
|
1055
|
+
__param(0, (0, runtime_1.Inject)())
|
|
996
1056
|
], LemmyHttp.prototype, "exportSettings", null);
|
|
997
1057
|
__decorate([
|
|
998
|
-
(0,
|
|
999
|
-
(0,
|
|
1000
|
-
(0,
|
|
1001
|
-
__param(0, (0,
|
|
1002
|
-
__param(1, (0,
|
|
1058
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1059
|
+
(0, runtime_1.Post)("/account/settings/import"),
|
|
1060
|
+
(0, runtime_1.Tags)("Account"),
|
|
1061
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1062
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1003
1063
|
], LemmyHttp.prototype, "importSettings", null);
|
|
1004
1064
|
__decorate([
|
|
1005
|
-
(0,
|
|
1006
|
-
(0,
|
|
1007
|
-
(0,
|
|
1008
|
-
__param(0, (0,
|
|
1065
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1066
|
+
(0, runtime_1.Get)("/account/login/list"),
|
|
1067
|
+
(0, runtime_1.Tags)("Account"),
|
|
1068
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1009
1069
|
], LemmyHttp.prototype, "listLogins", null);
|
|
1010
1070
|
__decorate([
|
|
1011
|
-
(0,
|
|
1012
|
-
(0,
|
|
1013
|
-
(0,
|
|
1014
|
-
__param(0, (0,
|
|
1071
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1072
|
+
(0, runtime_1.Get)("/account/validate_auth"),
|
|
1073
|
+
(0, runtime_1.Tags)("Account"),
|
|
1074
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1015
1075
|
], LemmyHttp.prototype, "validateAuth", null);
|
|
1016
1076
|
__decorate([
|
|
1017
|
-
(0,
|
|
1018
|
-
(0,
|
|
1019
|
-
(0,
|
|
1020
|
-
__param(0, (0,
|
|
1021
|
-
__param(1, (0,
|
|
1077
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1078
|
+
(0, runtime_1.Get)("/account/media/list"),
|
|
1079
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1080
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1081
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1022
1082
|
], LemmyHttp.prototype, "listMedia", null);
|
|
1023
1083
|
__decorate([
|
|
1024
|
-
(0,
|
|
1025
|
-
(0,
|
|
1026
|
-
(0,
|
|
1027
|
-
__param(0, (0,
|
|
1028
|
-
__param(1, (0,
|
|
1029
|
-
], LemmyHttp.prototype, "
|
|
1030
|
-
__decorate([
|
|
1031
|
-
(0,
|
|
1032
|
-
(0,
|
|
1033
|
-
(0,
|
|
1034
|
-
__param(0, (0,
|
|
1035
|
-
__param(1, (0,
|
|
1084
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1085
|
+
(0, runtime_1.Delete)("/account/media"),
|
|
1086
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1087
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1088
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1089
|
+
], LemmyHttp.prototype, "deleteMedia", null);
|
|
1090
|
+
__decorate([
|
|
1091
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1092
|
+
(0, runtime_1.Delete)("/image"),
|
|
1093
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
|
1094
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1095
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1096
|
+
], LemmyHttp.prototype, "deleteMediaAdmin", null);
|
|
1097
|
+
__decorate([
|
|
1098
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1099
|
+
(0, runtime_1.Get)("/image/list"),
|
|
1100
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
|
1101
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1102
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1103
|
+
], LemmyHttp.prototype, "listMediaAdmin", null);
|
|
1104
|
+
__decorate([
|
|
1105
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1106
|
+
(0, runtime_1.Post)("/account/auth/totp/update"),
|
|
1107
|
+
(0, runtime_1.Tags)("Account"),
|
|
1108
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1109
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1036
1110
|
], LemmyHttp.prototype, "updateTotp", null);
|
|
1037
1111
|
__decorate([
|
|
1038
|
-
(0,
|
|
1039
|
-
(0,
|
|
1040
|
-
(0,
|
|
1041
|
-
(0,
|
|
1042
|
-
__param(0, (0,
|
|
1043
|
-
__param(1, (0,
|
|
1112
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1113
|
+
(0, runtime_1.Security)({}),
|
|
1114
|
+
(0, runtime_1.Get)("/modlog"),
|
|
1115
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1116
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1117
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1044
1118
|
], LemmyHttp.prototype, "getModlog", null);
|
|
1045
1119
|
__decorate([
|
|
1046
|
-
(0,
|
|
1047
|
-
(0,
|
|
1048
|
-
(0,
|
|
1049
|
-
(0,
|
|
1050
|
-
__param(0, (0,
|
|
1051
|
-
__param(1, (0,
|
|
1120
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1121
|
+
(0, runtime_1.Security)({}),
|
|
1122
|
+
(0, runtime_1.Get)("/search"),
|
|
1123
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1124
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1125
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1052
1126
|
], LemmyHttp.prototype, "search", null);
|
|
1053
1127
|
__decorate([
|
|
1054
|
-
(0,
|
|
1055
|
-
(0,
|
|
1056
|
-
(0,
|
|
1057
|
-
(0,
|
|
1058
|
-
__param(0, (0,
|
|
1059
|
-
__param(1, (0,
|
|
1128
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1129
|
+
(0, runtime_1.Security)({}),
|
|
1130
|
+
(0, runtime_1.Get)("/resolve_object"),
|
|
1131
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1132
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1133
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1060
1134
|
], LemmyHttp.prototype, "resolveObject", null);
|
|
1061
1135
|
__decorate([
|
|
1062
|
-
(0,
|
|
1063
|
-
(0,
|
|
1064
|
-
(0,
|
|
1065
|
-
__param(0, (0,
|
|
1066
|
-
__param(1, (0,
|
|
1136
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1137
|
+
(0, runtime_1.Post)("/community"),
|
|
1138
|
+
(0, runtime_1.Tags)("Community"),
|
|
1139
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1140
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1067
1141
|
], LemmyHttp.prototype, "createCommunity", null);
|
|
1068
1142
|
__decorate([
|
|
1069
|
-
(0,
|
|
1070
|
-
(0,
|
|
1071
|
-
(0,
|
|
1072
|
-
(0,
|
|
1073
|
-
__param(0, (0,
|
|
1074
|
-
__param(1, (0,
|
|
1143
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1144
|
+
(0, runtime_1.Security)({}),
|
|
1145
|
+
(0, runtime_1.Get)("/community"),
|
|
1146
|
+
(0, runtime_1.Tags)("Community"),
|
|
1147
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1148
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1075
1149
|
], LemmyHttp.prototype, "getCommunity", null);
|
|
1076
1150
|
__decorate([
|
|
1077
|
-
(0,
|
|
1078
|
-
(0,
|
|
1079
|
-
(0,
|
|
1080
|
-
__param(0, (0,
|
|
1081
|
-
__param(1, (0,
|
|
1151
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1152
|
+
(0, runtime_1.Put)("/community"),
|
|
1153
|
+
(0, runtime_1.Tags)("Community"),
|
|
1154
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1155
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1082
1156
|
], LemmyHttp.prototype, "editCommunity", null);
|
|
1083
1157
|
__decorate([
|
|
1084
|
-
(0,
|
|
1085
|
-
(0,
|
|
1086
|
-
(0,
|
|
1087
|
-
(0,
|
|
1088
|
-
__param(0, (0,
|
|
1089
|
-
__param(1, (0,
|
|
1158
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1159
|
+
(0, runtime_1.Security)({}),
|
|
1160
|
+
(0, runtime_1.Get)("/community/list"),
|
|
1161
|
+
(0, runtime_1.Tags)("Community"),
|
|
1162
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1163
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1090
1164
|
], LemmyHttp.prototype, "listCommunities", null);
|
|
1091
1165
|
__decorate([
|
|
1092
|
-
(0,
|
|
1093
|
-
(0,
|
|
1094
|
-
(0,
|
|
1095
|
-
__param(0, (0,
|
|
1096
|
-
__param(1, (0,
|
|
1097
|
-
__param(1, (0,
|
|
1166
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1167
|
+
(0, runtime_1.Post)("/community/follow"),
|
|
1168
|
+
(0, runtime_1.Tags)("Community"),
|
|
1169
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1170
|
+
__param(1, (0, runtime_1.Inject)()),
|
|
1171
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1098
1172
|
], LemmyHttp.prototype, "followCommunity", null);
|
|
1099
1173
|
__decorate([
|
|
1100
|
-
(0,
|
|
1101
|
-
(0,
|
|
1102
|
-
(0,
|
|
1103
|
-
__param(0, (0,
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
(0,
|
|
1108
|
-
(0,
|
|
1109
|
-
(0,
|
|
1110
|
-
__param(
|
|
1111
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1174
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1175
|
+
(0, runtime_1.Get)("/account/unread_counts"),
|
|
1176
|
+
(0, runtime_1.Tags)("Account"),
|
|
1177
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1178
|
+
], LemmyHttp.prototype, "getUnreadCounts", null);
|
|
1179
|
+
__decorate([
|
|
1180
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1181
|
+
(0, runtime_1.Get)("/community/pending_follows/list"),
|
|
1182
|
+
(0, runtime_1.Tags)("Community"),
|
|
1183
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1184
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1112
1185
|
], LemmyHttp.prototype, "listCommunityPendingFollows", null);
|
|
1113
1186
|
__decorate([
|
|
1114
|
-
(0,
|
|
1115
|
-
(0,
|
|
1116
|
-
(0,
|
|
1117
|
-
__param(0, (0,
|
|
1118
|
-
__param(1, (0,
|
|
1187
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1188
|
+
(0, runtime_1.Post)("/community/pending_follows/approve"),
|
|
1189
|
+
(0, runtime_1.Tags)("Community"),
|
|
1190
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1191
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1119
1192
|
], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
|
|
1120
1193
|
__decorate([
|
|
1121
|
-
(0,
|
|
1122
|
-
(0,
|
|
1123
|
-
(0,
|
|
1124
|
-
__param(0, (0,
|
|
1125
|
-
__param(1, (0,
|
|
1194
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1195
|
+
(0, runtime_1.Post)("/account/block/community"),
|
|
1196
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
|
1197
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1198
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1126
1199
|
], LemmyHttp.prototype, "blockCommunity", null);
|
|
1127
1200
|
__decorate([
|
|
1128
|
-
(0,
|
|
1129
|
-
(0,
|
|
1130
|
-
(0,
|
|
1131
|
-
__param(0, (0,
|
|
1132
|
-
__param(1, (0,
|
|
1201
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1202
|
+
(0, runtime_1.Delete)("/community"),
|
|
1203
|
+
(0, runtime_1.Tags)("Community"),
|
|
1204
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1205
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1133
1206
|
], LemmyHttp.prototype, "deleteCommunity", null);
|
|
1134
1207
|
__decorate([
|
|
1135
|
-
(0,
|
|
1136
|
-
(0,
|
|
1137
|
-
(0,
|
|
1138
|
-
__param(0, (0,
|
|
1139
|
-
__param(1, (0,
|
|
1208
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1209
|
+
(0, runtime_1.Put)("/community/hide"),
|
|
1210
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
|
1211
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1212
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1140
1213
|
], LemmyHttp.prototype, "hideCommunity", null);
|
|
1141
1214
|
__decorate([
|
|
1142
|
-
(0,
|
|
1143
|
-
(0,
|
|
1144
|
-
(0,
|
|
1145
|
-
__param(0, (0,
|
|
1146
|
-
__param(1, (0,
|
|
1215
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1216
|
+
(0, runtime_1.Post)("/community/remove"),
|
|
1217
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
|
1218
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1219
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1147
1220
|
], LemmyHttp.prototype, "removeCommunity", null);
|
|
1148
1221
|
__decorate([
|
|
1149
|
-
(0,
|
|
1150
|
-
(0,
|
|
1151
|
-
(0,
|
|
1152
|
-
__param(0, (0,
|
|
1153
|
-
__param(1, (0,
|
|
1222
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1223
|
+
(0, runtime_1.Post)("/community/transfer"),
|
|
1224
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
|
1225
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1226
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1154
1227
|
], LemmyHttp.prototype, "transferCommunity", null);
|
|
1155
1228
|
__decorate([
|
|
1156
|
-
(0,
|
|
1157
|
-
(0,
|
|
1158
|
-
(0,
|
|
1159
|
-
__param(0, (0,
|
|
1160
|
-
__param(1, (0,
|
|
1229
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1230
|
+
(0, runtime_1.Post)("/community/ban_user"),
|
|
1231
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
|
1232
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1233
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1161
1234
|
], LemmyHttp.prototype, "banFromCommunity", null);
|
|
1162
1235
|
__decorate([
|
|
1163
|
-
(0,
|
|
1164
|
-
(0,
|
|
1165
|
-
(0,
|
|
1166
|
-
__param(0, (0,
|
|
1167
|
-
__param(1, (0,
|
|
1236
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1237
|
+
(0, runtime_1.Post)("/community/mod"),
|
|
1238
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
|
1239
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1240
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1168
1241
|
], LemmyHttp.prototype, "addModToCommunity", null);
|
|
1169
1242
|
__decorate([
|
|
1170
|
-
(0,
|
|
1171
|
-
(0,
|
|
1172
|
-
(0,
|
|
1173
|
-
(0,
|
|
1174
|
-
__param(0, (0,
|
|
1175
|
-
__param(1, (0,
|
|
1243
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1244
|
+
(0, runtime_1.Security)({}),
|
|
1245
|
+
(0, runtime_1.Get)("/community/random"),
|
|
1246
|
+
(0, runtime_1.Tags)("Community"),
|
|
1247
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1248
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1176
1249
|
], LemmyHttp.prototype, "getRandomCommunity", null);
|
|
1177
1250
|
__decorate([
|
|
1178
|
-
(0,
|
|
1179
|
-
(0,
|
|
1180
|
-
(0,
|
|
1181
|
-
__param(0, (0,
|
|
1182
|
-
__param(1, (0,
|
|
1251
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1252
|
+
(0, runtime_1.Post)("/community/report"),
|
|
1253
|
+
(0, runtime_1.Tags)("Community"),
|
|
1254
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1255
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1256
|
+
], LemmyHttp.prototype, "createCommunityReport", null);
|
|
1257
|
+
__decorate([
|
|
1258
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1259
|
+
(0, runtime_1.Put)("/community/report/resolve"),
|
|
1260
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
|
1261
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1262
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1263
|
+
], LemmyHttp.prototype, "resolveCommunityReport", null);
|
|
1264
|
+
__decorate([
|
|
1265
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1266
|
+
(0, runtime_1.Post)("/post"),
|
|
1267
|
+
(0, runtime_1.Tags)("Post"),
|
|
1268
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1269
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1183
1270
|
], LemmyHttp.prototype, "createPost", null);
|
|
1184
1271
|
__decorate([
|
|
1185
|
-
(0,
|
|
1186
|
-
(0,
|
|
1187
|
-
(0,
|
|
1188
|
-
(0,
|
|
1189
|
-
__param(0, (0,
|
|
1190
|
-
__param(1, (0,
|
|
1272
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1273
|
+
(0, runtime_1.Security)({}),
|
|
1274
|
+
(0, runtime_1.Get)("/post"),
|
|
1275
|
+
(0, runtime_1.Tags)("Post"),
|
|
1276
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1277
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1191
1278
|
], LemmyHttp.prototype, "getPost", null);
|
|
1192
1279
|
__decorate([
|
|
1193
|
-
(0,
|
|
1194
|
-
(0,
|
|
1195
|
-
(0,
|
|
1196
|
-
__param(0, (0,
|
|
1197
|
-
__param(1, (0,
|
|
1280
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1281
|
+
(0, runtime_1.Put)("/post"),
|
|
1282
|
+
(0, runtime_1.Tags)("Post"),
|
|
1283
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1284
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1198
1285
|
], LemmyHttp.prototype, "editPost", null);
|
|
1199
1286
|
__decorate([
|
|
1200
|
-
(0,
|
|
1201
|
-
(0,
|
|
1202
|
-
(0,
|
|
1203
|
-
__param(0, (0,
|
|
1204
|
-
__param(1, (0,
|
|
1287
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1288
|
+
(0, runtime_1.Put)("/post/mod_update"),
|
|
1289
|
+
(0, runtime_1.Tags)("Post"),
|
|
1290
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1291
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1292
|
+
], LemmyHttp.prototype, "modEditPost", null);
|
|
1293
|
+
__decorate([
|
|
1294
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1295
|
+
(0, runtime_1.Delete)("/post"),
|
|
1296
|
+
(0, runtime_1.Tags)("Post"),
|
|
1297
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1298
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1205
1299
|
], LemmyHttp.prototype, "deletePost", null);
|
|
1206
1300
|
__decorate([
|
|
1207
|
-
(0,
|
|
1208
|
-
(0,
|
|
1209
|
-
(0,
|
|
1210
|
-
__param(0, (0,
|
|
1211
|
-
__param(1, (0,
|
|
1301
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1302
|
+
(0, runtime_1.Post)("/post/remove"),
|
|
1303
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
|
1304
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1305
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1212
1306
|
], LemmyHttp.prototype, "removePost", null);
|
|
1213
1307
|
__decorate([
|
|
1214
|
-
(0,
|
|
1215
|
-
(0,
|
|
1216
|
-
(0,
|
|
1217
|
-
__param(0, (0,
|
|
1218
|
-
__param(1, (0,
|
|
1308
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1309
|
+
(0, runtime_1.Post)("/post/mark_as_read"),
|
|
1310
|
+
(0, runtime_1.Tags)("Post"),
|
|
1311
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1312
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1219
1313
|
], LemmyHttp.prototype, "markPostAsRead", null);
|
|
1220
1314
|
__decorate([
|
|
1221
|
-
(0,
|
|
1222
|
-
(0,
|
|
1223
|
-
(0,
|
|
1224
|
-
__param(0, (0,
|
|
1225
|
-
__param(1, (0,
|
|
1315
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1316
|
+
(0, runtime_1.Post)("/post/mark_as_read/many"),
|
|
1317
|
+
(0, runtime_1.Tags)("Post"),
|
|
1318
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1319
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1226
1320
|
], LemmyHttp.prototype, "markManyPostAsRead", null);
|
|
1227
1321
|
__decorate([
|
|
1228
|
-
(0,
|
|
1229
|
-
(0,
|
|
1230
|
-
(0,
|
|
1231
|
-
__param(0, (0,
|
|
1232
|
-
__param(1, (0,
|
|
1322
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1323
|
+
(0, runtime_1.Post)("/post/hide"),
|
|
1324
|
+
(0, runtime_1.Tags)("Post"),
|
|
1325
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1326
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1233
1327
|
], LemmyHttp.prototype, "hidePost", null);
|
|
1234
1328
|
__decorate([
|
|
1235
|
-
(0,
|
|
1236
|
-
(0,
|
|
1237
|
-
(0,
|
|
1238
|
-
__param(0, (0,
|
|
1239
|
-
__param(1, (0,
|
|
1329
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1330
|
+
(0, runtime_1.Post)("/post/lock"),
|
|
1331
|
+
(0, runtime_1.Tags)("Post"),
|
|
1332
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1333
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1240
1334
|
], LemmyHttp.prototype, "lockPost", null);
|
|
1241
1335
|
__decorate([
|
|
1242
|
-
(0,
|
|
1243
|
-
(0,
|
|
1244
|
-
(0,
|
|
1245
|
-
__param(0, (0,
|
|
1246
|
-
__param(1, (0,
|
|
1336
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1337
|
+
(0, runtime_1.Post)("/post/feature"),
|
|
1338
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
|
1339
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1340
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1247
1341
|
], LemmyHttp.prototype, "featurePost", null);
|
|
1248
1342
|
__decorate([
|
|
1249
|
-
(0,
|
|
1250
|
-
(0,
|
|
1251
|
-
(0,
|
|
1252
|
-
(0,
|
|
1253
|
-
__param(0, (0,
|
|
1254
|
-
__param(1, (0,
|
|
1343
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1344
|
+
(0, runtime_1.Security)({}),
|
|
1345
|
+
(0, runtime_1.Get)("/post/list"),
|
|
1346
|
+
(0, runtime_1.Tags)("Post"),
|
|
1347
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1348
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1255
1349
|
], LemmyHttp.prototype, "getPosts", null);
|
|
1256
1350
|
__decorate([
|
|
1257
|
-
(0,
|
|
1258
|
-
(0,
|
|
1259
|
-
(0,
|
|
1260
|
-
__param(0, (0,
|
|
1261
|
-
__param(1, (0,
|
|
1351
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1352
|
+
(0, runtime_1.Post)("/post/like"),
|
|
1353
|
+
(0, runtime_1.Tags)("Post"),
|
|
1354
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1355
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1262
1356
|
], LemmyHttp.prototype, "likePost", null);
|
|
1263
1357
|
__decorate([
|
|
1264
|
-
(0,
|
|
1265
|
-
(0,
|
|
1266
|
-
(0,
|
|
1267
|
-
__param(0, (0,
|
|
1268
|
-
__param(1, (0,
|
|
1358
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1359
|
+
(0, runtime_1.Get)("/post/like/list"),
|
|
1360
|
+
(0, runtime_1.Tags)("Post", "Admin"),
|
|
1361
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1362
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1269
1363
|
], LemmyHttp.prototype, "listPostLikes", null);
|
|
1270
1364
|
__decorate([
|
|
1271
|
-
(0,
|
|
1272
|
-
(0,
|
|
1273
|
-
(0,
|
|
1274
|
-
__param(0, (0,
|
|
1275
|
-
__param(1, (0,
|
|
1365
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1366
|
+
(0, runtime_1.Put)("/post/save"),
|
|
1367
|
+
(0, runtime_1.Tags)("Post"),
|
|
1368
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1369
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1276
1370
|
], LemmyHttp.prototype, "savePost", null);
|
|
1277
1371
|
__decorate([
|
|
1278
|
-
(0,
|
|
1279
|
-
(0,
|
|
1280
|
-
(0,
|
|
1281
|
-
__param(0, (0,
|
|
1282
|
-
__param(1, (0,
|
|
1372
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1373
|
+
(0, runtime_1.Post)("/post/report"),
|
|
1374
|
+
(0, runtime_1.Tags)("Post"),
|
|
1375
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1376
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1283
1377
|
], LemmyHttp.prototype, "createPostReport", null);
|
|
1284
1378
|
__decorate([
|
|
1285
|
-
(0,
|
|
1286
|
-
(0,
|
|
1287
|
-
(0,
|
|
1288
|
-
__param(0, (0,
|
|
1289
|
-
__param(1, (0,
|
|
1379
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1380
|
+
(0, runtime_1.Put)("/post/report/resolve"),
|
|
1381
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
|
1382
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1383
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1290
1384
|
], LemmyHttp.prototype, "resolvePostReport", null);
|
|
1291
1385
|
__decorate([
|
|
1292
|
-
(0,
|
|
1293
|
-
(0,
|
|
1294
|
-
(0,
|
|
1295
|
-
__param(0, (0,
|
|
1296
|
-
__param(1, (0,
|
|
1386
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1387
|
+
(0, runtime_1.Get)("/post/site_metadata"),
|
|
1388
|
+
(0, runtime_1.Tags)("Miscellaneous", "Post"),
|
|
1389
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1390
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1297
1391
|
], LemmyHttp.prototype, "getSiteMetadata", null);
|
|
1298
1392
|
__decorate([
|
|
1299
|
-
(0,
|
|
1300
|
-
(0,
|
|
1301
|
-
(0,
|
|
1302
|
-
__param(0, (0,
|
|
1303
|
-
__param(1, (0,
|
|
1393
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1394
|
+
(0, runtime_1.Post)("/comment"),
|
|
1395
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1396
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1397
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1304
1398
|
], LemmyHttp.prototype, "createComment", null);
|
|
1305
1399
|
__decorate([
|
|
1306
|
-
(0,
|
|
1307
|
-
(0,
|
|
1308
|
-
(0,
|
|
1309
|
-
__param(0, (0,
|
|
1310
|
-
__param(1, (0,
|
|
1400
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1401
|
+
(0, runtime_1.Put)("/comment"),
|
|
1402
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1403
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1404
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1311
1405
|
], LemmyHttp.prototype, "editComment", null);
|
|
1312
1406
|
__decorate([
|
|
1313
|
-
(0,
|
|
1314
|
-
(0,
|
|
1315
|
-
(0,
|
|
1316
|
-
__param(0, (0,
|
|
1317
|
-
__param(1, (0,
|
|
1407
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1408
|
+
(0, runtime_1.Delete)("/comment"),
|
|
1409
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1410
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1411
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1318
1412
|
], LemmyHttp.prototype, "deleteComment", null);
|
|
1319
1413
|
__decorate([
|
|
1320
|
-
(0,
|
|
1321
|
-
(0,
|
|
1322
|
-
(0,
|
|
1323
|
-
__param(0, (0,
|
|
1324
|
-
__param(1, (0,
|
|
1414
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1415
|
+
(0, runtime_1.Post)("/comment/remove"),
|
|
1416
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
|
1417
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1418
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1325
1419
|
], LemmyHttp.prototype, "removeComment", null);
|
|
1326
1420
|
__decorate([
|
|
1327
|
-
(0,
|
|
1328
|
-
(0,
|
|
1329
|
-
(0,
|
|
1330
|
-
__param(0, (0,
|
|
1331
|
-
__param(1, (0,
|
|
1332
|
-
], LemmyHttp.prototype, "
|
|
1333
|
-
__decorate([
|
|
1334
|
-
(0,
|
|
1335
|
-
(0,
|
|
1336
|
-
(0,
|
|
1337
|
-
__param(0, (0,
|
|
1338
|
-
__param(1, (0,
|
|
1421
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1422
|
+
(0, runtime_1.Post)("/comment/lock"),
|
|
1423
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
|
1424
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1425
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1426
|
+
], LemmyHttp.prototype, "lockComment", null);
|
|
1427
|
+
__decorate([
|
|
1428
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1429
|
+
(0, runtime_1.Post)("/comment/like"),
|
|
1430
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1431
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1432
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1339
1433
|
], LemmyHttp.prototype, "likeComment", null);
|
|
1340
1434
|
__decorate([
|
|
1341
|
-
(0,
|
|
1342
|
-
(0,
|
|
1343
|
-
(0,
|
|
1344
|
-
__param(0, (0,
|
|
1345
|
-
__param(1, (0,
|
|
1435
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1436
|
+
(0, runtime_1.Get)("/comment/like/list"),
|
|
1437
|
+
(0, runtime_1.Tags)("Comment", "Admin"),
|
|
1438
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1439
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1346
1440
|
], LemmyHttp.prototype, "listCommentLikes", null);
|
|
1347
1441
|
__decorate([
|
|
1348
|
-
(0,
|
|
1349
|
-
(0,
|
|
1350
|
-
(0,
|
|
1351
|
-
__param(0, (0,
|
|
1352
|
-
__param(1, (0,
|
|
1442
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1443
|
+
(0, runtime_1.Put)("/comment/save"),
|
|
1444
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1445
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1446
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1353
1447
|
], LemmyHttp.prototype, "saveComment", null);
|
|
1354
1448
|
__decorate([
|
|
1355
|
-
(0,
|
|
1356
|
-
(0,
|
|
1357
|
-
(0,
|
|
1358
|
-
__param(0, (0,
|
|
1359
|
-
__param(1, (0,
|
|
1449
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1450
|
+
(0, runtime_1.Post)("/comment/distinguish"),
|
|
1451
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
|
1452
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1453
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1360
1454
|
], LemmyHttp.prototype, "distinguishComment", null);
|
|
1361
1455
|
__decorate([
|
|
1362
|
-
(0,
|
|
1363
|
-
(0,
|
|
1364
|
-
(0,
|
|
1365
|
-
(0,
|
|
1366
|
-
__param(0, (0,
|
|
1367
|
-
__param(1, (0,
|
|
1456
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1457
|
+
(0, runtime_1.Security)({}),
|
|
1458
|
+
(0, runtime_1.Get)("/comment/list"),
|
|
1459
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1460
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1461
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1368
1462
|
], LemmyHttp.prototype, "getComments", null);
|
|
1369
1463
|
__decorate([
|
|
1370
|
-
(0,
|
|
1371
|
-
(0,
|
|
1372
|
-
(0,
|
|
1373
|
-
(0,
|
|
1374
|
-
__param(0, (0,
|
|
1375
|
-
__param(1, (0,
|
|
1464
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1465
|
+
(0, runtime_1.Security)({}),
|
|
1466
|
+
(0, runtime_1.Get)("/comment/list/slim"),
|
|
1467
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1468
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1469
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1376
1470
|
], LemmyHttp.prototype, "getCommentsSlim", null);
|
|
1377
1471
|
__decorate([
|
|
1378
|
-
(0,
|
|
1379
|
-
(0,
|
|
1380
|
-
(0,
|
|
1381
|
-
(0,
|
|
1382
|
-
__param(0, (0,
|
|
1383
|
-
__param(1, (0,
|
|
1472
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1473
|
+
(0, runtime_1.Security)({}),
|
|
1474
|
+
(0, runtime_1.Get)("/comment"),
|
|
1475
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1476
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1477
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1384
1478
|
], LemmyHttp.prototype, "getComment", null);
|
|
1385
1479
|
__decorate([
|
|
1386
|
-
(0,
|
|
1387
|
-
(0,
|
|
1388
|
-
(0,
|
|
1389
|
-
__param(0, (0,
|
|
1390
|
-
__param(1, (0,
|
|
1480
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1481
|
+
(0, runtime_1.Post)("/comment/report"),
|
|
1482
|
+
(0, runtime_1.Tags)("Comment"),
|
|
1483
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1484
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1391
1485
|
], LemmyHttp.prototype, "createCommentReport", null);
|
|
1392
1486
|
__decorate([
|
|
1393
|
-
(0,
|
|
1394
|
-
(0,
|
|
1395
|
-
(0,
|
|
1396
|
-
__param(0, (0,
|
|
1397
|
-
__param(1, (0,
|
|
1487
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1488
|
+
(0, runtime_1.Put)("/comment/report/resolve"),
|
|
1489
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
|
1490
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1491
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1398
1492
|
], LemmyHttp.prototype, "resolveCommentReport", null);
|
|
1399
1493
|
__decorate([
|
|
1400
|
-
(0,
|
|
1401
|
-
(0,
|
|
1402
|
-
(0,
|
|
1403
|
-
__param(0, (0,
|
|
1404
|
-
__param(1, (0,
|
|
1494
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1495
|
+
(0, runtime_1.Post)("/private_message"),
|
|
1496
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1497
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1498
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1405
1499
|
], LemmyHttp.prototype, "createPrivateMessage", null);
|
|
1406
1500
|
__decorate([
|
|
1407
|
-
(0,
|
|
1408
|
-
(0,
|
|
1409
|
-
(0,
|
|
1410
|
-
__param(0, (0,
|
|
1411
|
-
__param(1, (0,
|
|
1501
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1502
|
+
(0, runtime_1.Put)("/private_message"),
|
|
1503
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1504
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1505
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1412
1506
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
|
1413
1507
|
__decorate([
|
|
1414
|
-
(0,
|
|
1415
|
-
(0,
|
|
1416
|
-
(0,
|
|
1417
|
-
__param(0, (0,
|
|
1418
|
-
__param(1, (0,
|
|
1508
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1509
|
+
(0, runtime_1.Delete)("/private_message"),
|
|
1510
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1511
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1512
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1419
1513
|
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
|
1420
1514
|
__decorate([
|
|
1421
|
-
(0,
|
|
1422
|
-
(0,
|
|
1423
|
-
(0,
|
|
1424
|
-
__param(0, (0,
|
|
1425
|
-
__param(1, (0,
|
|
1426
|
-
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
|
1427
|
-
__decorate([
|
|
1428
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
|
1429
|
-
(0, tsoa_1.Post)("/private_message/report"),
|
|
1430
|
-
(0, tsoa_1.Tags)("PrivateMessage"),
|
|
1431
|
-
__param(0, (0, tsoa_1.Body)()),
|
|
1432
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1515
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1516
|
+
(0, runtime_1.Post)("/private_message/report"),
|
|
1517
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1518
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1519
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1433
1520
|
], LemmyHttp.prototype, "createPrivateMessageReport", null);
|
|
1434
1521
|
__decorate([
|
|
1435
|
-
(0,
|
|
1436
|
-
(0,
|
|
1437
|
-
(0,
|
|
1438
|
-
__param(0, (0,
|
|
1439
|
-
__param(1, (0,
|
|
1522
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1523
|
+
(0, runtime_1.Put)("/private_message/report/resolve"),
|
|
1524
|
+
(0, runtime_1.Tags)("PrivateMessage", "Admin"),
|
|
1525
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1526
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1440
1527
|
], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
|
|
1441
1528
|
__decorate([
|
|
1442
|
-
(0,
|
|
1443
|
-
(0,
|
|
1444
|
-
__param(0, (0,
|
|
1445
|
-
__param(1, (0,
|
|
1529
|
+
(0, runtime_1.Post)("/account/auth/register"),
|
|
1530
|
+
(0, runtime_1.Tags)("Account"),
|
|
1531
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1532
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1446
1533
|
], LemmyHttp.prototype, "register", null);
|
|
1447
1534
|
__decorate([
|
|
1448
|
-
(0,
|
|
1449
|
-
(0,
|
|
1450
|
-
__param(0, (0,
|
|
1451
|
-
__param(1, (0,
|
|
1535
|
+
(0, runtime_1.Post)("/account/auth/login"),
|
|
1536
|
+
(0, runtime_1.Tags)("Account"),
|
|
1537
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1538
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1452
1539
|
], LemmyHttp.prototype, "login", null);
|
|
1453
1540
|
__decorate([
|
|
1454
|
-
(0,
|
|
1455
|
-
(0,
|
|
1456
|
-
(0,
|
|
1457
|
-
__param(0, (0,
|
|
1541
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1542
|
+
(0, runtime_1.Post)("/account/auth/logout"),
|
|
1543
|
+
(0, runtime_1.Tags)("Account"),
|
|
1544
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1458
1545
|
], LemmyHttp.prototype, "logout", null);
|
|
1459
1546
|
__decorate([
|
|
1460
|
-
(0,
|
|
1461
|
-
(0,
|
|
1462
|
-
(0,
|
|
1463
|
-
(0,
|
|
1464
|
-
__param(0, (0,
|
|
1465
|
-
__param(1, (0,
|
|
1547
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1548
|
+
(0, runtime_1.Security)({}),
|
|
1549
|
+
(0, runtime_1.Get)("/person"),
|
|
1550
|
+
(0, runtime_1.Tags)("Person"),
|
|
1551
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1552
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1466
1553
|
], LemmyHttp.prototype, "getPersonDetails", null);
|
|
1467
1554
|
__decorate([
|
|
1468
|
-
(0,
|
|
1469
|
-
(0,
|
|
1470
|
-
(0,
|
|
1471
|
-
(0,
|
|
1472
|
-
__param(0, (0,
|
|
1473
|
-
__param(1, (0,
|
|
1555
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1556
|
+
(0, runtime_1.Security)({}),
|
|
1557
|
+
(0, runtime_1.Get)("/person/content"),
|
|
1558
|
+
(0, runtime_1.Tags)("Person"),
|
|
1559
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1560
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1474
1561
|
], LemmyHttp.prototype, "listPersonContent", null);
|
|
1475
1562
|
__decorate([
|
|
1476
|
-
(0,
|
|
1477
|
-
(0,
|
|
1478
|
-
(0,
|
|
1479
|
-
__param(0, (0,
|
|
1480
|
-
__param(1, (0,
|
|
1481
|
-
], LemmyHttp.prototype, "
|
|
1482
|
-
__decorate([
|
|
1483
|
-
(0,
|
|
1484
|
-
(0,
|
|
1485
|
-
(0,
|
|
1486
|
-
__param(0, (0,
|
|
1487
|
-
__param(1, (0,
|
|
1488
|
-
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
|
1489
|
-
__decorate([
|
|
1490
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
|
1491
|
-
(0, tsoa_1.Post)("/admin/ban"),
|
|
1492
|
-
(0, tsoa_1.Tags)("Admin"),
|
|
1493
|
-
__param(0, (0, tsoa_1.Body)()),
|
|
1494
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1563
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1564
|
+
(0, runtime_1.Post)("/person/note"),
|
|
1565
|
+
(0, runtime_1.Tags)("Person"),
|
|
1566
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1567
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1568
|
+
], LemmyHttp.prototype, "notePerson", null);
|
|
1569
|
+
__decorate([
|
|
1570
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1571
|
+
(0, runtime_1.Post)("/admin/ban"),
|
|
1572
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1573
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1574
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1495
1575
|
], LemmyHttp.prototype, "banPerson", null);
|
|
1496
1576
|
__decorate([
|
|
1497
|
-
(0,
|
|
1498
|
-
(0,
|
|
1499
|
-
(0,
|
|
1500
|
-
__param(0, (0,
|
|
1501
|
-
__param(1, (0,
|
|
1502
|
-
], LemmyHttp.prototype, "
|
|
1503
|
-
__decorate([
|
|
1504
|
-
(0,
|
|
1505
|
-
(0,
|
|
1506
|
-
(0,
|
|
1507
|
-
__param(0, (0,
|
|
1508
|
-
__param(1, (0,
|
|
1577
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1578
|
+
(0, runtime_1.Get)("/admin/users"),
|
|
1579
|
+
(0, runtime_1.Tags)("Admin", "Miscellaneous"),
|
|
1580
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1581
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1582
|
+
], LemmyHttp.prototype, "listUsers", null);
|
|
1583
|
+
__decorate([
|
|
1584
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1585
|
+
(0, runtime_1.Post)("/account/block/person"),
|
|
1586
|
+
(0, runtime_1.Tags)("Account"),
|
|
1587
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1588
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1509
1589
|
], LemmyHttp.prototype, "blockPerson", null);
|
|
1510
1590
|
__decorate([
|
|
1511
|
-
(0,
|
|
1512
|
-
(0,
|
|
1513
|
-
__param(0, (0,
|
|
1591
|
+
(0, runtime_1.Get)("/account/auth/get_captcha"),
|
|
1592
|
+
(0, runtime_1.Tags)("Account"),
|
|
1593
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1514
1594
|
], LemmyHttp.prototype, "getCaptcha", null);
|
|
1515
1595
|
__decorate([
|
|
1516
|
-
(0,
|
|
1517
|
-
(0,
|
|
1518
|
-
(0,
|
|
1519
|
-
__param(0, (0,
|
|
1520
|
-
__param(1, (0,
|
|
1596
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1597
|
+
(0, runtime_1.Delete)("/account"),
|
|
1598
|
+
(0, runtime_1.Tags)("Account"),
|
|
1599
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1600
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1521
1601
|
], LemmyHttp.prototype, "deleteAccount", null);
|
|
1522
1602
|
__decorate([
|
|
1523
|
-
(0,
|
|
1524
|
-
(0,
|
|
1525
|
-
(0,
|
|
1526
|
-
__param(0, (0,
|
|
1527
|
-
__param(1, (0,
|
|
1603
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1604
|
+
(0, runtime_1.Post)("/account/auth/password_reset"),
|
|
1605
|
+
(0, runtime_1.Tags)("Account"),
|
|
1606
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1607
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1528
1608
|
], LemmyHttp.prototype, "passwordReset", null);
|
|
1529
1609
|
__decorate([
|
|
1530
|
-
(0,
|
|
1531
|
-
(0,
|
|
1532
|
-
(0,
|
|
1533
|
-
__param(0, (0,
|
|
1534
|
-
__param(1, (0,
|
|
1610
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1611
|
+
(0, runtime_1.Post)("/account/auth/password_change"),
|
|
1612
|
+
(0, runtime_1.Tags)("Account"),
|
|
1613
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1614
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1535
1615
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
|
1536
1616
|
__decorate([
|
|
1537
|
-
(0,
|
|
1538
|
-
(0,
|
|
1539
|
-
(0,
|
|
1540
|
-
__param(0, (0,
|
|
1617
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1618
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read/all"),
|
|
1619
|
+
(0, runtime_1.Tags)("Account"),
|
|
1620
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1541
1621
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
|
1542
1622
|
__decorate([
|
|
1543
|
-
(0,
|
|
1544
|
-
(0,
|
|
1545
|
-
(0,
|
|
1546
|
-
__param(0, (0,
|
|
1547
|
-
__param(1, (0,
|
|
1623
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1624
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read"),
|
|
1625
|
+
(0, runtime_1.Tags)("Account"),
|
|
1626
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1627
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1628
|
+
], LemmyHttp.prototype, "markNotificationAsRead", null);
|
|
1629
|
+
__decorate([
|
|
1630
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1631
|
+
(0, runtime_1.Put)("/account/settings/save"),
|
|
1632
|
+
(0, runtime_1.Tags)("Account"),
|
|
1633
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1634
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1548
1635
|
], LemmyHttp.prototype, "saveUserSettings", null);
|
|
1549
1636
|
__decorate([
|
|
1550
|
-
(0,
|
|
1551
|
-
(0,
|
|
1552
|
-
(0,
|
|
1553
|
-
__param(0, (0,
|
|
1554
|
-
__param(1, (0,
|
|
1637
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1638
|
+
(0, runtime_1.Put)("/account/auth/change_password"),
|
|
1639
|
+
(0, runtime_1.Tags)("Account"),
|
|
1640
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1641
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1555
1642
|
], LemmyHttp.prototype, "changePassword", null);
|
|
1556
1643
|
__decorate([
|
|
1557
|
-
(0,
|
|
1558
|
-
(0,
|
|
1559
|
-
(0,
|
|
1560
|
-
__param(0, (0,
|
|
1561
|
-
__param(1, (0,
|
|
1562
|
-
], LemmyHttp.prototype, "
|
|
1563
|
-
__decorate([
|
|
1564
|
-
(0,
|
|
1565
|
-
(0,
|
|
1566
|
-
(0,
|
|
1567
|
-
__param(
|
|
1568
|
-
], LemmyHttp.prototype, "getUnreadCount", null);
|
|
1569
|
-
__decorate([
|
|
1570
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
|
1571
|
-
(0, tsoa_1.Get)("/account/inbox"),
|
|
1572
|
-
(0, tsoa_1.Tags)("Account"),
|
|
1573
|
-
__param(0, (0, tsoa_1.Queries)()),
|
|
1574
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1575
|
-
], LemmyHttp.prototype, "listInbox", null);
|
|
1576
|
-
__decorate([
|
|
1577
|
-
(0, tsoa_1.Post)("/account/auth/verify_email"),
|
|
1578
|
-
(0, tsoa_1.Tags)("Account"),
|
|
1579
|
-
__param(0, (0, tsoa_1.Body)()),
|
|
1580
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1644
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1645
|
+
(0, runtime_1.Get)("/account/notification/list"),
|
|
1646
|
+
(0, runtime_1.Tags)("Account"),
|
|
1647
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1648
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1649
|
+
], LemmyHttp.prototype, "listNotifications", null);
|
|
1650
|
+
__decorate([
|
|
1651
|
+
(0, runtime_1.Post)("/account/auth/verify_email"),
|
|
1652
|
+
(0, runtime_1.Tags)("Account"),
|
|
1653
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1654
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1581
1655
|
], LemmyHttp.prototype, "verifyEmail", null);
|
|
1582
1656
|
__decorate([
|
|
1583
|
-
(0,
|
|
1584
|
-
(0,
|
|
1585
|
-
__param(0, (0,
|
|
1586
|
-
__param(1, (0,
|
|
1657
|
+
(0, runtime_1.Post)("/account/auth/resend_verification_email"),
|
|
1658
|
+
(0, runtime_1.Tags)("Account"),
|
|
1659
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1660
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1587
1661
|
], LemmyHttp.prototype, "resendVerificationEmail", null);
|
|
1588
1662
|
__decorate([
|
|
1589
|
-
(0,
|
|
1590
|
-
(0,
|
|
1591
|
-
(0,
|
|
1592
|
-
__param(0, (0,
|
|
1593
|
-
__param(1, (0,
|
|
1663
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1664
|
+
(0, runtime_1.Get)("/account/saved"),
|
|
1665
|
+
(0, runtime_1.Tags)("Account"),
|
|
1666
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1667
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1594
1668
|
], LemmyHttp.prototype, "listPersonSaved", null);
|
|
1595
1669
|
__decorate([
|
|
1596
|
-
(0,
|
|
1597
|
-
(0,
|
|
1598
|
-
(0,
|
|
1599
|
-
__param(0, (0,
|
|
1600
|
-
__param(1, (0,
|
|
1670
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1671
|
+
(0, runtime_1.Get)("/account/read"),
|
|
1672
|
+
(0, runtime_1.Tags)("Account"),
|
|
1673
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1674
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1675
|
+
], LemmyHttp.prototype, "listPersonRead", null);
|
|
1676
|
+
__decorate([
|
|
1677
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1678
|
+
(0, runtime_1.Get)("/account/hidden"),
|
|
1679
|
+
(0, runtime_1.Tags)("Account"),
|
|
1680
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1681
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1682
|
+
], LemmyHttp.prototype, "listPersonHidden", null);
|
|
1683
|
+
__decorate([
|
|
1684
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1685
|
+
(0, runtime_1.Get)("/account/liked"),
|
|
1686
|
+
(0, runtime_1.Tags)("Account"),
|
|
1687
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1688
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1689
|
+
], LemmyHttp.prototype, "listPersonLiked", null);
|
|
1690
|
+
__decorate([
|
|
1691
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1692
|
+
(0, runtime_1.Post)("/admin/add"),
|
|
1693
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1694
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1695
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1601
1696
|
], LemmyHttp.prototype, "addAdmin", null);
|
|
1602
1697
|
__decorate([
|
|
1603
|
-
(0,
|
|
1604
|
-
(0,
|
|
1605
|
-
(0,
|
|
1606
|
-
__param(0, (0,
|
|
1607
|
-
|
|
1608
|
-
__decorate([
|
|
1609
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
|
1610
|
-
(0, tsoa_1.Get)("/admin/registration_application/list"),
|
|
1611
|
-
(0, tsoa_1.Tags)("Admin"),
|
|
1612
|
-
__param(0, (0, tsoa_1.Queries)()),
|
|
1613
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1698
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1699
|
+
(0, runtime_1.Get)("/admin/registration_application/list"),
|
|
1700
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1701
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1702
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1614
1703
|
], LemmyHttp.prototype, "listRegistrationApplications", null);
|
|
1615
1704
|
__decorate([
|
|
1616
|
-
(0,
|
|
1617
|
-
(0,
|
|
1618
|
-
(0,
|
|
1619
|
-
__param(0, (0,
|
|
1620
|
-
__param(1, (0,
|
|
1705
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1706
|
+
(0, runtime_1.Put)("/admin/registration_application/approve"),
|
|
1707
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1708
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1709
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1621
1710
|
], LemmyHttp.prototype, "approveRegistrationApplication", null);
|
|
1622
1711
|
__decorate([
|
|
1623
|
-
(0,
|
|
1624
|
-
(0,
|
|
1625
|
-
(0,
|
|
1626
|
-
__param(0, (0,
|
|
1627
|
-
__param(1, (0,
|
|
1712
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1713
|
+
(0, runtime_1.Get)("/admin/registration_application"),
|
|
1714
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1715
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1716
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1628
1717
|
], LemmyHttp.prototype, "getRegistrationApplication", null);
|
|
1629
1718
|
__decorate([
|
|
1630
|
-
(0,
|
|
1631
|
-
(0,
|
|
1632
|
-
(0,
|
|
1633
|
-
__param(0, (0,
|
|
1634
|
-
__param(1, (0,
|
|
1719
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1720
|
+
(0, runtime_1.Post)("/admin/purge/person"),
|
|
1721
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1722
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1723
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1635
1724
|
], LemmyHttp.prototype, "purgePerson", null);
|
|
1636
1725
|
__decorate([
|
|
1637
|
-
(0,
|
|
1638
|
-
(0,
|
|
1639
|
-
(0,
|
|
1640
|
-
__param(0, (0,
|
|
1641
|
-
__param(1, (0,
|
|
1726
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1727
|
+
(0, runtime_1.Post)("/admin/purge/community"),
|
|
1728
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1729
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1730
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1642
1731
|
], LemmyHttp.prototype, "purgeCommunity", null);
|
|
1643
1732
|
__decorate([
|
|
1644
|
-
(0,
|
|
1645
|
-
(0,
|
|
1646
|
-
(0,
|
|
1647
|
-
__param(0, (0,
|
|
1648
|
-
__param(1, (0,
|
|
1733
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1734
|
+
(0, runtime_1.Post)("/admin/purge/post"),
|
|
1735
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1736
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1737
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1649
1738
|
], LemmyHttp.prototype, "purgePost", null);
|
|
1650
1739
|
__decorate([
|
|
1651
|
-
(0,
|
|
1652
|
-
(0,
|
|
1653
|
-
(0,
|
|
1654
|
-
__param(0, (0,
|
|
1655
|
-
__param(1, (0,
|
|
1740
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1741
|
+
(0, runtime_1.Post)("/admin/purge/comment"),
|
|
1742
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1743
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1744
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1656
1745
|
], LemmyHttp.prototype, "purgeComment", null);
|
|
1657
1746
|
__decorate([
|
|
1658
|
-
(0,
|
|
1659
|
-
(0,
|
|
1660
|
-
(0,
|
|
1661
|
-
__param(0, (0,
|
|
1662
|
-
__param(1, (0,
|
|
1747
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1748
|
+
(0, runtime_1.Post)("/custom_emoji"),
|
|
1749
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
|
1750
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1751
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1663
1752
|
], LemmyHttp.prototype, "createCustomEmoji", null);
|
|
1664
1753
|
__decorate([
|
|
1665
|
-
(0,
|
|
1666
|
-
(0,
|
|
1667
|
-
(0,
|
|
1668
|
-
__param(0, (0,
|
|
1669
|
-
__param(1, (0,
|
|
1754
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1755
|
+
(0, runtime_1.Put)("/custom_emoji"),
|
|
1756
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
|
1757
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1758
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1670
1759
|
], LemmyHttp.prototype, "editCustomEmoji", null);
|
|
1671
1760
|
__decorate([
|
|
1672
|
-
(0,
|
|
1673
|
-
(0,
|
|
1674
|
-
(0,
|
|
1675
|
-
__param(0, (0,
|
|
1676
|
-
__param(1, (0,
|
|
1761
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1762
|
+
(0, runtime_1.Post)("/custom_emoji/delete"),
|
|
1763
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
|
1764
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1765
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1677
1766
|
], LemmyHttp.prototype, "deleteCustomEmoji", null);
|
|
1678
1767
|
__decorate([
|
|
1679
|
-
(0,
|
|
1680
|
-
(0,
|
|
1681
|
-
(0,
|
|
1682
|
-
(0,
|
|
1683
|
-
__param(0, (0,
|
|
1684
|
-
__param(1, (0,
|
|
1768
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1769
|
+
(0, runtime_1.Security)({}),
|
|
1770
|
+
(0, runtime_1.Get)("/custom_emoji/list"),
|
|
1771
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
|
1772
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1773
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1685
1774
|
], LemmyHttp.prototype, "listCustomEmojis", null);
|
|
1686
1775
|
__decorate([
|
|
1687
|
-
(0,
|
|
1688
|
-
(0,
|
|
1689
|
-
(0,
|
|
1690
|
-
__param(0, (0,
|
|
1691
|
-
__param(1, (0,
|
|
1776
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1777
|
+
(0, runtime_1.Post)("/admin/tagline"),
|
|
1778
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1779
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1780
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1692
1781
|
], LemmyHttp.prototype, "createTagline", null);
|
|
1693
1782
|
__decorate([
|
|
1694
|
-
(0,
|
|
1695
|
-
(0,
|
|
1696
|
-
(0,
|
|
1697
|
-
__param(0, (0,
|
|
1698
|
-
__param(1, (0,
|
|
1783
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1784
|
+
(0, runtime_1.Put)("/admin/tagline"),
|
|
1785
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1786
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1787
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1699
1788
|
], LemmyHttp.prototype, "editTagline", null);
|
|
1700
1789
|
__decorate([
|
|
1701
|
-
(0,
|
|
1702
|
-
(0,
|
|
1703
|
-
(0,
|
|
1704
|
-
__param(0, (0,
|
|
1705
|
-
__param(1, (0,
|
|
1790
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1791
|
+
(0, runtime_1.Delete)("/admin/tagline"),
|
|
1792
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1793
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1794
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1706
1795
|
], LemmyHttp.prototype, "deleteTagline", null);
|
|
1707
1796
|
__decorate([
|
|
1708
|
-
(0,
|
|
1709
|
-
(0,
|
|
1710
|
-
(0,
|
|
1711
|
-
(0,
|
|
1712
|
-
__param(0, (0,
|
|
1713
|
-
__param(1, (0,
|
|
1797
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1798
|
+
(0, runtime_1.Security)({}),
|
|
1799
|
+
(0, runtime_1.Get)("/admin/tagline/list"),
|
|
1800
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1801
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1802
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1714
1803
|
], LemmyHttp.prototype, "listTaglines", null);
|
|
1715
1804
|
__decorate([
|
|
1716
|
-
(0,
|
|
1717
|
-
(0,
|
|
1718
|
-
(0,
|
|
1719
|
-
__param(0, (0,
|
|
1720
|
-
__param(1, (0,
|
|
1805
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1806
|
+
(0, runtime_1.Post)("/community/tag"),
|
|
1807
|
+
(0, runtime_1.Tags)("Community"),
|
|
1808
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1809
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1810
|
+
], LemmyHttp.prototype, "createCommunityTag", null);
|
|
1811
|
+
__decorate([
|
|
1812
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1813
|
+
(0, runtime_1.Put)("/community/tag"),
|
|
1814
|
+
(0, runtime_1.Tags)("Community"),
|
|
1815
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1816
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1817
|
+
], LemmyHttp.prototype, "updateCommunityTag", null);
|
|
1818
|
+
__decorate([
|
|
1819
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1820
|
+
(0, runtime_1.Delete)("/community/tag"),
|
|
1821
|
+
(0, runtime_1.Tags)("Community"),
|
|
1822
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1823
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1824
|
+
], LemmyHttp.prototype, "deleteCommunityTag", null);
|
|
1825
|
+
__decorate([
|
|
1826
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1827
|
+
(0, runtime_1.Post)("/oauth_provider"),
|
|
1828
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1829
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1830
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1721
1831
|
], LemmyHttp.prototype, "createOAuthProvider", null);
|
|
1722
1832
|
__decorate([
|
|
1723
|
-
(0,
|
|
1724
|
-
(0,
|
|
1725
|
-
(0,
|
|
1726
|
-
__param(0, (0,
|
|
1727
|
-
__param(1, (0,
|
|
1833
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1834
|
+
(0, runtime_1.Put)("/oauth_provider"),
|
|
1835
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1836
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1837
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1728
1838
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
|
1729
1839
|
__decorate([
|
|
1730
|
-
(0,
|
|
1731
|
-
(0,
|
|
1732
|
-
(0,
|
|
1733
|
-
__param(0, (0,
|
|
1734
|
-
__param(1, (0,
|
|
1840
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1841
|
+
(0, runtime_1.Delete)("/oauth_provider"),
|
|
1842
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1843
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1844
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1735
1845
|
], LemmyHttp.prototype, "deleteOAuthProvider", null);
|
|
1736
1846
|
__decorate([
|
|
1737
|
-
(0,
|
|
1738
|
-
(0,
|
|
1739
|
-
(0,
|
|
1740
|
-
__param(0, (0,
|
|
1741
|
-
__param(1, (0,
|
|
1847
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1848
|
+
(0, runtime_1.Post)("/oauth/authenticate"),
|
|
1849
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1850
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1851
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1742
1852
|
], LemmyHttp.prototype, "authenticateWithOAuth", null);
|
|
1743
1853
|
__decorate([
|
|
1744
|
-
(0,
|
|
1745
|
-
(0,
|
|
1746
|
-
__param(0, (0,
|
|
1854
|
+
(0, runtime_1.Get)("/federated_instances"),
|
|
1855
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1856
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1857
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1747
1858
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
|
1748
1859
|
__decorate([
|
|
1749
|
-
(0,
|
|
1750
|
-
(0,
|
|
1751
|
-
(0,
|
|
1752
|
-
__param(0, (0,
|
|
1753
|
-
__param(1, (0,
|
|
1860
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1861
|
+
(0, runtime_1.Get)("/report/list"),
|
|
1862
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1863
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1864
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1754
1865
|
], LemmyHttp.prototype, "listReports", null);
|
|
1755
1866
|
__decorate([
|
|
1756
|
-
(0,
|
|
1757
|
-
(0,
|
|
1758
|
-
(0,
|
|
1759
|
-
__param(0, (0,
|
|
1760
|
-
__param(1, (0,
|
|
1761
|
-
], LemmyHttp.prototype, "
|
|
1762
|
-
__decorate([
|
|
1763
|
-
(0,
|
|
1764
|
-
(0,
|
|
1765
|
-
(0,
|
|
1766
|
-
__param(0, (0,
|
|
1767
|
-
__param(1, (0,
|
|
1867
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1868
|
+
(0, runtime_1.Post)("/account/block/instance/communities"),
|
|
1869
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
|
1870
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1871
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1872
|
+
], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
|
|
1873
|
+
__decorate([
|
|
1874
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1875
|
+
(0, runtime_1.Post)("/account/block/instance/persons"),
|
|
1876
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
|
1877
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1878
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1879
|
+
], LemmyHttp.prototype, "userBlockInstancePersons", null);
|
|
1880
|
+
__decorate([
|
|
1881
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1882
|
+
(0, runtime_1.Post)("/admin/instance/block"),
|
|
1883
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1884
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1885
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1768
1886
|
], LemmyHttp.prototype, "adminBlockInstance", null);
|
|
1769
1887
|
__decorate([
|
|
1770
|
-
(0,
|
|
1771
|
-
(0,
|
|
1772
|
-
(0,
|
|
1773
|
-
__param(0, (0,
|
|
1774
|
-
__param(1, (0,
|
|
1888
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1889
|
+
(0, runtime_1.Post)("/admin/instance/allow"),
|
|
1890
|
+
(0, runtime_1.Tags)("Admin"),
|
|
1891
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1892
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1775
1893
|
], LemmyHttp.prototype, "adminAllowInstance", null);
|
|
1776
1894
|
__decorate([
|
|
1777
|
-
(0,
|
|
1778
|
-
(0,
|
|
1779
|
-
(0,
|
|
1780
|
-
__param(0, (0,
|
|
1781
|
-
__param(1, (0,
|
|
1895
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1896
|
+
(0, runtime_1.Post)("/account/avatar"),
|
|
1897
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1898
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
|
1899
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1782
1900
|
], LemmyHttp.prototype, "uploadUserAvatar", null);
|
|
1783
1901
|
__decorate([
|
|
1784
|
-
(0,
|
|
1785
|
-
(0,
|
|
1786
|
-
(0,
|
|
1787
|
-
__param(0, (0,
|
|
1902
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1903
|
+
(0, runtime_1.Delete)("/account/avatar"),
|
|
1904
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1905
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1788
1906
|
], LemmyHttp.prototype, "deleteUserAvatar", null);
|
|
1789
1907
|
__decorate([
|
|
1790
|
-
(0,
|
|
1791
|
-
(0,
|
|
1792
|
-
(0,
|
|
1793
|
-
__param(0, (0,
|
|
1794
|
-
__param(1, (0,
|
|
1908
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1909
|
+
(0, runtime_1.Post)("/account/banner"),
|
|
1910
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1911
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
|
1912
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1795
1913
|
], LemmyHttp.prototype, "uploadUserBanner", null);
|
|
1796
1914
|
__decorate([
|
|
1797
|
-
(0,
|
|
1798
|
-
(0,
|
|
1799
|
-
(0,
|
|
1800
|
-
__param(0, (0,
|
|
1915
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1916
|
+
(0, runtime_1.Delete)("/account/banner"),
|
|
1917
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
|
1918
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1801
1919
|
], LemmyHttp.prototype, "deleteUserBanner", null);
|
|
1802
1920
|
__decorate([
|
|
1803
|
-
(0,
|
|
1804
|
-
(0,
|
|
1805
|
-
(0,
|
|
1806
|
-
__param(0, (0,
|
|
1807
|
-
__param(1, (0,
|
|
1921
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1922
|
+
(0, runtime_1.Post)("/community/icon"),
|
|
1923
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
|
1924
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1925
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
|
1926
|
+
__param(2, (0, runtime_1.Inject)())
|
|
1808
1927
|
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
|
1809
1928
|
__decorate([
|
|
1810
|
-
(0,
|
|
1811
|
-
(0,
|
|
1812
|
-
(0,
|
|
1813
|
-
__param(0, (0,
|
|
1929
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1930
|
+
(0, runtime_1.Delete)("/community/icon"),
|
|
1931
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
|
1932
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1933
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1814
1934
|
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
|
1815
1935
|
__decorate([
|
|
1816
|
-
(0,
|
|
1817
|
-
(0,
|
|
1818
|
-
(0,
|
|
1819
|
-
__param(0, (0,
|
|
1820
|
-
__param(1, (0,
|
|
1936
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1937
|
+
(0, runtime_1.Post)("/community/banner"),
|
|
1938
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
|
1939
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1940
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
|
1941
|
+
__param(2, (0, runtime_1.Inject)())
|
|
1821
1942
|
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
|
1822
1943
|
__decorate([
|
|
1823
|
-
(0,
|
|
1824
|
-
(0,
|
|
1825
|
-
(0,
|
|
1826
|
-
__param(0, (0,
|
|
1944
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1945
|
+
(0, runtime_1.Delete)("/community/banner"),
|
|
1946
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
|
1947
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1948
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1827
1949
|
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
|
1828
1950
|
__decorate([
|
|
1829
|
-
(0,
|
|
1830
|
-
(0,
|
|
1831
|
-
(0,
|
|
1832
|
-
__param(0, (0,
|
|
1833
|
-
__param(1, (0,
|
|
1951
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1952
|
+
(0, runtime_1.Post)("/site/icon"),
|
|
1953
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
|
1954
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
|
1955
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1834
1956
|
], LemmyHttp.prototype, "uploadSiteIcon", null);
|
|
1835
1957
|
__decorate([
|
|
1836
|
-
(0,
|
|
1837
|
-
(0,
|
|
1838
|
-
(0,
|
|
1839
|
-
__param(0, (0,
|
|
1958
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1959
|
+
(0, runtime_1.Delete)("/site/icon"),
|
|
1960
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
|
1961
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1840
1962
|
], LemmyHttp.prototype, "deleteSiteIcon", null);
|
|
1841
1963
|
__decorate([
|
|
1842
|
-
(0,
|
|
1843
|
-
(0,
|
|
1844
|
-
(0,
|
|
1845
|
-
__param(0, (0,
|
|
1846
|
-
__param(1, (0,
|
|
1964
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1965
|
+
(0, runtime_1.Post)("/site/banner"),
|
|
1966
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
|
1967
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
|
1968
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1847
1969
|
], LemmyHttp.prototype, "uploadSiteBanner", null);
|
|
1848
1970
|
__decorate([
|
|
1849
|
-
(0,
|
|
1850
|
-
(0,
|
|
1851
|
-
(0,
|
|
1852
|
-
__param(0, (0,
|
|
1971
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1972
|
+
(0, runtime_1.Delete)("/site/banner"),
|
|
1973
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
|
1974
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1853
1975
|
], LemmyHttp.prototype, "deleteSiteBanner", null);
|
|
1854
1976
|
__decorate([
|
|
1855
|
-
(0,
|
|
1856
|
-
(0,
|
|
1857
|
-
(0,
|
|
1858
|
-
__param(0, (0,
|
|
1859
|
-
__param(1, (0,
|
|
1977
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1978
|
+
(0, runtime_1.Post)("/image"),
|
|
1979
|
+
(0, runtime_1.Tags)("Media"),
|
|
1980
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
|
1981
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1860
1982
|
], LemmyHttp.prototype, "uploadImage", null);
|
|
1861
1983
|
__decorate([
|
|
1862
|
-
(0,
|
|
1863
|
-
(0,
|
|
1864
|
-
(0,
|
|
1865
|
-
__param(0, (0, tsoa_1.Queries)()),
|
|
1866
|
-
__param(1, (0, tsoa_1.Inject)())
|
|
1867
|
-
], LemmyHttp.prototype, "deleteImage", null);
|
|
1868
|
-
__decorate([
|
|
1869
|
-
(0, tsoa_1.Get)("image/health"),
|
|
1870
|
-
(0, tsoa_1.Tags)("Media"),
|
|
1871
|
-
__param(0, (0, tsoa_1.Inject)())
|
|
1984
|
+
(0, runtime_1.Get)("/image/health"),
|
|
1985
|
+
(0, runtime_1.Tags)("Media"),
|
|
1986
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1872
1987
|
], LemmyHttp.prototype, "imageHealth", null);
|
|
1988
|
+
__decorate([
|
|
1989
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1990
|
+
(0, runtime_1.Post)("/account/donation_dialog_shown"),
|
|
1991
|
+
(0, runtime_1.Tags)("Account"),
|
|
1992
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1993
|
+
], LemmyHttp.prototype, "donationDialogShown", null);
|
|
1994
|
+
__decorate([
|
|
1995
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1996
|
+
(0, runtime_1.Post)("/multi_community"),
|
|
1997
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
1998
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1999
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2000
|
+
], LemmyHttp.prototype, "createMultiCommunity", null);
|
|
2001
|
+
__decorate([
|
|
2002
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2003
|
+
(0, runtime_1.Put)("/multi_community"),
|
|
2004
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2005
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2006
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2007
|
+
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
|
2008
|
+
__decorate([
|
|
2009
|
+
(0, runtime_1.Get)("/multi_community"),
|
|
2010
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2011
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
2012
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2013
|
+
], LemmyHttp.prototype, "getMultiCommunity", null);
|
|
2014
|
+
__decorate([
|
|
2015
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2016
|
+
(0, runtime_1.Post)("/multi_community/entry"),
|
|
2017
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2018
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2019
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2020
|
+
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
|
2021
|
+
__decorate([
|
|
2022
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2023
|
+
(0, runtime_1.Delete)("/multi_community/entry"),
|
|
2024
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2025
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2026
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2027
|
+
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
|
2028
|
+
__decorate([
|
|
2029
|
+
(0, runtime_1.Get)("/multi_community/list"),
|
|
2030
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2031
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
2032
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2033
|
+
], LemmyHttp.prototype, "listMultiCommunities", null);
|
|
2034
|
+
__decorate([
|
|
2035
|
+
(0, runtime_1.Post)("/multi_community/follow"),
|
|
2036
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2037
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2038
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2039
|
+
], LemmyHttp.prototype, "followMultiCommunity", null);
|
|
2040
|
+
__decorate([
|
|
2041
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2042
|
+
(0, runtime_1.Put)("/community/notifications"),
|
|
2043
|
+
(0, runtime_1.Tags)("Community"),
|
|
2044
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2045
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2046
|
+
], LemmyHttp.prototype, "updateCommunityNotifications", null);
|
|
2047
|
+
__decorate([
|
|
2048
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2049
|
+
(0, runtime_1.Put)("/post/notifications"),
|
|
2050
|
+
(0, runtime_1.Tags)("Post"),
|
|
2051
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2052
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2053
|
+
], LemmyHttp.prototype, "updatePostNotifications", null);
|
|
1873
2054
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
|
1874
|
-
(0,
|
|
2055
|
+
(0, runtime_1.Route)("api/v4")
|
|
1875
2056
|
], LemmyHttp);
|
|
1876
2057
|
function encodeGetParams(p) {
|
|
1877
2058
|
return Object.entries(p)
|
|
@@ -1890,3 +2071,19 @@ function createFormData(image) {
|
|
|
1890
2071
|
}
|
|
1891
2072
|
return formData;
|
|
1892
2073
|
}
|
|
2074
|
+
/**
|
|
2075
|
+
* A Lemmy error type.
|
|
2076
|
+
*
|
|
2077
|
+
* The name is the i18n translatable error code.
|
|
2078
|
+
* The message is either an empty string, or extra non-translatable info.
|
|
2079
|
+
*/
|
|
2080
|
+
class LemmyError extends Error {
|
|
2081
|
+
constructor(name, status, message = "", cause) {
|
|
2082
|
+
super();
|
|
2083
|
+
this.name = name;
|
|
2084
|
+
this.message = message;
|
|
2085
|
+
this.status = status;
|
|
2086
|
+
this.cause = cause;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
exports.LemmyError = LemmyError;
|