lemmy-js-client 0.17.2-rc.6 → 0.17.2-rc.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +128 -11
- package/dist/http.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/types/AddAdmin.d.ts +6 -0
- package/dist/types/AddAdminResponse.d.ts +4 -0
- package/dist/types/AddModToCommunity.d.ts +8 -0
- package/dist/types/AddModToCommunityResponse.d.ts +4 -0
- package/dist/types/AdminPurgeComment.d.ts +9 -0
- package/dist/types/AdminPurgeCommentView.d.ts +8 -0
- package/dist/types/AdminPurgeCommunity.d.ts +7 -0
- package/dist/types/AdminPurgeCommunityView.d.ts +6 -0
- package/dist/types/AdminPurgeCommunityView.js +2 -0
- package/dist/types/AdminPurgePerson.d.ts +7 -0
- package/dist/types/AdminPurgePerson.js +2 -0
- package/dist/types/AdminPurgePersonView.d.ts +6 -0
- package/dist/types/AdminPurgePersonView.js +2 -0
- package/dist/types/AdminPurgePost.d.ts +9 -0
- package/dist/types/AdminPurgePost.js +2 -0
- package/dist/types/AdminPurgePostView.d.ts +8 -0
- package/dist/types/AdminPurgePostView.js +2 -0
- package/dist/types/ApproveRegistrationApplication.d.ts +6 -0
- package/dist/types/ApproveRegistrationApplication.js +3 -0
- package/dist/types/BanFromCommunity.d.ts +11 -0
- package/dist/types/BanFromCommunity.js +2 -0
- package/dist/types/BanFromCommunityResponse.d.ts +5 -0
- package/dist/types/BanFromCommunityResponse.js +2 -0
- package/dist/types/BanPerson.d.ts +9 -0
- package/dist/types/BanPerson.js +2 -0
- package/dist/types/BanPersonResponse.d.ts +5 -0
- package/dist/types/BanPersonResponse.js +2 -0
- package/dist/types/BannedPersonsResponse.d.ts +4 -0
- package/dist/types/BannedPersonsResponse.js +2 -0
- package/dist/types/BlockCommunity.d.ts +6 -0
- package/dist/types/BlockCommunity.js +2 -0
- package/dist/types/BlockCommunityResponse.d.ts +5 -0
- package/dist/types/BlockCommunityResponse.js +2 -0
- package/dist/types/BlockPerson.d.ts +6 -0
- package/dist/types/BlockPerson.js +2 -0
- package/dist/types/BlockPersonResponse.d.ts +5 -0
- package/dist/types/BlockPersonResponse.js +2 -0
- package/dist/types/CaptchaResponse.d.ts +5 -0
- package/dist/types/CaptchaResponse.js +3 -0
- package/dist/types/ChangePassword.d.ts +6 -0
- package/dist/types/ChangePassword.js +3 -0
- package/dist/types/Comment.d.ts +19 -0
- package/dist/types/Comment.js +2 -0
- package/dist/types/CommentAggregates.d.ts +10 -0
- package/dist/types/CommentAggregates.js +2 -0
- package/dist/types/CommentId.d.ts +1 -0
- package/dist/types/CommentId.js +3 -0
- package/dist/types/CommentReply.d.ts +10 -0
- package/dist/types/CommentReply.js +2 -0
- package/dist/types/CommentReplyId.d.ts +1 -0
- package/dist/types/CommentReplyId.js +3 -0
- package/dist/types/CommentReplyResponse.d.ts +4 -0
- package/dist/types/CommentReplyResponse.js +2 -0
- package/dist/types/CommentReplyView.d.ts +21 -0
- package/dist/types/CommentReplyView.js +2 -0
- package/dist/types/CommentReport.d.ts +14 -0
- package/dist/types/CommentReport.js +2 -0
- package/dist/types/CommentReportId.d.ts +1 -0
- package/dist/types/CommentReportId.js +3 -0
- package/dist/types/CommentReportResponse.d.ts +4 -0
- package/dist/types/CommentReportResponse.js +2 -0
- package/dist/types/CommentReportView.d.ts +18 -0
- package/dist/types/CommentReportView.js +2 -0
- package/dist/types/CommentResponse.d.ts +7 -0
- package/dist/types/CommentResponse.js +2 -0
- package/dist/types/CommentSortType.d.ts +1 -0
- package/dist/types/CommentSortType.js +3 -0
- package/dist/types/CommentView.d.ts +18 -0
- package/dist/types/CommentView.js +2 -0
- package/dist/types/Community.d.ts +20 -0
- package/dist/types/Community.js +2 -0
- package/dist/types/CommunityAggregates.d.ts +13 -0
- package/dist/types/CommunityAggregates.js +2 -0
- package/dist/types/CommunityBlockId.d.ts +1 -0
- package/dist/types/CommunityBlockId.js +3 -0
- package/dist/types/CommunityBlockView.d.ts +6 -0
- package/dist/types/CommunityBlockView.js +2 -0
- package/dist/types/CommunityFollowerView.d.ts +6 -0
- package/dist/types/CommunityFollowerView.js +2 -0
- package/dist/types/CommunityId.d.ts +1 -0
- package/dist/types/CommunityId.js +3 -0
- package/dist/types/CommunityJoin.d.ts +4 -0
- package/dist/types/CommunityJoin.js +2 -0
- package/dist/types/CommunityJoinResponse.d.ts +3 -0
- package/dist/types/CommunityJoinResponse.js +3 -0
- package/dist/types/CommunityModeratorView.d.ts +6 -0
- package/dist/types/CommunityModeratorView.js +2 -0
- package/dist/types/CommunityResponse.d.ts +6 -0
- package/dist/types/CommunityResponse.js +2 -0
- package/dist/types/CommunityView.d.ts +9 -0
- package/dist/types/CommunityView.js +2 -0
- package/dist/types/CreateComment.d.ts +11 -0
- package/dist/types/CreateComment.js +2 -0
- package/dist/types/CreateCommentLike.d.ts +6 -0
- package/dist/types/CreateCommentLike.js +2 -0
- package/dist/types/CreateCommentReport.d.ts +6 -0
- package/dist/types/CreateCommentReport.js +2 -0
- package/dist/types/CreateCommunity.d.ts +12 -0
- package/dist/types/CreateCommunity.js +2 -0
- package/dist/types/CreateCustomEmoji.d.ts +8 -0
- package/dist/types/CreateCustomEmoji.js +3 -0
- package/dist/types/CreatePost.d.ts +12 -0
- package/dist/types/CreatePost.js +2 -0
- package/dist/types/CreatePostLike.d.ts +6 -0
- package/dist/types/CreatePostLike.js +2 -0
- package/dist/types/CreatePostReport.d.ts +6 -0
- package/dist/types/CreatePostReport.js +2 -0
- package/dist/types/CreatePrivateMessage.d.ts +6 -0
- package/dist/types/CreatePrivateMessage.js +2 -0
- package/dist/types/CreatePrivateMessageReport.d.ts +6 -0
- package/dist/types/CreatePrivateMessageReport.js +2 -0
- package/dist/types/CreateSite.d.ts +46 -0
- package/dist/types/CreateSite.js +2 -0
- package/dist/types/CustomEmoji.d.ts +12 -0
- package/dist/types/CustomEmoji.js +2 -0
- package/dist/types/CustomEmojiId.d.ts +1 -0
- package/dist/types/CustomEmojiId.js +3 -0
- package/dist/types/CustomEmojiKeyword.d.ts +6 -0
- package/dist/types/CustomEmojiKeyword.js +2 -0
- package/dist/types/CustomEmojiResponse.d.ts +4 -0
- package/dist/types/CustomEmojiResponse.js +2 -0
- package/dist/types/CustomEmojiView.d.ts +6 -0
- package/dist/types/CustomEmojiView.js +2 -0
- package/dist/types/DeleteAccount.d.ts +4 -0
- package/dist/types/DeleteAccount.js +3 -0
- package/dist/types/DeleteAccountResponse.d.ts +1 -0
- package/dist/types/DeleteAccountResponse.js +3 -0
- package/dist/types/DeleteComment.d.ts +6 -0
- package/dist/types/DeleteComment.js +2 -0
- package/dist/types/DeleteCommunity.d.ts +6 -0
- package/dist/types/DeleteCommunity.js +2 -0
- package/dist/types/DeleteCustomEmoji.d.ts +5 -0
- package/dist/types/DeleteCustomEmoji.js +2 -0
- package/dist/types/DeleteCustomEmojiResponse.d.ts +5 -0
- package/dist/types/DeleteCustomEmojiResponse.js +2 -0
- package/dist/types/DeletePost.d.ts +6 -0
- package/dist/types/DeletePost.js +2 -0
- package/dist/types/DeletePrivateMessage.d.ts +6 -0
- package/dist/types/DeletePrivateMessage.js +2 -0
- package/dist/types/DistinguishComment.d.ts +6 -0
- package/dist/types/DistinguishComment.js +2 -0
- package/dist/types/EditComment.d.ts +9 -0
- package/dist/types/EditComment.js +2 -0
- package/dist/types/EditCommunity.d.ts +13 -0
- package/dist/types/EditCommunity.js +2 -0
- package/dist/types/EditCustomEmoji.d.ts +9 -0
- package/dist/types/EditCustomEmoji.js +2 -0
- package/dist/types/EditPost.d.ts +11 -0
- package/dist/types/EditPost.js +2 -0
- package/dist/types/EditPrivateMessage.d.ts +6 -0
- package/dist/types/EditPrivateMessage.js +2 -0
- package/dist/types/EditSite.d.ts +47 -0
- package/dist/types/EditSite.js +2 -0
- package/dist/types/FeaturePost.d.ts +8 -0
- package/dist/types/FeaturePost.js +2 -0
- package/dist/types/FederatedInstances.d.ts +6 -0
- package/dist/types/FederatedInstances.js +2 -0
- package/dist/types/FollowCommunity.d.ts +6 -0
- package/dist/types/FollowCommunity.js +2 -0
- package/dist/types/GetBannedPersons.d.ts +3 -0
- package/dist/types/GetBannedPersons.js +3 -0
- package/dist/types/GetCaptcha.d.ts +1 -0
- package/dist/types/GetCaptcha.js +3 -0
- package/dist/types/GetCaptchaResponse.d.ts +4 -0
- package/dist/types/GetCaptchaResponse.js +2 -0
- package/dist/types/GetComment.d.ts +5 -0
- package/dist/types/GetComment.js +2 -0
- package/dist/types/GetComments.d.ts +18 -0
- package/dist/types/GetComments.js +2 -0
- package/dist/types/GetCommentsResponse.d.ts +4 -0
- package/dist/types/GetCommentsResponse.js +2 -0
- package/dist/types/GetCommunity.d.ts +6 -0
- package/dist/types/GetCommunity.js +2 -0
- package/dist/types/GetCommunityResponse.d.ts +12 -0
- package/dist/types/GetCommunityResponse.js +2 -0
- package/dist/types/GetFederatedInstances.d.ts +1 -0
- package/dist/types/GetFederatedInstances.js +3 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +4 -0
- package/dist/types/GetFederatedInstancesResponse.js +2 -0
- package/dist/types/GetModlog.d.ts +12 -0
- package/dist/types/GetModlog.js +2 -0
- package/dist/types/GetModlogResponse.d.ts +32 -0
- package/dist/types/GetModlogResponse.js +2 -0
- package/dist/types/GetPersonDetails.d.ts +13 -0
- package/dist/types/GetPersonDetails.js +2 -0
- package/dist/types/GetPersonDetailsResponse.d.ts +10 -0
- package/dist/types/GetPersonDetailsResponse.js +2 -0
- package/dist/types/GetPersonMentions.d.ts +8 -0
- package/dist/types/GetPersonMentions.js +2 -0
- package/dist/types/GetPersonMentionsResponse.d.ts +4 -0
- package/dist/types/GetPersonMentionsResponse.js +2 -0
- package/dist/types/GetPost.d.ts +5 -0
- package/dist/types/GetPost.js +2 -0
- package/dist/types/GetPostResponse.d.ts +10 -0
- package/dist/types/GetPostResponse.js +2 -0
- package/dist/types/GetPosts.d.ts +13 -0
- package/dist/types/GetPosts.js +2 -0
- package/dist/types/GetPostsResponse.d.ts +4 -0
- package/dist/types/GetPostsResponse.js +2 -0
- package/dist/types/GetPrivateMessages.d.ts +6 -0
- package/dist/types/GetPrivateMessages.js +3 -0
- package/dist/types/GetReplies.d.ts +8 -0
- package/dist/types/GetReplies.js +2 -0
- package/dist/types/GetRepliesResponse.d.ts +4 -0
- package/dist/types/GetRepliesResponse.js +2 -0
- package/dist/types/GetReportCount.d.ts +5 -0
- package/dist/types/GetReportCount.js +2 -0
- package/dist/types/GetReportCountResponse.d.ts +7 -0
- package/dist/types/GetReportCountResponse.js +2 -0
- package/dist/types/GetSite.d.ts +3 -0
- package/dist/types/GetSite.js +3 -0
- package/dist/types/GetSiteMetadata.d.ts +3 -0
- package/dist/types/GetSiteMetadata.js +3 -0
- package/dist/types/GetSiteMetadataResponse.d.ts +4 -0
- package/dist/types/GetSiteMetadataResponse.js +2 -0
- package/dist/types/GetSiteResponse.d.ts +18 -0
- package/dist/types/GetSiteResponse.js +2 -0
- package/dist/types/GetUnreadCount.d.ts +3 -0
- package/dist/types/GetUnreadCount.js +3 -0
- package/dist/types/GetUnreadCountResponse.d.ts +5 -0
- package/dist/types/GetUnreadCountResponse.js +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCount.js +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +3 -0
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.js +3 -0
- package/dist/types/HideCommunity.d.ts +7 -0
- package/dist/types/HideCommunity.js +2 -0
- package/dist/types/Instance.d.ts +9 -0
- package/dist/types/Instance.js +2 -0
- package/dist/types/InstanceId.d.ts +1 -0
- package/dist/types/InstanceId.js +3 -0
- package/dist/types/Language.d.ts +6 -0
- package/dist/types/Language.js +2 -0
- package/dist/types/LanguageId.d.ts +1 -0
- package/dist/types/LanguageId.js +3 -0
- package/dist/types/LeaveAdmin.d.ts +3 -0
- package/dist/types/LeaveAdmin.js +3 -0
- package/dist/types/ListCommentReports.d.ts +8 -0
- package/dist/types/ListCommentReports.js +2 -0
- package/dist/types/ListCommentReportsResponse.d.ts +4 -0
- package/dist/types/ListCommentReportsResponse.js +2 -0
- package/dist/types/ListCommunities.d.ts +9 -0
- package/dist/types/ListCommunities.js +2 -0
- package/dist/types/ListCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListCommunitiesResponse.js +2 -0
- package/dist/types/ListPostReports.d.ts +8 -0
- package/dist/types/ListPostReports.js +2 -0
- package/dist/types/ListPostReportsResponse.d.ts +4 -0
- package/dist/types/ListPostReportsResponse.js +2 -0
- package/dist/types/ListPrivateMessageReports.d.ts +6 -0
- package/dist/types/ListPrivateMessageReports.js +3 -0
- package/dist/types/ListPrivateMessageReportsResponse.d.ts +4 -0
- package/dist/types/ListPrivateMessageReportsResponse.js +2 -0
- package/dist/types/ListRegistrationApplications.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.js +3 -0
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +4 -0
- package/dist/types/ListRegistrationApplicationsResponse.js +2 -0
- package/dist/types/ListingType.d.ts +1 -0
- package/dist/types/ListingType.js +3 -0
- package/dist/types/LocalSite.d.ts +31 -0
- package/dist/types/LocalSite.js +2 -0
- package/dist/types/LocalSiteId.d.ts +1 -0
- package/dist/types/LocalSiteId.js +3 -0
- package/dist/types/LocalSiteRateLimit.d.ts +19 -0
- package/dist/types/LocalSiteRateLimit.js +2 -0
- package/dist/types/LocalUser.d.ts +24 -0
- package/dist/types/LocalUser.js +2 -0
- package/dist/types/LocalUserId.d.ts +1 -0
- package/dist/types/LocalUserId.js +3 -0
- package/dist/types/LocalUserView.d.ts +8 -0
- package/dist/types/LocalUserView.js +2 -0
- package/dist/types/LockPost.d.ts +6 -0
- package/dist/types/LockPost.js +2 -0
- package/dist/types/Login.d.ts +5 -0
- package/dist/types/Login.js +3 -0
- package/dist/types/LoginResponse.d.ts +5 -0
- package/dist/types/LoginResponse.js +3 -0
- package/dist/types/MarkAllAsRead.d.ts +3 -0
- package/dist/types/MarkAllAsRead.js +3 -0
- package/dist/types/MarkCommentReplyAsRead.d.ts +6 -0
- package/dist/types/MarkCommentReplyAsRead.js +2 -0
- package/dist/types/MarkPersonMentionAsRead.d.ts +6 -0
- package/dist/types/MarkPersonMentionAsRead.js +2 -0
- package/dist/types/MarkPostAsRead.d.ts +6 -0
- package/dist/types/MarkPostAsRead.js +2 -0
- package/dist/types/MarkPrivateMessageAsRead.d.ts +6 -0
- package/dist/types/MarkPrivateMessageAsRead.js +2 -0
- package/dist/types/ModAdd.d.ts +8 -0
- package/dist/types/ModAdd.js +2 -0
- package/dist/types/ModAddCommunity.d.ts +10 -0
- package/dist/types/ModAddCommunity.js +2 -0
- package/dist/types/ModAddCommunityView.d.ts +9 -0
- package/dist/types/ModAddCommunityView.js +2 -0
- package/dist/types/ModAddView.d.ts +7 -0
- package/dist/types/ModAddView.js +2 -0
- package/dist/types/ModBan.d.ts +10 -0
- package/dist/types/ModBan.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +12 -0
- package/dist/types/ModBanFromCommunity.js +2 -0
- package/dist/types/ModBanFromCommunityView.d.ts +9 -0
- package/dist/types/ModBanFromCommunityView.js +2 -0
- package/dist/types/ModBanView.d.ts +7 -0
- package/dist/types/ModBanView.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +10 -0
- package/dist/types/ModFeaturePost.js +2 -0
- package/dist/types/ModFeaturePostView.d.ts +10 -0
- package/dist/types/ModFeaturePostView.js +2 -0
- package/dist/types/ModHideCommunity.d.ts +10 -0
- package/dist/types/ModHideCommunity.js +2 -0
- package/dist/types/ModHideCommunityView.d.ts +8 -0
- package/dist/types/ModHideCommunityView.js +2 -0
- package/dist/types/ModJoin.d.ts +4 -0
- package/dist/types/ModJoin.js +2 -0
- package/dist/types/ModJoinResponse.d.ts +3 -0
- package/dist/types/ModJoinResponse.js +3 -0
- package/dist/types/ModLockPost.d.ts +9 -0
- package/dist/types/ModLockPost.js +2 -0
- package/dist/types/ModLockPostView.d.ts +10 -0
- package/dist/types/ModLockPostView.js +2 -0
- package/dist/types/ModRemoveComment.d.ts +10 -0
- package/dist/types/ModRemoveComment.js +2 -0
- package/dist/types/ModRemoveCommentView.d.ts +13 -0
- package/dist/types/ModRemoveCommentView.js +2 -0
- package/dist/types/ModRemoveCommunity.d.ts +11 -0
- package/dist/types/ModRemoveCommunity.js +2 -0
- package/dist/types/ModRemoveCommunityView.d.ts +8 -0
- package/dist/types/ModRemoveCommunityView.js +2 -0
- package/dist/types/ModRemovePost.d.ts +10 -0
- package/dist/types/ModRemovePost.js +2 -0
- package/dist/types/ModRemovePostView.d.ts +10 -0
- package/dist/types/ModRemovePostView.js +2 -0
- package/dist/types/ModTransferCommunity.d.ts +9 -0
- package/dist/types/ModTransferCommunity.js +2 -0
- package/dist/types/ModTransferCommunityView.d.ts +9 -0
- package/dist/types/ModTransferCommunityView.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -0
- package/dist/types/ModlogActionType.js +3 -0
- package/dist/types/ModlogListParams.d.ts +10 -0
- package/dist/types/ModlogListParams.js +2 -0
- package/dist/types/MyUserInfo.d.ts +14 -0
- package/dist/types/MyUserInfo.js +2 -0
- package/dist/types/PasswordChangeAfterReset.d.ts +5 -0
- package/dist/types/PasswordChangeAfterReset.js +3 -0
- package/dist/types/PasswordReset.d.ts +3 -0
- package/dist/types/PasswordReset.js +3 -0
- package/dist/types/PasswordResetResponse.d.ts +1 -0
- package/dist/types/PasswordResetResponse.js +3 -0
- package/dist/types/Person.d.ts +21 -0
- package/dist/types/Person.js +2 -0
- package/dist/types/PersonAggregates.d.ts +9 -0
- package/dist/types/PersonAggregates.js +2 -0
- package/dist/types/PersonBlockId.d.ts +1 -0
- package/dist/types/PersonBlockId.js +3 -0
- package/dist/types/PersonBlockView.d.ts +5 -0
- package/dist/types/PersonBlockView.js +2 -0
- package/dist/types/PersonId.d.ts +1 -0
- package/dist/types/PersonId.js +3 -0
- package/dist/types/PersonMention.d.ts +10 -0
- package/dist/types/PersonMention.js +2 -0
- package/dist/types/PersonMentionId.d.ts +1 -0
- package/dist/types/PersonMentionId.js +3 -0
- package/dist/types/PersonMentionResponse.d.ts +4 -0
- package/dist/types/PersonMentionResponse.js +2 -0
- package/dist/types/PersonMentionView.d.ts +21 -0
- package/dist/types/PersonMentionView.js +2 -0
- package/dist/types/PersonView.d.ts +6 -0
- package/dist/types/PersonView.js +2 -0
- package/dist/types/Post.d.ts +27 -0
- package/dist/types/Post.js +2 -0
- package/dist/types/PostAggregates.d.ts +14 -0
- package/dist/types/PostAggregates.js +2 -0
- package/dist/types/PostFeatureType.d.ts +1 -0
- package/dist/types/PostFeatureType.js +3 -0
- package/dist/types/PostId.d.ts +1 -0
- package/dist/types/PostId.js +3 -0
- package/dist/types/PostJoin.d.ts +4 -0
- package/dist/types/PostJoin.js +2 -0
- package/dist/types/PostJoinResponse.d.ts +3 -0
- package/dist/types/PostJoinResponse.js +3 -0
- package/dist/types/PostOrCommentId.d.ts +7 -0
- package/dist/types/PostOrCommentId.js +2 -0
- package/dist/types/PostReport.d.ts +16 -0
- package/dist/types/PostReport.js +2 -0
- package/dist/types/PostReportId.d.ts +1 -0
- package/dist/types/PostReportId.js +3 -0
- package/dist/types/PostReportResponse.d.ts +4 -0
- package/dist/types/PostReportResponse.js +2 -0
- package/dist/types/PostReportView.d.ts +16 -0
- package/dist/types/PostReportView.js +2 -0
- package/dist/types/PostResponse.d.ts +4 -0
- package/dist/types/PostResponse.js +2 -0
- package/dist/types/PostView.d.ts +18 -0
- package/dist/types/PostView.js +2 -0
- package/dist/types/PrivateMessage.d.ts +14 -0
- package/dist/types/PrivateMessage.js +2 -0
- package/dist/types/PrivateMessageId.d.ts +1 -0
- package/dist/types/PrivateMessageId.js +3 -0
- package/dist/types/PrivateMessageReport.d.ts +14 -0
- package/dist/types/PrivateMessageReport.js +2 -0
- package/dist/types/PrivateMessageReportId.d.ts +1 -0
- package/dist/types/PrivateMessageReportId.js +3 -0
- package/dist/types/PrivateMessageReportResponse.d.ts +4 -0
- package/dist/types/PrivateMessageReportResponse.js +2 -0
- package/dist/types/PrivateMessageReportView.d.ts +10 -0
- package/dist/types/PrivateMessageReportView.js +2 -0
- package/dist/types/PrivateMessageResponse.d.ts +4 -0
- package/dist/types/PrivateMessageResponse.js +2 -0
- package/dist/types/PrivateMessageView.d.ts +7 -0
- package/dist/types/PrivateMessageView.js +2 -0
- package/dist/types/PrivateMessagesResponse.d.ts +4 -0
- package/dist/types/PrivateMessagesResponse.js +2 -0
- package/dist/types/PurgeComment.d.ts +6 -0
- package/dist/types/PurgeComment.js +2 -0
- package/dist/types/PurgeCommunity.d.ts +6 -0
- package/dist/types/PurgeCommunity.js +2 -0
- package/dist/types/PurgeItemResponse.d.ts +3 -0
- package/dist/types/PurgeItemResponse.js +3 -0
- package/dist/types/PurgePerson.d.ts +6 -0
- package/dist/types/PurgePerson.js +2 -0
- package/dist/types/PurgePost.d.ts +6 -0
- package/dist/types/PurgePost.js +2 -0
- package/dist/types/Register.d.ts +11 -0
- package/dist/types/Register.js +3 -0
- package/dist/types/RegistrationApplication.d.ts +10 -0
- package/dist/types/RegistrationApplication.js +2 -0
- package/dist/types/RegistrationApplicationResponse.d.ts +4 -0
- package/dist/types/RegistrationApplicationResponse.js +2 -0
- package/dist/types/RegistrationApplicationView.d.ts +9 -0
- package/dist/types/RegistrationApplicationView.js +2 -0
- package/dist/types/RegistrationMode.d.ts +1 -0
- package/dist/types/RegistrationMode.js +3 -0
- package/dist/types/RemoveComment.d.ts +7 -0
- package/dist/types/RemoveComment.js +2 -0
- package/dist/types/RemoveCommunity.d.ts +8 -0
- package/dist/types/RemoveCommunity.js +2 -0
- package/dist/types/RemovePost.d.ts +7 -0
- package/dist/types/RemovePost.js +2 -0
- package/dist/types/ResolveCommentReport.d.ts +6 -0
- package/dist/types/ResolveCommentReport.js +2 -0
- package/dist/types/ResolveObject.d.ts +4 -0
- package/dist/types/ResolveObject.js +3 -0
- package/dist/types/ResolveObjectResponse.d.ts +10 -0
- package/dist/types/ResolveObjectResponse.js +2 -0
- package/dist/types/ResolvePostReport.d.ts +6 -0
- package/dist/types/ResolvePostReport.js +2 -0
- package/dist/types/ResolvePrivateMessageReport.d.ts +6 -0
- package/dist/types/ResolvePrivateMessageReport.js +2 -0
- package/dist/types/SaveComment.d.ts +6 -0
- package/dist/types/SaveComment.js +2 -0
- package/dist/types/SavePost.d.ts +6 -0
- package/dist/types/SavePost.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +26 -0
- package/dist/types/SaveUserSettings.js +2 -0
- package/dist/types/Search.d.ts +17 -0
- package/dist/types/Search.js +2 -0
- package/dist/types/SearchResponse.d.ts +12 -0
- package/dist/types/SearchResponse.js +2 -0
- package/dist/types/SearchType.d.ts +1 -0
- package/dist/types/SearchType.js +3 -0
- package/dist/types/Site.d.ts +18 -0
- package/dist/types/Site.js +2 -0
- package/dist/types/SiteAggregates.d.ts +13 -0
- package/dist/types/SiteAggregates.js +2 -0
- package/dist/types/SiteId.d.ts +1 -0
- package/dist/types/SiteId.js +3 -0
- package/dist/types/SiteMetadata.d.ts +6 -0
- package/dist/types/SiteMetadata.js +3 -0
- package/dist/types/SiteResponse.d.ts +4 -0
- package/dist/types/SiteResponse.js +2 -0
- package/dist/types/SiteView.d.ts +10 -0
- package/dist/types/SiteView.js +2 -0
- package/dist/types/SortType.d.ts +1 -0
- package/dist/types/SortType.js +3 -0
- package/dist/types/SubscribedType.d.ts +1 -0
- package/dist/types/SubscribedType.js +3 -0
- package/dist/types/Tagline.d.ts +8 -0
- package/dist/types/Tagline.js +2 -0
- package/dist/types/TransferCommunity.d.ts +7 -0
- package/dist/types/TransferCommunity.js +2 -0
- package/dist/types/UserJoin.d.ts +3 -0
- package/dist/types/UserJoin.js +3 -0
- package/dist/types/UserJoinResponse.d.ts +3 -0
- package/dist/types/UserJoinResponse.js +3 -0
- package/dist/types/VerifyEmail.d.ts +3 -0
- package/dist/types/VerifyEmail.js +3 -0
- package/dist/types/VerifyEmailResponse.d.ts +1 -0
- package/dist/types/VerifyEmailResponse.js +3 -0
- package/dist/types/others.d.ts +113 -0
- package/dist/{interfaces → types}/others.js +2 -145
- package/dist/websocket.d.ts +87 -9
- package/dist/websocket.js +2 -2
- package/package.json +1 -1
- package/dist/interfaces/aggregates.d.ts +0 -93
- package/dist/interfaces/api/comment.d.ts +0 -120
- package/dist/interfaces/api/community.d.ts +0 -125
- package/dist/interfaces/api/custom_emoji.d.ts +0 -33
- package/dist/interfaces/api/custom_emoji.js +0 -38
- package/dist/interfaces/api/index.d.ts +0 -7
- package/dist/interfaces/api/index.js +0 -23
- package/dist/interfaces/api/person.d.ts +0 -316
- package/dist/interfaces/api/post.d.ts +0 -141
- package/dist/interfaces/api/site.d.ts +0 -244
- package/dist/interfaces/api/websocket.d.ts +0 -27
- package/dist/interfaces/index.d.ts +0 -5
- package/dist/interfaces/index.js +0 -21
- package/dist/interfaces/others.d.ts +0 -256
- package/dist/interfaces/source.d.ts +0 -371
- package/dist/interfaces/source.js +0 -15
- package/dist/interfaces/views.d.ts +0 -225
- package/dist/interfaces/views.js +0 -9
- /package/dist/{interfaces/aggregates.js → types/AddAdmin.js} +0 -0
- /package/dist/{interfaces/api/comment.js → types/AddAdminResponse.js} +0 -0
- /package/dist/{interfaces/api/community.js → types/AddModToCommunity.js} +0 -0
- /package/dist/{interfaces/api/person.js → types/AddModToCommunityResponse.js} +0 -0
- /package/dist/{interfaces/api/post.js → types/AdminPurgeComment.js} +0 -0
- /package/dist/{interfaces/api/site.js → types/AdminPurgeCommentView.js} +0 -0
- /package/dist/{interfaces/api/websocket.js → types/AdminPurgeCommunity.js} +0 -0
@@ -1,125 +0,0 @@
|
|
1
|
-
import { ListingType, SortType } from "../others";
|
2
|
-
import { Site } from "../source";
|
3
|
-
import { CommunityModeratorView, CommunityView, PersonView } from "../views";
|
4
|
-
/**
|
5
|
-
* You can use either `id` or `name` as an id.
|
6
|
-
*
|
7
|
-
* To get a federated community by name, use `name@instance.tld` .
|
8
|
-
*/
|
9
|
-
export interface GetCommunity {
|
10
|
-
id?: number;
|
11
|
-
name?: string;
|
12
|
-
auth?: string;
|
13
|
-
}
|
14
|
-
export interface GetCommunityResponse {
|
15
|
-
community_view: CommunityView;
|
16
|
-
site?: Site;
|
17
|
-
moderators: CommunityModeratorView[];
|
18
|
-
online: number;
|
19
|
-
discussion_languages: number[];
|
20
|
-
default_post_language?: number;
|
21
|
-
}
|
22
|
-
export interface CreateCommunity {
|
23
|
-
name: string;
|
24
|
-
title: string;
|
25
|
-
description?: string;
|
26
|
-
icon?: string;
|
27
|
-
banner?: string;
|
28
|
-
nsfw?: boolean;
|
29
|
-
posting_restricted_to_mods?: boolean;
|
30
|
-
discussion_languages?: number[];
|
31
|
-
auth: string;
|
32
|
-
}
|
33
|
-
export interface CommunityResponse {
|
34
|
-
community_view: CommunityView;
|
35
|
-
discussion_languages: number[];
|
36
|
-
}
|
37
|
-
export interface ListCommunities {
|
38
|
-
type_?: ListingType;
|
39
|
-
sort?: SortType;
|
40
|
-
page?: number;
|
41
|
-
limit?: number;
|
42
|
-
auth?: string;
|
43
|
-
}
|
44
|
-
export interface ListCommunitiesResponse {
|
45
|
-
communities: CommunityView[];
|
46
|
-
}
|
47
|
-
export interface BanFromCommunity {
|
48
|
-
community_id: number;
|
49
|
-
person_id: number;
|
50
|
-
ban: boolean;
|
51
|
-
/**
|
52
|
-
* Removes/Restores their comments and posts for that community.
|
53
|
-
*/
|
54
|
-
remove_data?: boolean;
|
55
|
-
reason?: string;
|
56
|
-
/**
|
57
|
-
* The expire time in Unix seconds
|
58
|
-
*/
|
59
|
-
expires?: number;
|
60
|
-
auth: string;
|
61
|
-
}
|
62
|
-
export interface BanFromCommunityResponse {
|
63
|
-
person_view: PersonView;
|
64
|
-
banned: boolean;
|
65
|
-
}
|
66
|
-
export interface AddModToCommunity {
|
67
|
-
community_id: number;
|
68
|
-
person_id: number;
|
69
|
-
added: boolean;
|
70
|
-
auth: string;
|
71
|
-
}
|
72
|
-
export interface AddModToCommunityResponse {
|
73
|
-
moderators: CommunityModeratorView[];
|
74
|
-
}
|
75
|
-
/**
|
76
|
-
* Only mods can edit a community.
|
77
|
-
*/
|
78
|
-
export interface EditCommunity {
|
79
|
-
community_id: number;
|
80
|
-
title?: string;
|
81
|
-
description?: string;
|
82
|
-
icon?: string;
|
83
|
-
banner?: string;
|
84
|
-
nsfw?: boolean;
|
85
|
-
posting_restricted_to_mods?: boolean;
|
86
|
-
discussion_languages?: number[];
|
87
|
-
auth: string;
|
88
|
-
}
|
89
|
-
export interface DeleteCommunity {
|
90
|
-
community_id: number;
|
91
|
-
deleted: boolean;
|
92
|
-
auth: string;
|
93
|
-
}
|
94
|
-
/**
|
95
|
-
* Only admins can remove a community.
|
96
|
-
*/
|
97
|
-
export interface RemoveCommunity {
|
98
|
-
community_id: number;
|
99
|
-
removed: boolean;
|
100
|
-
reason?: string;
|
101
|
-
/**
|
102
|
-
* The expire time in Unix seconds
|
103
|
-
*/
|
104
|
-
expires?: number;
|
105
|
-
auth: string;
|
106
|
-
}
|
107
|
-
export interface FollowCommunity {
|
108
|
-
community_id: number;
|
109
|
-
follow: boolean;
|
110
|
-
auth: string;
|
111
|
-
}
|
112
|
-
export interface TransferCommunity {
|
113
|
-
community_id: number;
|
114
|
-
person_id: number;
|
115
|
-
auth: string;
|
116
|
-
}
|
117
|
-
export interface BlockCommunity {
|
118
|
-
community_id: number;
|
119
|
-
block: boolean;
|
120
|
-
auth: string;
|
121
|
-
}
|
122
|
-
export interface BlockCommunityResponse {
|
123
|
-
community_view: CommunityView;
|
124
|
-
blocked: boolean;
|
125
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { CustomEmojiView } from "../views";
|
2
|
-
export declare class CreateCustomEmoji {
|
3
|
-
category: string;
|
4
|
-
shortcode: string;
|
5
|
-
image_url: string;
|
6
|
-
alt_text: string;
|
7
|
-
keywords: string[];
|
8
|
-
auth: string;
|
9
|
-
constructor(init: CreateCustomEmoji);
|
10
|
-
}
|
11
|
-
export declare class EditCustomEmoji {
|
12
|
-
id: number;
|
13
|
-
category: string;
|
14
|
-
image_url: string;
|
15
|
-
alt_text: string;
|
16
|
-
keywords: string[];
|
17
|
-
auth: string;
|
18
|
-
constructor(init: EditCustomEmoji);
|
19
|
-
}
|
20
|
-
export declare class DeleteCustomEmoji {
|
21
|
-
id: number;
|
22
|
-
auth: string;
|
23
|
-
constructor(init: DeleteCustomEmoji);
|
24
|
-
}
|
25
|
-
export declare class DeleteCustomEmojiResponse {
|
26
|
-
id: number;
|
27
|
-
success: boolean;
|
28
|
-
constructor(init: DeleteCustomEmojiResponse);
|
29
|
-
}
|
30
|
-
export declare class CustomEmojiResponse {
|
31
|
-
custom_emoji: CustomEmojiView;
|
32
|
-
constructor(init: CustomEmojiResponse);
|
33
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CustomEmojiResponse = exports.DeleteCustomEmojiResponse = exports.DeleteCustomEmoji = exports.EditCustomEmoji = exports.CreateCustomEmoji = void 0;
|
4
|
-
var CreateCustomEmoji = /** @class */ (function () {
|
5
|
-
function CreateCustomEmoji(init) {
|
6
|
-
Object.assign(this, init);
|
7
|
-
}
|
8
|
-
return CreateCustomEmoji;
|
9
|
-
}());
|
10
|
-
exports.CreateCustomEmoji = CreateCustomEmoji;
|
11
|
-
var EditCustomEmoji = /** @class */ (function () {
|
12
|
-
function EditCustomEmoji(init) {
|
13
|
-
Object.assign(this, init);
|
14
|
-
}
|
15
|
-
return EditCustomEmoji;
|
16
|
-
}());
|
17
|
-
exports.EditCustomEmoji = EditCustomEmoji;
|
18
|
-
var DeleteCustomEmoji = /** @class */ (function () {
|
19
|
-
function DeleteCustomEmoji(init) {
|
20
|
-
Object.assign(this, init);
|
21
|
-
}
|
22
|
-
return DeleteCustomEmoji;
|
23
|
-
}());
|
24
|
-
exports.DeleteCustomEmoji = DeleteCustomEmoji;
|
25
|
-
var DeleteCustomEmojiResponse = /** @class */ (function () {
|
26
|
-
function DeleteCustomEmojiResponse(init) {
|
27
|
-
Object.assign(this, init);
|
28
|
-
}
|
29
|
-
return DeleteCustomEmojiResponse;
|
30
|
-
}());
|
31
|
-
exports.DeleteCustomEmojiResponse = DeleteCustomEmojiResponse;
|
32
|
-
var CustomEmojiResponse = /** @class */ (function () {
|
33
|
-
function CustomEmojiResponse(init) {
|
34
|
-
Object.assign(this, init);
|
35
|
-
}
|
36
|
-
return CustomEmojiResponse;
|
37
|
-
}());
|
38
|
-
exports.CustomEmojiResponse = CustomEmojiResponse;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./comment"), exports);
|
18
|
-
__exportStar(require("./community"), exports);
|
19
|
-
__exportStar(require("./custom_emoji"), exports);
|
20
|
-
__exportStar(require("./person"), exports);
|
21
|
-
__exportStar(require("./post"), exports);
|
22
|
-
__exportStar(require("./site"), exports);
|
23
|
-
__exportStar(require("./websocket"), exports);
|
@@ -1,316 +0,0 @@
|
|
1
|
-
import { CommentSortType, ListingType, SortType } from "../others";
|
2
|
-
import { CommentReplyView, CommentView, CommunityModeratorView, PersonMentionView, PersonView, PostView, PrivateMessageReportView, PrivateMessageView } from "../views";
|
3
|
-
export interface Login {
|
4
|
-
username_or_email: string;
|
5
|
-
password: string;
|
6
|
-
/**
|
7
|
-
* If your user has 2fa set up, they must provide the token, otherwise you will receive the error "missing_totp_token"
|
8
|
-
*/
|
9
|
-
totp_2fa_token?: string;
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* Register a new user.
|
13
|
-
*
|
14
|
-
* Only the first user to register will be able to be the admin.
|
15
|
-
*/
|
16
|
-
export interface Register {
|
17
|
-
username: string;
|
18
|
-
/**
|
19
|
-
* Email is mandatory if email verification is enabled on the server
|
20
|
-
*/
|
21
|
-
email?: string;
|
22
|
-
password: string;
|
23
|
-
password_verify: string;
|
24
|
-
show_nsfw: boolean;
|
25
|
-
/**
|
26
|
-
* Captcha is only checked if these are enabled in the server.
|
27
|
-
*/
|
28
|
-
captcha_uuid?: string;
|
29
|
-
captcha_answer?: string;
|
30
|
-
honeypot?: string;
|
31
|
-
/**
|
32
|
-
* An answer is mandatory if require application is enabled on the server
|
33
|
-
*/
|
34
|
-
answer?: string;
|
35
|
-
}
|
36
|
-
export interface GetCaptcha {
|
37
|
-
}
|
38
|
-
export interface GetCaptchaResponse {
|
39
|
-
/**
|
40
|
-
* Will be undefined if captchas are disabled.
|
41
|
-
*/
|
42
|
-
ok?: CaptchaResponse;
|
43
|
-
}
|
44
|
-
export interface CaptchaResponse {
|
45
|
-
/**
|
46
|
-
* A Base64 encoded png.
|
47
|
-
*/
|
48
|
-
png: string;
|
49
|
-
/**
|
50
|
-
* A Base64 encoded wav file.
|
51
|
-
*/
|
52
|
-
wav?: string;
|
53
|
-
/**
|
54
|
-
* A UUID to match the one given on request.
|
55
|
-
*/
|
56
|
-
uuid: string;
|
57
|
-
}
|
58
|
-
export interface SaveUserSettings {
|
59
|
-
show_nsfw?: boolean;
|
60
|
-
/**
|
61
|
-
* Default for this is `browser`.
|
62
|
-
*/
|
63
|
-
theme?: string;
|
64
|
-
/**
|
65
|
-
* The [[SortType]].
|
66
|
-
*
|
67
|
-
* The Sort types from above, zero indexed as a number
|
68
|
-
*/
|
69
|
-
default_sort_type?: SortType;
|
70
|
-
/**
|
71
|
-
* The [[ListingType]].
|
72
|
-
*
|
73
|
-
* Post listing types are `All, Subscribed, Community`
|
74
|
-
*/
|
75
|
-
default_listing_type?: ListingType;
|
76
|
-
interface_language?: string;
|
77
|
-
avatar?: string;
|
78
|
-
banner?: string;
|
79
|
-
display_name?: string;
|
80
|
-
email?: string;
|
81
|
-
bio?: string;
|
82
|
-
matrix_user_id?: string;
|
83
|
-
show_avatars?: boolean;
|
84
|
-
show_scores?: boolean;
|
85
|
-
send_notifications_to_email?: boolean;
|
86
|
-
bot_account?: boolean;
|
87
|
-
show_bot_accounts?: boolean;
|
88
|
-
show_read_posts?: boolean;
|
89
|
-
show_new_post_notifs?: boolean;
|
90
|
-
discussion_languages?: number[];
|
91
|
-
/**
|
92
|
-
* If this is set to true, lemmy will generate or regenerate a 2-factor (totp) authentication secret.
|
93
|
-
* You can then use the `totp_2fa_url` from [[LocalUserSettings]] to set up your authenticator app.
|
94
|
-
*
|
95
|
-
* If this is set to false, it will remove 2-factor for your account.
|
96
|
-
*
|
97
|
-
* If this is undefined, it leaves your 2-factor setup as is.
|
98
|
-
*/
|
99
|
-
generate_totp_2fa?: boolean;
|
100
|
-
auth: string;
|
101
|
-
}
|
102
|
-
export interface ChangePassword {
|
103
|
-
new_password: string;
|
104
|
-
new_password_verify: string;
|
105
|
-
old_password: string;
|
106
|
-
auth: string;
|
107
|
-
}
|
108
|
-
/**
|
109
|
-
* The `jwt` string should be stored and used anywhere `auth` is called for.
|
110
|
-
*/
|
111
|
-
export interface LoginResponse {
|
112
|
-
/**
|
113
|
-
* This is None in response to `Register` if email verification is enabled, or the server requires registration applications.
|
114
|
-
*/
|
115
|
-
jwt?: string;
|
116
|
-
verify_email_sent: boolean;
|
117
|
-
registration_created: boolean;
|
118
|
-
}
|
119
|
-
export interface GetPersonDetails {
|
120
|
-
person_id?: number;
|
121
|
-
/**
|
122
|
-
* To get details for a federated user, use `person@instance.tld`.
|
123
|
-
*/
|
124
|
-
username?: string;
|
125
|
-
sort?: SortType;
|
126
|
-
page?: number;
|
127
|
-
limit?: number;
|
128
|
-
community_id?: number;
|
129
|
-
saved_only?: boolean;
|
130
|
-
auth?: string;
|
131
|
-
}
|
132
|
-
export interface GetPersonDetailsResponse {
|
133
|
-
person_view: PersonView;
|
134
|
-
comments: CommentView[];
|
135
|
-
posts: PostView[];
|
136
|
-
moderates: CommunityModeratorView[];
|
137
|
-
}
|
138
|
-
export interface GetRepliesResponse {
|
139
|
-
replies: CommentReplyView[];
|
140
|
-
}
|
141
|
-
export interface GetPersonMentionsResponse {
|
142
|
-
mentions: PersonMentionView[];
|
143
|
-
}
|
144
|
-
export interface MarkAllAsRead {
|
145
|
-
auth: string;
|
146
|
-
}
|
147
|
-
export interface AddAdmin {
|
148
|
-
person_id: number;
|
149
|
-
added: boolean;
|
150
|
-
auth: string;
|
151
|
-
}
|
152
|
-
export interface AddAdminResponse {
|
153
|
-
admins: PersonView[];
|
154
|
-
}
|
155
|
-
export interface BanPerson {
|
156
|
-
person_id: number;
|
157
|
-
ban: boolean;
|
158
|
-
/**
|
159
|
-
* Removes/Restores their comments, posts, and communities
|
160
|
-
*/
|
161
|
-
remove_data?: boolean;
|
162
|
-
reason?: string;
|
163
|
-
/**
|
164
|
-
* The expire time in Unix seconds
|
165
|
-
*/
|
166
|
-
expires?: number;
|
167
|
-
auth: string;
|
168
|
-
}
|
169
|
-
export interface BanPersonResponse {
|
170
|
-
person_view: PersonView;
|
171
|
-
banned: boolean;
|
172
|
-
}
|
173
|
-
export interface GetReplies {
|
174
|
-
sort?: CommentSortType;
|
175
|
-
page?: number;
|
176
|
-
limit?: number;
|
177
|
-
unread_only?: boolean;
|
178
|
-
auth: string;
|
179
|
-
}
|
180
|
-
export interface GetPersonMentions {
|
181
|
-
sort?: CommentSortType;
|
182
|
-
page?: number;
|
183
|
-
limit?: number;
|
184
|
-
unread_only?: boolean;
|
185
|
-
auth: string;
|
186
|
-
}
|
187
|
-
export interface MarkPersonMentionAsRead {
|
188
|
-
person_mention_id: number;
|
189
|
-
read: boolean;
|
190
|
-
auth: string;
|
191
|
-
}
|
192
|
-
export interface PersonMentionResponse {
|
193
|
-
person_mention_view: PersonMentionView;
|
194
|
-
}
|
195
|
-
export interface MarkCommentReplyAsRead {
|
196
|
-
comment_reply_id: number;
|
197
|
-
read: boolean;
|
198
|
-
auth: string;
|
199
|
-
}
|
200
|
-
export interface CommentReplyResponse {
|
201
|
-
comment_reply_view: CommentReplyView;
|
202
|
-
}
|
203
|
-
/**
|
204
|
-
* Permanently deletes your posts and comments
|
205
|
-
*/
|
206
|
-
export interface DeleteAccount {
|
207
|
-
password: string;
|
208
|
-
auth: string;
|
209
|
-
}
|
210
|
-
export interface DeleteAccountResponse {
|
211
|
-
}
|
212
|
-
export interface PasswordReset {
|
213
|
-
email: string;
|
214
|
-
}
|
215
|
-
export interface PasswordResetResponse {
|
216
|
-
}
|
217
|
-
export interface PasswordChange {
|
218
|
-
token: string;
|
219
|
-
password: string;
|
220
|
-
password_verify: string;
|
221
|
-
}
|
222
|
-
export interface CreatePrivateMessage {
|
223
|
-
content: string;
|
224
|
-
recipient_id: number;
|
225
|
-
auth: string;
|
226
|
-
}
|
227
|
-
export interface EditPrivateMessage {
|
228
|
-
private_message_id: number;
|
229
|
-
content: string;
|
230
|
-
auth: string;
|
231
|
-
}
|
232
|
-
export interface DeletePrivateMessage {
|
233
|
-
private_message_id: number;
|
234
|
-
deleted: boolean;
|
235
|
-
auth: string;
|
236
|
-
}
|
237
|
-
export interface MarkPrivateMessageAsRead {
|
238
|
-
private_message_id: number;
|
239
|
-
read: boolean;
|
240
|
-
auth: string;
|
241
|
-
}
|
242
|
-
export interface GetPrivateMessages {
|
243
|
-
unread_only?: boolean;
|
244
|
-
page?: number;
|
245
|
-
limit?: number;
|
246
|
-
auth: string;
|
247
|
-
}
|
248
|
-
export interface PrivateMessagesResponse {
|
249
|
-
private_messages: PrivateMessageView[];
|
250
|
-
}
|
251
|
-
export interface PrivateMessageResponse {
|
252
|
-
private_message_view: PrivateMessageView;
|
253
|
-
}
|
254
|
-
export interface CreatePrivateMessageReport {
|
255
|
-
private_message_id: number;
|
256
|
-
reason: string;
|
257
|
-
auth: string;
|
258
|
-
}
|
259
|
-
export interface PrivateMessageReportResponse {
|
260
|
-
private_message_report_view: PrivateMessageReportView;
|
261
|
-
}
|
262
|
-
export interface ResolvePrivateMessageReport {
|
263
|
-
report_id: number;
|
264
|
-
resolved: boolean;
|
265
|
-
auth: string;
|
266
|
-
}
|
267
|
-
export interface ListPrivateMessageReports {
|
268
|
-
page?: number;
|
269
|
-
limit?: number;
|
270
|
-
unresolved_only?: boolean;
|
271
|
-
auth: string;
|
272
|
-
}
|
273
|
-
export interface ListPrivateMessageReportsResponse {
|
274
|
-
private_message_reports: PrivateMessageReportView[];
|
275
|
-
}
|
276
|
-
export interface GetReportCount {
|
277
|
-
/**
|
278
|
-
* If a community is supplied, returns the report count for only that community, otherwise returns the report count for all communities the user moderates.
|
279
|
-
*/
|
280
|
-
community_id?: number;
|
281
|
-
auth: string;
|
282
|
-
}
|
283
|
-
export interface GetReportCountResponse {
|
284
|
-
community_id?: number;
|
285
|
-
comment_reports: number;
|
286
|
-
post_reports: number;
|
287
|
-
private_message_reports?: number;
|
288
|
-
}
|
289
|
-
export interface GetUnreadCount {
|
290
|
-
auth: string;
|
291
|
-
}
|
292
|
-
export interface GetUnreadCountResponse {
|
293
|
-
replies: number;
|
294
|
-
mentions: number;
|
295
|
-
private_messages: number;
|
296
|
-
}
|
297
|
-
export interface VerifyEmail {
|
298
|
-
token: string;
|
299
|
-
}
|
300
|
-
export interface VerifyEmailResponse {
|
301
|
-
}
|
302
|
-
export interface BlockPerson {
|
303
|
-
person_id: number;
|
304
|
-
block: boolean;
|
305
|
-
auth: string;
|
306
|
-
}
|
307
|
-
export interface BlockPersonResponse {
|
308
|
-
person_view: PersonView;
|
309
|
-
blocked: boolean;
|
310
|
-
}
|
311
|
-
export interface GetBannedPersons {
|
312
|
-
auth: string;
|
313
|
-
}
|
314
|
-
export interface BannedPersonsResponse {
|
315
|
-
banned: PersonView[];
|
316
|
-
}
|
@@ -1,141 +0,0 @@
|
|
1
|
-
import { ListingType, PostFeatureType, SiteMetadata, SortType } from "../others";
|
2
|
-
import { CommunityModeratorView, CommunityView, PostReportView, PostView } from "../views";
|
3
|
-
export interface CreatePost {
|
4
|
-
name: string;
|
5
|
-
url?: string;
|
6
|
-
body?: string;
|
7
|
-
nsfw?: boolean;
|
8
|
-
language_id?: number;
|
9
|
-
community_id: number;
|
10
|
-
honeypot?: string;
|
11
|
-
auth: string;
|
12
|
-
}
|
13
|
-
export interface PostResponse {
|
14
|
-
post_view: PostView;
|
15
|
-
}
|
16
|
-
export interface GetPost {
|
17
|
-
id?: number;
|
18
|
-
comment_id?: number;
|
19
|
-
auth?: string;
|
20
|
-
}
|
21
|
-
export interface GetPostResponse {
|
22
|
-
post_view: PostView;
|
23
|
-
community_view: CommunityView;
|
24
|
-
moderators: CommunityModeratorView[];
|
25
|
-
online: number;
|
26
|
-
}
|
27
|
-
export interface GetPosts {
|
28
|
-
type_?: ListingType;
|
29
|
-
sort?: SortType;
|
30
|
-
page?: number;
|
31
|
-
limit?: number;
|
32
|
-
community_id?: number;
|
33
|
-
/**
|
34
|
-
* To get posts for a federated community by name, use `name@instance.tld` .
|
35
|
-
*/
|
36
|
-
community_name?: string;
|
37
|
-
saved_only?: boolean;
|
38
|
-
auth?: string;
|
39
|
-
}
|
40
|
-
export interface GetPostsResponse {
|
41
|
-
posts: PostView[];
|
42
|
-
}
|
43
|
-
export interface CreatePostLike {
|
44
|
-
post_id: number;
|
45
|
-
/**
|
46
|
-
* `score` can be 0, -1, or 1. Anything else will be rejected.
|
47
|
-
*/
|
48
|
-
score: number;
|
49
|
-
auth: string;
|
50
|
-
}
|
51
|
-
export interface EditPost {
|
52
|
-
post_id: number;
|
53
|
-
name?: string;
|
54
|
-
url?: string;
|
55
|
-
body?: string;
|
56
|
-
nsfw?: boolean;
|
57
|
-
language_id?: number;
|
58
|
-
auth: string;
|
59
|
-
}
|
60
|
-
export interface DeletePost {
|
61
|
-
post_id: number;
|
62
|
-
deleted: boolean;
|
63
|
-
auth: string;
|
64
|
-
}
|
65
|
-
/**
|
66
|
-
* Only admins and mods can remove a post.
|
67
|
-
*/
|
68
|
-
export interface RemovePost {
|
69
|
-
post_id: number;
|
70
|
-
removed: boolean;
|
71
|
-
reason?: string;
|
72
|
-
auth: string;
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* Marks a post as read.
|
76
|
-
*/
|
77
|
-
export interface MarkPostAsRead {
|
78
|
-
post_id: number;
|
79
|
-
read: boolean;
|
80
|
-
auth: string;
|
81
|
-
}
|
82
|
-
/**
|
83
|
-
* Only admins and mods can lock a post.
|
84
|
-
*/
|
85
|
-
export interface LockPost {
|
86
|
-
post_id: number;
|
87
|
-
locked: boolean;
|
88
|
-
auth: string;
|
89
|
-
}
|
90
|
-
/**
|
91
|
-
* Only admins and mods can feature a community post.
|
92
|
-
*/
|
93
|
-
export interface FeaturePost {
|
94
|
-
post_id: number;
|
95
|
-
featured: boolean;
|
96
|
-
feature_type: PostFeatureType;
|
97
|
-
auth: string;
|
98
|
-
}
|
99
|
-
export interface SavePost {
|
100
|
-
post_id: number;
|
101
|
-
save: boolean;
|
102
|
-
auth: string;
|
103
|
-
}
|
104
|
-
export interface CreatePostReport {
|
105
|
-
post_id: number;
|
106
|
-
reason: string;
|
107
|
-
auth: string;
|
108
|
-
}
|
109
|
-
export interface PostReportResponse {
|
110
|
-
post_report_view: PostReportView;
|
111
|
-
}
|
112
|
-
export interface ResolvePostReport {
|
113
|
-
report_id: number;
|
114
|
-
/**
|
115
|
-
* Either resolve or unresolve a report.
|
116
|
-
*/
|
117
|
-
resolved: boolean;
|
118
|
-
auth: string;
|
119
|
-
}
|
120
|
-
export interface ListPostReports {
|
121
|
-
page?: number;
|
122
|
-
limit?: number;
|
123
|
-
/**
|
124
|
-
* if no community is given, it returns reports for all communities moderated by the auth user.
|
125
|
-
*/
|
126
|
-
community_id?: number;
|
127
|
-
/**
|
128
|
-
* Only shows the unresolved reports.
|
129
|
-
*/
|
130
|
-
unresolved_only?: boolean;
|
131
|
-
auth: string;
|
132
|
-
}
|
133
|
-
export interface ListPostReportsResponse {
|
134
|
-
post_reports: PostReportView[];
|
135
|
-
}
|
136
|
-
export interface GetSiteMetadata {
|
137
|
-
url: string;
|
138
|
-
}
|
139
|
-
export interface GetSiteMetadataResponse {
|
140
|
-
metadata: SiteMetadata;
|
141
|
-
}
|