lemmy-js-client 1.0.0-site-person-ban.0 → 1.0.0-test-npm-token-fix.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 +170 -88
- package/dist/http.js +1171 -938
- package/dist/index.d.ts +62 -99
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +25 -7
- 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 -4
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +7 -3
- 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 -2
- 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 -3
- 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/SiteView.d.ts +2 -0
- 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/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 -27
- 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/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetModlogResponse.d.ts +0 -12
- package/dist/types/GetPostsResponse.d.ts +0 -12
- 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/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/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/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemoveCommunity.d.ts +0 -14
- package/dist/types/ModRemoveCommunity.js +0 -2
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/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 -27
- 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 -27
- 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/{InboxDataType.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{GetPostsResponse.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → MultiCommunityView.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → NotePerson.js} +0 -0
- /package/dist/types/{ListCommentLikesResponse.js → Notification.js} +0 -0
- /package/dist/types/{ListCommunitiesResponse.js → NotificationData.js} +0 -0
- /package/dist/types/{ModAddId.js → NotificationDataType.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → NotificationId.js} +0 -0
- /package/dist/types/{ModBanId.js → NotificationType.js} +0 -0
- /package/dist/types/{ListCommunityPendingFollowsResponse.js → NotificationView.js} +0 -0
- /package/dist/types/{ListInbox.js → PagedResponse.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{ListMediaResponse.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModChangeCommunityVisibilityId.js → PluginMetadata.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{ModFeaturePostId.js → PostNotificationsMode.js} +0 -0
- /package/dist/types/{ListPersonSavedResponse.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{ListPostLikesResponse.js → TagsView.js} +0 -0
- /package/dist/types/{ModLockPostId.js → UntranslatedError.js} +0 -0
- /package/dist/types/{ListRegistrationApplicationsResponse.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{ListReportsResponse.js → UpdateCommunityTag.js} +0 -0
- /package/dist/types/{ListTaglinesResponse.js → UpdateMultiCommunity.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → UpdatePostNotifications.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → UserBlockInstancePersonsParams.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → UserSettingsBackup.js} +0 -0
- /package/dist/types/{ModRemoveCommentId.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, GetReportCountI, 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,19 @@ 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
57
|
import { GetReportCountResponse } from "./types/GetReportCountResponse";
|
|
62
58
|
import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
|
63
59
|
import { GetSiteResponse } from "./types/GetSiteResponse";
|
|
64
60
|
import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|
65
61
|
import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
|
66
|
-
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
67
|
-
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
68
62
|
import { LockPost } from "./types/LockPost";
|
|
63
|
+
import { LockComment } from "./types/LockComment";
|
|
69
64
|
import { Login } from "./types/Login";
|
|
70
65
|
import { LoginResponse } from "./types/LoginResponse";
|
|
71
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|
72
66
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
73
|
-
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
|
74
67
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
75
68
|
import { PasswordReset } from "./types/PasswordReset";
|
|
76
69
|
import { PostReportResponse } from "./types/PostReportResponse";
|
|
@@ -87,7 +80,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
|
87
80
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
88
81
|
import { RemovePost } from "./types/RemovePost";
|
|
89
82
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
|
90
|
-
import {
|
|
83
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
|
91
84
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
|
92
85
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
|
93
86
|
import { SaveComment } from "./types/SaveComment";
|
|
@@ -102,34 +95,54 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
|
102
95
|
import { UpdateTotp } from "./types/UpdateTotp";
|
|
103
96
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
104
97
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
105
|
-
import { LoginToken } from "./types/LoginToken";
|
|
106
|
-
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
107
|
-
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
108
98
|
import { HidePost } from "./types/HidePost";
|
|
109
|
-
import { ListMediaResponse } from "./types/ListMediaResponse";
|
|
110
99
|
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
111
100
|
import { CreateTagline } from "./types/CreateTagline";
|
|
112
101
|
import { TaglineResponse } from "./types/TaglineResponse";
|
|
113
102
|
import { UpdateTagline } from "./types/UpdateTagline";
|
|
114
103
|
import { DeleteTagline } from "./types/DeleteTagline";
|
|
115
|
-
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
116
104
|
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
117
105
|
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
118
106
|
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
119
|
-
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
120
|
-
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
121
107
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
122
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
|
123
108
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
124
109
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
125
|
-
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
126
|
-
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
127
110
|
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";
|
|
111
|
+
import { Tag } from "./types/Tag";
|
|
132
112
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
113
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
114
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
115
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
116
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
117
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
118
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
119
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
120
|
+
import { NotePerson } from "./types/NotePerson";
|
|
121
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
122
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
123
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
124
|
+
import { ModEditPost } from "./types/ModEditPost";
|
|
125
|
+
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
126
|
+
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
127
|
+
import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
128
|
+
import { PersonResponse } from "./types/PersonResponse";
|
|
129
|
+
import { LocalImageView } from "./types/LocalImageView";
|
|
130
|
+
import { PagedResponse } from "./types/PagedResponse";
|
|
131
|
+
import { ModlogView } from "./types/ModlogView";
|
|
132
|
+
import { CommunityView } from "./types/CommunityView";
|
|
133
|
+
import { PendingFollowerView } from "./types/PendingFollowerView";
|
|
134
|
+
import { PostView } from "./types/PostView";
|
|
135
|
+
import { VoteView } from "./types/VoteView";
|
|
136
|
+
import { CommentView } from "./types/CommentView";
|
|
137
|
+
import { CommentSlimView } from "./types/CommentSlimView";
|
|
138
|
+
import { LocalUserView } from "./types/LocalUserView";
|
|
139
|
+
import { NotificationView } from "./types/NotificationView";
|
|
140
|
+
import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
|
141
|
+
import { Tagline } from "./types/Tagline";
|
|
142
|
+
import { ReportCombinedView } from "./types/ReportCombinedView";
|
|
143
|
+
import { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
144
|
+
import { MultiCommunityView } from "./types/MultiCommunityView";
|
|
145
|
+
import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
133
146
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
134
147
|
/**
|
|
135
148
|
* Helps build lemmy HTTP requests.
|
|
@@ -188,19 +201,27 @@ export declare class LemmyHttp extends Controller {
|
|
|
188
201
|
/**
|
|
189
202
|
* @summary List login tokens for your user
|
|
190
203
|
*/
|
|
191
|
-
listLogins(options?: RequestOptions): Promise<
|
|
204
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
|
192
205
|
/**
|
|
193
206
|
* @summary Returns an error message if your auth token is invalid
|
|
194
207
|
*/
|
|
195
208
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
196
209
|
/**
|
|
197
|
-
* @summary List all the media for your
|
|
210
|
+
* @summary List all the media for your account.
|
|
198
211
|
*/
|
|
199
|
-
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<
|
|
212
|
+
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
213
|
+
/**
|
|
214
|
+
* @summary Delete media for your account.
|
|
215
|
+
*/
|
|
216
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* @summary Delete any media. (Admin only)
|
|
219
|
+
*/
|
|
220
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
200
221
|
/**
|
|
201
222
|
* @summary List all the media known to your instance.
|
|
202
223
|
*/
|
|
203
|
-
|
|
224
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
|
|
204
225
|
/**
|
|
205
226
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
|
206
227
|
*
|
|
@@ -212,15 +233,15 @@ export declare class LemmyHttp extends Controller {
|
|
|
212
233
|
/**
|
|
213
234
|
* @summary Get the modlog.
|
|
214
235
|
*/
|
|
215
|
-
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<
|
|
236
|
+
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
|
|
216
237
|
/**
|
|
217
|
-
* @summary Search lemmy.
|
|
238
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
218
239
|
*/
|
|
219
240
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
|
220
241
|
/**
|
|
221
242
|
* @summary Fetch a non-local / federated object.
|
|
222
243
|
*/
|
|
223
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
|
244
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
|
224
245
|
/**
|
|
225
246
|
* @summary Create a new community.
|
|
226
247
|
*/
|
|
@@ -236,7 +257,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
236
257
|
/**
|
|
237
258
|
* @summary List communities, with various filters.
|
|
238
259
|
*/
|
|
239
|
-
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<
|
|
260
|
+
listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
|
|
240
261
|
/**
|
|
241
262
|
* @summary Follow / subscribe to a community.
|
|
242
263
|
*/
|
|
@@ -244,11 +265,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
244
265
|
/**
|
|
245
266
|
* @summary Get a community's pending follows count.
|
|
246
267
|
*/
|
|
247
|
-
getCommunityPendingFollowsCount(
|
|
268
|
+
getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
|
|
248
269
|
/**
|
|
249
270
|
* @summary Get a community's pending followers.
|
|
250
271
|
*/
|
|
251
|
-
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<
|
|
272
|
+
listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
|
|
252
273
|
/**
|
|
253
274
|
* @summary Approve a community pending follow request.
|
|
254
275
|
*/
|
|
@@ -256,7 +277,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
256
277
|
/**
|
|
257
278
|
* @summary Block a community.
|
|
258
279
|
*/
|
|
259
|
-
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<
|
|
280
|
+
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
|
260
281
|
/**
|
|
261
282
|
* @summary Delete a community.
|
|
262
283
|
*/
|
|
@@ -276,7 +297,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
276
297
|
/**
|
|
277
298
|
* @summary Ban a user from a community.
|
|
278
299
|
*/
|
|
279
|
-
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<
|
|
300
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
|
|
280
301
|
/**
|
|
281
302
|
* @summary Add a moderator to your community.
|
|
282
303
|
*/
|
|
@@ -285,6 +306,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
285
306
|
* @summary Get a random community.
|
|
286
307
|
*/
|
|
287
308
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
|
309
|
+
/**
|
|
310
|
+
* @summary Create a report for a community.
|
|
311
|
+
*/
|
|
312
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
313
|
+
/**
|
|
314
|
+
* @summary Resolve a report for a private message.
|
|
315
|
+
*/
|
|
316
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
288
317
|
/**
|
|
289
318
|
* @summary Create a post.
|
|
290
319
|
*/
|
|
@@ -297,6 +326,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
297
326
|
* @summary Edit a post.
|
|
298
327
|
*/
|
|
299
328
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
329
|
+
/**
|
|
330
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
331
|
+
*/
|
|
332
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
300
333
|
/**
|
|
301
334
|
* @summary Delete a post.
|
|
302
335
|
*/
|
|
@@ -308,7 +341,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
308
341
|
/**
|
|
309
342
|
* @summary Mark a post as read.
|
|
310
343
|
*/
|
|
311
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
|
344
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
|
312
345
|
/**
|
|
313
346
|
* @summary Mark multiple posts as read.
|
|
314
347
|
*/
|
|
@@ -316,7 +349,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
316
349
|
/**
|
|
317
350
|
* @summary Hide a post from list views.
|
|
318
351
|
*/
|
|
319
|
-
hidePost(form: HidePost, options?: RequestOptions): Promise<
|
|
352
|
+
hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
|
|
320
353
|
/**
|
|
321
354
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
|
322
355
|
*/
|
|
@@ -328,7 +361,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
328
361
|
/**
|
|
329
362
|
* @summary Get / fetch posts, with various filters.
|
|
330
363
|
*/
|
|
331
|
-
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<
|
|
364
|
+
getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
332
365
|
/**
|
|
333
366
|
* @summary Like / vote on a post.
|
|
334
367
|
*/
|
|
@@ -336,7 +369,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
336
369
|
/**
|
|
337
370
|
* @summary List a post's likes. Admin-only.
|
|
338
371
|
*/
|
|
339
|
-
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<
|
|
372
|
+
listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
340
373
|
/**
|
|
341
374
|
* @summary Save a post.
|
|
342
375
|
*/
|
|
@@ -370,17 +403,17 @@ export declare class LemmyHttp extends Controller {
|
|
|
370
403
|
*/
|
|
371
404
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
372
405
|
/**
|
|
373
|
-
* @summary
|
|
406
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
374
407
|
*/
|
|
375
|
-
|
|
408
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
376
409
|
/**
|
|
377
|
-
* @
|
|
410
|
+
* @Summary Like / vote on a comment.
|
|
378
411
|
*/
|
|
379
412
|
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
|
380
413
|
/**
|
|
381
414
|
* @summary List a comment's likes. Admin-only.
|
|
382
415
|
*/
|
|
383
|
-
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<
|
|
416
|
+
listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
|
|
384
417
|
/**
|
|
385
418
|
* @summary Save a comment.
|
|
386
419
|
*/
|
|
@@ -392,11 +425,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
392
425
|
/**
|
|
393
426
|
* @summary Get / fetch comments.
|
|
394
427
|
*/
|
|
395
|
-
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
428
|
+
getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
|
|
396
429
|
/**
|
|
397
430
|
* @summary Get / fetch comments, but without the post or community.
|
|
398
431
|
*/
|
|
399
|
-
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<
|
|
432
|
+
getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
|
|
400
433
|
/**
|
|
401
434
|
* @summary Get / fetch comment.
|
|
402
435
|
*/
|
|
@@ -421,10 +454,6 @@ export declare class LemmyHttp extends Controller {
|
|
|
421
454
|
* @summary Delete a private message.
|
|
422
455
|
*/
|
|
423
456
|
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
457
|
/**
|
|
429
458
|
* @summary Create a report for a private message.
|
|
430
459
|
*/
|
|
@@ -452,27 +481,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
452
481
|
/**
|
|
453
482
|
* @summary List the content for a person.
|
|
454
483
|
*/
|
|
455
|
-
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<
|
|
484
|
+
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
456
485
|
/**
|
|
457
|
-
* @summary
|
|
486
|
+
* @summary Make a note for a person.
|
|
458
487
|
*/
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* @summary Mark a person post body mention as read.
|
|
462
|
-
*/
|
|
463
|
-
markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
488
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
|
464
489
|
/**
|
|
465
490
|
* @summary Ban a person from your site.
|
|
466
491
|
*/
|
|
467
|
-
banPerson(form: BanPerson, options?: RequestOptions): Promise<
|
|
492
|
+
banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
468
493
|
/**
|
|
469
|
-
* @summary Get a list of
|
|
494
|
+
* @summary Get a list of users.
|
|
470
495
|
*/
|
|
471
|
-
|
|
496
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
|
|
472
497
|
/**
|
|
473
498
|
* @summary Block a person.
|
|
474
499
|
*/
|
|
475
|
-
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<
|
|
500
|
+
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
476
501
|
/**
|
|
477
502
|
* @summary Fetch a Captcha.
|
|
478
503
|
*/
|
|
@@ -490,9 +515,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
490
515
|
*/
|
|
491
516
|
passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
|
|
492
517
|
/**
|
|
493
|
-
* @summary Mark all
|
|
518
|
+
* @summary Mark all notifications as read.
|
|
494
519
|
*/
|
|
495
520
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
521
|
+
/**
|
|
522
|
+
* @summary Mark a notification as read.
|
|
523
|
+
*/
|
|
524
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
496
525
|
/**
|
|
497
526
|
* @summary Save your user settings.
|
|
498
527
|
*/
|
|
@@ -512,7 +541,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
512
541
|
/**
|
|
513
542
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
514
543
|
*/
|
|
515
|
-
|
|
544
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
|
|
516
545
|
/**
|
|
517
546
|
* @summary Verify your email
|
|
518
547
|
*/
|
|
@@ -524,7 +553,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
524
553
|
/**
|
|
525
554
|
* @summary List your saved content.
|
|
526
555
|
*/
|
|
527
|
-
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<
|
|
556
|
+
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
557
|
+
/**
|
|
558
|
+
* @summary List your read content.
|
|
559
|
+
*/
|
|
560
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
561
|
+
/**
|
|
562
|
+
* @summary List your hidden content.
|
|
563
|
+
*/
|
|
564
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
|
|
565
|
+
/**
|
|
566
|
+
* @summary List your liked content.
|
|
567
|
+
*/
|
|
568
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
|
|
528
569
|
/**
|
|
529
570
|
* @summary Add an admin to your site.
|
|
530
571
|
*/
|
|
@@ -536,7 +577,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
536
577
|
/**
|
|
537
578
|
* @summary List the registration applications.
|
|
538
579
|
*/
|
|
539
|
-
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<
|
|
580
|
+
listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
|
|
540
581
|
/**
|
|
541
582
|
* @summary Approve a registration application
|
|
542
583
|
*/
|
|
@@ -592,7 +633,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
592
633
|
/**
|
|
593
634
|
* @summary List taglines.
|
|
594
635
|
*/
|
|
595
|
-
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<
|
|
636
|
+
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
|
|
637
|
+
/**
|
|
638
|
+
* @summary Create a community post tag.
|
|
639
|
+
*/
|
|
640
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
641
|
+
/**
|
|
642
|
+
* @summary Edit a community post tag.
|
|
643
|
+
*/
|
|
644
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
645
|
+
/**
|
|
646
|
+
* @summary Delete a post tag in a community.
|
|
647
|
+
*/
|
|
648
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
596
649
|
/**
|
|
597
650
|
* @summary Create a new oauth provider method
|
|
598
651
|
*/
|
|
@@ -612,15 +665,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
612
665
|
/**
|
|
613
666
|
* @summary Fetch federated instances.
|
|
614
667
|
*/
|
|
615
|
-
getFederatedInstances(options?: RequestOptions): Promise<
|
|
668
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
|
|
616
669
|
/**
|
|
617
670
|
* @summary List user reports.
|
|
618
671
|
*/
|
|
619
|
-
listReports(form: ListReportsI, options?: RequestOptions): Promise<
|
|
672
|
+
listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
|
|
620
673
|
/**
|
|
621
|
-
* @summary Block an instance as user.
|
|
674
|
+
* @summary Block an instance's communities as a user.
|
|
622
675
|
*/
|
|
623
|
-
|
|
676
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
677
|
+
/**
|
|
678
|
+
* @summary Block an instance's persons as a user.
|
|
679
|
+
*/
|
|
680
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
624
681
|
/**
|
|
625
682
|
* @summary Globally block an instance as admin.
|
|
626
683
|
*/
|
|
@@ -632,7 +689,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
632
689
|
/**
|
|
633
690
|
* @summary Upload new user avatar.
|
|
634
691
|
*/
|
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
|
692
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
636
693
|
/**
|
|
637
694
|
* @summary Delete the user avatar.
|
|
638
695
|
*/
|
|
@@ -640,7 +697,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
640
697
|
/**
|
|
641
698
|
* @summary Upload new user banner.
|
|
642
699
|
*/
|
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
700
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
644
701
|
/**
|
|
645
702
|
* @summary Delete the user banner.
|
|
646
703
|
*/
|
|
@@ -648,23 +705,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
648
705
|
/**
|
|
649
706
|
* @summary Upload new community icon.
|
|
650
707
|
*/
|
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
|
708
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
652
709
|
/**
|
|
653
710
|
* @summary Delete the community icon.
|
|
654
711
|
*/
|
|
655
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
|
712
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
656
713
|
/**
|
|
657
714
|
* @summary Upload new community banner.
|
|
658
715
|
*/
|
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
716
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
660
717
|
/**
|
|
661
718
|
* @summary Delete the community banner.
|
|
662
719
|
*/
|
|
663
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
|
720
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
664
721
|
/**
|
|
665
722
|
* @summary Upload new site icon.
|
|
666
723
|
*/
|
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
|
724
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
668
725
|
/**
|
|
669
726
|
* @summary Delete the site icon.
|
|
670
727
|
*/
|
|
@@ -672,7 +729,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
672
729
|
/**
|
|
673
730
|
* @summary Upload new site banner.
|
|
674
731
|
*/
|
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
|
732
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
676
733
|
/**
|
|
677
734
|
* @summary Delete the site banner.
|
|
678
735
|
*/
|
|
@@ -681,14 +738,29 @@ export declare class LemmyHttp extends Controller {
|
|
|
681
738
|
* @summary Upload an image to the server.
|
|
682
739
|
*/
|
|
683
740
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
684
|
-
/**
|
|
685
|
-
* @summary Delete a pictrs image
|
|
686
|
-
*/
|
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
|
688
741
|
/**
|
|
689
742
|
* @summary Health check for image functionality
|
|
690
743
|
*/
|
|
691
744
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
745
|
+
/**
|
|
746
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
747
|
+
*/
|
|
748
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
|
749
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
750
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
751
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
752
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
|
|
753
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
754
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
|
|
755
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
756
|
+
/**
|
|
757
|
+
* @summary Change notification settings for a community
|
|
758
|
+
*/
|
|
759
|
+
updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
760
|
+
/**
|
|
761
|
+
* @summary Change notification settings for a post
|
|
762
|
+
*/
|
|
763
|
+
updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
692
764
|
/**
|
|
693
765
|
* Set the headers (can be used to set the auth header)
|
|
694
766
|
*/
|
|
@@ -696,4 +768,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
696
768
|
[key: string]: string;
|
|
697
769
|
}): void;
|
|
698
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* A Lemmy error type.
|
|
773
|
+
*
|
|
774
|
+
* The name is the i18n translatable error code.
|
|
775
|
+
* The msg is either an empty string, or extra non-translatable info.
|
|
776
|
+
*/
|
|
777
|
+
export declare class LemmyError extends Error {
|
|
778
|
+
status: number;
|
|
779
|
+
constructor(name: string, status: number, msg?: string);
|
|
780
|
+
}
|
|
699
781
|
export {};
|