lemmy-js-client 1.0.0-site-person-ban.1 → 1.0.0-test-fix-errors-1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/http.d.ts +176 -105
- package/dist/http.js +1156 -959
- package/dist/index.d.ts +63 -104
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +25 -10
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +6 -0
- package/dist/types/AllLemmyErrors.d.ts +1 -0
- package/dist/types/AllLemmyErrors.js +117 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/BanFromCommunity.d.ts +2 -2
- package/dist/types/BanPerson.d.ts +2 -2
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/Comment.d.ts +11 -2
- package/dist/types/CommentActions.d.ts +6 -10
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +5 -1
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +3 -5
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +7 -4
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +11 -17
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportView.d.ts +6 -0
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +2 -2
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommunityTag.d.ts +10 -0
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +17 -15
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +30 -25
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +3 -5
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationMode.d.ts +1 -1
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +2 -3
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +3 -3
- package/dist/types/GetMultiCommunity.d.ts +5 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +6 -12
- package/dist/types/GetSiteResponse.d.ts +8 -0
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +8 -8
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +45 -94
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +2 -1
- package/dist/types/ListCommunities.d.ts +2 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -2
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListMedia.d.ts +2 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMultiCommunities.d.ts +16 -0
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +4 -4
- package/dist/types/ListPersonContent.d.ts +1 -1
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -3
- package/dist/types/ListPersonLiked.d.ts +12 -0
- package/dist/types/ListPersonRead.d.ts +8 -0
- package/dist/types/ListPersonSaved.d.ts +1 -1
- package/dist/types/ListPostLikes.d.ts +2 -1
- package/dist/types/ListRegistrationApplications.d.ts +2 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListReports.d.ts +1 -1
- package/dist/types/ListTaglines.d.ts +2 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +9 -15
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +13 -14
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +7 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +20 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunityResponse.d.ts +4 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +8 -0
- package/dist/types/MyUserInfo.d.ts +5 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/Notification.d.ts +18 -0
- package/dist/types/NotificationData.d.ts +13 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PagedResponse.d.ts +11 -0
- package/dist/types/PaginationCursor.d.ts +5 -1
- package/dist/types/PendingFollowerView.d.ts +9 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonView.d.ts +4 -3
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +14 -7
- package/dist/types/PostActions.d.ts +15 -17
- package/dist/types/{PersonSavedCombinedView.d.ts → PostCommentCombinedView.d.ts} +3 -3
- package/dist/types/PostFeatureType.d.ts +1 -1
- package/dist/types/PostListingMode.d.ts +1 -1
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +5 -1
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +7 -4
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +3 -0
- package/dist/types/PurgeComment.d.ts +1 -1
- package/dist/types/PurgeCommunity.d.ts +1 -1
- package/dist/types/PurgePerson.d.ts +1 -1
- package/dist/types/PurgePost.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationApplication.d.ts +2 -1
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +1 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +12 -6
- package/dist/types/Search.d.ts +10 -2
- package/dist/types/SearchCombinedView.d.ts +8 -5
- package/dist/types/SearchResponse.d.ts +12 -1
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +7 -13
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/UnreadCountsResponse.d.ts +11 -0
- package/dist/types/UntranslatedError.d.ts +14 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.d.ts +9 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserSettingsBackup.d.ts +29 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteView.d.ts +5 -1
- package/package.json +11 -7
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanPersonResponse.d.ts +0 -8
- package/dist/types/BannedPersonsResponse.d.ts +0 -12
- package/dist/types/BlockCommunityResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.d.ts +0 -8
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -28
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederationError.d.ts +0 -10
- package/dist/types/GetCommentsResponse.d.ts +0 -7
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -7
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +0 -3
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetModlogResponse.d.ts +0 -12
- package/dist/types/GetPostsResponse.d.ts +0 -12
- package/dist/types/GetReportCount.d.ts +0 -7
- package/dist/types/GetReportCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +0 -6
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/ListCommentLikesResponse.d.ts +0 -7
- package/dist/types/ListCommunitiesResponse.d.ts +0 -7
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -4
- package/dist/types/ListInboxResponse.d.ts +0 -12
- package/dist/types/ListMediaResponse.d.ts +0 -4
- package/dist/types/ListPersonContentResponse.d.ts +0 -12
- package/dist/types/ListPersonSavedResponse.d.ts +0 -12
- package/dist/types/ListPostLikesResponse.d.ts +0 -7
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -7
- package/dist/types/ListReportsResponse.d.ts +0 -12
- package/dist/types/ListTaglinesResponse.d.ts +0 -7
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.js +0 -2
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAdd.js +0 -2
- package/dist/types/ModAddCommunity.d.ts +0 -14
- package/dist/types/ModAddCommunity.js +0 -2
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddCommunityView.d.ts +0 -12
- package/dist/types/ModAddCommunityView.js +0 -2
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModAddView.d.ts +0 -10
- package/dist/types/ModAddView.js +0 -2
- package/dist/types/ModBan.d.ts +0 -16
- package/dist/types/ModBan.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModBanView.d.ts +0 -10
- package/dist/types/ModBanView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -13
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemoveCommunity.d.ts +0 -14
- package/dist/types/ModRemoveCommunity.js +0 -2
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.js +0 -3
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMention.js +0 -2
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionId.js +0 -3
- package/dist/types/PersonCommentMentionView.d.ts +0 -28
- package/dist/types/PersonCommentMentionView.js +0 -2
- package/dist/types/PersonContentCombinedView.d.ts +0 -7
- package/dist/types/PersonContentCombinedView.js +0 -2
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMention.js +0 -2
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionId.js +0 -3
- package/dist/types/PersonPostMentionView.d.ts +0 -28
- package/dist/types/PersonPostMentionView.js +0 -2
- package/dist/types/PersonSavedCombinedView.js +0 -2
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/PostPaginationCursor.js +0 -3
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/ResolveObjectResponse.js +0 -2
- package/dist/types/UserBlockInstanceParams.js +0 -2
- /package/dist/types/{AdminAllowInstance.js → AdminListUsers.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → LikeType.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → ListNotifications.js} +0 -0
- /package/dist/types/{BannedPersonsResponse.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → ListPersonRead.js} +0 -0
- /package/dist/types/{CommentReply.js → LockComment.js} +0 -0
- /package/dist/types/{CommentReplyView.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{FederatedInstances.js → ModEditPost.js} +0 -0
- /package/dist/types/{GetCommentsResponse.js → Modlog.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → ModlogId.js} +0 -0
- /package/dist/types/{CommentReplyId.js → ModlogKind.js} +0 -0
- /package/dist/types/{GetCommentsSlimResponse.js → ModlogView.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → MultiCommunity.js} +0 -0
- /package/dist/types/{GetFederatedInstancesResponse.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{GetModlogResponse.js → MultiCommunityFollow.js} +0 -0
- /package/dist/types/{FederationError.js → MultiCommunityId.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{GetPostsResponse.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{GetReportCountResponse.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{GetReportCount.js → MultiCommunityView.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → NotePerson.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → Notification.js} +0 -0
- /package/dist/types/{ListCommentLikesResponse.js → NotificationData.js} +0 -0
- /package/dist/types/{GetUnreadCountResponse.js → NotificationDataType.js} +0 -0
- /package/dist/types/{GetUnreadRegistrationApplicationCountResponse.js → NotificationId.js} +0 -0
- /package/dist/types/{InboxDataType.js → NotificationType.js} +0 -0
- /package/dist/types/{ListCommunitiesResponse.js → NotificationView.js} +0 -0
- /package/dist/types/{ListCommunityPendingFollowsResponse.js → PagedResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → PluginMetadata.js} +0 -0
- /package/dist/types/{ListMediaResponse.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{ModAddId.js → PostNotificationsMode.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{ListPersonSavedResponse.js → TagsView.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → UnreadCountsResponse.js} +0 -0
- /package/dist/types/{ModBanId.js → UntranslatedError.js} +0 -0
- /package/dist/types/{ListPostLikesResponse.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{ListRegistrationApplicationsResponse.js → UpdateCommunityTag.js} +0 -0
- /package/dist/types/{ListReportsResponse.js → UpdateMultiCommunity.js} +0 -0
- /package/dist/types/{ListTaglinesResponse.js → UpdatePostNotifications.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → UserBlockInstancePersonsParams.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → UserSettingsBackup.js} +0 -0
- /package/dist/types/{ModChangeCommunityVisibilityId.js → VoteShow.js} +0 -0
package/README.md
CHANGED
|
@@ -52,6 +52,12 @@ Use `pnpm add` to develop and test changes locally:
|
|
|
52
52
|
|
|
53
53
|
`pnpm add path/to/lemmy-js-client`
|
|
54
54
|
|
|
55
|
+
Alternatively, use `yalc publish` and `yalc add lemmy-js-client`
|
|
56
|
+
|
|
57
|
+
## Generating typescript types from lemmy structs
|
|
58
|
+
|
|
59
|
+
Run `./scripts/copy_generated_types_from_lemmy.sh`
|
|
60
|
+
|
|
55
61
|
## OpenAPI
|
|
56
62
|
|
|
57
63
|
To generate OpenAPI docs, run `pnpm tsoa`
|
package/dist/http.d.ts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { Controller } from "tsoa";
|
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI,
|
|
1
|
+
import { Controller } from "@tsoa/runtime";
|
|
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, SearchI, UploadImage, GetFederatedInstancesI } 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
|
-
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
|
14
11
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
15
|
-
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
16
12
|
import { BlockPerson } from "./types/BlockPerson";
|
|
17
|
-
import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
18
13
|
import { ChangePassword } from "./types/ChangePassword";
|
|
19
14
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
|
20
15
|
import { CommentResponse } from "./types/CommentResponse";
|
|
16
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
|
21
17
|
import { CommunityResponse } from "./types/CommunityResponse";
|
|
22
18
|
import { CreateComment } from "./types/CreateComment";
|
|
23
19
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
|
24
20
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
25
21
|
import { CreateCommunity } from "./types/CreateCommunity";
|
|
22
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
|
23
|
+
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
|
24
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
26
25
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
|
27
26
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
|
28
27
|
import { CreatePost } from "./types/CreatePost";
|
|
@@ -35,6 +34,7 @@ import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
|
|
35
34
|
import { DeleteAccount } from "./types/DeleteAccount";
|
|
36
35
|
import { DeleteComment } from "./types/DeleteComment";
|
|
37
36
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
|
37
|
+
import { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
|
38
38
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
|
39
39
|
import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
|
40
40
|
import { DeletePost } from "./types/DeletePost";
|
|
@@ -51,26 +51,16 @@ import { OAuthProvider } from "./types/OAuthProvider";
|
|
|
51
51
|
import { FeaturePost } from "./types/FeaturePost";
|
|
52
52
|
import { FollowCommunity } from "./types/FollowCommunity";
|
|
53
53
|
import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
54
|
-
import { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
55
54
|
import { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
56
|
-
import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
|
57
|
-
import { GetModlogResponse } from "./types/GetModlogResponse";
|
|
58
55
|
import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
|
59
56
|
import { GetPostResponse } from "./types/GetPostResponse";
|
|
60
|
-
import { GetPostsResponse } from "./types/GetPostsResponse";
|
|
61
|
-
import { GetReportCountResponse } from "./types/GetReportCountResponse";
|
|
62
57
|
import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
|
63
58
|
import { GetSiteResponse } from "./types/GetSiteResponse";
|
|
64
|
-
import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|
65
|
-
import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
|
66
|
-
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
67
|
-
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
68
59
|
import { LockPost } from "./types/LockPost";
|
|
60
|
+
import { LockComment } from "./types/LockComment";
|
|
69
61
|
import { Login } from "./types/Login";
|
|
70
62
|
import { LoginResponse } from "./types/LoginResponse";
|
|
71
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|
72
63
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
73
|
-
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
|
74
64
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
75
65
|
import { PasswordReset } from "./types/PasswordReset";
|
|
76
66
|
import { PostReportResponse } from "./types/PostReportResponse";
|
|
@@ -87,7 +77,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
|
87
77
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
88
78
|
import { RemovePost } from "./types/RemovePost";
|
|
89
79
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
|
90
|
-
import {
|
|
80
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
|
91
81
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
|
92
82
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
|
93
83
|
import { SaveComment } from "./types/SaveComment";
|
|
@@ -102,34 +92,54 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
|
102
92
|
import { UpdateTotp } from "./types/UpdateTotp";
|
|
103
93
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
104
94
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
105
|
-
import { LoginToken } from "./types/LoginToken";
|
|
106
|
-
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
107
|
-
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
108
95
|
import { HidePost } from "./types/HidePost";
|
|
109
|
-
import { ListMediaResponse } from "./types/ListMediaResponse";
|
|
110
96
|
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
111
97
|
import { CreateTagline } from "./types/CreateTagline";
|
|
112
98
|
import { TaglineResponse } from "./types/TaglineResponse";
|
|
113
99
|
import { UpdateTagline } from "./types/UpdateTagline";
|
|
114
100
|
import { DeleteTagline } from "./types/DeleteTagline";
|
|
115
|
-
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
116
101
|
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
117
102
|
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
118
|
-
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
119
|
-
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
120
|
-
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
121
103
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
122
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
|
123
104
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
124
105
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
125
|
-
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
126
|
-
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
127
106
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
|
128
|
-
import {
|
|
129
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
|
130
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
|
131
|
-
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
107
|
+
import { Tag } from "./types/Tag";
|
|
132
108
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
109
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
110
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
111
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
112
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
113
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
114
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
115
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
116
|
+
import { NotePerson } from "./types/NotePerson";
|
|
117
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
118
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
119
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
120
|
+
import { ModEditPost } from "./types/ModEditPost";
|
|
121
|
+
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
122
|
+
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
123
|
+
import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
124
|
+
import { PersonResponse } from "./types/PersonResponse";
|
|
125
|
+
import { LocalImageView } from "./types/LocalImageView";
|
|
126
|
+
import { PagedResponse } from "./types/PagedResponse";
|
|
127
|
+
import { ModlogView } from "./types/ModlogView";
|
|
128
|
+
import { CommunityView } from "./types/CommunityView";
|
|
129
|
+
import { PendingFollowerView } from "./types/PendingFollowerView";
|
|
130
|
+
import { PostView } from "./types/PostView";
|
|
131
|
+
import { VoteView } from "./types/VoteView";
|
|
132
|
+
import { CommentView } from "./types/CommentView";
|
|
133
|
+
import { CommentSlimView } from "./types/CommentSlimView";
|
|
134
|
+
import { LocalUserView } from "./types/LocalUserView";
|
|
135
|
+
import { NotificationView } from "./types/NotificationView";
|
|
136
|
+
import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
|
137
|
+
import { Tagline } from "./types/Tagline";
|
|
138
|
+
import { ReportCombinedView } from "./types/ReportCombinedView";
|
|
139
|
+
import { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
140
|
+
import { MultiCommunityView } from "./types/MultiCommunityView";
|
|
141
|
+
import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
142
|
+
import { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
133
143
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
134
144
|
/**
|
|
135
145
|
* Helps build lemmy HTTP requests.
|
|
@@ -188,19 +198,27 @@ export declare class LemmyHttp extends Controller {
|
|
|
188
198
|
/**
|
|
189
199
|
* @summary List login tokens for your user
|
|
190
200
|
*/
|
|
191
|
-
listLogins(options?: RequestOptions): Promise<
|
|
201
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
|
192
202
|
/**
|
|
193
203
|
* @summary Returns an error message if your auth token is invalid
|
|
194
204
|
*/
|
|
195
205
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
196
206
|
/**
|
|
197
|
-
* @summary List all the media for your
|
|
207
|
+
* @summary List all the media for your account.
|
|
198
208
|
*/
|
|
199
|
-
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<
|
|
209
|
+
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
210
|
+
/**
|
|
211
|
+
* @summary Delete media for your account.
|
|
212
|
+
*/
|
|
213
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* @summary Delete any media. (Admin only)
|
|
216
|
+
*/
|
|
217
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
200
218
|
/**
|
|
201
219
|
* @summary List all the media known to your instance.
|
|
202
220
|
*/
|
|
203
|
-
|
|
221
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
204
222
|
/**
|
|
205
223
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
|
206
224
|
*
|
|
@@ -212,15 +230,15 @@ export declare class LemmyHttp extends Controller {
|
|
|
212
230
|
/**
|
|
213
231
|
* @summary Get the modlog.
|
|
214
232
|
*/
|
|
215
|
-
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<
|
|
233
|
+
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
|
|
216
234
|
/**
|
|
217
|
-
* @summary Search lemmy.
|
|
235
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
218
236
|
*/
|
|
219
237
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
|
220
238
|
/**
|
|
221
239
|
* @summary Fetch a non-local / federated object.
|
|
222
240
|
*/
|
|
223
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
|
241
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
|
224
242
|
/**
|
|
225
243
|
* @summary Create a new community.
|
|
226
244
|
*/
|
|
@@ -236,19 +254,20 @@ export declare class LemmyHttp extends Controller {
|
|
|
236
254
|
/**
|
|
237
255
|
* @summary List communities, with various filters.
|
|
238
256
|
*/
|
|
239
|
-
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<
|
|
257
|
+
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
|
|
240
258
|
/**
|
|
241
259
|
* @summary Follow / subscribe to a community.
|
|
242
260
|
*/
|
|
243
261
|
followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
|
244
262
|
/**
|
|
245
|
-
* @summary
|
|
263
|
+
* @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
|
|
264
|
+
* reports, registration applications and pending follows to private communities.
|
|
246
265
|
*/
|
|
247
|
-
|
|
266
|
+
getUnreadCounts(options?: RequestOptions): Promise<UnreadCountsResponse>;
|
|
248
267
|
/**
|
|
249
268
|
* @summary Get a community's pending followers.
|
|
250
269
|
*/
|
|
251
|
-
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<
|
|
270
|
+
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
|
|
252
271
|
/**
|
|
253
272
|
* @summary Approve a community pending follow request.
|
|
254
273
|
*/
|
|
@@ -256,7 +275,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
256
275
|
/**
|
|
257
276
|
* @summary Block a community.
|
|
258
277
|
*/
|
|
259
|
-
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<
|
|
278
|
+
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
|
260
279
|
/**
|
|
261
280
|
* @summary Delete a community.
|
|
262
281
|
*/
|
|
@@ -276,7 +295,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
276
295
|
/**
|
|
277
296
|
* @summary Ban a user from a community.
|
|
278
297
|
*/
|
|
279
|
-
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<
|
|
298
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
|
|
280
299
|
/**
|
|
281
300
|
* @summary Add a moderator to your community.
|
|
282
301
|
*/
|
|
@@ -285,6 +304,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
285
304
|
* @summary Get a random community.
|
|
286
305
|
*/
|
|
287
306
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
|
307
|
+
/**
|
|
308
|
+
* @summary Create a report for a community.
|
|
309
|
+
*/
|
|
310
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
311
|
+
/**
|
|
312
|
+
* @summary Resolve a report for a private message.
|
|
313
|
+
*/
|
|
314
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
288
315
|
/**
|
|
289
316
|
* @summary Create a post.
|
|
290
317
|
*/
|
|
@@ -297,6 +324,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
297
324
|
* @summary Edit a post.
|
|
298
325
|
*/
|
|
299
326
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
327
|
+
/**
|
|
328
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
329
|
+
*/
|
|
330
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
300
331
|
/**
|
|
301
332
|
* @summary Delete a post.
|
|
302
333
|
*/
|
|
@@ -308,7 +339,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
308
339
|
/**
|
|
309
340
|
* @summary Mark a post as read.
|
|
310
341
|
*/
|
|
311
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
|
342
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
|
312
343
|
/**
|
|
313
344
|
* @summary Mark multiple posts as read.
|
|
314
345
|
*/
|
|
@@ -316,7 +347,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
316
347
|
/**
|
|
317
348
|
* @summary Hide a post from list views.
|
|
318
349
|
*/
|
|
319
|
-
hidePost(form: HidePost, options?: RequestOptions): Promise<
|
|
350
|
+
hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
|
|
320
351
|
/**
|
|
321
352
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
|
322
353
|
*/
|
|
@@ -328,7 +359,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
328
359
|
/**
|
|
329
360
|
* @summary Get / fetch posts, with various filters.
|
|
330
361
|
*/
|
|
331
|
-
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<
|
|
362
|
+
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
332
363
|
/**
|
|
333
364
|
* @summary Like / vote on a post.
|
|
334
365
|
*/
|
|
@@ -336,7 +367,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
336
367
|
/**
|
|
337
368
|
* @summary List a post's likes. Admin-only.
|
|
338
369
|
*/
|
|
339
|
-
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<
|
|
370
|
+
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
340
371
|
/**
|
|
341
372
|
* @summary Save a post.
|
|
342
373
|
*/
|
|
@@ -370,17 +401,17 @@ export declare class LemmyHttp extends Controller {
|
|
|
370
401
|
*/
|
|
371
402
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
372
403
|
/**
|
|
373
|
-
* @summary
|
|
404
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
374
405
|
*/
|
|
375
|
-
|
|
406
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
376
407
|
/**
|
|
377
|
-
* @
|
|
408
|
+
* @Summary Like / vote on a comment.
|
|
378
409
|
*/
|
|
379
410
|
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
|
380
411
|
/**
|
|
381
412
|
* @summary List a comment's likes. Admin-only.
|
|
382
413
|
*/
|
|
383
|
-
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<
|
|
414
|
+
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
384
415
|
/**
|
|
385
416
|
* @summary Save a comment.
|
|
386
417
|
*/
|
|
@@ -392,11 +423,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
392
423
|
/**
|
|
393
424
|
* @summary Get / fetch comments.
|
|
394
425
|
*/
|
|
395
|
-
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
426
|
+
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
|
|
396
427
|
/**
|
|
397
428
|
* @summary Get / fetch comments, but without the post or community.
|
|
398
429
|
*/
|
|
399
|
-
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
430
|
+
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
|
|
400
431
|
/**
|
|
401
432
|
* @summary Get / fetch comment.
|
|
402
433
|
*/
|
|
@@ -421,10 +452,6 @@ export declare class LemmyHttp extends Controller {
|
|
|
421
452
|
* @summary Delete a private message.
|
|
422
453
|
*/
|
|
423
454
|
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
|
424
|
-
/**
|
|
425
|
-
* @summary Mark a private message as read.
|
|
426
|
-
*/
|
|
427
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
|
428
455
|
/**
|
|
429
456
|
* @summary Create a report for a private message.
|
|
430
457
|
*/
|
|
@@ -452,27 +479,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
452
479
|
/**
|
|
453
480
|
* @summary List the content for a person.
|
|
454
481
|
*/
|
|
455
|
-
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<
|
|
456
|
-
/**
|
|
457
|
-
* @summary Mark a person mention as read.
|
|
458
|
-
*/
|
|
459
|
-
markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
482
|
+
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
460
483
|
/**
|
|
461
|
-
* @summary
|
|
484
|
+
* @summary Make a note for a person.
|
|
462
485
|
*/
|
|
463
|
-
|
|
486
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
|
464
487
|
/**
|
|
465
488
|
* @summary Ban a person from your site.
|
|
466
489
|
*/
|
|
467
|
-
banPerson(form: BanPerson, options?: RequestOptions): Promise<
|
|
490
|
+
banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
468
491
|
/**
|
|
469
|
-
* @summary Get a list of
|
|
492
|
+
* @summary Get a list of users.
|
|
470
493
|
*/
|
|
471
|
-
|
|
494
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
|
|
472
495
|
/**
|
|
473
496
|
* @summary Block a person.
|
|
474
497
|
*/
|
|
475
|
-
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<
|
|
498
|
+
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
476
499
|
/**
|
|
477
500
|
* @summary Fetch a Captcha.
|
|
478
501
|
*/
|
|
@@ -490,9 +513,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
490
513
|
*/
|
|
491
514
|
passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
|
|
492
515
|
/**
|
|
493
|
-
* @summary Mark all
|
|
516
|
+
* @summary Mark all notifications as read.
|
|
494
517
|
*/
|
|
495
518
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
519
|
+
/**
|
|
520
|
+
* @summary Mark a notification as read.
|
|
521
|
+
*/
|
|
522
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
496
523
|
/**
|
|
497
524
|
* @summary Save your user settings.
|
|
498
525
|
*/
|
|
@@ -501,18 +528,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
501
528
|
* @summary Change your user password.
|
|
502
529
|
*/
|
|
503
530
|
changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
|
|
504
|
-
/**
|
|
505
|
-
* @summary Get counts for your reports.
|
|
506
|
-
*/
|
|
507
|
-
getReportCount(form: GetReportCountI, options?: RequestOptions): Promise<GetReportCountResponse>;
|
|
508
|
-
/**
|
|
509
|
-
* @summary Get your unread counts.
|
|
510
|
-
*/
|
|
511
|
-
getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
|
|
512
531
|
/**
|
|
513
532
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
514
533
|
*/
|
|
515
|
-
|
|
534
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
|
|
516
535
|
/**
|
|
517
536
|
* @summary Verify your email
|
|
518
537
|
*/
|
|
@@ -524,19 +543,27 @@ export declare class LemmyHttp extends Controller {
|
|
|
524
543
|
/**
|
|
525
544
|
* @summary List your saved content.
|
|
526
545
|
*/
|
|
527
|
-
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<
|
|
546
|
+
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
528
547
|
/**
|
|
529
|
-
* @summary
|
|
548
|
+
* @summary List your read content.
|
|
530
549
|
*/
|
|
531
|
-
|
|
550
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
551
|
+
/**
|
|
552
|
+
* @summary List your hidden content.
|
|
553
|
+
*/
|
|
554
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
555
|
+
/**
|
|
556
|
+
* @summary List your liked content.
|
|
557
|
+
*/
|
|
558
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
532
559
|
/**
|
|
533
|
-
* @summary
|
|
560
|
+
* @summary Add an admin to your site.
|
|
534
561
|
*/
|
|
535
|
-
|
|
562
|
+
addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
|
|
536
563
|
/**
|
|
537
564
|
* @summary List the registration applications.
|
|
538
565
|
*/
|
|
539
|
-
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<
|
|
566
|
+
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
|
|
540
567
|
/**
|
|
541
568
|
* @summary Approve a registration application
|
|
542
569
|
*/
|
|
@@ -592,7 +619,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
592
619
|
/**
|
|
593
620
|
* @summary List taglines.
|
|
594
621
|
*/
|
|
595
|
-
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<
|
|
622
|
+
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
|
|
623
|
+
/**
|
|
624
|
+
* @summary Create a community post tag.
|
|
625
|
+
*/
|
|
626
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
627
|
+
/**
|
|
628
|
+
* @summary Edit a community post tag.
|
|
629
|
+
*/
|
|
630
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
631
|
+
/**
|
|
632
|
+
* @summary Delete a post tag in a community.
|
|
633
|
+
*/
|
|
634
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
596
635
|
/**
|
|
597
636
|
* @summary Create a new oauth provider method
|
|
598
637
|
*/
|
|
@@ -612,15 +651,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
612
651
|
/**
|
|
613
652
|
* @summary Fetch federated instances.
|
|
614
653
|
*/
|
|
615
|
-
getFederatedInstances(options?: RequestOptions): Promise<
|
|
654
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
|
|
616
655
|
/**
|
|
617
656
|
* @summary List user reports.
|
|
618
657
|
*/
|
|
619
|
-
listReports(form: ListReportsI, options?: RequestOptions): Promise<
|
|
658
|
+
listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
|
|
659
|
+
/**
|
|
660
|
+
* @summary Block an instance's communities as a user.
|
|
661
|
+
*/
|
|
662
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
620
663
|
/**
|
|
621
|
-
* @summary Block an instance as user.
|
|
664
|
+
* @summary Block an instance's persons as a user.
|
|
622
665
|
*/
|
|
623
|
-
|
|
666
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
624
667
|
/**
|
|
625
668
|
* @summary Globally block an instance as admin.
|
|
626
669
|
*/
|
|
@@ -632,7 +675,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
632
675
|
/**
|
|
633
676
|
* @summary Upload new user avatar.
|
|
634
677
|
*/
|
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
|
678
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
636
679
|
/**
|
|
637
680
|
* @summary Delete the user avatar.
|
|
638
681
|
*/
|
|
@@ -640,7 +683,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
640
683
|
/**
|
|
641
684
|
* @summary Upload new user banner.
|
|
642
685
|
*/
|
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
686
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
644
687
|
/**
|
|
645
688
|
* @summary Delete the user banner.
|
|
646
689
|
*/
|
|
@@ -648,23 +691,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
648
691
|
/**
|
|
649
692
|
* @summary Upload new community icon.
|
|
650
693
|
*/
|
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
|
694
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
652
695
|
/**
|
|
653
696
|
* @summary Delete the community icon.
|
|
654
697
|
*/
|
|
655
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
|
698
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
656
699
|
/**
|
|
657
700
|
* @summary Upload new community banner.
|
|
658
701
|
*/
|
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
702
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
660
703
|
/**
|
|
661
704
|
* @summary Delete the community banner.
|
|
662
705
|
*/
|
|
663
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
|
706
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
664
707
|
/**
|
|
665
708
|
* @summary Upload new site icon.
|
|
666
709
|
*/
|
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
|
710
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
668
711
|
/**
|
|
669
712
|
* @summary Delete the site icon.
|
|
670
713
|
*/
|
|
@@ -672,7 +715,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
672
715
|
/**
|
|
673
716
|
* @summary Upload new site banner.
|
|
674
717
|
*/
|
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
718
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
676
719
|
/**
|
|
677
720
|
* @summary Delete the site banner.
|
|
678
721
|
*/
|
|
@@ -681,14 +724,29 @@ export declare class LemmyHttp extends Controller {
|
|
|
681
724
|
* @summary Upload an image to the server.
|
|
682
725
|
*/
|
|
683
726
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
684
|
-
/**
|
|
685
|
-
* @summary Delete a pictrs image
|
|
686
|
-
*/
|
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
688
727
|
/**
|
|
689
728
|
* @summary Health check for image functionality
|
|
690
729
|
*/
|
|
691
730
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
731
|
+
/**
|
|
732
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
733
|
+
*/
|
|
734
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
|
735
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
736
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
737
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
738
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
|
|
739
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
740
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
|
|
741
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
742
|
+
/**
|
|
743
|
+
* @summary Change notification settings for a community
|
|
744
|
+
*/
|
|
745
|
+
updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
746
|
+
/**
|
|
747
|
+
* @summary Change notification settings for a post
|
|
748
|
+
*/
|
|
749
|
+
updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
692
750
|
/**
|
|
693
751
|
* Set the headers (can be used to set the auth header)
|
|
694
752
|
*/
|
|
@@ -696,4 +754,17 @@ export declare class LemmyHttp extends Controller {
|
|
|
696
754
|
[key: string]: string;
|
|
697
755
|
}): void;
|
|
698
756
|
}
|
|
757
|
+
/**
|
|
758
|
+
* A Lemmy error type.
|
|
759
|
+
*
|
|
760
|
+
* The name is the i18n translatable error code.
|
|
761
|
+
* The message is either an empty string, or extra non-translatable info.
|
|
762
|
+
*/
|
|
763
|
+
export declare class LemmyError extends Error {
|
|
764
|
+
name: string;
|
|
765
|
+
status: number;
|
|
766
|
+
message: string;
|
|
767
|
+
cause: any;
|
|
768
|
+
constructor(name: string, status: number, message?: string, cause?: any);
|
|
769
|
+
}
|
|
699
770
|
export {};
|