lemmy-js-client 1.0.0-instance-user-blocking.7 → 1.0.0-invite.1
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 +33 -4
- package/dist/http.d.ts +265 -220
- package/dist/http.js +451 -336
- package/dist/index.d.ts +59 -109
- package/dist/index.js +4 -0
- package/dist/map_request_state.d.ts +2 -0
- package/dist/map_request_state.js +12 -0
- package/dist/map_request_state.main.d.ts +2 -0
- package/dist/map_request_state.main.js +12 -0
- package/dist/map_request_state.tsoa.d.ts +1 -0
- package/dist/map_request_state.tsoa.js +7 -0
- package/dist/other_types.d.ts +10 -7
- package/dist/request_state.d.ts +26 -0
- package/dist/request_state.js +5 -0
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +2 -1
- package/dist/types/{OAuthProvider.d.ts → AdminOAuthProvider.d.ts} +1 -1
- 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 +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/{PasswordChangeAfterReset.d.ts → ChangePasswordAfterReset.d.ts} +1 -1
- package/dist/types/Comment.d.ts +4 -0
- package/dist/types/CommentActions.d.ts +6 -6
- package/dist/types/CommentReport.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +4 -0
- package/dist/types/CommentSlimView.d.ts +0 -3
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +4 -5
- package/dist/types/Community.d.ts +4 -3
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityNotificationsMode.d.ts +1 -1
- package/dist/types/CommunityReport.d.ts +3 -2
- package/dist/types/CommunityReportView.d.ts +2 -0
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/{Tag.d.ts → CommunityTag.d.ts} +6 -4
- package/dist/types/CommunityTagId.d.ts +4 -0
- package/dist/types/CommunityTagsView.d.ts +5 -0
- package/dist/types/CommunityView.d.ts +2 -4
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommentReport.d.ts +4 -0
- package/dist/types/CreateCommentWarning.d.ts +8 -0
- package/dist/types/CreateCommunity.d.ts +3 -11
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateInvitation.d.ts +4 -0
- package/dist/types/CreateInvitationResponse.d.ts +4 -0
- package/dist/types/CreateMultiCommunity.d.ts +2 -1
- package/dist/types/CreatePost.d.ts +2 -2
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreatePostReport.d.ts +4 -0
- package/dist/types/CreatePostWarning.d.ts +8 -0
- package/dist/types/CreateSite.d.ts +19 -8
- package/dist/types/DeleteCommunityTag.d.ts +3 -2
- package/dist/types/DeleteUserForm.d.ts +8 -0
- package/dist/types/EditCommunity.d.ts +2 -2
- package/dist/types/{UpdateCommunityNotifications.d.ts → EditCommunityNotifications.d.ts} +1 -1
- package/dist/types/EditCommunityTag.d.ts +11 -0
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/{UpdateMultiCommunity.d.ts → EditMultiCommunity.d.ts} +3 -2
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/{UpdatePostNotifications.d.ts → EditPostNotifications.d.ts} +1 -1
- package/dist/types/EditSite.d.ts +36 -18
- package/dist/types/{UpdateTagline.d.ts → EditTagline.d.ts} +1 -1
- package/dist/types/{UpdateTotp.d.ts → EditTotp.d.ts} +1 -1
- package/dist/types/EditTotpResponse.d.ts +3 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +0 -2
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationMode.d.ts +1 -1
- package/dist/types/{ReadableFederationState.d.ts → FederationQueueState.d.ts} +1 -5
- package/dist/types/GetComments.d.ts +4 -1
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +11 -3
- package/dist/types/GetMultiCommunity.d.ts +2 -1
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPostResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +13 -2
- package/dist/types/GetSiteResponse.d.ts +9 -3
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/ImageMode.d.ts +4 -0
- package/dist/types/InvitationId.d.ts +4 -0
- package/dist/types/LemmyErrorType.d.ts +29 -146
- package/dist/types/LemmyErrorType.js +1 -0
- package/dist/types/LikeType.d.ts +1 -1
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +4 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
- package/dist/types/ListInvitations.d.ts +5 -0
- package/dist/types/ListMedia.d.ts +0 -1
- package/dist/types/ListMultiCommunities.d.ts +14 -1
- package/dist/types/ListNotifications.d.ts +4 -3
- package/dist/types/ListPersonContent.d.ts +3 -1
- package/dist/types/ListPersonHidden.d.ts +0 -1
- package/dist/types/ListPersonLiked.d.ts +0 -1
- package/dist/types/ListPersonRead.d.ts +0 -1
- package/dist/types/ListPersonSaved.d.ts +1 -1
- package/dist/types/ListPersons.d.ts +11 -0
- package/dist/types/ListPostLikes.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListReports.d.ts +6 -1
- package/dist/types/ListTaglines.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +37 -18
- package/dist/types/LocalUser.d.ts +18 -16
- package/dist/types/LocalUserInvite.d.ts +11 -0
- package/dist/types/LocalUserSortType.d.ts +4 -0
- package/dist/types/LocalUserView.d.ts +1 -0
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -1
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/ModEditPost.d.ts +2 -2
- package/dist/types/Modlog.d.ts +12 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogKindFilter.d.ts +5 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +12 -1
- package/dist/types/MultiCommunityEntry.d.ts +6 -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 +2 -0
- package/dist/types/MyUserInfo.d.ts +2 -0
- package/dist/types/NodeInfo.d.ts +20 -0
- package/dist/types/NodeInfoServices.d.ts +4 -0
- package/dist/types/NodeInfoSoftware.d.ts +6 -0
- package/dist/types/NodeInfoUsage.d.ts +6 -0
- package/dist/types/NodeInfoUsers.d.ts +5 -0
- package/dist/types/Notification.d.ts +5 -2
- package/dist/types/NotificationData.d.ts +7 -4
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationTypeFilter.d.ts +5 -0
- 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 +1 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonListingType.d.ts +4 -0
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonSortType.d.ts +4 -0
- package/dist/types/PersonView.d.ts +2 -1
- package/dist/types/PluginMetadata.d.ts +2 -2
- package/dist/types/Post.d.ts +6 -4
- package/dist/types/PostActions.d.ts +11 -11
- 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 +1 -1
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +7 -7
- package/dist/types/PostReport.d.ts +1 -0
- package/dist/types/PostReportView.d.ts +4 -0
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +4 -5
- package/dist/types/PrivateMessage.d.ts +1 -0
- package/dist/types/PrivateMessageReport.d.ts +1 -0
- package/dist/types/PrivateMessageReportView.d.ts +1 -0
- package/dist/types/PublicOAuthProvider.d.ts +27 -2
- 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/Register.d.ts +8 -0
- package/dist/types/RegistrationApplication.d.ts +1 -0
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +6 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +6 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportSortType.d.ts +4 -0
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/{PasswordReset.d.ts → ResetPassword.d.ts} +1 -1
- package/dist/types/ResolveCommentReport.d.ts +1 -0
- package/dist/types/ResolveCommunityReport.d.ts +1 -0
- package/dist/types/{SearchCombinedView.d.ts → ResolveObjectView.d.ts} +7 -7
- package/dist/types/ResolvePostReport.d.ts +1 -0
- package/dist/types/ResolvePrivateMessageReport.d.ts +1 -0
- package/dist/types/RevokeInvitation.d.ts +3 -0
- package/dist/types/SaveUserSettings.d.ts +13 -9
- package/dist/types/Search.d.ts +6 -6
- package/dist/types/SearchResponse.d.ts +16 -4
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +2 -3
- package/dist/types/TagColor.d.ts +4 -0
- package/dist/types/UnreadCountsResponse.d.ts +11 -0
- package/dist/types/UserSettingsBackup.d.ts +2 -4
- package/dist/types/VoteShow.d.ts +1 -1
- package/dist/types/VoteView.d.ts +4 -1
- package/package.json +13 -12
- 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/AdminListUsersResponse.d.ts +0 -10
- 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/BlockCommunityResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.d.ts +0 -8
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederationError.d.ts +0 -12
- package/dist/types/GetCommentsResponse.d.ts +0 -10
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
- 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 -13
- package/dist/types/GetPostsResponse.d.ts +0 -13
- 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/InstanceWithFederationState.d.ts +0 -24
- package/dist/types/ListCommentLikesResponse.d.ts +0 -13
- package/dist/types/ListCommunitiesResponse.d.ts +0 -13
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
- package/dist/types/ListMediaResponse.d.ts +0 -10
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListNotificationsResponse.d.ts +0 -13
- package/dist/types/ListPersonContentResponse.d.ts +0 -13
- package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.js +0 -2
- package/dist/types/ListPersonReadResponse.d.ts +0 -13
- package/dist/types/ListPersonReadResponse.js +0 -2
- package/dist/types/ListPersonSavedResponse.d.ts +0 -13
- package/dist/types/ListPersonSavedResponse.js +0 -2
- package/dist/types/ListPostLikesResponse.d.ts +0 -13
- package/dist/types/ListPostLikesResponse.js +0 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
- package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
- package/dist/types/ListReportsResponse.d.ts +0 -13
- package/dist/types/ListReportsResponse.js +0 -2
- package/dist/types/ListTaglinesResponse.d.ts +0 -13
- package/dist/types/ListTaglinesResponse.js +0 -2
- 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 -11
- 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/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- 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/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/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/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/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/NotificationDataType.d.ts +0 -4
- package/dist/types/NotificationDataType.js +0 -3
- package/dist/types/NotificationTypes.d.ts +0 -4
- package/dist/types/NotificationTypes.js +0 -3
- package/dist/types/OAuthProvider.js +0 -2
- package/dist/types/PasswordChangeAfterReset.js +0 -2
- package/dist/types/PasswordReset.js +0 -2
- package/dist/types/PersonContentCombinedView.d.ts +0 -7
- package/dist/types/PersonContentCombinedView.js +0 -2
- package/dist/types/PersonLikedCombinedView.d.ts +0 -7
- package/dist/types/PersonLikedCombinedView.js +0 -2
- package/dist/types/PersonSavedCombinedView.js +0 -2
- package/dist/types/ReadableFederationState.js +0 -2
- package/dist/types/SearchCombinedView.js +0 -2
- package/dist/types/SearchSortType.d.ts +0 -4
- package/dist/types/SearchSortType.js +0 -3
- package/dist/types/Tag.js +0 -2
- package/dist/types/TagId.d.ts +0 -4
- package/dist/types/TagId.js +0 -3
- package/dist/types/TagsView.d.ts +0 -5
- package/dist/types/TagsView.js +0 -2
- package/dist/types/UpdateCommunityNotifications.js +0 -2
- package/dist/types/UpdateCommunityTag.d.ts +0 -9
- package/dist/types/UpdateCommunityTag.js +0 -2
- package/dist/types/UpdateMultiCommunity.js +0 -2
- package/dist/types/UpdatePostNotifications.js +0 -2
- package/dist/types/UpdateTagline.js +0 -2
- package/dist/types/UpdateTotp.js +0 -3
- package/dist/types/UpdateTotpResponse.d.ts +0 -3
- package/dist/types/UpdateTotpResponse.js +0 -3
- /package/dist/types/{AdminAllowInstance.js → AdminOAuthProvider.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → ChangePasswordAfterReset.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → CommunityTag.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → CommunityTagId.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → CommunityTagsView.js} +0 -0
- /package/dist/types/{AdminListUsersResponse.js → CreateCommentWarning.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → CreateInvitation.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → CreateInvitationResponse.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → CreatePostWarning.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → DeleteUserForm.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → EditCommunityNotifications.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → EditCommunityTag.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → EditMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → EditPostNotifications.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → EditTagline.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → EditTotp.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → EditTotpResponse.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → FederationQueueState.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{FederationError.js → ImageMode.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → InvitationId.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → ListInvitations.js} +0 -0
- /package/dist/types/{FederatedInstances.js → ListPersons.js} +0 -0
- /package/dist/types/{GetCommentsResponse.js → LocalUserInvite.js} +0 -0
- /package/dist/types/{GetReportCountResponse.js → LocalUserSortType.js} +0 -0
- /package/dist/types/{GetCommentsSlimResponse.js → LockComment.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → Modlog.js} +0 -0
- /package/dist/types/{GetUnreadCountResponse.js → ModlogId.js} +0 -0
- /package/dist/types/{GetUnreadRegistrationApplicationCountResponse.js → ModlogKind.js} +0 -0
- /package/dist/types/{GetFederatedInstancesResponse.js → ModlogKindFilter.js} +0 -0
- /package/dist/types/{GetModlogResponse.js → ModlogView.js} +0 -0
- /package/dist/types/{GetPostsResponse.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{GetReportCount.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModAddId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{InstanceWithFederationState.js → NodeInfo.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → NodeInfoServices.js} +0 -0
- /package/dist/types/{ModBanId.js → NodeInfoSoftware.js} +0 -0
- /package/dist/types/{ListCommentLikesResponse.js → NodeInfoUsage.js} +0 -0
- /package/dist/types/{ModChangeCommunityVisibilityId.js → NodeInfoUsers.js} +0 -0
- /package/dist/types/{ModFeaturePostId.js → NotificationType.js} +0 -0
- /package/dist/types/{ListCommunitiesResponse.js → NotificationTypeFilter.js} +0 -0
- /package/dist/types/{ListCommunityPendingFollowsResponse.js → PagedResponse.js} +0 -0
- /package/dist/types/{ListMediaResponse.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{ModLockPostId.js → PersonListingType.js} +0 -0
- /package/dist/types/{ListMultiCommunitiesResponse.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommentId.js → PersonSortType.js} +0 -0
- /package/dist/types/{ListNotificationsResponse.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ReportSortType.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → ResetPassword.js} +0 -0
- /package/dist/types/{ListPersonHiddenResponse.js → ResolveObjectView.js} +0 -0
- /package/dist/types/{ModRemovePostId.js → RevokeInvitation.js} +0 -0
- /package/dist/types/{ModTransferCommunityId.js → TagColor.js} +0 -0
- /package/dist/types/{ModlogActionType.js → UnreadCountsResponse.js} +0 -0
package/dist/http.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
|
2
|
-
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI,
|
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, UploadImage, GetFederatedInstancesI, ListPersonsI, SearchI, ListInvitationsI } from "./other_types";
|
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
|
6
6
|
import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|
7
7
|
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
8
8
|
import { BanFromCommunity } from "./types/BanFromCommunity";
|
|
9
|
-
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
9
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
11
10
|
import { BanPerson } from "./types/BanPerson";
|
|
12
|
-
import { BanPersonResponse } from "./types/BanPersonResponse";
|
|
13
11
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
14
|
-
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
15
12
|
import { BlockPerson } from "./types/BlockPerson";
|
|
16
|
-
import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
17
13
|
import { ChangePassword } from "./types/ChangePassword";
|
|
18
14
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
|
19
15
|
import { CommentResponse } from "./types/CommentResponse";
|
|
@@ -25,7 +21,7 @@ import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
|
25
21
|
import { CreateCommunity } from "./types/CreateCommunity";
|
|
26
22
|
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
|
27
23
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
|
28
|
-
import {
|
|
24
|
+
import { EditCommunityTag } from "./types/EditCommunityTag";
|
|
29
25
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
|
30
26
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
|
31
27
|
import { CreatePost } from "./types/CreatePost";
|
|
@@ -51,31 +47,21 @@ import { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
|
51
47
|
import { EditPost } from "./types/EditPost";
|
|
52
48
|
import { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
53
49
|
import { EditSite } from "./types/EditSite";
|
|
54
|
-
import { OAuthProvider } from "./types/OAuthProvider";
|
|
55
50
|
import { FeaturePost } from "./types/FeaturePost";
|
|
56
51
|
import { FollowCommunity } from "./types/FollowCommunity";
|
|
57
52
|
import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
58
|
-
import { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
59
53
|
import { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
60
|
-
import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
|
61
|
-
import { GetModlogResponse } from "./types/GetModlogResponse";
|
|
62
54
|
import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
|
63
55
|
import { GetPostResponse } from "./types/GetPostResponse";
|
|
64
|
-
import { GetPostsResponse } from "./types/GetPostsResponse";
|
|
65
|
-
import { GetReportCountResponse } from "./types/GetReportCountResponse";
|
|
66
56
|
import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
|
67
57
|
import { GetSiteResponse } from "./types/GetSiteResponse";
|
|
68
|
-
import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|
69
|
-
import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
|
70
|
-
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
71
|
-
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
72
58
|
import { LockPost } from "./types/LockPost";
|
|
59
|
+
import { LockComment } from "./types/LockComment";
|
|
73
60
|
import { Login } from "./types/Login";
|
|
74
61
|
import { LoginResponse } from "./types/LoginResponse";
|
|
75
62
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import { PasswordReset } from "./types/PasswordReset";
|
|
63
|
+
import { ChangePasswordAfterReset } from "./types/ChangePasswordAfterReset";
|
|
64
|
+
import { ResetPassword } from "./types/ResetPassword";
|
|
79
65
|
import { PostReportResponse } from "./types/PostReportResponse";
|
|
80
66
|
import { PostResponse } from "./types/PostResponse";
|
|
81
67
|
import { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse";
|
|
@@ -96,62 +82,82 @@ import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport
|
|
|
96
82
|
import { SaveComment } from "./types/SaveComment";
|
|
97
83
|
import { SavePost } from "./types/SavePost";
|
|
98
84
|
import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
99
|
-
import { SearchResponse } from "./types/SearchResponse";
|
|
100
85
|
import { SiteResponse } from "./types/SiteResponse";
|
|
101
86
|
import { TransferCommunity } from "./types/TransferCommunity";
|
|
102
87
|
import { VerifyEmail } from "./types/VerifyEmail";
|
|
103
88
|
import { HideCommunity } from "./types/HideCommunity";
|
|
104
89
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
90
|
+
import { EditTotp } from "./types/EditTotp";
|
|
91
|
+
import { EditTotpResponse } from "./types/EditTotpResponse";
|
|
107
92
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
108
|
-
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
109
|
-
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
110
93
|
import { HidePost } from "./types/HidePost";
|
|
111
|
-
import { ListMediaResponse } from "./types/ListMediaResponse";
|
|
112
94
|
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
113
95
|
import { CreateTagline } from "./types/CreateTagline";
|
|
114
96
|
import { TaglineResponse } from "./types/TaglineResponse";
|
|
115
|
-
import {
|
|
97
|
+
import { EditTagline } from "./types/EditTagline";
|
|
116
98
|
import { DeleteTagline } from "./types/DeleteTagline";
|
|
117
|
-
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
118
99
|
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
119
100
|
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
120
|
-
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
121
|
-
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
122
|
-
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
123
101
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
124
102
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
125
103
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
126
|
-
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
127
|
-
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
128
104
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
|
129
|
-
import {
|
|
130
|
-
import { Tag } from "./types/Tag";
|
|
105
|
+
import { CommunityTag } from "./types/CommunityTag";
|
|
131
106
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
132
|
-
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
133
|
-
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
134
107
|
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
135
108
|
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
136
|
-
import {
|
|
137
|
-
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
138
|
-
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
109
|
+
import { EditMultiCommunity } from "./types/EditMultiCommunity";
|
|
139
110
|
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
140
111
|
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
141
112
|
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
142
113
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
143
|
-
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
144
114
|
import { NotePerson } from "./types/NotePerson";
|
|
145
115
|
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
146
116
|
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
147
117
|
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
148
|
-
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
149
118
|
import { ModEditPost } from "./types/ModEditPost";
|
|
119
|
+
import { EditCommunityNotifications } from "./types/EditCommunityNotifications";
|
|
120
|
+
import { EditPostNotifications } from "./types/EditPostNotifications";
|
|
121
|
+
import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
122
|
+
import { PersonResponse } from "./types/PersonResponse";
|
|
123
|
+
import { LocalImageView } from "./types/LocalImageView";
|
|
124
|
+
import { PagedResponse } from "./types/PagedResponse";
|
|
125
|
+
import { ModlogView } from "./types/ModlogView";
|
|
126
|
+
import { CommunityView } from "./types/CommunityView";
|
|
127
|
+
import { PendingFollowerView } from "./types/PendingFollowerView";
|
|
128
|
+
import { PostView } from "./types/PostView";
|
|
129
|
+
import { VoteView } from "./types/VoteView";
|
|
130
|
+
import { CommentView } from "./types/CommentView";
|
|
131
|
+
import { CommentSlimView } from "./types/CommentSlimView";
|
|
132
|
+
import { LocalUserView } from "./types/LocalUserView";
|
|
133
|
+
import { NotificationView } from "./types/NotificationView";
|
|
134
|
+
import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
|
135
|
+
import { Tagline } from "./types/Tagline";
|
|
136
|
+
import { ReportCombinedView } from "./types/ReportCombinedView";
|
|
137
|
+
import { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
138
|
+
import { MultiCommunityView } from "./types/MultiCommunityView";
|
|
139
|
+
import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
140
|
+
import { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
141
|
+
import { AdminOAuthProvider } from "./types/AdminOAuthProvider";
|
|
142
|
+
import { CreatePostWarning } from "./types/CreatePostWarning";
|
|
143
|
+
import { CreateCommentWarning } from "./types/CreateCommentWarning";
|
|
144
|
+
import { ResolveObjectView } from "./types/ResolveObjectView";
|
|
145
|
+
import { PersonView } from "./types/PersonView";
|
|
146
|
+
import { NodeInfo } from "./types/NodeInfo";
|
|
147
|
+
import { UserSettingsBackup } from "./types/UserSettingsBackup";
|
|
148
|
+
import { SearchResponse } from "./types/SearchResponse";
|
|
149
|
+
import { CreateInvitation } from "./types/CreateInvitation";
|
|
150
|
+
import { CreateInvitationResponse } from "./types/CreateInvitationResponse";
|
|
151
|
+
import { RevokeInvitation } from "./types/RevokeInvitation";
|
|
152
|
+
import { LocalUserInvite } from "./types/LocalUserInvite";
|
|
153
|
+
declare enum HttpType {
|
|
154
|
+
Get = "GET",
|
|
155
|
+
Post = "POST",
|
|
156
|
+
Put = "PUT",
|
|
157
|
+
Delete = "DELETE"
|
|
158
|
+
}
|
|
150
159
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
151
|
-
|
|
152
|
-
* Helps build lemmy HTTP requests.
|
|
153
|
-
*/
|
|
154
|
-
export declare class LemmyHttp extends Controller {
|
|
160
|
+
declare class LemmyController extends Controller {
|
|
155
161
|
#private;
|
|
156
162
|
/**
|
|
157
163
|
* Generates a new instance of LemmyHttp.
|
|
@@ -164,68 +170,82 @@ export declare class LemmyHttp extends Controller {
|
|
|
164
170
|
[key: string]: string;
|
|
165
171
|
};
|
|
166
172
|
});
|
|
173
|
+
upload<ResponseType>(path: string, { image }: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<ResponseType>>;
|
|
174
|
+
uploadWithQuery<QueryType extends object, ResponseType>(path: string, query: QueryType, { image }: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<ResponseType>>;
|
|
175
|
+
wrapper<BodyType extends object, ResponseType>(type_: HttpType, endpoint: string, form: BodyType, options: RequestOptions | undefined, noPrefix?: boolean): Promise<import("./request_state").RequestState<ResponseType>>;
|
|
176
|
+
/**
|
|
177
|
+
* Set the headers (can be used to set the auth header)
|
|
178
|
+
*/
|
|
179
|
+
setHeaders(headers: {
|
|
180
|
+
[key: string]: string;
|
|
181
|
+
}): void;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Helps build lemmy HTTP requests.
|
|
185
|
+
*/
|
|
186
|
+
export declare class LemmyHttp extends LemmyController {
|
|
167
187
|
/**
|
|
168
188
|
* @summary Gets the site, and your user data.
|
|
169
189
|
*/
|
|
170
|
-
getSite(options?: RequestOptions): Promise<GetSiteResponse
|
|
190
|
+
getSite(options?: RequestOptions): Promise<import("./request_state").RequestState<GetSiteResponse>>;
|
|
171
191
|
/**
|
|
172
192
|
* @summary Create your site.
|
|
173
193
|
*/
|
|
174
|
-
createSite(form: CreateSite, options?: RequestOptions): Promise<SiteResponse
|
|
194
|
+
createSite(form: CreateSite, options?: RequestOptions): Promise<import("./request_state").RequestState<SiteResponse>>;
|
|
175
195
|
/**
|
|
176
196
|
* @summary Edit your site.
|
|
177
197
|
*/
|
|
178
|
-
editSite(form: EditSite, options?: RequestOptions): Promise<SiteResponse
|
|
198
|
+
editSite(form: EditSite, options?: RequestOptions): Promise<import("./request_state").RequestState<SiteResponse>>;
|
|
179
199
|
/**
|
|
180
200
|
* @summary Leave the Site admins.
|
|
181
201
|
*/
|
|
182
|
-
leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse
|
|
202
|
+
leaveAdmin(options?: RequestOptions): Promise<import("./request_state").RequestState<GetSiteResponse>>;
|
|
183
203
|
/**
|
|
184
204
|
* @summary Generate a TOTP / two-factor secret.
|
|
185
205
|
*
|
|
186
206
|
* Generate a TOTP / two-factor secret.
|
|
187
|
-
* Afterwards you need to call `/account/auth/totp/
|
|
207
|
+
* Afterwards you need to call `/account/auth/totp/edit` with a valid token to enable it.
|
|
188
208
|
*/
|
|
189
|
-
generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse
|
|
209
|
+
generateTotpSecret(options?: RequestOptions): Promise<import("./request_state").RequestState<GenerateTotpSecretResponse>>;
|
|
190
210
|
/**
|
|
191
211
|
* @summary Get data of current user.
|
|
192
212
|
*/
|
|
193
|
-
getMyUser(options?: RequestOptions): Promise<MyUserInfo
|
|
213
|
+
getMyUser(options?: RequestOptions): Promise<import("./request_state").RequestState<MyUserInfo>>;
|
|
194
214
|
/**
|
|
195
215
|
* @summary Export a backup of your user settings.
|
|
196
216
|
*
|
|
197
217
|
* Export a backup of your user settings, including your saved content,
|
|
198
218
|
* followed communities, and blocks.
|
|
199
219
|
*/
|
|
200
|
-
|
|
220
|
+
exportUserSettings(options?: RequestOptions): Promise<import("./request_state").RequestState<string>>;
|
|
201
221
|
/**
|
|
202
222
|
* @summary Import a backup of your user settings.
|
|
203
223
|
*/
|
|
204
|
-
|
|
224
|
+
importUserSettings(form: UserSettingsBackup, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
205
225
|
/**
|
|
206
226
|
* @summary List login tokens for your user
|
|
207
227
|
*/
|
|
208
|
-
listLogins(options?: RequestOptions): Promise<ListLoginsResponse
|
|
228
|
+
listLogins(options?: RequestOptions): Promise<import("./request_state").RequestState<ListLoginsResponse>>;
|
|
209
229
|
/**
|
|
210
230
|
* @summary Returns an error message if your auth token is invalid
|
|
211
231
|
*/
|
|
212
|
-
validateAuth(options?: RequestOptions): Promise<SuccessResponse
|
|
232
|
+
validateAuth(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
213
233
|
/**
|
|
214
234
|
* @summary List all the media for your account.
|
|
215
235
|
*/
|
|
216
|
-
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<
|
|
236
|
+
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<LocalImageView>>>;
|
|
217
237
|
/**
|
|
218
238
|
* @summary Delete media for your account.
|
|
219
239
|
*/
|
|
220
|
-
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse
|
|
240
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
221
241
|
/**
|
|
222
242
|
* @summary Delete any media. (Admin only)
|
|
223
243
|
*/
|
|
224
|
-
|
|
244
|
+
adminDeleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
225
245
|
/**
|
|
226
246
|
* @summary List all the media known to your instance.
|
|
227
247
|
*/
|
|
228
|
-
|
|
248
|
+
adminListMedia(form?: ListMediaI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<LocalImageView>>>;
|
|
229
249
|
/**
|
|
230
250
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
|
231
251
|
*
|
|
@@ -233,544 +253,569 @@ export declare class LemmyHttp extends Controller {
|
|
|
233
253
|
*
|
|
234
254
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
|
235
255
|
*/
|
|
236
|
-
|
|
256
|
+
editTotp(form: EditTotp, options?: RequestOptions): Promise<import("./request_state").RequestState<EditTotpResponse>>;
|
|
237
257
|
/**
|
|
238
258
|
* @summary Get the modlog.
|
|
239
259
|
*/
|
|
240
|
-
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<
|
|
260
|
+
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<ModlogView>>>;
|
|
241
261
|
/**
|
|
242
262
|
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
243
263
|
*/
|
|
244
|
-
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse
|
|
264
|
+
search(form: SearchI, options?: RequestOptions): Promise<import("./request_state").RequestState<SearchResponse>>;
|
|
245
265
|
/**
|
|
246
266
|
* @summary Fetch a non-local / federated object.
|
|
247
267
|
*/
|
|
248
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
|
268
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<import("./request_state").RequestState<ResolveObjectView>>;
|
|
249
269
|
/**
|
|
250
270
|
* @summary Create a new community.
|
|
251
271
|
*/
|
|
252
|
-
createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<CommunityResponse
|
|
272
|
+
createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
253
273
|
/**
|
|
254
274
|
* @summary Get / fetch a community.
|
|
255
275
|
*/
|
|
256
|
-
getCommunity(form?: GetCommunityI, options?: RequestOptions): Promise<GetCommunityResponse
|
|
276
|
+
getCommunity(form?: GetCommunityI, options?: RequestOptions): Promise<import("./request_state").RequestState<GetCommunityResponse>>;
|
|
257
277
|
/**
|
|
258
278
|
* @summary Edit a community.
|
|
259
279
|
*/
|
|
260
|
-
editCommunity(form: EditCommunity, options?: RequestOptions): Promise<CommunityResponse
|
|
280
|
+
editCommunity(form: EditCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
261
281
|
/**
|
|
262
282
|
* @summary List communities, with various filters.
|
|
263
283
|
*/
|
|
264
|
-
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<
|
|
284
|
+
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<CommunityView>>>;
|
|
265
285
|
/**
|
|
266
286
|
* @summary Follow / subscribe to a community.
|
|
267
287
|
*/
|
|
268
|
-
followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse
|
|
288
|
+
followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
269
289
|
/**
|
|
270
|
-
* @summary
|
|
290
|
+
* @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
|
|
291
|
+
* reports, registration applications and pending follows to private communities.
|
|
271
292
|
*/
|
|
272
|
-
|
|
293
|
+
getUnreadCounts(options?: RequestOptions): Promise<import("./request_state").RequestState<UnreadCountsResponse>>;
|
|
273
294
|
/**
|
|
274
295
|
* @summary Get a community's pending followers.
|
|
275
296
|
*/
|
|
276
|
-
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<
|
|
297
|
+
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PendingFollowerView>>>;
|
|
277
298
|
/**
|
|
278
299
|
* @summary Approve a community pending follow request.
|
|
279
300
|
*/
|
|
280
|
-
approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise<SuccessResponse
|
|
301
|
+
approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
281
302
|
/**
|
|
282
303
|
* @summary Block a community.
|
|
283
304
|
*/
|
|
284
|
-
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<
|
|
305
|
+
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
285
306
|
/**
|
|
286
307
|
* @summary Delete a community.
|
|
287
308
|
*/
|
|
288
|
-
deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<CommunityResponse
|
|
309
|
+
deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
289
310
|
/**
|
|
290
311
|
* @summary Hide a community from public / "All" view. Admins only.
|
|
291
312
|
*/
|
|
292
|
-
hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<SuccessResponse
|
|
313
|
+
hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
293
314
|
/**
|
|
294
315
|
* @summary A moderator remove for a community.
|
|
295
316
|
*/
|
|
296
|
-
removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<CommunityResponse
|
|
317
|
+
removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
297
318
|
/**
|
|
298
319
|
* @summary Transfer your community to an existing moderator.
|
|
299
320
|
*/
|
|
300
|
-
transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<GetCommunityResponse
|
|
321
|
+
transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<GetCommunityResponse>>;
|
|
301
322
|
/**
|
|
302
323
|
* @summary Ban a user from a community.
|
|
303
324
|
*/
|
|
304
|
-
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<
|
|
325
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<PersonResponse>>;
|
|
305
326
|
/**
|
|
306
327
|
* @summary Add a moderator to your community.
|
|
307
328
|
*/
|
|
308
|
-
addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise<AddModToCommunityResponse
|
|
329
|
+
addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<AddModToCommunityResponse>>;
|
|
309
330
|
/**
|
|
310
331
|
* @summary Get a random community.
|
|
311
332
|
*/
|
|
312
|
-
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse
|
|
333
|
+
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
313
334
|
/**
|
|
314
335
|
* @summary Create a report for a community.
|
|
315
336
|
*/
|
|
316
|
-
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse
|
|
337
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityReportResponse>>;
|
|
317
338
|
/**
|
|
318
339
|
* @summary Resolve a report for a private message.
|
|
319
340
|
*/
|
|
320
|
-
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse
|
|
341
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityReportResponse>>;
|
|
321
342
|
/**
|
|
322
343
|
* @summary Create a post.
|
|
323
344
|
*/
|
|
324
|
-
createPost(form: CreatePost, options?: RequestOptions): Promise<PostResponse
|
|
345
|
+
createPost(form: CreatePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
325
346
|
/**
|
|
326
347
|
* @summary Get / fetch a post.
|
|
327
348
|
*/
|
|
328
|
-
getPost(form?: GetPostI, options?: RequestOptions): Promise<GetPostResponse
|
|
349
|
+
getPost(form?: GetPostI, options?: RequestOptions): Promise<import("./request_state").RequestState<GetPostResponse>>;
|
|
329
350
|
/**
|
|
330
351
|
* @summary Edit a post.
|
|
331
352
|
*/
|
|
332
|
-
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse
|
|
353
|
+
editPost(form: EditPost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
333
354
|
/**
|
|
334
355
|
* @summary Mods can change nsfw flag and tags for a post
|
|
335
356
|
*/
|
|
336
|
-
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse
|
|
357
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
358
|
+
/**
|
|
359
|
+
* @summary Creates a warning against a post and notifies the user.
|
|
360
|
+
*/
|
|
361
|
+
warnPost(form: CreatePostWarning, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
337
362
|
/**
|
|
338
363
|
* @summary Delete a post.
|
|
339
364
|
*/
|
|
340
|
-
deletePost(form: DeletePost, options?: RequestOptions): Promise<PostResponse
|
|
365
|
+
deletePost(form: DeletePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
341
366
|
/**
|
|
342
367
|
* @summary A moderator remove for a post.
|
|
343
368
|
*/
|
|
344
|
-
removePost(form: RemovePost, options?: RequestOptions): Promise<PostResponse
|
|
369
|
+
removePost(form: RemovePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
345
370
|
/**
|
|
346
371
|
* @summary Mark a post as read.
|
|
347
372
|
*/
|
|
348
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse
|
|
373
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
349
374
|
/**
|
|
350
375
|
* @summary Mark multiple posts as read.
|
|
351
376
|
*/
|
|
352
|
-
|
|
377
|
+
markManyPostsAsRead(form: MarkManyPostsAsRead, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
353
378
|
/**
|
|
354
379
|
* @summary Hide a post from list views.
|
|
355
380
|
*/
|
|
356
|
-
hidePost(form: HidePost, options?: RequestOptions): Promise<
|
|
381
|
+
hidePost(form: HidePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
357
382
|
/**
|
|
358
383
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
|
359
384
|
*/
|
|
360
|
-
lockPost(form: LockPost, options?: RequestOptions): Promise<PostResponse
|
|
385
|
+
lockPost(form: LockPost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
361
386
|
/**
|
|
362
387
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
|
363
388
|
*/
|
|
364
|
-
featurePost(form: FeaturePost, options?: RequestOptions): Promise<PostResponse
|
|
389
|
+
featurePost(form: FeaturePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
365
390
|
/**
|
|
366
391
|
* @summary Get / fetch posts, with various filters.
|
|
367
392
|
*/
|
|
368
|
-
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<
|
|
393
|
+
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostView>>>;
|
|
369
394
|
/**
|
|
370
395
|
* @summary Like / vote on a post.
|
|
371
396
|
*/
|
|
372
|
-
likePost(form: CreatePostLike, options?: RequestOptions): Promise<PostResponse
|
|
397
|
+
likePost(form: CreatePostLike, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
373
398
|
/**
|
|
374
399
|
* @summary List a post's likes. Admin-only.
|
|
375
400
|
*/
|
|
376
|
-
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<
|
|
401
|
+
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<VoteView>>>;
|
|
377
402
|
/**
|
|
378
403
|
* @summary Save a post.
|
|
379
404
|
*/
|
|
380
|
-
savePost(form: SavePost, options?: RequestOptions): Promise<PostResponse
|
|
405
|
+
savePost(form: SavePost, options?: RequestOptions): Promise<import("./request_state").RequestState<PostResponse>>;
|
|
381
406
|
/**
|
|
382
407
|
* @summary Report a post.
|
|
383
408
|
*/
|
|
384
|
-
createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<PostReportResponse
|
|
409
|
+
createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<import("./request_state").RequestState<PostReportResponse>>;
|
|
385
410
|
/**
|
|
386
411
|
* @summary Resolve a post report. Only a mod can do this.
|
|
387
412
|
*/
|
|
388
|
-
resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse
|
|
413
|
+
resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<import("./request_state").RequestState<PostReportResponse>>;
|
|
389
414
|
/**
|
|
390
415
|
* @summary Fetch metadata for any given site.
|
|
391
416
|
*/
|
|
392
|
-
getSiteMetadata(form: GetSiteMetadataI, options?: RequestOptions): Promise<GetSiteMetadataResponse
|
|
417
|
+
getSiteMetadata(form: GetSiteMetadataI, options?: RequestOptions): Promise<import("./request_state").RequestState<GetSiteMetadataResponse>>;
|
|
393
418
|
/**
|
|
394
419
|
* @summary Create a comment.
|
|
395
420
|
*/
|
|
396
|
-
createComment(form: CreateComment, options?: RequestOptions): Promise<CommentResponse
|
|
421
|
+
createComment(form: CreateComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
397
422
|
/**
|
|
398
423
|
* @summary Edit a comment.
|
|
399
424
|
*/
|
|
400
|
-
editComment(form: EditComment, options?: RequestOptions): Promise<CommentResponse
|
|
425
|
+
editComment(form: EditComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
401
426
|
/**
|
|
402
427
|
* @summary Delete a comment.
|
|
403
428
|
*/
|
|
404
|
-
deleteComment(form: DeleteComment, options?: RequestOptions): Promise<CommentResponse
|
|
429
|
+
deleteComment(form: DeleteComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
405
430
|
/**
|
|
406
431
|
* @summary A moderator remove for a comment.
|
|
407
432
|
*/
|
|
408
|
-
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse
|
|
433
|
+
removeComment(form: RemoveComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
409
434
|
/**
|
|
410
|
-
* @summary
|
|
435
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
411
436
|
*/
|
|
412
|
-
|
|
437
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
438
|
+
/**
|
|
439
|
+
* @Summary Like / vote on a comment.
|
|
440
|
+
*/
|
|
441
|
+
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
413
442
|
/**
|
|
414
443
|
* @summary List a comment's likes. Admin-only.
|
|
415
444
|
*/
|
|
416
|
-
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<
|
|
445
|
+
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<VoteView>>>;
|
|
417
446
|
/**
|
|
418
447
|
* @summary Save a comment.
|
|
419
448
|
*/
|
|
420
|
-
saveComment(form: SaveComment, options?: RequestOptions): Promise<CommentResponse
|
|
449
|
+
saveComment(form: SaveComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
421
450
|
/**
|
|
422
451
|
* @summary Distinguishes a comment (speak as moderator)
|
|
423
452
|
*/
|
|
424
|
-
distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<CommentResponse
|
|
453
|
+
distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
425
454
|
/**
|
|
426
455
|
* @summary Get / fetch comments.
|
|
427
456
|
*/
|
|
428
|
-
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
457
|
+
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<CommentView>>>;
|
|
429
458
|
/**
|
|
430
459
|
* @summary Get / fetch comments, but without the post or community.
|
|
431
460
|
*/
|
|
432
|
-
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
461
|
+
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<CommentSlimView>>>;
|
|
433
462
|
/**
|
|
434
463
|
* @summary Get / fetch comment.
|
|
435
464
|
*/
|
|
436
|
-
getComment(form: GetCommentI, options?: RequestOptions): Promise<CommentResponse
|
|
465
|
+
getComment(form: GetCommentI, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
466
|
+
/**
|
|
467
|
+
* @summary Creates a warning against a comment and notifies the user.
|
|
468
|
+
*/
|
|
469
|
+
warnComment(form: CreateCommentWarning, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentResponse>>;
|
|
437
470
|
/**
|
|
438
471
|
* @summary Report a comment.
|
|
439
472
|
*/
|
|
440
|
-
createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<CommentReportResponse
|
|
473
|
+
createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentReportResponse>>;
|
|
441
474
|
/**
|
|
442
475
|
* @summary Resolve a comment report. Only a mod can do this.
|
|
443
476
|
*/
|
|
444
|
-
resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse
|
|
477
|
+
resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<import("./request_state").RequestState<CommentReportResponse>>;
|
|
445
478
|
/**
|
|
446
479
|
* @summary Create a private message.
|
|
447
480
|
*/
|
|
448
|
-
createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse
|
|
481
|
+
createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<import("./request_state").RequestState<PrivateMessageResponse>>;
|
|
449
482
|
/**
|
|
450
483
|
* @summary Edit a private message.
|
|
451
484
|
*/
|
|
452
|
-
editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse
|
|
485
|
+
editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<import("./request_state").RequestState<PrivateMessageResponse>>;
|
|
453
486
|
/**
|
|
454
487
|
* @summary Delete a private message.
|
|
455
488
|
*/
|
|
456
|
-
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse
|
|
457
|
-
/**
|
|
458
|
-
* @summary Mark a private message as read.
|
|
459
|
-
*/
|
|
460
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
489
|
+
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<import("./request_state").RequestState<PrivateMessageResponse>>;
|
|
461
490
|
/**
|
|
462
491
|
* @summary Create a report for a private message.
|
|
463
492
|
*/
|
|
464
|
-
createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse
|
|
493
|
+
createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<import("./request_state").RequestState<PrivateMessageReportResponse>>;
|
|
465
494
|
/**
|
|
466
495
|
* @summary Resolve a report for a private message.
|
|
467
496
|
*/
|
|
468
|
-
resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse
|
|
497
|
+
resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<import("./request_state").RequestState<PrivateMessageReportResponse>>;
|
|
469
498
|
/**
|
|
470
499
|
* @summary Register a new user.
|
|
471
500
|
*/
|
|
472
|
-
register(form: Register, options?: RequestOptions): Promise<LoginResponse
|
|
501
|
+
register(form: Register, options?: RequestOptions): Promise<import("./request_state").RequestState<LoginResponse>>;
|
|
473
502
|
/**
|
|
474
503
|
* @summary Log into lemmy.
|
|
475
504
|
*/
|
|
476
|
-
login(form: Login, options?: RequestOptions): Promise<LoginResponse
|
|
505
|
+
login(form: Login, options?: RequestOptions): Promise<import("./request_state").RequestState<LoginResponse>>;
|
|
477
506
|
/**
|
|
478
507
|
* @summary Invalidate the currently used auth token.
|
|
479
508
|
*/
|
|
480
|
-
logout(options?: RequestOptions): Promise<SuccessResponse
|
|
509
|
+
logout(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
481
510
|
/**
|
|
482
511
|
* @summary Get the details for a person.
|
|
483
512
|
*/
|
|
484
|
-
getPersonDetails(form?: GetPersonDetailsI, options?: RequestOptions): Promise<GetPersonDetailsResponse
|
|
513
|
+
getPersonDetails(form?: GetPersonDetailsI, options?: RequestOptions): Promise<import("./request_state").RequestState<GetPersonDetailsResponse>>;
|
|
485
514
|
/**
|
|
486
515
|
* @summary List the content for a person.
|
|
487
516
|
*/
|
|
488
|
-
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<
|
|
517
|
+
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostCommentCombinedView>>>;
|
|
489
518
|
/**
|
|
490
519
|
* @summary Make a note for a person.
|
|
491
520
|
*/
|
|
492
|
-
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse
|
|
521
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
522
|
+
/**
|
|
523
|
+
* @summary List persons.
|
|
524
|
+
*/
|
|
525
|
+
listPersons(form?: ListPersonsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PersonView>>>;
|
|
493
526
|
/**
|
|
494
527
|
* @summary Ban a person from your site.
|
|
495
528
|
*/
|
|
496
|
-
banPerson(form: BanPerson, options?: RequestOptions): Promise<
|
|
529
|
+
banPerson(form: BanPerson, options?: RequestOptions): Promise<import("./request_state").RequestState<PersonResponse>>;
|
|
497
530
|
/**
|
|
498
531
|
* @summary Get a list of users.
|
|
499
532
|
*/
|
|
500
|
-
|
|
533
|
+
adminListUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<LocalUserView>>>;
|
|
501
534
|
/**
|
|
502
535
|
* @summary Block a person.
|
|
503
536
|
*/
|
|
504
|
-
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<
|
|
537
|
+
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<import("./request_state").RequestState<PersonResponse>>;
|
|
505
538
|
/**
|
|
506
539
|
* @summary Fetch a Captcha.
|
|
507
540
|
*/
|
|
508
|
-
getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse
|
|
541
|
+
getCaptcha(options?: RequestOptions): Promise<import("./request_state").RequestState<GetCaptchaResponse>>;
|
|
509
542
|
/**
|
|
510
543
|
* @summary Delete your account.
|
|
511
544
|
*/
|
|
512
|
-
deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse
|
|
545
|
+
deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
513
546
|
/**
|
|
514
547
|
* @summary Reset your password.
|
|
515
548
|
*/
|
|
516
|
-
|
|
549
|
+
resetPassword(form: ResetPassword, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
517
550
|
/**
|
|
518
551
|
* @summary Change your password from an email / token based reset.
|
|
519
552
|
*/
|
|
520
|
-
|
|
553
|
+
changePasswordAfterReset(form: ChangePasswordAfterReset, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
521
554
|
/**
|
|
522
|
-
* @summary Mark all
|
|
555
|
+
* @summary Mark all notifications as read.
|
|
523
556
|
*/
|
|
524
|
-
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse
|
|
557
|
+
markAllNotificationsAsRead(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
525
558
|
/**
|
|
526
|
-
* @summary Mark a
|
|
559
|
+
* @summary Mark a notification as read.
|
|
527
560
|
*/
|
|
528
|
-
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse
|
|
561
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
529
562
|
/**
|
|
530
563
|
* @summary Save your user settings.
|
|
531
564
|
*/
|
|
532
|
-
saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse
|
|
565
|
+
saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
533
566
|
/**
|
|
534
567
|
* @summary Change your user password.
|
|
535
568
|
*/
|
|
536
|
-
changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse
|
|
537
|
-
/**
|
|
538
|
-
* @summary Get counts for your reports.
|
|
539
|
-
*/
|
|
540
|
-
getReportCount(form: GetReportCountI, options?: RequestOptions): Promise<GetReportCountResponse>;
|
|
541
|
-
/**
|
|
542
|
-
* @summary Get your unread counts.
|
|
543
|
-
*/
|
|
544
|
-
getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
|
|
569
|
+
changePassword(form: ChangePassword, options?: RequestOptions): Promise<import("./request_state").RequestState<LoginResponse>>;
|
|
545
570
|
/**
|
|
546
571
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
547
572
|
*/
|
|
548
|
-
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<
|
|
573
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<NotificationView>>>;
|
|
549
574
|
/**
|
|
550
575
|
* @summary Verify your email
|
|
551
576
|
*/
|
|
552
|
-
verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse
|
|
577
|
+
verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
553
578
|
/**
|
|
554
579
|
* @summary Resend a verification email.
|
|
555
580
|
*/
|
|
556
|
-
resendVerificationEmail(form: ResendVerificationEmail, options?: RequestOptions): Promise<SuccessResponse
|
|
581
|
+
resendVerificationEmail(form: ResendVerificationEmail, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
557
582
|
/**
|
|
558
583
|
* @summary List your saved content.
|
|
559
584
|
*/
|
|
560
|
-
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<
|
|
585
|
+
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostCommentCombinedView>>>;
|
|
561
586
|
/**
|
|
562
587
|
* @summary List your read content.
|
|
563
588
|
*/
|
|
564
|
-
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<
|
|
589
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostView>>>;
|
|
565
590
|
/**
|
|
566
591
|
* @summary List your hidden content.
|
|
567
592
|
*/
|
|
568
|
-
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<
|
|
593
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostView>>>;
|
|
569
594
|
/**
|
|
570
595
|
* @summary List your liked content.
|
|
571
596
|
*/
|
|
572
|
-
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<
|
|
597
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<PostCommentCombinedView>>>;
|
|
573
598
|
/**
|
|
574
599
|
* @summary Add an admin to your site.
|
|
575
600
|
*/
|
|
576
|
-
addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse
|
|
577
|
-
/**
|
|
578
|
-
* @summary Get the unread registration applications count.
|
|
579
|
-
*/
|
|
580
|
-
getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
|
601
|
+
addAdmin(form: AddAdmin, options?: RequestOptions): Promise<import("./request_state").RequestState<AddAdminResponse>>;
|
|
581
602
|
/**
|
|
582
603
|
* @summary List the registration applications.
|
|
583
604
|
*/
|
|
584
|
-
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<
|
|
605
|
+
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<RegistrationApplicationView>>>;
|
|
585
606
|
/**
|
|
586
607
|
* @summary Approve a registration application
|
|
587
608
|
*/
|
|
588
|
-
approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse
|
|
609
|
+
approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<import("./request_state").RequestState<RegistrationApplicationResponse>>;
|
|
589
610
|
/**
|
|
590
611
|
* @summary Get the application a user submitted when they first registered their account
|
|
591
612
|
*/
|
|
592
|
-
getRegistrationApplication(form: GetRegistrationApplicationI, options?: RequestOptions): Promise<RegistrationApplicationResponse
|
|
613
|
+
getRegistrationApplication(form: GetRegistrationApplicationI, options?: RequestOptions): Promise<import("./request_state").RequestState<RegistrationApplicationResponse>>;
|
|
593
614
|
/**
|
|
594
615
|
* @summary Purge / Delete a person from the database.
|
|
595
616
|
*/
|
|
596
|
-
purgePerson(form: PurgePerson, options?: RequestOptions): Promise<SuccessResponse
|
|
617
|
+
purgePerson(form: PurgePerson, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
597
618
|
/**
|
|
598
619
|
* @summary Purge / Delete a community from the database.
|
|
599
620
|
*/
|
|
600
|
-
purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<SuccessResponse
|
|
621
|
+
purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
601
622
|
/**
|
|
602
623
|
* @summary Purge / Delete a post from the database.
|
|
603
624
|
*/
|
|
604
|
-
purgePost(form: PurgePost, options?: RequestOptions): Promise<SuccessResponse
|
|
625
|
+
purgePost(form: PurgePost, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
605
626
|
/**
|
|
606
627
|
* @summary Purge / Delete a comment from the database.
|
|
607
628
|
*/
|
|
608
|
-
purgeComment(form: PurgeComment, options?: RequestOptions): Promise<SuccessResponse
|
|
629
|
+
purgeComment(form: PurgeComment, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
609
630
|
/**
|
|
610
631
|
* @summary Create a new custom emoji.
|
|
611
632
|
*/
|
|
612
|
-
createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse
|
|
633
|
+
createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<import("./request_state").RequestState<CustomEmojiResponse>>;
|
|
613
634
|
/**
|
|
614
635
|
* @summary Edit an existing custom emoji.
|
|
615
636
|
*/
|
|
616
|
-
editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse
|
|
637
|
+
editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<import("./request_state").RequestState<CustomEmojiResponse>>;
|
|
617
638
|
/**
|
|
618
639
|
* @summary Delete a custom emoji.
|
|
619
640
|
*/
|
|
620
|
-
deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<SuccessResponse
|
|
641
|
+
deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
621
642
|
/**
|
|
622
643
|
* @summary List custom emojis
|
|
623
644
|
*/
|
|
624
|
-
listCustomEmojis(form: ListCustomEmojisI, options?: RequestOptions): Promise<ListCustomEmojisResponse
|
|
645
|
+
listCustomEmojis(form: ListCustomEmojisI, options?: RequestOptions): Promise<import("./request_state").RequestState<ListCustomEmojisResponse>>;
|
|
625
646
|
/**
|
|
626
647
|
* @summary Create a new tagline
|
|
627
648
|
*/
|
|
628
|
-
createTagline(form: CreateTagline, options?: RequestOptions): Promise<TaglineResponse
|
|
649
|
+
createTagline(form: CreateTagline, options?: RequestOptions): Promise<import("./request_state").RequestState<TaglineResponse>>;
|
|
629
650
|
/**
|
|
630
651
|
* @summary Edit an existing tagline
|
|
631
652
|
*/
|
|
632
|
-
editTagline(form:
|
|
653
|
+
editTagline(form: EditTagline, options?: RequestOptions): Promise<import("./request_state").RequestState<TaglineResponse>>;
|
|
633
654
|
/**
|
|
634
655
|
* @summary Delete a tagline
|
|
635
656
|
*/
|
|
636
|
-
deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<SuccessResponse
|
|
657
|
+
deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
637
658
|
/**
|
|
638
659
|
* @summary List taglines.
|
|
639
660
|
*/
|
|
640
|
-
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<
|
|
661
|
+
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<Tagline>>>;
|
|
641
662
|
/**
|
|
642
663
|
* @summary Create a community post tag.
|
|
643
664
|
*/
|
|
644
|
-
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<
|
|
665
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityTag>>;
|
|
645
666
|
/**
|
|
646
667
|
* @summary Edit a community post tag.
|
|
647
668
|
*/
|
|
648
|
-
|
|
669
|
+
editCommunityTag(form: EditCommunityTag, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityTag>>;
|
|
649
670
|
/**
|
|
650
671
|
* @summary Delete a post tag in a community.
|
|
651
672
|
*/
|
|
652
|
-
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<
|
|
673
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityTag>>;
|
|
653
674
|
/**
|
|
654
675
|
* @summary Create a new oauth provider method
|
|
655
676
|
*/
|
|
656
|
-
createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<
|
|
677
|
+
createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<import("./request_state").RequestState<AdminOAuthProvider>>;
|
|
657
678
|
/**
|
|
658
679
|
* @summary Edit an existing oauth provider method
|
|
659
680
|
*/
|
|
660
|
-
editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<
|
|
681
|
+
editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<import("./request_state").RequestState<AdminOAuthProvider>>;
|
|
661
682
|
/**
|
|
662
683
|
* @summary Delete an oauth provider method
|
|
663
684
|
*/
|
|
664
|
-
deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<SuccessResponse
|
|
685
|
+
deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
665
686
|
/**
|
|
666
687
|
* @summary Authenticate with OAuth
|
|
667
688
|
*/
|
|
668
|
-
authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<LoginResponse
|
|
689
|
+
authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<import("./request_state").RequestState<LoginResponse>>;
|
|
669
690
|
/**
|
|
670
691
|
* @summary Fetch federated instances.
|
|
671
692
|
*/
|
|
672
|
-
getFederatedInstances(options?: RequestOptions): Promise<
|
|
693
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<FederatedInstanceView>>>;
|
|
673
694
|
/**
|
|
674
695
|
* @summary List user reports.
|
|
675
696
|
*/
|
|
676
|
-
listReports(form: ListReportsI, options?: RequestOptions): Promise<
|
|
697
|
+
listReports(form: ListReportsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<ReportCombinedView>>>;
|
|
677
698
|
/**
|
|
678
699
|
* @summary Block an instance's communities as a user.
|
|
679
700
|
*/
|
|
680
|
-
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse
|
|
701
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
681
702
|
/**
|
|
682
703
|
* @summary Block an instance's persons as a user.
|
|
683
704
|
*/
|
|
684
|
-
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse
|
|
705
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
685
706
|
/**
|
|
686
707
|
* @summary Globally block an instance as admin.
|
|
687
708
|
*/
|
|
688
|
-
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse
|
|
709
|
+
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
689
710
|
/**
|
|
690
711
|
* @summary Globally allow an instance as admin.
|
|
691
712
|
*/
|
|
692
|
-
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise<SuccessResponse
|
|
713
|
+
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
693
714
|
/**
|
|
694
715
|
* @summary Upload new user avatar.
|
|
695
716
|
*/
|
|
696
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
717
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
697
718
|
/**
|
|
698
719
|
* @summary Delete the user avatar.
|
|
699
720
|
*/
|
|
700
|
-
deleteUserAvatar(options?: RequestOptions): Promise<SuccessResponse
|
|
721
|
+
deleteUserAvatar(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
701
722
|
/**
|
|
702
723
|
* @summary Upload new user banner.
|
|
703
724
|
*/
|
|
704
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
725
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
705
726
|
/**
|
|
706
727
|
* @summary Delete the user banner.
|
|
707
728
|
*/
|
|
708
|
-
deleteUserBanner(options?: RequestOptions): Promise<SuccessResponse
|
|
729
|
+
deleteUserBanner(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
709
730
|
/**
|
|
710
731
|
* @summary Upload new community icon.
|
|
711
732
|
*/
|
|
712
|
-
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
733
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
713
734
|
/**
|
|
714
735
|
* @summary Delete the community icon.
|
|
715
736
|
*/
|
|
716
|
-
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse
|
|
737
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
717
738
|
/**
|
|
718
739
|
* @summary Upload new community banner.
|
|
719
740
|
*/
|
|
720
|
-
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
741
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
721
742
|
/**
|
|
722
743
|
* @summary Delete the community banner.
|
|
723
744
|
*/
|
|
724
|
-
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse
|
|
745
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
725
746
|
/**
|
|
726
747
|
* @summary Upload new site icon.
|
|
727
748
|
*/
|
|
728
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
749
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
729
750
|
/**
|
|
730
751
|
* @summary Delete the site icon.
|
|
731
752
|
*/
|
|
732
|
-
deleteSiteIcon(options?: RequestOptions): Promise<SuccessResponse
|
|
753
|
+
deleteSiteIcon(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
733
754
|
/**
|
|
734
755
|
* @summary Upload new site banner.
|
|
735
756
|
*/
|
|
736
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
757
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
737
758
|
/**
|
|
738
759
|
* @summary Delete the site banner.
|
|
739
760
|
*/
|
|
740
|
-
deleteSiteBanner(options?: RequestOptions): Promise<SuccessResponse
|
|
761
|
+
deleteSiteBanner(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
741
762
|
/**
|
|
742
763
|
* @summary Upload an image to the server.
|
|
743
764
|
*/
|
|
744
|
-
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse
|
|
765
|
+
uploadImage(image: UploadImage, options?: RequestOptions): Promise<import("./request_state").RequestState<UploadImageResponse>>;
|
|
745
766
|
/**
|
|
746
767
|
* @summary Health check for image functionality
|
|
747
768
|
*/
|
|
748
|
-
imageHealth(options?: RequestOptions): Promise<SuccessResponse
|
|
769
|
+
imageHealth(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
749
770
|
/**
|
|
750
|
-
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
771
|
+
* Mark the donation dialog as shown, so it isn't displayed anymore.
|
|
751
772
|
*/
|
|
752
|
-
|
|
753
|
-
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<
|
|
754
|
-
|
|
755
|
-
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse
|
|
756
|
-
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<
|
|
757
|
-
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse
|
|
758
|
-
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<
|
|
759
|
-
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<
|
|
773
|
+
markDonationDialogShown(options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
774
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<MultiCommunityResponse>>;
|
|
775
|
+
editMultiCommunity(form: EditMultiCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<MultiCommunityResponse>>;
|
|
776
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<import("./request_state").RequestState<GetMultiCommunityResponse>>;
|
|
777
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<import("./request_state").RequestState<CommunityResponse>>;
|
|
778
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
779
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<MultiCommunityView>>>;
|
|
780
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<import("./request_state").RequestState<MultiCommunityResponse>>;
|
|
760
781
|
/**
|
|
761
|
-
*
|
|
782
|
+
* @summary Change notification settings for a community
|
|
762
783
|
*/
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
784
|
+
editCommunityNotifications(form: EditCommunityNotifications, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
785
|
+
/**
|
|
786
|
+
* @summary Change notification settings for a post
|
|
787
|
+
*/
|
|
788
|
+
editPostNotifications(form: EditPostNotifications, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
789
|
+
/**
|
|
790
|
+
* @summary Create a new registration invitation
|
|
791
|
+
*/
|
|
792
|
+
createRegistrationInvitation(form: CreateInvitation, options?: RequestOptions): Promise<import("./request_state").RequestState<CreateInvitationResponse>>;
|
|
793
|
+
/**
|
|
794
|
+
* @summary Revoke a previously created registration invitation
|
|
795
|
+
*/
|
|
796
|
+
revokeRegistrationInvitation(form: RevokeInvitation, options?: RequestOptions): Promise<import("./request_state").RequestState<SuccessResponse>>;
|
|
797
|
+
/**
|
|
798
|
+
* @summary Revoke a previously created registration invitation
|
|
799
|
+
*/
|
|
800
|
+
listRegistrationInvitations(form: ListInvitationsI, options?: RequestOptions): Promise<import("./request_state").RequestState<PagedResponse<LocalUserInvite>>>;
|
|
801
|
+
}
|
|
802
|
+
export declare class NodeInfoHttp extends LemmyController {
|
|
803
|
+
/**
|
|
804
|
+
* @summary Metadata for the instance
|
|
805
|
+
*/
|
|
806
|
+
nodeinfo(options?: RequestOptions): Promise<import("./request_state").RequestState<NodeInfo>>;
|
|
766
807
|
}
|
|
767
808
|
/**
|
|
768
809
|
* A Lemmy error type.
|
|
769
810
|
*
|
|
770
811
|
* The name is the i18n translatable error code.
|
|
771
|
-
* The
|
|
812
|
+
* The message is either an empty string, or extra non-translatable info.
|
|
772
813
|
*/
|
|
773
814
|
export declare class LemmyError extends Error {
|
|
774
|
-
|
|
815
|
+
name: string;
|
|
816
|
+
status: number;
|
|
817
|
+
message: string;
|
|
818
|
+
cause: unknown;
|
|
819
|
+
constructor(name: string, status: number, message?: string, cause?: unknown);
|
|
775
820
|
}
|
|
776
821
|
export {};
|