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
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Comment } from "./Comment";
|
2
|
+
import type { Community } from "./Community";
|
3
|
+
import type { ModRemoveComment } from "./ModRemoveComment";
|
4
|
+
import type { Person } from "./Person";
|
5
|
+
import type { Post } from "./Post";
|
6
|
+
export interface ModRemoveCommentView {
|
7
|
+
mod_remove_comment: ModRemoveComment;
|
8
|
+
moderator?: Person;
|
9
|
+
comment: Comment;
|
10
|
+
commenter: Person;
|
11
|
+
post: Post;
|
12
|
+
community: Community;
|
13
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
export interface ModRemoveCommunity {
|
4
|
+
id: number;
|
5
|
+
mod_person_id: PersonId;
|
6
|
+
community_id: CommunityId;
|
7
|
+
reason?: string;
|
8
|
+
removed: boolean;
|
9
|
+
expires?: string;
|
10
|
+
when_: string;
|
11
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { ModRemoveCommunity } from "./ModRemoveCommunity";
|
3
|
+
import type { Person } from "./Person";
|
4
|
+
export interface ModRemoveCommunityView {
|
5
|
+
mod_remove_community: ModRemoveCommunity;
|
6
|
+
moderator?: Person;
|
7
|
+
community: Community;
|
8
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { ModRemovePost } from "./ModRemovePost";
|
3
|
+
import type { Person } from "./Person";
|
4
|
+
import type { Post } from "./Post";
|
5
|
+
export interface ModRemovePostView {
|
6
|
+
mod_remove_post: ModRemovePost;
|
7
|
+
moderator?: Person;
|
8
|
+
post: Post;
|
9
|
+
community: Community;
|
10
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { ModTransferCommunity } from "./ModTransferCommunity";
|
3
|
+
import type { Person } from "./Person";
|
4
|
+
export interface ModTransferCommunityView {
|
5
|
+
mod_transfer_community: ModTransferCommunity;
|
6
|
+
moderator?: Person;
|
7
|
+
community: Community;
|
8
|
+
modded_person: Person;
|
9
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ModlogActionType = "All" | "ModRemovePost" | "ModLockPost" | "ModFeaturePost" | "ModRemoveComment" | "ModRemoveCommunity" | "ModBanFromCommunity" | "ModAddCommunity" | "ModTransferCommunity" | "ModAdd" | "ModBan" | "ModHideCommunity" | "AdminPurgePerson" | "AdminPurgeCommunity" | "AdminPurgePost" | "AdminPurgeComment";
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
export interface ModlogListParams {
|
4
|
+
community_id?: CommunityId;
|
5
|
+
mod_person_id?: PersonId;
|
6
|
+
other_person_id?: PersonId;
|
7
|
+
page?: bigint;
|
8
|
+
limit?: bigint;
|
9
|
+
hide_modlog_names: boolean;
|
10
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { CommunityBlockView } from "./CommunityBlockView";
|
2
|
+
import type { CommunityFollowerView } from "./CommunityFollowerView";
|
3
|
+
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
4
|
+
import type { LanguageId } from "./LanguageId";
|
5
|
+
import type { LocalUserView } from "./LocalUserView";
|
6
|
+
import type { PersonBlockView } from "./PersonBlockView";
|
7
|
+
export interface MyUserInfo {
|
8
|
+
local_user_view: LocalUserView;
|
9
|
+
follows: Array<CommunityFollowerView>;
|
10
|
+
moderates: Array<CommunityModeratorView>;
|
11
|
+
community_blocks: Array<CommunityBlockView>;
|
12
|
+
person_blocks: Array<PersonBlockView>;
|
13
|
+
discussion_languages: Array<LanguageId>;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PasswordResetResponse = null;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { InstanceId } from "./InstanceId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
export interface Person {
|
4
|
+
id: PersonId;
|
5
|
+
name: string;
|
6
|
+
display_name?: string;
|
7
|
+
avatar?: string;
|
8
|
+
banned: boolean;
|
9
|
+
published: string;
|
10
|
+
updated?: string;
|
11
|
+
actor_id: string;
|
12
|
+
bio?: string;
|
13
|
+
local: boolean;
|
14
|
+
banner?: string;
|
15
|
+
deleted: boolean;
|
16
|
+
matrix_user_id?: string;
|
17
|
+
admin: boolean;
|
18
|
+
bot_account: boolean;
|
19
|
+
ban_expires?: string;
|
20
|
+
instance_id: InstanceId;
|
21
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PersonBlockId = number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PersonId = number;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { CommentId } from "./CommentId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
import type { PersonMentionId } from "./PersonMentionId";
|
4
|
+
export interface PersonMention {
|
5
|
+
id: PersonMentionId;
|
6
|
+
recipient_id: PersonId;
|
7
|
+
comment_id: CommentId;
|
8
|
+
read: boolean;
|
9
|
+
published: string;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PersonMentionId = number;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { Comment } from "./Comment";
|
2
|
+
import type { CommentAggregates } from "./CommentAggregates";
|
3
|
+
import type { Community } from "./Community";
|
4
|
+
import type { Person } from "./Person";
|
5
|
+
import type { PersonMention } from "./PersonMention";
|
6
|
+
import type { Post } from "./Post";
|
7
|
+
import type { SubscribedType } from "./SubscribedType";
|
8
|
+
export interface PersonMentionView {
|
9
|
+
person_mention: PersonMention;
|
10
|
+
comment: Comment;
|
11
|
+
creator: Person;
|
12
|
+
post: Post;
|
13
|
+
community: Community;
|
14
|
+
recipient: Person;
|
15
|
+
counts: CommentAggregates;
|
16
|
+
creator_banned_from_community: boolean;
|
17
|
+
subscribed: SubscribedType;
|
18
|
+
saved: boolean;
|
19
|
+
creator_blocked: boolean;
|
20
|
+
my_vote?: number;
|
21
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { CommunityId } from "./CommunityId";
|
2
|
+
import type { LanguageId } from "./LanguageId";
|
3
|
+
import type { PersonId } from "./PersonId";
|
4
|
+
import type { PostId } from "./PostId";
|
5
|
+
export interface Post {
|
6
|
+
id: PostId;
|
7
|
+
name: string;
|
8
|
+
url?: string;
|
9
|
+
body?: string;
|
10
|
+
creator_id: PersonId;
|
11
|
+
community_id: CommunityId;
|
12
|
+
removed: boolean;
|
13
|
+
locked: boolean;
|
14
|
+
published: string;
|
15
|
+
updated?: string;
|
16
|
+
deleted: boolean;
|
17
|
+
nsfw: boolean;
|
18
|
+
embed_title?: string;
|
19
|
+
embed_description?: string;
|
20
|
+
thumbnail_url?: string;
|
21
|
+
ap_id: string;
|
22
|
+
local: boolean;
|
23
|
+
embed_video_url?: string;
|
24
|
+
language_id: LanguageId;
|
25
|
+
featured_community: boolean;
|
26
|
+
featured_local: boolean;
|
27
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { PostId } from "./PostId";
|
2
|
+
export interface PostAggregates {
|
3
|
+
id: number;
|
4
|
+
post_id: PostId;
|
5
|
+
comments: bigint;
|
6
|
+
score: bigint;
|
7
|
+
upvotes: bigint;
|
8
|
+
downvotes: bigint;
|
9
|
+
published: string;
|
10
|
+
newest_comment_time_necro: string;
|
11
|
+
newest_comment_time: string;
|
12
|
+
featured_community: boolean;
|
13
|
+
featured_local: boolean;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PostFeatureType = "Local" | "Community";
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PostId = number;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { PersonId } from "./PersonId";
|
2
|
+
import type { PostId } from "./PostId";
|
3
|
+
import type { PostReportId } from "./PostReportId";
|
4
|
+
export interface PostReport {
|
5
|
+
id: PostReportId;
|
6
|
+
creator_id: PersonId;
|
7
|
+
post_id: PostId;
|
8
|
+
original_post_name: string;
|
9
|
+
original_post_url?: string;
|
10
|
+
original_post_body?: string;
|
11
|
+
reason: string;
|
12
|
+
resolved: boolean;
|
13
|
+
resolver_id?: PersonId;
|
14
|
+
published: string;
|
15
|
+
updated?: string;
|
16
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PostReportId = number;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { Person } from "./Person";
|
3
|
+
import type { Post } from "./Post";
|
4
|
+
import type { PostAggregates } from "./PostAggregates";
|
5
|
+
import type { PostReport } from "./PostReport";
|
6
|
+
export interface PostReportView {
|
7
|
+
post_report: PostReport;
|
8
|
+
post: Post;
|
9
|
+
community: Community;
|
10
|
+
creator: Person;
|
11
|
+
post_creator: Person;
|
12
|
+
creator_banned_from_community: boolean;
|
13
|
+
my_vote?: number;
|
14
|
+
counts: PostAggregates;
|
15
|
+
resolver?: Person;
|
16
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { Community } from "./Community";
|
2
|
+
import type { Person } from "./Person";
|
3
|
+
import type { Post } from "./Post";
|
4
|
+
import type { PostAggregates } from "./PostAggregates";
|
5
|
+
import type { SubscribedType } from "./SubscribedType";
|
6
|
+
export interface PostView {
|
7
|
+
post: Post;
|
8
|
+
creator: Person;
|
9
|
+
community: Community;
|
10
|
+
creator_banned_from_community: boolean;
|
11
|
+
counts: PostAggregates;
|
12
|
+
subscribed: SubscribedType;
|
13
|
+
saved: boolean;
|
14
|
+
read: boolean;
|
15
|
+
creator_blocked: boolean;
|
16
|
+
my_vote?: number;
|
17
|
+
unread_comments: bigint;
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { PersonId } from "./PersonId";
|
2
|
+
import type { PrivateMessageId } from "./PrivateMessageId";
|
3
|
+
export interface PrivateMessage {
|
4
|
+
id: PrivateMessageId;
|
5
|
+
creator_id: PersonId;
|
6
|
+
recipient_id: PersonId;
|
7
|
+
content: string;
|
8
|
+
deleted: boolean;
|
9
|
+
read: boolean;
|
10
|
+
published: string;
|
11
|
+
updated?: string;
|
12
|
+
ap_id: string;
|
13
|
+
local: boolean;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PrivateMessageId = number;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { PersonId } from "./PersonId";
|
2
|
+
import type { PrivateMessageId } from "./PrivateMessageId";
|
3
|
+
import type { PrivateMessageReportId } from "./PrivateMessageReportId";
|
4
|
+
export interface PrivateMessageReport {
|
5
|
+
id: PrivateMessageReportId;
|
6
|
+
creator_id: PersonId;
|
7
|
+
private_message_id: PrivateMessageId;
|
8
|
+
original_pm_text: string;
|
9
|
+
reason: string;
|
10
|
+
resolved: boolean;
|
11
|
+
resolver_id?: PersonId;
|
12
|
+
published: string;
|
13
|
+
updated?: string;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PrivateMessageReportId = number;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Person } from "./Person";
|
2
|
+
import type { PrivateMessage } from "./PrivateMessage";
|
3
|
+
import type { PrivateMessageReport } from "./PrivateMessageReport";
|
4
|
+
export interface PrivateMessageReportView {
|
5
|
+
private_message_report: PrivateMessageReport;
|
6
|
+
private_message: PrivateMessage;
|
7
|
+
private_message_creator: Person;
|
8
|
+
creator: Person;
|
9
|
+
resolver?: Person;
|
10
|
+
}
|