lemmy-js-client 0.17.0-rc.9 → 0.17.2-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -5
- package/dist/http.d.ts +351 -21
- package/dist/http.js +407 -389
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5 -2
- 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/AdminPurgePerson.d.ts +7 -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/types/others.js +96 -0
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- package/dist/websocket.d.ts +142 -17
- package/dist/websocket.js +93 -21
- package/package.json +26 -24
- package/dist/interfaces/aggregates.d.ts +0 -90
- package/dist/interfaces/api/comment.d.ts +0 -115
- package/dist/interfaces/api/community.d.ts +0 -120
- package/dist/interfaces/api/index.d.ts +0 -6
- package/dist/interfaces/api/index.js +0 -18
- package/dist/interfaces/api/person.d.ts +0 -271
- package/dist/interfaces/api/post.d.ts +0 -130
- package/dist/interfaces/api/site.d.ts +0 -168
- package/dist/interfaces/api/websocket.d.ts +0 -27
- package/dist/interfaces/index.d.ts +0 -5
- package/dist/interfaces/index.js +0 -17
- package/dist/interfaces/others.d.ts +0 -186
- package/dist/interfaces/others.js +0 -151
- package/dist/interfaces/source.d.ts +0 -250
- package/dist/interfaces/views.d.ts +0 -173
- /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
- /package/dist/{interfaces/source.js → types/AdminPurgeCommunityView.js} +0 -0
- /package/dist/{interfaces/views.js → types/AdminPurgePerson.js} +0 -0
@@ -1,27 +0,0 @@
|
|
1
|
-
export interface UserJoin {
|
2
|
-
auth: string;
|
3
|
-
}
|
4
|
-
export interface UserJoinResponse {
|
5
|
-
joined: boolean;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* The main / frontpage community is `community_id: 0`.
|
9
|
-
*/
|
10
|
-
export interface CommunityJoin {
|
11
|
-
community_id: number;
|
12
|
-
}
|
13
|
-
export interface CommunityJoinResponse {
|
14
|
-
joined: boolean;
|
15
|
-
}
|
16
|
-
export interface ModJoin {
|
17
|
-
community_id: number;
|
18
|
-
}
|
19
|
-
export interface ModJoinResponse {
|
20
|
-
joined: boolean;
|
21
|
-
}
|
22
|
-
export interface PostJoin {
|
23
|
-
post_id: number;
|
24
|
-
}
|
25
|
-
export interface PostJoinResponse {
|
26
|
-
joined: boolean;
|
27
|
-
}
|
package/dist/interfaces/index.js
DELETED
@@ -1,17 +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
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
__exportStar(require("./aggregates"), exports);
|
14
|
-
__exportStar(require("./api"), exports);
|
15
|
-
__exportStar(require("./others"), exports);
|
16
|
-
__exportStar(require("./source"), exports);
|
17
|
-
__exportStar(require("./views"), exports);
|
@@ -1,186 +0,0 @@
|
|
1
|
-
export declare const VERSION = "v3";
|
2
|
-
/**
|
3
|
-
* All of the websocket operations available.
|
4
|
-
*/
|
5
|
-
export declare enum UserOperation {
|
6
|
-
Login = 0,
|
7
|
-
Register = 1,
|
8
|
-
GetCaptcha = 2,
|
9
|
-
CreateCommunity = 3,
|
10
|
-
CreatePost = 4,
|
11
|
-
ListCommunities = 5,
|
12
|
-
GetPost = 6,
|
13
|
-
GetCommunity = 7,
|
14
|
-
CreateComment = 8,
|
15
|
-
EditComment = 9,
|
16
|
-
DeleteComment = 10,
|
17
|
-
RemoveComment = 11,
|
18
|
-
MarkCommentAsRead = 12,
|
19
|
-
SaveComment = 13,
|
20
|
-
CreateCommentLike = 14,
|
21
|
-
GetPosts = 15,
|
22
|
-
CreatePostLike = 16,
|
23
|
-
EditPost = 17,
|
24
|
-
DeletePost = 18,
|
25
|
-
RemovePost = 19,
|
26
|
-
LockPost = 20,
|
27
|
-
StickyPost = 21,
|
28
|
-
SavePost = 22,
|
29
|
-
EditCommunity = 23,
|
30
|
-
DeleteCommunity = 24,
|
31
|
-
RemoveCommunity = 25,
|
32
|
-
FollowCommunity = 26,
|
33
|
-
GetPersonDetails = 27,
|
34
|
-
GetReplies = 28,
|
35
|
-
GetPersonMentions = 29,
|
36
|
-
MarkPersonMentionAsRead = 30,
|
37
|
-
GetModlog = 31,
|
38
|
-
BanFromCommunity = 32,
|
39
|
-
AddModToCommunity = 33,
|
40
|
-
CreateSite = 34,
|
41
|
-
EditSite = 35,
|
42
|
-
GetSite = 36,
|
43
|
-
AddAdmin = 37,
|
44
|
-
GetUnreadRegistrationApplicationCount = 38,
|
45
|
-
ListRegistrationApplications = 39,
|
46
|
-
ApproveRegistrationApplication = 40,
|
47
|
-
BanPerson = 41,
|
48
|
-
GetBannedPersons = 42,
|
49
|
-
Search = 43,
|
50
|
-
ResolveObject = 44,
|
51
|
-
MarkAllAsRead = 45,
|
52
|
-
SaveUserSettings = 46,
|
53
|
-
TransferCommunity = 47,
|
54
|
-
LeaveAdmin = 48,
|
55
|
-
DeleteAccount = 49,
|
56
|
-
PasswordReset = 50,
|
57
|
-
PasswordChange = 51,
|
58
|
-
CreatePrivateMessage = 52,
|
59
|
-
EditPrivateMessage = 53,
|
60
|
-
DeletePrivateMessage = 54,
|
61
|
-
MarkPrivateMessageAsRead = 55,
|
62
|
-
GetPrivateMessages = 56,
|
63
|
-
UserJoin = 57,
|
64
|
-
GetComments = 58,
|
65
|
-
GetSiteConfig = 59,
|
66
|
-
SaveSiteConfig = 60,
|
67
|
-
PostJoin = 61,
|
68
|
-
CommunityJoin = 62,
|
69
|
-
ChangePassword = 63,
|
70
|
-
GetSiteMetadata = 64,
|
71
|
-
BlockCommunity = 65,
|
72
|
-
BlockPerson = 66,
|
73
|
-
CreateCommentReport = 67,
|
74
|
-
ResolveCommentReport = 68,
|
75
|
-
ListCommentReports = 69,
|
76
|
-
CreatePostReport = 70,
|
77
|
-
ResolvePostReport = 71,
|
78
|
-
ListPostReports = 72,
|
79
|
-
GetReportCount = 73,
|
80
|
-
GetUnreadCount = 74,
|
81
|
-
VerifyEmail = 75
|
82
|
-
}
|
83
|
-
/**
|
84
|
-
* Different sort types used in lemmy.
|
85
|
-
*/
|
86
|
-
export declare enum SortType {
|
87
|
-
/**
|
88
|
-
* Posts sorted by the most recent comment.
|
89
|
-
*/
|
90
|
-
Active = "Active",
|
91
|
-
/**
|
92
|
-
* Posts sorted by the published time.
|
93
|
-
*/
|
94
|
-
Hot = "Hot",
|
95
|
-
New = "New",
|
96
|
-
/**
|
97
|
-
* The top posts for this last day.
|
98
|
-
*/
|
99
|
-
TopDay = "TopDay",
|
100
|
-
/**
|
101
|
-
* The top posts for this last week.
|
102
|
-
*/
|
103
|
-
TopWeek = "TopWeek",
|
104
|
-
/**
|
105
|
-
* The top posts for this last month.
|
106
|
-
*/
|
107
|
-
TopMonth = "TopMonth",
|
108
|
-
/**
|
109
|
-
* The top posts for this last year.
|
110
|
-
*/
|
111
|
-
TopYear = "TopYear",
|
112
|
-
/**
|
113
|
-
* The top posts of all time.
|
114
|
-
*/
|
115
|
-
TopAll = "TopAll",
|
116
|
-
/**
|
117
|
-
* Posts sorted by the most comments.
|
118
|
-
*/
|
119
|
-
MostComments = "MostComments",
|
120
|
-
/**
|
121
|
-
* Posts sorted by the newest comments, with no necrobumping. IE a forum sort.
|
122
|
-
*/
|
123
|
-
NewComments = "NewComments"
|
124
|
-
}
|
125
|
-
/**
|
126
|
-
* The different listing types for post and comment fetches.
|
127
|
-
*/
|
128
|
-
export declare enum ListingType {
|
129
|
-
All = "All",
|
130
|
-
Local = "Local",
|
131
|
-
Subscribed = "Subscribed",
|
132
|
-
Community = "Community"
|
133
|
-
}
|
134
|
-
/**
|
135
|
-
* Search types for lemmy's search.
|
136
|
-
*/
|
137
|
-
export declare enum SearchType {
|
138
|
-
All = "All",
|
139
|
-
Comments = "Comments",
|
140
|
-
Posts = "Posts",
|
141
|
-
Communities = "Communities",
|
142
|
-
Users = "Users",
|
143
|
-
Url = "Url"
|
144
|
-
}
|
145
|
-
/**
|
146
|
-
* A websocket response. Includes the return type.
|
147
|
-
* Can be used like:
|
148
|
-
*
|
149
|
-
* ```ts
|
150
|
-
* if (op == UserOperation.Search) {
|
151
|
-
* let data = wsJsonToRes<SearchResponse>(msg).data;
|
152
|
-
* }
|
153
|
-
* ```
|
154
|
-
*/
|
155
|
-
export interface WebSocketResponse<ResponseType> {
|
156
|
-
op: UserOperation;
|
157
|
-
/**
|
158
|
-
* This contains the data for a websocket response.
|
159
|
-
*
|
160
|
-
* The correct response type if given is in [[LemmyHttp]].
|
161
|
-
*/
|
162
|
-
data: ResponseType;
|
163
|
-
}
|
164
|
-
/**
|
165
|
-
* A websocket JSON response that includes the errors.
|
166
|
-
*/
|
167
|
-
export interface WebSocketJsonResponse<ResponseType> {
|
168
|
-
op?: string;
|
169
|
-
/**
|
170
|
-
* This contains the data for a websocket response.
|
171
|
-
*
|
172
|
-
* The correct response type if given is in [[LemmyHttp]].
|
173
|
-
*/
|
174
|
-
data?: ResponseType;
|
175
|
-
error?: string;
|
176
|
-
reconnect?: boolean;
|
177
|
-
}
|
178
|
-
/**
|
179
|
-
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
180
|
-
*/
|
181
|
-
export interface SiteMetadata {
|
182
|
-
title?: string;
|
183
|
-
description?: string;
|
184
|
-
image?: string;
|
185
|
-
html?: string;
|
186
|
-
}
|
@@ -1,151 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SearchType = exports.ListingType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
4
|
-
exports.VERSION = "v3";
|
5
|
-
/**
|
6
|
-
* All of the websocket operations available.
|
7
|
-
*/
|
8
|
-
var UserOperation;
|
9
|
-
(function (UserOperation) {
|
10
|
-
UserOperation[UserOperation["Login"] = 0] = "Login";
|
11
|
-
UserOperation[UserOperation["Register"] = 1] = "Register";
|
12
|
-
UserOperation[UserOperation["GetCaptcha"] = 2] = "GetCaptcha";
|
13
|
-
UserOperation[UserOperation["CreateCommunity"] = 3] = "CreateCommunity";
|
14
|
-
UserOperation[UserOperation["CreatePost"] = 4] = "CreatePost";
|
15
|
-
UserOperation[UserOperation["ListCommunities"] = 5] = "ListCommunities";
|
16
|
-
UserOperation[UserOperation["GetPost"] = 6] = "GetPost";
|
17
|
-
UserOperation[UserOperation["GetCommunity"] = 7] = "GetCommunity";
|
18
|
-
UserOperation[UserOperation["CreateComment"] = 8] = "CreateComment";
|
19
|
-
UserOperation[UserOperation["EditComment"] = 9] = "EditComment";
|
20
|
-
UserOperation[UserOperation["DeleteComment"] = 10] = "DeleteComment";
|
21
|
-
UserOperation[UserOperation["RemoveComment"] = 11] = "RemoveComment";
|
22
|
-
UserOperation[UserOperation["MarkCommentAsRead"] = 12] = "MarkCommentAsRead";
|
23
|
-
UserOperation[UserOperation["SaveComment"] = 13] = "SaveComment";
|
24
|
-
UserOperation[UserOperation["CreateCommentLike"] = 14] = "CreateCommentLike";
|
25
|
-
UserOperation[UserOperation["GetPosts"] = 15] = "GetPosts";
|
26
|
-
UserOperation[UserOperation["CreatePostLike"] = 16] = "CreatePostLike";
|
27
|
-
UserOperation[UserOperation["EditPost"] = 17] = "EditPost";
|
28
|
-
UserOperation[UserOperation["DeletePost"] = 18] = "DeletePost";
|
29
|
-
UserOperation[UserOperation["RemovePost"] = 19] = "RemovePost";
|
30
|
-
UserOperation[UserOperation["LockPost"] = 20] = "LockPost";
|
31
|
-
UserOperation[UserOperation["StickyPost"] = 21] = "StickyPost";
|
32
|
-
UserOperation[UserOperation["SavePost"] = 22] = "SavePost";
|
33
|
-
UserOperation[UserOperation["EditCommunity"] = 23] = "EditCommunity";
|
34
|
-
UserOperation[UserOperation["DeleteCommunity"] = 24] = "DeleteCommunity";
|
35
|
-
UserOperation[UserOperation["RemoveCommunity"] = 25] = "RemoveCommunity";
|
36
|
-
UserOperation[UserOperation["FollowCommunity"] = 26] = "FollowCommunity";
|
37
|
-
UserOperation[UserOperation["GetPersonDetails"] = 27] = "GetPersonDetails";
|
38
|
-
UserOperation[UserOperation["GetReplies"] = 28] = "GetReplies";
|
39
|
-
UserOperation[UserOperation["GetPersonMentions"] = 29] = "GetPersonMentions";
|
40
|
-
UserOperation[UserOperation["MarkPersonMentionAsRead"] = 30] = "MarkPersonMentionAsRead";
|
41
|
-
UserOperation[UserOperation["GetModlog"] = 31] = "GetModlog";
|
42
|
-
UserOperation[UserOperation["BanFromCommunity"] = 32] = "BanFromCommunity";
|
43
|
-
UserOperation[UserOperation["AddModToCommunity"] = 33] = "AddModToCommunity";
|
44
|
-
UserOperation[UserOperation["CreateSite"] = 34] = "CreateSite";
|
45
|
-
UserOperation[UserOperation["EditSite"] = 35] = "EditSite";
|
46
|
-
UserOperation[UserOperation["GetSite"] = 36] = "GetSite";
|
47
|
-
UserOperation[UserOperation["AddAdmin"] = 37] = "AddAdmin";
|
48
|
-
UserOperation[UserOperation["GetUnreadRegistrationApplicationCount"] = 38] = "GetUnreadRegistrationApplicationCount";
|
49
|
-
UserOperation[UserOperation["ListRegistrationApplications"] = 39] = "ListRegistrationApplications";
|
50
|
-
UserOperation[UserOperation["ApproveRegistrationApplication"] = 40] = "ApproveRegistrationApplication";
|
51
|
-
UserOperation[UserOperation["BanPerson"] = 41] = "BanPerson";
|
52
|
-
UserOperation[UserOperation["GetBannedPersons"] = 42] = "GetBannedPersons";
|
53
|
-
UserOperation[UserOperation["Search"] = 43] = "Search";
|
54
|
-
UserOperation[UserOperation["ResolveObject"] = 44] = "ResolveObject";
|
55
|
-
UserOperation[UserOperation["MarkAllAsRead"] = 45] = "MarkAllAsRead";
|
56
|
-
UserOperation[UserOperation["SaveUserSettings"] = 46] = "SaveUserSettings";
|
57
|
-
UserOperation[UserOperation["TransferCommunity"] = 47] = "TransferCommunity";
|
58
|
-
UserOperation[UserOperation["LeaveAdmin"] = 48] = "LeaveAdmin";
|
59
|
-
UserOperation[UserOperation["DeleteAccount"] = 49] = "DeleteAccount";
|
60
|
-
UserOperation[UserOperation["PasswordReset"] = 50] = "PasswordReset";
|
61
|
-
UserOperation[UserOperation["PasswordChange"] = 51] = "PasswordChange";
|
62
|
-
UserOperation[UserOperation["CreatePrivateMessage"] = 52] = "CreatePrivateMessage";
|
63
|
-
UserOperation[UserOperation["EditPrivateMessage"] = 53] = "EditPrivateMessage";
|
64
|
-
UserOperation[UserOperation["DeletePrivateMessage"] = 54] = "DeletePrivateMessage";
|
65
|
-
UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 55] = "MarkPrivateMessageAsRead";
|
66
|
-
UserOperation[UserOperation["GetPrivateMessages"] = 56] = "GetPrivateMessages";
|
67
|
-
UserOperation[UserOperation["UserJoin"] = 57] = "UserJoin";
|
68
|
-
UserOperation[UserOperation["GetComments"] = 58] = "GetComments";
|
69
|
-
UserOperation[UserOperation["GetSiteConfig"] = 59] = "GetSiteConfig";
|
70
|
-
UserOperation[UserOperation["SaveSiteConfig"] = 60] = "SaveSiteConfig";
|
71
|
-
UserOperation[UserOperation["PostJoin"] = 61] = "PostJoin";
|
72
|
-
UserOperation[UserOperation["CommunityJoin"] = 62] = "CommunityJoin";
|
73
|
-
UserOperation[UserOperation["ChangePassword"] = 63] = "ChangePassword";
|
74
|
-
UserOperation[UserOperation["GetSiteMetadata"] = 64] = "GetSiteMetadata";
|
75
|
-
UserOperation[UserOperation["BlockCommunity"] = 65] = "BlockCommunity";
|
76
|
-
UserOperation[UserOperation["BlockPerson"] = 66] = "BlockPerson";
|
77
|
-
UserOperation[UserOperation["CreateCommentReport"] = 67] = "CreateCommentReport";
|
78
|
-
UserOperation[UserOperation["ResolveCommentReport"] = 68] = "ResolveCommentReport";
|
79
|
-
UserOperation[UserOperation["ListCommentReports"] = 69] = "ListCommentReports";
|
80
|
-
UserOperation[UserOperation["CreatePostReport"] = 70] = "CreatePostReport";
|
81
|
-
UserOperation[UserOperation["ResolvePostReport"] = 71] = "ResolvePostReport";
|
82
|
-
UserOperation[UserOperation["ListPostReports"] = 72] = "ListPostReports";
|
83
|
-
UserOperation[UserOperation["GetReportCount"] = 73] = "GetReportCount";
|
84
|
-
UserOperation[UserOperation["GetUnreadCount"] = 74] = "GetUnreadCount";
|
85
|
-
UserOperation[UserOperation["VerifyEmail"] = 75] = "VerifyEmail";
|
86
|
-
})(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
|
87
|
-
/**
|
88
|
-
* Different sort types used in lemmy.
|
89
|
-
*/
|
90
|
-
var SortType;
|
91
|
-
(function (SortType) {
|
92
|
-
/**
|
93
|
-
* Posts sorted by the most recent comment.
|
94
|
-
*/
|
95
|
-
SortType["Active"] = "Active";
|
96
|
-
/**
|
97
|
-
* Posts sorted by the published time.
|
98
|
-
*/
|
99
|
-
SortType["Hot"] = "Hot";
|
100
|
-
SortType["New"] = "New";
|
101
|
-
/**
|
102
|
-
* The top posts for this last day.
|
103
|
-
*/
|
104
|
-
SortType["TopDay"] = "TopDay";
|
105
|
-
/**
|
106
|
-
* The top posts for this last week.
|
107
|
-
*/
|
108
|
-
SortType["TopWeek"] = "TopWeek";
|
109
|
-
/**
|
110
|
-
* The top posts for this last month.
|
111
|
-
*/
|
112
|
-
SortType["TopMonth"] = "TopMonth";
|
113
|
-
/**
|
114
|
-
* The top posts for this last year.
|
115
|
-
*/
|
116
|
-
SortType["TopYear"] = "TopYear";
|
117
|
-
/**
|
118
|
-
* The top posts of all time.
|
119
|
-
*/
|
120
|
-
SortType["TopAll"] = "TopAll";
|
121
|
-
/**
|
122
|
-
* Posts sorted by the most comments.
|
123
|
-
*/
|
124
|
-
SortType["MostComments"] = "MostComments";
|
125
|
-
/**
|
126
|
-
* Posts sorted by the newest comments, with no necrobumping. IE a forum sort.
|
127
|
-
*/
|
128
|
-
SortType["NewComments"] = "NewComments";
|
129
|
-
})(SortType = exports.SortType || (exports.SortType = {}));
|
130
|
-
/**
|
131
|
-
* The different listing types for post and comment fetches.
|
132
|
-
*/
|
133
|
-
var ListingType;
|
134
|
-
(function (ListingType) {
|
135
|
-
ListingType["All"] = "All";
|
136
|
-
ListingType["Local"] = "Local";
|
137
|
-
ListingType["Subscribed"] = "Subscribed";
|
138
|
-
ListingType["Community"] = "Community";
|
139
|
-
})(ListingType = exports.ListingType || (exports.ListingType = {}));
|
140
|
-
/**
|
141
|
-
* Search types for lemmy's search.
|
142
|
-
*/
|
143
|
-
var SearchType;
|
144
|
-
(function (SearchType) {
|
145
|
-
SearchType["All"] = "All";
|
146
|
-
SearchType["Comments"] = "Comments";
|
147
|
-
SearchType["Posts"] = "Posts";
|
148
|
-
SearchType["Communities"] = "Communities";
|
149
|
-
SearchType["Users"] = "Users";
|
150
|
-
SearchType["Url"] = "Url";
|
151
|
-
})(SearchType = exports.SearchType || (exports.SearchType = {}));
|
@@ -1,250 +0,0 @@
|
|
1
|
-
export interface LocalUserSettings {
|
2
|
-
id: number;
|
3
|
-
person_id: number;
|
4
|
-
email?: string;
|
5
|
-
show_nsfw: boolean;
|
6
|
-
theme: string;
|
7
|
-
default_sort_type: number;
|
8
|
-
default_listing_type: number;
|
9
|
-
lang: string;
|
10
|
-
show_avatars: boolean;
|
11
|
-
send_notifications_to_email: boolean;
|
12
|
-
show_bot_accounts: boolean;
|
13
|
-
show_scores: boolean;
|
14
|
-
show_read_posts: boolean;
|
15
|
-
show_new_post_notifs: boolean;
|
16
|
-
email_verified: boolean;
|
17
|
-
accepted_application: boolean;
|
18
|
-
}
|
19
|
-
export interface PersonSafe {
|
20
|
-
id: number;
|
21
|
-
name: string;
|
22
|
-
display_name?: string;
|
23
|
-
avatar?: string;
|
24
|
-
banned: boolean;
|
25
|
-
published: string;
|
26
|
-
updated?: string;
|
27
|
-
actor_id: string;
|
28
|
-
bio?: string;
|
29
|
-
local: boolean;
|
30
|
-
banner?: string;
|
31
|
-
deleted: boolean;
|
32
|
-
inbox_url: string;
|
33
|
-
shared_inbox_url: string;
|
34
|
-
matrix_user_id?: string;
|
35
|
-
admin: boolean;
|
36
|
-
bot_account: boolean;
|
37
|
-
ban_expires?: string;
|
38
|
-
}
|
39
|
-
export interface Site {
|
40
|
-
id: number;
|
41
|
-
name: string;
|
42
|
-
sidebar?: string;
|
43
|
-
published: string;
|
44
|
-
updated?: string;
|
45
|
-
enable_downvotes: boolean;
|
46
|
-
open_registration: boolean;
|
47
|
-
enable_nsfw: boolean;
|
48
|
-
icon?: string;
|
49
|
-
banner?: string;
|
50
|
-
description?: string;
|
51
|
-
community_creation_admin_only: boolean;
|
52
|
-
require_email_verification: boolean;
|
53
|
-
require_application: boolean;
|
54
|
-
application_question?: string;
|
55
|
-
private_instance: boolean;
|
56
|
-
default_theme: string;
|
57
|
-
actor_id: string;
|
58
|
-
last_refreshed_at: string;
|
59
|
-
inbox_url: string;
|
60
|
-
public_key: string;
|
61
|
-
}
|
62
|
-
export interface PrivateMessage {
|
63
|
-
id: number;
|
64
|
-
creator_id: number;
|
65
|
-
recipient_id: number;
|
66
|
-
content: string;
|
67
|
-
deleted: boolean;
|
68
|
-
read: boolean;
|
69
|
-
published: string;
|
70
|
-
updated?: string;
|
71
|
-
ap_id: string;
|
72
|
-
local: boolean;
|
73
|
-
}
|
74
|
-
export interface PostReport {
|
75
|
-
id: number;
|
76
|
-
creator_id: number;
|
77
|
-
post_id: number;
|
78
|
-
original_post_name: string;
|
79
|
-
original_post_url?: string;
|
80
|
-
original_post_body?: string;
|
81
|
-
reason: string;
|
82
|
-
resolved: boolean;
|
83
|
-
resolver_id?: number;
|
84
|
-
published: string;
|
85
|
-
updated?: string;
|
86
|
-
}
|
87
|
-
export interface Post {
|
88
|
-
id: number;
|
89
|
-
name: string;
|
90
|
-
url?: string;
|
91
|
-
body?: string;
|
92
|
-
creator_id: number;
|
93
|
-
community_id: number;
|
94
|
-
removed: boolean;
|
95
|
-
locked: boolean;
|
96
|
-
published: string;
|
97
|
-
updated?: string;
|
98
|
-
deleted: boolean;
|
99
|
-
nsfw: boolean;
|
100
|
-
stickied: boolean;
|
101
|
-
embed_title?: string;
|
102
|
-
embed_description?: string;
|
103
|
-
embed_html?: string;
|
104
|
-
thumbnail_url?: string;
|
105
|
-
ap_id: string;
|
106
|
-
local: boolean;
|
107
|
-
}
|
108
|
-
export interface PasswordResetRequest {
|
109
|
-
id: number;
|
110
|
-
local_user_id: number;
|
111
|
-
token_encrypted: string;
|
112
|
-
published: string;
|
113
|
-
}
|
114
|
-
export interface ModRemovePost {
|
115
|
-
id: number;
|
116
|
-
mod_person_id: number;
|
117
|
-
post_id: number;
|
118
|
-
reason?: string;
|
119
|
-
removed?: boolean;
|
120
|
-
when_: string;
|
121
|
-
}
|
122
|
-
export interface ModLockPost {
|
123
|
-
id: number;
|
124
|
-
mod_person_id: number;
|
125
|
-
post_id: number;
|
126
|
-
locked?: boolean;
|
127
|
-
when_: string;
|
128
|
-
}
|
129
|
-
export interface ModStickyPost {
|
130
|
-
id: number;
|
131
|
-
mod_person_id: number;
|
132
|
-
post_id: number;
|
133
|
-
stickied?: boolean;
|
134
|
-
when_: string;
|
135
|
-
}
|
136
|
-
export interface ModRemoveComment {
|
137
|
-
id: number;
|
138
|
-
mod_person_id: number;
|
139
|
-
comment_id: number;
|
140
|
-
reason?: string;
|
141
|
-
removed?: boolean;
|
142
|
-
when_: string;
|
143
|
-
}
|
144
|
-
export interface ModRemoveCommunity {
|
145
|
-
id: number;
|
146
|
-
mod_person_id: number;
|
147
|
-
community_id: number;
|
148
|
-
reason?: string;
|
149
|
-
removed?: boolean;
|
150
|
-
expires?: string;
|
151
|
-
when_: string;
|
152
|
-
}
|
153
|
-
export interface ModBanFromCommunity {
|
154
|
-
id: number;
|
155
|
-
mod_person_id: number;
|
156
|
-
other_person_id: number;
|
157
|
-
community_id: number;
|
158
|
-
reason?: string;
|
159
|
-
banned?: boolean;
|
160
|
-
expires?: string;
|
161
|
-
when_: string;
|
162
|
-
}
|
163
|
-
export interface ModBan {
|
164
|
-
id: number;
|
165
|
-
mod_person_id: number;
|
166
|
-
other_person_id: number;
|
167
|
-
reason?: string;
|
168
|
-
banned?: boolean;
|
169
|
-
expires?: string;
|
170
|
-
when_: string;
|
171
|
-
}
|
172
|
-
export interface ModAddCommunity {
|
173
|
-
id: number;
|
174
|
-
mod_person_id: number;
|
175
|
-
other_person_id: number;
|
176
|
-
community_id: number;
|
177
|
-
removed?: boolean;
|
178
|
-
when_: string;
|
179
|
-
}
|
180
|
-
export interface ModTransferCommunity {
|
181
|
-
id: number;
|
182
|
-
mod_person_id: number;
|
183
|
-
other_person_id: number;
|
184
|
-
community_id: number;
|
185
|
-
removed?: boolean;
|
186
|
-
when_: string;
|
187
|
-
}
|
188
|
-
export interface ModAdd {
|
189
|
-
id: number;
|
190
|
-
mod_person_id: number;
|
191
|
-
other_person_id: number;
|
192
|
-
removed?: boolean;
|
193
|
-
when_: string;
|
194
|
-
}
|
195
|
-
export interface CommunitySafe {
|
196
|
-
id: number;
|
197
|
-
name: string;
|
198
|
-
title: string;
|
199
|
-
description?: string;
|
200
|
-
removed: boolean;
|
201
|
-
published: string;
|
202
|
-
updated?: string;
|
203
|
-
deleted: boolean;
|
204
|
-
nsfw: boolean;
|
205
|
-
actor_id: string;
|
206
|
-
local: boolean;
|
207
|
-
icon?: string;
|
208
|
-
banner?: string;
|
209
|
-
posting_restricted_to_mods: boolean;
|
210
|
-
}
|
211
|
-
export interface CommentReport {
|
212
|
-
id: number;
|
213
|
-
creator_id: number;
|
214
|
-
comment_id: number;
|
215
|
-
original_comment_text: string;
|
216
|
-
reason: string;
|
217
|
-
resolved: boolean;
|
218
|
-
resolver_id?: number;
|
219
|
-
published: string;
|
220
|
-
updated?: string;
|
221
|
-
}
|
222
|
-
export interface Comment {
|
223
|
-
id: number;
|
224
|
-
creator_id: number;
|
225
|
-
post_id: number;
|
226
|
-
parent_id?: number;
|
227
|
-
content: string;
|
228
|
-
removed: boolean;
|
229
|
-
read: boolean;
|
230
|
-
published: string;
|
231
|
-
updated?: string;
|
232
|
-
deleted: boolean;
|
233
|
-
ap_id: string;
|
234
|
-
local: boolean;
|
235
|
-
}
|
236
|
-
export interface PersonMention {
|
237
|
-
id: number;
|
238
|
-
recipient_id: number;
|
239
|
-
comment_id: number;
|
240
|
-
read: boolean;
|
241
|
-
published: string;
|
242
|
-
}
|
243
|
-
export interface RegistrationApplication {
|
244
|
-
id: number;
|
245
|
-
local_user_id: number;
|
246
|
-
answer: string;
|
247
|
-
admin_id?: number;
|
248
|
-
deny_reason?: string;
|
249
|
-
published: string;
|
250
|
-
}
|