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