lemmy-js-client 0.20.0-alpha.6 → 0.20.0-instance-blocks.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +202 -105
- package/dist/http.js +316 -224
- package/dist/index.d.ts +42 -7
- package/dist/types/AddAdmin.d.ts +5 -2
- package/dist/types/AddAdminResponse.d.ts +5 -2
- package/dist/types/AddModToCommunity.d.ts +5 -2
- package/dist/types/AddModToCommunityResponse.d.ts +5 -2
- package/dist/types/AdminAllowInstance.d.ts +10 -0
- package/dist/types/AdminAllowInstanceParams.d.ts +6 -0
- package/dist/types/AdminAllowInstanceView.d.ts +11 -0
- package/dist/types/AdminBlockInstance.d.ts +11 -0
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -0
- package/dist/types/AdminBlockInstanceParams.js +2 -0
- package/dist/types/AdminBlockInstanceView.d.ts +11 -0
- package/dist/types/AdminBlockInstanceView.js +2 -0
- package/dist/types/AdminPurgeComment.d.ts +5 -2
- package/dist/types/AdminPurgeCommentView.d.ts +5 -2
- package/dist/types/AdminPurgeCommunity.d.ts +5 -2
- package/dist/types/AdminPurgeCommunityView.d.ts +5 -2
- package/dist/types/AdminPurgePerson.d.ts +5 -2
- package/dist/types/AdminPurgePersonView.d.ts +5 -2
- package/dist/types/AdminPurgePost.d.ts +5 -2
- package/dist/types/AdminPurgePostView.d.ts +5 -2
- package/dist/types/ApproveCommunityPendingFollower.d.ts +7 -0
- package/dist/types/ApproveCommunityPendingFollower.js +2 -0
- package/dist/types/ApproveRegistrationApplication.d.ts +5 -2
- package/dist/types/AuthenticateWithOauth.d.ts +18 -0
- package/dist/types/AuthenticateWithOauth.js +2 -0
- package/dist/types/BanFromCommunity.d.ts +15 -3
- package/dist/types/BanFromCommunityResponse.d.ts +5 -2
- package/dist/types/BanPerson.d.ts +15 -3
- package/dist/types/BanPersonResponse.d.ts +5 -2
- package/dist/types/BannedPersonsResponse.d.ts +5 -2
- package/dist/types/BlockCommunity.d.ts +5 -2
- package/dist/types/BlockCommunityResponse.d.ts +5 -2
- package/dist/types/BlockPerson.d.ts +5 -2
- package/dist/types/BlockPersonResponse.d.ts +5 -2
- package/dist/types/CaptchaResponse.d.ts +14 -2
- package/dist/types/ChangePassword.d.ts +9 -5
- package/dist/types/ChangePassword.js +0 -1
- package/dist/types/Comment.d.ts +26 -3
- package/dist/types/CommentAggregates.d.ts +8 -2
- package/dist/types/CommentId.d.ts +3 -0
- package/dist/types/CommentReply.d.ts +5 -2
- package/dist/types/CommentReplyId.d.ts +3 -0
- package/dist/types/CommentReplyResponse.d.ts +5 -2
- package/dist/types/CommentReplyView.d.ts +5 -2
- package/dist/types/CommentReport.d.ts +5 -2
- package/dist/types/CommentReportId.d.ts +3 -0
- package/dist/types/CommentReportResponse.d.ts +5 -2
- package/dist/types/CommentReportView.d.ts +5 -2
- package/dist/types/CommentResponse.d.ts +5 -2
- package/dist/types/CommentSortType.d.ts +3 -0
- package/dist/types/CommentView.d.ts +5 -2
- package/dist/types/Community.d.ts +47 -6
- package/dist/types/CommunityAggregates.d.ts +17 -2
- package/dist/types/CommunityFollowerState.d.ts +1 -0
- package/dist/types/CommunityFollowerView.d.ts +5 -2
- package/dist/types/CommunityId.d.ts +3 -0
- package/dist/types/CommunityModeratorView.d.ts +5 -2
- package/dist/types/CommunityResponse.d.ts +5 -2
- package/dist/types/CommunitySortType.d.ts +4 -0
- package/dist/types/CommunityView.d.ts +5 -2
- package/dist/types/CommunityVisibility.d.ts +4 -1
- package/dist/types/CreateComment.d.ts +5 -2
- package/dist/types/CreateCommentLike.d.ts +8 -2
- package/dist/types/CreateCommentReport.d.ts +5 -2
- package/dist/types/CreateCommunity.d.ts +30 -2
- package/dist/types/CreateCustomEmoji.d.ts +5 -2
- package/dist/types/CreateOAuthProvider.d.ts +17 -0
- package/dist/types/CreateOAuthProvider.js +3 -0
- package/dist/types/CreatePost.d.ts +20 -2
- package/dist/types/CreatePostLike.d.ts +8 -2
- package/dist/types/CreatePostReport.d.ts +5 -2
- package/dist/types/CreatePrivateMessage.d.ts +5 -2
- package/dist/types/CreatePrivateMessageReport.d.ts +5 -2
- package/dist/types/CreateSite.d.ts +16 -7
- package/dist/types/CreateTagline.d.ts +6 -0
- package/dist/types/CreateTagline.js +3 -0
- package/dist/types/CustomEmoji.d.ts +7 -5
- package/dist/types/CustomEmojiId.d.ts +3 -0
- package/dist/types/CustomEmojiKeyword.d.ts +5 -2
- package/dist/types/CustomEmojiResponse.d.ts +5 -2
- package/dist/types/CustomEmojiView.d.ts +5 -2
- package/dist/types/DbUrl.d.ts +1 -0
- package/dist/types/DbUrl.js +3 -0
- package/dist/types/DeleteAccount.d.ts +7 -3
- package/dist/types/DeleteAccount.js +0 -1
- package/dist/types/DeleteComment.d.ts +5 -2
- package/dist/types/DeleteCommunity.d.ts +5 -2
- package/dist/types/DeleteCustomEmoji.d.ts +5 -2
- package/dist/types/DeleteOAuthProvider.d.ts +7 -0
- package/dist/types/DeleteOAuthProvider.js +2 -0
- package/dist/types/DeletePost.d.ts +5 -2
- package/dist/types/DeletePrivateMessage.d.ts +5 -2
- package/dist/types/DeleteTagline.d.ts +7 -0
- package/dist/types/DeleteTagline.js +2 -0
- package/dist/types/DistinguishComment.d.ts +5 -2
- package/dist/types/EditComment.d.ts +5 -2
- package/dist/types/EditCommunity.d.ts +27 -2
- package/dist/types/EditCustomEmoji.d.ts +5 -2
- package/dist/types/EditOAuthProvider.d.ts +17 -0
- package/dist/types/EditOAuthProvider.js +2 -0
- package/dist/types/EditPost.d.ts +18 -2
- package/dist/types/EditPrivateMessage.d.ts +5 -2
- package/dist/types/EditSite.d.ts +137 -7
- package/dist/types/FeaturePost.d.ts +5 -2
- package/dist/types/FederatedInstances.d.ts +5 -2
- package/dist/types/FederationBlockList.d.ts +7 -0
- package/dist/types/FederationBlockList.js +2 -0
- package/dist/types/FederationError.d.ts +10 -0
- package/dist/types/FederationError.js +3 -0
- package/dist/types/FederationMode.d.ts +4 -0
- package/dist/types/FederationMode.js +3 -0
- package/dist/types/FollowCommunity.d.ts +5 -2
- package/dist/types/GenerateTotpSecretResponse.d.ts +4 -3
- package/dist/types/GenerateTotpSecretResponse.js +0 -1
- package/dist/types/GetCaptchaResponse.d.ts +8 -2
- package/dist/types/GetComment.d.ts +5 -2
- package/dist/types/GetComments.d.ts +5 -2
- package/dist/types/GetCommentsResponse.d.ts +5 -2
- package/dist/types/GetCommunity.d.ts +8 -2
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +4 -0
- package/dist/types/GetCommunityPendingFollowsCount.js +2 -0
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +3 -0
- package/dist/types/GetCommunityPendingFollowsCountResponse.js +3 -0
- package/dist/types/GetCommunityResponse.d.ts +5 -2
- package/dist/types/GetFederatedInstancesResponse.d.ts +8 -2
- package/dist/types/GetModlog.d.ts +5 -2
- package/dist/types/GetModlogResponse.d.ts +9 -2
- package/dist/types/GetPersonDetails.d.ts +12 -4
- package/dist/types/GetPersonDetailsResponse.d.ts +5 -2
- package/dist/types/GetPersonMentions.d.ts +5 -2
- package/dist/types/GetPersonMentionsResponse.d.ts +5 -2
- package/dist/types/GetPost.d.ts +5 -2
- package/dist/types/GetPostResponse.d.ts +8 -2
- package/dist/types/GetPosts.d.ts +24 -4
- package/dist/types/GetPostsResponse.d.ts +8 -2
- package/dist/types/GetPrivateMessages.d.ts +5 -2
- package/dist/types/GetRandomCommunity.d.ts +7 -0
- package/dist/types/GetRandomCommunity.js +2 -0
- package/dist/types/GetRegistrationApplication.d.ts +5 -2
- package/dist/types/GetReplies.d.ts +5 -2
- package/dist/types/GetRepliesResponse.d.ts +5 -2
- package/dist/types/GetReportCount.d.ts +5 -2
- package/dist/types/GetReportCountResponse.d.ts +5 -2
- package/dist/types/GetSiteMetadata.d.ts +5 -2
- package/dist/types/GetSiteMetadataResponse.d.ts +5 -2
- package/dist/types/GetSiteResponse.d.ts +24 -5
- package/dist/types/GetUnreadCountResponse.d.ts +5 -2
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +5 -2
- package/dist/types/HideCommunity.d.ts +5 -2
- package/dist/types/HidePost.d.ts +6 -3
- package/dist/types/ImageDetails.d.ts +4 -3
- package/dist/types/ImageDetails.js +0 -1
- package/dist/types/Instance.d.ts +5 -2
- package/dist/types/InstanceId.d.ts +3 -0
- package/dist/types/InstanceWithFederationState.d.ts +7 -3
- package/dist/types/Language.d.ts +5 -2
- package/dist/types/LanguageId.d.ts +3 -0
- package/dist/types/LemmyErrorType.d.ts +33 -93
- package/dist/types/LemmyErrorType.js +0 -1
- package/dist/types/LinkMetadata.d.ts +9 -5
- package/dist/types/LinkMetadata.js +0 -1
- package/dist/types/ListCommentLikes.d.ts +5 -2
- package/dist/types/ListCommentLikesResponse.d.ts +5 -2
- package/dist/types/ListCommentReports.d.ts +11 -2
- package/dist/types/ListCommentReportsResponse.d.ts +5 -2
- package/dist/types/ListCommunities.d.ts +7 -4
- package/dist/types/ListCommunitiesResponse.d.ts +5 -2
- package/dist/types/ListCommunityPendingFollows.d.ts +9 -0
- package/dist/types/ListCommunityPendingFollows.js +3 -0
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +4 -0
- package/dist/types/ListCommunityPendingFollowsResponse.js +2 -0
- package/dist/types/ListCustomEmojis.d.ts +9 -0
- package/dist/types/ListCustomEmojis.js +3 -0
- package/dist/types/ListCustomEmojisResponse.d.ts +7 -0
- package/dist/types/ListCustomEmojisResponse.js +2 -0
- package/dist/types/ListLoginsResponse.d.ts +4 -0
- package/dist/types/ListLoginsResponse.js +2 -0
- package/dist/types/ListMedia.d.ts +5 -2
- package/dist/types/ListMediaResponse.d.ts +2 -2
- package/dist/types/ListPostLikes.d.ts +5 -2
- package/dist/types/ListPostLikesResponse.d.ts +5 -2
- package/dist/types/ListPostReports.d.ts +11 -2
- package/dist/types/ListPostReportsResponse.d.ts +5 -2
- package/dist/types/ListPrivateMessageReports.d.ts +8 -2
- package/dist/types/ListPrivateMessageReportsResponse.d.ts +5 -2
- package/dist/types/ListRegistrationApplications.d.ts +8 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +5 -2
- package/dist/types/ListTaglines.d.ts +7 -0
- package/dist/types/ListTaglines.js +3 -0
- package/dist/types/ListTaglinesResponse.d.ts +7 -0
- package/dist/types/ListTaglinesResponse.js +2 -0
- package/dist/types/ListingType.d.ts +3 -0
- package/dist/types/LocalImage.d.ts +2 -2
- package/dist/types/LocalImageView.d.ts +5 -2
- package/dist/types/LocalSite.d.ts +88 -6
- package/dist/types/LocalSiteId.d.ts +3 -0
- package/dist/types/LocalSiteRateLimit.d.ts +5 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +62 -7
- package/dist/types/LocalUserId.d.ts +3 -0
- package/dist/types/LocalUserView.d.ts +5 -2
- package/dist/types/LocalUserVoteDisplayMode.d.ts +5 -4
- package/dist/types/LocalUserVoteDisplayMode.js +1 -0
- package/dist/types/LockPost.d.ts +5 -2
- package/dist/types/Login.d.ts +11 -4
- package/dist/types/Login.js +0 -1
- package/dist/types/LoginResponse.d.ts +17 -3
- package/dist/types/LoginResponse.js +0 -1
- package/dist/types/LoginToken.d.ts +12 -2
- package/dist/types/MarkCommentReplyAsRead.d.ts +5 -2
- package/dist/types/MarkManyPostsAsRead.d.ts +7 -0
- package/dist/types/MarkManyPostsAsRead.js +2 -0
- package/dist/types/MarkPersonMentionAsRead.d.ts +5 -2
- package/dist/types/MarkPostAsRead.d.ts +6 -3
- package/dist/types/MarkPrivateMessageAsRead.d.ts +5 -2
- package/dist/types/ModAdd.d.ts +5 -2
- package/dist/types/ModAddCommunity.d.ts +5 -2
- package/dist/types/ModAddCommunityView.d.ts +5 -2
- package/dist/types/ModAddView.d.ts +5 -2
- package/dist/types/ModBan.d.ts +5 -2
- package/dist/types/ModBanFromCommunity.d.ts +5 -2
- package/dist/types/ModBanFromCommunityView.d.ts +5 -2
- package/dist/types/ModBanView.d.ts +5 -2
- package/dist/types/ModFeaturePost.d.ts +5 -2
- package/dist/types/ModFeaturePostView.d.ts +5 -2
- package/dist/types/ModHideCommunity.d.ts +5 -2
- package/dist/types/ModHideCommunityView.d.ts +5 -2
- package/dist/types/ModLockPost.d.ts +5 -2
- package/dist/types/ModLockPostView.d.ts +5 -2
- package/dist/types/ModRemoveComment.d.ts +5 -2
- package/dist/types/ModRemoveCommentView.d.ts +5 -2
- package/dist/types/ModRemoveCommunity.d.ts +5 -2
- package/dist/types/ModRemoveCommunityView.d.ts +5 -2
- package/dist/types/ModRemovePost.d.ts +5 -2
- package/dist/types/ModRemovePostView.d.ts +5 -2
- package/dist/types/ModTransferCommunity.d.ts +5 -2
- package/dist/types/ModTransferCommunityView.d.ts +5 -2
- package/dist/types/ModlogActionType.d.ts +4 -1
- package/dist/types/ModlogListParams.d.ts +5 -2
- package/dist/types/MyUserInfo.d.ts +11 -8
- package/dist/types/OAuthAccount.d.ts +12 -0
- package/dist/types/OAuthAccount.js +2 -0
- package/dist/types/OAuthProvider.d.ts +59 -0
- package/dist/types/OAuthProvider.js +2 -0
- package/dist/types/OAuthProviderId.d.ts +4 -0
- package/dist/types/OAuthProviderId.js +3 -0
- package/dist/types/OpenGraphData.d.ts +8 -4
- package/dist/types/OpenGraphData.js +0 -1
- package/dist/types/PaginationCursor.d.ts +6 -0
- package/dist/types/PasswordChangeAfterReset.d.ts +9 -5
- package/dist/types/PasswordChangeAfterReset.js +0 -1
- package/dist/types/PasswordReset.d.ts +7 -3
- package/dist/types/PasswordReset.js +0 -1
- package/dist/types/PendingFollow.d.ts +9 -0
- package/dist/types/PendingFollow.js +2 -0
- package/dist/types/Person.d.ts +42 -5
- package/dist/types/PersonAggregates.d.ts +5 -2
- package/dist/types/PersonId.d.ts +3 -0
- package/dist/types/PersonMention.d.ts +5 -2
- package/dist/types/PersonMentionId.d.ts +3 -0
- package/dist/types/PersonMentionResponse.d.ts +5 -2
- package/dist/types/PersonMentionView.d.ts +5 -2
- package/dist/types/PersonView.d.ts +5 -2
- package/dist/types/Post.d.ts +59 -7
- package/dist/types/PostAggregates.d.ts +8 -2
- package/dist/types/PostFeatureType.d.ts +3 -0
- package/dist/types/PostId.d.ts +3 -0
- package/dist/types/PostListingMode.d.ts +3 -0
- package/dist/types/PostReport.d.ts +16 -3
- package/dist/types/PostReportId.d.ts +3 -0
- package/dist/types/PostReportResponse.d.ts +5 -2
- package/dist/types/PostReportView.d.ts +5 -2
- package/dist/types/PostResponse.d.ts +2 -2
- package/dist/types/PostSortType.d.ts +4 -0
- package/dist/types/PostSortType.js +3 -0
- package/dist/types/PostView.d.ts +5 -2
- package/dist/types/PrivateMessage.d.ts +7 -3
- package/dist/types/PrivateMessageId.d.ts +3 -0
- package/dist/types/PrivateMessageReport.d.ts +8 -2
- package/dist/types/PrivateMessageReportId.d.ts +3 -0
- package/dist/types/PrivateMessageReportResponse.d.ts +5 -2
- package/dist/types/PrivateMessageReportView.d.ts +5 -2
- package/dist/types/PrivateMessageResponse.d.ts +5 -2
- package/dist/types/PrivateMessageView.d.ts +5 -2
- package/dist/types/PrivateMessagesResponse.d.ts +5 -2
- package/dist/types/PublicOAuthProvider.d.ts +2 -0
- package/dist/types/PublicOAuthProvider.js +2 -0
- package/dist/types/PurgeComment.d.ts +5 -2
- package/dist/types/PurgeCommunity.d.ts +5 -2
- package/dist/types/PurgePerson.d.ts +5 -2
- package/dist/types/PurgePost.d.ts +5 -2
- package/dist/types/ReadableFederationState.d.ts +15 -3
- package/dist/types/Register.d.ts +24 -5
- package/dist/types/Register.js +0 -1
- package/dist/types/RegistrationApplication.d.ts +5 -2
- package/dist/types/RegistrationApplicationId.d.ts +3 -0
- package/dist/types/RegistrationApplicationResponse.d.ts +5 -2
- package/dist/types/RegistrationApplicationView.d.ts +5 -2
- package/dist/types/RegistrationMode.d.ts +3 -0
- package/dist/types/RemoveComment.d.ts +5 -2
- package/dist/types/RemoveCommunity.d.ts +5 -2
- package/dist/types/RemovePost.d.ts +5 -2
- package/dist/types/ResolveCommentReport.d.ts +5 -2
- package/dist/types/ResolveObject.d.ts +8 -2
- package/dist/types/ResolveObjectResponse.d.ts +5 -2
- package/dist/types/ResolvePostReport.d.ts +5 -2
- package/dist/types/ResolvePrivateMessageReport.d.ts +5 -2
- package/dist/types/SaveComment.d.ts +5 -2
- package/dist/types/SavePost.d.ts +5 -2
- package/dist/types/SaveUserSettings.d.ts +99 -7
- package/dist/types/Search.d.ts +12 -4
- package/dist/types/SearchResponse.d.ts +5 -2
- package/dist/types/SearchType.d.ts +4 -1
- package/dist/types/SensitiveString.d.ts +1 -0
- package/dist/types/SensitiveString.js +3 -0
- package/dist/types/Site.d.ts +35 -6
- package/dist/types/SiteAggregates.d.ts +17 -2
- package/dist/types/SiteId.d.ts +3 -0
- package/dist/types/SiteResponse.d.ts +9 -4
- package/dist/types/SiteView.d.ts +5 -2
- package/dist/types/SubscribedType.d.ts +4 -1
- package/dist/types/SuccessResponse.d.ts +5 -2
- package/dist/types/Tagline.d.ts +5 -4
- package/dist/types/Tagline.js +1 -0
- package/dist/types/TaglineId.d.ts +4 -0
- package/dist/types/TaglineId.js +3 -0
- package/dist/types/TaglineResponse.d.ts +4 -0
- package/dist/types/TaglineResponse.js +2 -0
- package/dist/types/TransferCommunity.d.ts +5 -2
- package/dist/types/UpdateTagline.d.ts +8 -0
- package/dist/types/UpdateTagline.js +2 -0
- package/dist/types/UpdateTotp.d.ts +2 -2
- package/dist/types/UpdateTotpResponse.d.ts +2 -2
- package/dist/types/{BlockInstance.d.ts → UserBlockInstanceParams.d.ts} +5 -2
- package/dist/types/UserBlockInstanceParams.js +2 -0
- package/dist/types/VerifyEmail.d.ts +5 -2
- package/dist/types/VoteView.d.ts +5 -2
- package/package.json +7 -7
- package/dist/types/BlockInstanceResponse.d.ts +0 -3
- package/dist/types/CommunityBlockView.d.ts +0 -6
- package/dist/types/InstanceBlockView.d.ts +0 -8
- package/dist/types/PersonBlockView.d.ts +0 -5
- package/dist/types/SortType.d.ts +0 -1
- /package/dist/types/{BlockInstance.js → AdminAllowInstance.js} +0 -0
- /package/dist/types/{CommunityBlockView.js → AdminAllowInstanceParams.js} +0 -0
- /package/dist/types/{InstanceBlockView.js → AdminAllowInstanceView.js} +0 -0
- /package/dist/types/{PersonBlockView.js → AdminBlockInstance.js} +0 -0
- /package/dist/types/{BlockInstanceResponse.js → CommunityFollowerState.js} +0 -0
- /package/dist/types/{SortType.js → CommunitySortType.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -22,6 +22,7 @@ import { CreateCommentLike } from "./types/CreateCommentLike";
|
|
22
22
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
23
23
|
import { CreateCommunity } from "./types/CreateCommunity";
|
24
24
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
25
|
+
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
25
26
|
import { CreatePost } from "./types/CreatePost";
|
26
27
|
import { CreatePostLike } from "./types/CreatePostLike";
|
27
28
|
import { CreatePostReport } from "./types/CreatePostReport";
|
@@ -33,15 +34,18 @@ import { DeleteAccount } from "./types/DeleteAccount";
|
|
33
34
|
import { DeleteComment } from "./types/DeleteComment";
|
34
35
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
35
36
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
37
|
+
import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
36
38
|
import { DeletePost } from "./types/DeletePost";
|
37
39
|
import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
38
40
|
import { DistinguishComment } from "./types/DistinguishComment";
|
39
41
|
import { EditComment } from "./types/EditComment";
|
40
42
|
import { EditCommunity } from "./types/EditCommunity";
|
41
43
|
import { EditCustomEmoji } from "./types/EditCustomEmoji";
|
44
|
+
import { EditOAuthProvider } from "./types/EditOAuthProvider";
|
42
45
|
import { EditPost } from "./types/EditPost";
|
43
46
|
import { EditPrivateMessage } from "./types/EditPrivateMessage";
|
44
47
|
import { EditSite } from "./types/EditSite";
|
48
|
+
import { OAuthProvider } from "./types/OAuthProvider";
|
45
49
|
import { FeaturePost } from "./types/FeaturePost";
|
46
50
|
import { FollowCommunity } from "./types/FollowCommunity";
|
47
51
|
import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
@@ -120,8 +124,6 @@ import { TransferCommunity } from "./types/TransferCommunity";
|
|
120
124
|
import { VerifyEmail } from "./types/VerifyEmail";
|
121
125
|
import { DeleteImage, UploadImage, UploadImageResponse } from "./other_types";
|
122
126
|
import { HideCommunity } from "./types/HideCommunity";
|
123
|
-
import { BlockInstance } from "./types/BlockInstance";
|
124
|
-
import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
125
127
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
126
128
|
import { UpdateTotp } from "./types/UpdateTotp";
|
127
129
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
@@ -134,7 +136,26 @@ import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
134
136
|
import { HidePost } from "./types/HidePost";
|
135
137
|
import { ListMedia } from "./types/ListMedia";
|
136
138
|
import { ListMediaResponse } from "./types/ListMediaResponse";
|
139
|
+
import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
137
140
|
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
141
|
+
import { CreateTagline } from "./types/CreateTagline";
|
142
|
+
import { TaglineResponse } from "./types/TaglineResponse";
|
143
|
+
import { UpdateTagline } from "./types/UpdateTagline";
|
144
|
+
import { DeleteTagline } from "./types/DeleteTagline";
|
145
|
+
import { ListTaglines } from "./types/ListTaglines";
|
146
|
+
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
147
|
+
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
148
|
+
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
149
|
+
import { GetRandomCommunity } from "./types/GetRandomCommunity";
|
150
|
+
import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
151
|
+
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
152
|
+
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
153
|
+
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
154
|
+
import { CommunityId } from "./types/CommunityId";
|
155
|
+
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
156
|
+
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
157
|
+
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
158
|
+
type RequestOptions = Pick<RequestInit, "signal">;
|
138
159
|
/**
|
139
160
|
* Helps build lemmy HTTP requests.
|
140
161
|
*/
|
@@ -156,25 +177,25 @@ export declare class LemmyHttp {
|
|
156
177
|
*
|
157
178
|
* `HTTP.GET /site`
|
158
179
|
*/
|
159
|
-
getSite(): Promise<GetSiteResponse>;
|
180
|
+
getSite(options?: RequestOptions): Promise<GetSiteResponse>;
|
160
181
|
/**
|
161
182
|
* Create your site.
|
162
183
|
*
|
163
184
|
* `HTTP.POST /site`
|
164
185
|
*/
|
165
|
-
createSite(form: CreateSite): Promise<SiteResponse>;
|
186
|
+
createSite(form: CreateSite, options?: RequestOptions): Promise<SiteResponse>;
|
166
187
|
/**
|
167
188
|
* Edit your site.
|
168
189
|
*
|
169
190
|
* `HTTP.PUT /site`
|
170
191
|
*/
|
171
|
-
editSite(form: EditSite): Promise<SiteResponse>;
|
192
|
+
editSite(form: EditSite, options?: RequestOptions): Promise<SiteResponse>;
|
172
193
|
/**
|
173
194
|
* Leave the Site admins.
|
174
195
|
*
|
175
196
|
* `HTTP.POST /user/leave_admin`
|
176
197
|
*/
|
177
|
-
leaveAdmin(): Promise<GetSiteResponse>;
|
198
|
+
leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse>;
|
178
199
|
/**
|
179
200
|
* Generate a TOTP / two-factor secret.
|
180
201
|
*
|
@@ -182,44 +203,44 @@ export declare class LemmyHttp {
|
|
182
203
|
*
|
183
204
|
* `HTTP.POST /user/totp/generate`
|
184
205
|
*/
|
185
|
-
generateTotpSecret(): Promise<GenerateTotpSecretResponse>;
|
206
|
+
generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse>;
|
186
207
|
/**
|
187
208
|
* Export a backup of your user settings, including your saved content,
|
188
209
|
* followed communities, and blocks.
|
189
210
|
*
|
190
211
|
* `HTTP.GET /user/export_settings`
|
191
212
|
*/
|
192
|
-
exportSettings(): Promise<string>;
|
213
|
+
exportSettings(options?: RequestOptions): Promise<string>;
|
193
214
|
/**
|
194
215
|
* Import a backup of your user settings.
|
195
216
|
*
|
196
217
|
* `HTTP.POST /user/import_settings`
|
197
218
|
*/
|
198
|
-
importSettings(form: any): Promise<SuccessResponse>;
|
219
|
+
importSettings(form: any, options?: RequestOptions): Promise<SuccessResponse>;
|
199
220
|
/**
|
200
221
|
* List login tokens for your user
|
201
222
|
*
|
202
223
|
* `HTTP.GET /user/list_logins`
|
203
224
|
*/
|
204
|
-
listLogins(): Promise<LoginToken[]>;
|
225
|
+
listLogins(options?: RequestOptions): Promise<LoginToken[]>;
|
205
226
|
/**
|
206
227
|
* Returns an error message if your auth token is invalid
|
207
228
|
*
|
208
229
|
* `HTTP.GET /user/validate_auth`
|
209
230
|
*/
|
210
|
-
validateAuth(): Promise<SuccessResponse>;
|
231
|
+
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
211
232
|
/**
|
212
233
|
* List all the media for your user
|
213
234
|
*
|
214
235
|
* `HTTP.GET /account/list_media`
|
215
236
|
*/
|
216
|
-
listMedia(form?: ListMedia): Promise<ListMediaResponse>;
|
237
|
+
listMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
|
217
238
|
/**
|
218
239
|
* List all the media known to your instance.
|
219
240
|
*
|
220
241
|
* `HTTP.GET /admin/list_all_media`
|
221
242
|
*/
|
222
|
-
listAllMedia(form?: ListMedia): Promise<ListMediaResponse>;
|
243
|
+
listAllMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
|
223
244
|
/**
|
224
245
|
* Enable / Disable TOTP / two-factor authentication.
|
225
246
|
*
|
@@ -229,543 +250,618 @@ export declare class LemmyHttp {
|
|
229
250
|
*
|
230
251
|
* `HTTP.POST /user/totp/update`
|
231
252
|
*/
|
232
|
-
updateTotp(form: UpdateTotp): Promise<UpdateTotpResponse>;
|
253
|
+
updateTotp(form: UpdateTotp, options?: RequestOptions): Promise<UpdateTotpResponse>;
|
233
254
|
/**
|
234
255
|
* Get the modlog.
|
235
256
|
*
|
236
257
|
* `HTTP.GET /modlog`
|
237
258
|
*/
|
238
|
-
getModlog(form?: GetModlog): Promise<GetModlogResponse>;
|
259
|
+
getModlog(form?: GetModlog, options?: RequestOptions): Promise<GetModlogResponse>;
|
239
260
|
/**
|
240
261
|
* Search lemmy.
|
241
262
|
*
|
242
263
|
* `HTTP.GET /search`
|
243
264
|
*/
|
244
|
-
search(form: Search): Promise<SearchResponse>;
|
265
|
+
search(form: Search, options?: RequestOptions): Promise<SearchResponse>;
|
245
266
|
/**
|
246
267
|
* Fetch a non-local / federated object.
|
247
268
|
*
|
248
269
|
* `HTTP.GET /resolve_object`
|
249
270
|
*/
|
250
|
-
resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
|
271
|
+
resolveObject(form: ResolveObject, options?: RequestOptions): Promise<ResolveObjectResponse>;
|
251
272
|
/**
|
252
273
|
* Create a new community.
|
253
274
|
*
|
254
275
|
* `HTTP.POST /community`
|
255
276
|
*/
|
256
|
-
createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
|
277
|
+
createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
257
278
|
/**
|
258
279
|
* Get / fetch a community.
|
259
280
|
*
|
260
281
|
* `HTTP.GET /community`
|
261
282
|
*/
|
262
|
-
getCommunity(form?: GetCommunity): Promise<GetCommunityResponse>;
|
283
|
+
getCommunity(form?: GetCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
|
263
284
|
/**
|
264
285
|
* Edit a community.
|
265
286
|
*
|
266
287
|
* `HTTP.PUT /community`
|
267
288
|
*/
|
268
|
-
editCommunity(form: EditCommunity): Promise<CommunityResponse>;
|
289
|
+
editCommunity(form: EditCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
269
290
|
/**
|
270
291
|
* List communities, with various filters.
|
271
292
|
*
|
272
293
|
* `HTTP.GET /community/list`
|
273
294
|
*/
|
274
|
-
listCommunities(form?: ListCommunities): Promise<ListCommunitiesResponse>;
|
295
|
+
listCommunities(form?: ListCommunities, options?: RequestOptions): Promise<ListCommunitiesResponse>;
|
275
296
|
/**
|
276
297
|
* Follow / subscribe to a community.
|
277
298
|
*
|
278
299
|
* `HTTP.POST /community/follow`
|
279
300
|
*/
|
280
|
-
followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
|
301
|
+
followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
302
|
+
getCommunityPendingFollowsCount(community_id: CommunityId, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
|
303
|
+
listCommunityPendingFollows(form: ListCommunityPendingFollows, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
|
304
|
+
approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise<SuccessResponse>;
|
281
305
|
/**
|
282
306
|
* Block a community.
|
283
307
|
*
|
284
308
|
* `HTTP.POST /community/block`
|
285
309
|
*/
|
286
|
-
blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
|
310
|
+
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
|
287
311
|
/**
|
288
312
|
* Delete a community.
|
289
313
|
*
|
290
314
|
* `HTTP.POST /community/delete`
|
291
315
|
*/
|
292
|
-
deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
|
316
|
+
deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
293
317
|
/**
|
294
318
|
* Hide a community from public / "All" view. Admins only.
|
295
319
|
*
|
296
320
|
* `HTTP.PUT /community/hide`
|
297
321
|
*/
|
298
|
-
hideCommunity(form: HideCommunity): Promise<SuccessResponse>;
|
322
|
+
hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
299
323
|
/**
|
300
324
|
* A moderator remove for a community.
|
301
325
|
*
|
302
326
|
* `HTTP.POST /community/remove`
|
303
327
|
*/
|
304
|
-
removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
|
328
|
+
removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
305
329
|
/**
|
306
330
|
* Transfer your community to an existing moderator.
|
307
331
|
*
|
308
332
|
* `HTTP.POST /community/transfer`
|
309
333
|
*/
|
310
|
-
transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
|
334
|
+
transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
|
311
335
|
/**
|
312
336
|
* Ban a user from a community.
|
313
337
|
*
|
314
338
|
* `HTTP.POST /community/ban_user`
|
315
339
|
*/
|
316
|
-
banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
|
340
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
|
317
341
|
/**
|
318
342
|
* Add a moderator to your community.
|
319
343
|
*
|
320
344
|
* `HTTP.POST /community/mod`
|
321
345
|
*/
|
322
|
-
addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
|
346
|
+
addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise<AddModToCommunityResponse>;
|
347
|
+
/**
|
348
|
+
* Get a random community.
|
349
|
+
*
|
350
|
+
* `HTTP.GET /community/random`
|
351
|
+
*/
|
352
|
+
getRandomCommunity(form: GetRandomCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
323
353
|
/**
|
324
354
|
* Create a post.
|
325
355
|
*
|
326
356
|
* `HTTP.POST /post`
|
327
357
|
*/
|
328
|
-
createPost(form: CreatePost): Promise<PostResponse>;
|
358
|
+
createPost(form: CreatePost, options?: RequestOptions): Promise<PostResponse>;
|
329
359
|
/**
|
330
360
|
* Get / fetch a post.
|
331
361
|
*
|
332
362
|
* `HTTP.GET /post`
|
333
363
|
*/
|
334
|
-
getPost(form?: GetPost): Promise<GetPostResponse>;
|
364
|
+
getPost(form?: GetPost, options?: RequestOptions): Promise<GetPostResponse>;
|
335
365
|
/**
|
336
366
|
* Edit a post.
|
337
367
|
*
|
338
368
|
* `HTTP.PUT /post`
|
339
369
|
*/
|
340
|
-
editPost(form: EditPost): Promise<PostResponse>;
|
370
|
+
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
341
371
|
/**
|
342
372
|
* Delete a post.
|
343
373
|
*
|
344
374
|
* `HTTP.POST /post/delete`
|
345
375
|
*/
|
346
|
-
deletePost(form: DeletePost): Promise<PostResponse>;
|
376
|
+
deletePost(form: DeletePost, options?: RequestOptions): Promise<PostResponse>;
|
347
377
|
/**
|
348
378
|
* A moderator remove for a post.
|
349
379
|
*
|
350
380
|
* `HTTP.POST /post/remove`
|
351
381
|
*/
|
352
|
-
removePost(form: RemovePost): Promise<PostResponse>;
|
382
|
+
removePost(form: RemovePost, options?: RequestOptions): Promise<PostResponse>;
|
353
383
|
/**
|
354
384
|
* Mark a post as read.
|
355
385
|
*
|
356
386
|
* `HTTP.POST /post/mark_as_read`
|
357
387
|
*/
|
358
|
-
markPostAsRead(form: MarkPostAsRead): Promise<SuccessResponse>;
|
388
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
359
389
|
/**
|
360
390
|
* Hide a post from list views.
|
361
391
|
*
|
362
392
|
* `HTTP.POST /post/hide`
|
363
393
|
*/
|
364
|
-
hidePost(form: HidePost): Promise<SuccessResponse>;
|
394
|
+
hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
|
365
395
|
/**
|
366
396
|
* A moderator can lock a post ( IE disable new comments ).
|
367
397
|
*
|
368
398
|
* `HTTP.POST /post/lock`
|
369
399
|
*/
|
370
|
-
lockPost(form: LockPost): Promise<PostResponse>;
|
400
|
+
lockPost(form: LockPost, options?: RequestOptions): Promise<PostResponse>;
|
371
401
|
/**
|
372
402
|
* A moderator can feature a community post ( IE stick it to the top of a community ).
|
373
403
|
*
|
374
404
|
* `HTTP.POST /post/feature`
|
375
405
|
*/
|
376
|
-
featurePost(form: FeaturePost): Promise<PostResponse>;
|
406
|
+
featurePost(form: FeaturePost, options?: RequestOptions): Promise<PostResponse>;
|
377
407
|
/**
|
378
408
|
* Get / fetch posts, with various filters.
|
379
409
|
*
|
380
410
|
* `HTTP.GET /post/list`
|
381
411
|
*/
|
382
|
-
getPosts(form?: GetPosts): Promise<GetPostsResponse>;
|
412
|
+
getPosts(form?: GetPosts, options?: RequestOptions): Promise<GetPostsResponse>;
|
383
413
|
/**
|
384
414
|
* Like / vote on a post.
|
385
415
|
*
|
386
416
|
* `HTTP.POST /post/like`
|
387
417
|
*/
|
388
|
-
likePost(form: CreatePostLike): Promise<PostResponse>;
|
418
|
+
likePost(form: CreatePostLike, options?: RequestOptions): Promise<PostResponse>;
|
389
419
|
/**
|
390
420
|
* List a post's likes. Admin-only.
|
391
421
|
*
|
392
422
|
* `HTTP.GET /post/like/list`
|
393
423
|
*/
|
394
|
-
listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
|
424
|
+
listPostLikes(form: ListPostLikes, options?: RequestOptions): Promise<ListPostLikesResponse>;
|
395
425
|
/**
|
396
426
|
* Save a post.
|
397
427
|
*
|
398
428
|
* `HTTP.PUT /post/save`
|
399
429
|
*/
|
400
|
-
savePost(form: SavePost): Promise<PostResponse>;
|
430
|
+
savePost(form: SavePost, options?: RequestOptions): Promise<PostResponse>;
|
401
431
|
/**
|
402
432
|
* Report a post.
|
403
433
|
*
|
404
434
|
* `HTTP.POST /post/report`
|
405
435
|
*/
|
406
|
-
createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
|
436
|
+
createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<PostReportResponse>;
|
407
437
|
/**
|
408
438
|
* Resolve a post report. Only a mod can do this.
|
409
439
|
*
|
410
440
|
* `HTTP.PUT /post/report/resolve`
|
411
441
|
*/
|
412
|
-
resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
|
442
|
+
resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse>;
|
413
443
|
/**
|
414
444
|
* List post reports.
|
415
445
|
*
|
416
446
|
* `HTTP.GET /post/report/list`
|
417
447
|
*/
|
418
|
-
listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
|
448
|
+
listPostReports(form: ListPostReports, options?: RequestOptions): Promise<ListPostReportsResponse>;
|
419
449
|
/**
|
420
450
|
* Fetch metadata for any given site.
|
421
451
|
*
|
422
452
|
* `HTTP.GET /post/site_metadata`
|
423
453
|
*/
|
424
|
-
getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
|
454
|
+
getSiteMetadata(form: GetSiteMetadata, options?: RequestOptions): Promise<GetSiteMetadataResponse>;
|
425
455
|
/**
|
426
456
|
* Create a comment.
|
427
457
|
*
|
428
458
|
* `HTTP.POST /comment`
|
429
459
|
*/
|
430
|
-
createComment(form: CreateComment): Promise<CommentResponse>;
|
460
|
+
createComment(form: CreateComment, options?: RequestOptions): Promise<CommentResponse>;
|
431
461
|
/**
|
432
462
|
* Edit a comment.
|
433
463
|
*
|
434
464
|
* `HTTP.PUT /comment`
|
435
465
|
*/
|
436
|
-
editComment(form: EditComment): Promise<CommentResponse>;
|
466
|
+
editComment(form: EditComment, options?: RequestOptions): Promise<CommentResponse>;
|
437
467
|
/**
|
438
468
|
* Delete a comment.
|
439
469
|
*
|
440
470
|
* `HTTP.POST /comment/delete`
|
441
471
|
*/
|
442
|
-
deleteComment(form: DeleteComment): Promise<CommentResponse>;
|
472
|
+
deleteComment(form: DeleteComment, options?: RequestOptions): Promise<CommentResponse>;
|
443
473
|
/**
|
444
474
|
* A moderator remove for a comment.
|
445
475
|
*
|
446
476
|
* `HTTP.POST /comment/remove`
|
447
477
|
*/
|
448
|
-
removeComment(form: RemoveComment): Promise<CommentResponse>;
|
478
|
+
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
449
479
|
/**
|
450
480
|
* Mark a comment as read.
|
451
481
|
*
|
452
482
|
* `HTTP.POST /comment/mark_as_read`
|
453
483
|
*/
|
454
|
-
markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<CommentReplyResponse>;
|
484
|
+
markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<CommentReplyResponse>;
|
455
485
|
/**
|
456
486
|
* Like / vote on a comment.
|
457
487
|
*
|
458
488
|
* `HTTP.POST /comment/like`
|
459
489
|
*/
|
460
|
-
likeComment(form: CreateCommentLike): Promise<CommentResponse>;
|
490
|
+
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
461
491
|
/**
|
462
492
|
* List a comment's likes. Admin-only.
|
463
493
|
*
|
464
494
|
* `HTTP.GET /comment/like/list`
|
465
495
|
*/
|
466
|
-
listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
|
496
|
+
listCommentLikes(form: ListCommentLikes, options?: RequestOptions): Promise<ListCommentLikesResponse>;
|
467
497
|
/**
|
468
498
|
* Save a comment.
|
469
499
|
*
|
470
500
|
* `HTTP.PUT /comment/save`
|
471
501
|
*/
|
472
|
-
saveComment(form: SaveComment): Promise<CommentResponse>;
|
502
|
+
saveComment(form: SaveComment, options?: RequestOptions): Promise<CommentResponse>;
|
473
503
|
/**
|
474
504
|
* Distinguishes a comment (speak as moderator)
|
475
505
|
*
|
476
506
|
* `HTTP.POST /comment/distinguish`
|
477
507
|
*/
|
478
|
-
distinguishComment(form: DistinguishComment): Promise<CommentResponse>;
|
508
|
+
distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<CommentResponse>;
|
479
509
|
/**
|
480
510
|
* Get / fetch comments.
|
481
511
|
*
|
482
512
|
* `HTTP.GET /comment/list`
|
483
513
|
*/
|
484
|
-
getComments(form?: GetComments): Promise<GetCommentsResponse>;
|
514
|
+
getComments(form?: GetComments, options?: RequestOptions): Promise<GetCommentsResponse>;
|
485
515
|
/**
|
486
516
|
* Get / fetch comment.
|
487
517
|
*
|
488
518
|
* `HTTP.GET /comment`
|
489
519
|
*/
|
490
|
-
getComment(form: GetComment): Promise<CommentResponse>;
|
520
|
+
getComment(form: GetComment, options?: RequestOptions): Promise<CommentResponse>;
|
491
521
|
/**
|
492
522
|
* Report a comment.
|
493
523
|
*
|
494
524
|
* `HTTP.POST /comment/report`
|
495
525
|
*/
|
496
|
-
createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
|
526
|
+
createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
|
497
527
|
/**
|
498
528
|
* Resolve a comment report. Only a mod can do this.
|
499
529
|
*
|
500
530
|
* `HTTP.PUT /comment/report/resolve`
|
501
531
|
*/
|
502
|
-
resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
|
532
|
+
resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
|
503
533
|
/**
|
504
534
|
* List comment reports.
|
505
535
|
*
|
506
536
|
* `HTTP.GET /comment/report/list`
|
507
537
|
*/
|
508
|
-
listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
|
538
|
+
listCommentReports(form: ListCommentReports, options?: RequestOptions): Promise<ListCommentReportsResponse>;
|
509
539
|
/**
|
510
540
|
* Get / fetch private messages.
|
511
541
|
*
|
512
542
|
* `HTTP.GET /private_message/list`
|
513
543
|
*/
|
514
|
-
getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
|
544
|
+
getPrivateMessages(form: GetPrivateMessages, options?: RequestOptions): Promise<PrivateMessagesResponse>;
|
515
545
|
/**
|
516
546
|
* Create a private message.
|
517
547
|
*
|
518
548
|
* `HTTP.POST /private_message`
|
519
549
|
*/
|
520
|
-
createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
|
550
|
+
createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
521
551
|
/**
|
522
552
|
* Edit a private message.
|
523
553
|
*
|
524
554
|
* `HTTP.PUT /private_message`
|
525
555
|
*/
|
526
|
-
editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
|
556
|
+
editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
527
557
|
/**
|
528
558
|
* Delete a private message.
|
529
559
|
*
|
530
560
|
* `HTTP.POST /private_message/delete`
|
531
561
|
*/
|
532
|
-
deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
|
562
|
+
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
533
563
|
/**
|
534
564
|
* Mark a private message as read.
|
535
565
|
*
|
536
566
|
* `HTTP.POST /private_message/mark_as_read`
|
537
567
|
*/
|
538
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
|
568
|
+
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
539
569
|
/**
|
540
570
|
* Create a report for a private message.
|
541
571
|
*
|
542
572
|
* `HTTP.POST /private_message/report`
|
543
573
|
*/
|
544
|
-
createPrivateMessageReport(form: CreatePrivateMessageReport): Promise<PrivateMessageReportResponse>;
|
574
|
+
createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
|
545
575
|
/**
|
546
576
|
* Resolve a report for a private message.
|
547
577
|
*
|
548
578
|
* `HTTP.PUT /private_message/report/resolve`
|
549
579
|
*/
|
550
|
-
resolvePrivateMessageReport(form: ResolvePrivateMessageReport): Promise<PrivateMessageReportResponse>;
|
580
|
+
resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
|
551
581
|
/**
|
552
582
|
* List private message reports.
|
553
583
|
*
|
554
584
|
* `HTTP.GET /private_message/report/list`
|
555
585
|
*/
|
556
|
-
listPrivateMessageReports(form: ListPrivateMessageReports): Promise<ListPrivateMessageReportsResponse>;
|
586
|
+
listPrivateMessageReports(form: ListPrivateMessageReports, options?: RequestOptions): Promise<ListPrivateMessageReportsResponse>;
|
557
587
|
/**
|
558
588
|
* Register a new user.
|
559
589
|
*
|
560
590
|
* `HTTP.POST /user/register`
|
561
591
|
*/
|
562
|
-
register(form: Register): Promise<LoginResponse>;
|
592
|
+
register(form: Register, options?: RequestOptions): Promise<LoginResponse>;
|
563
593
|
/**
|
564
594
|
* Log into lemmy.
|
565
595
|
*
|
566
596
|
* `HTTP.POST /user/login`
|
567
597
|
*/
|
568
|
-
login(form: Login): Promise<LoginResponse>;
|
598
|
+
login(form: Login, options?: RequestOptions): Promise<LoginResponse>;
|
569
599
|
/**
|
570
600
|
* Invalidate the currently used auth token.
|
571
601
|
*
|
572
602
|
* `HTTP.POST /user/logout`
|
573
603
|
*/
|
574
|
-
logout(): Promise<SuccessResponse>;
|
604
|
+
logout(options?: RequestOptions): Promise<SuccessResponse>;
|
575
605
|
/**
|
576
606
|
* Get the details for a person.
|
577
607
|
*
|
578
608
|
* `HTTP.GET /user`
|
579
609
|
*/
|
580
|
-
getPersonDetails(form?: GetPersonDetails): Promise<GetPersonDetailsResponse>;
|
610
|
+
getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
|
581
611
|
/**
|
582
612
|
* Get mentions for your user.
|
583
613
|
*
|
584
614
|
* `HTTP.GET /user/mention`
|
585
615
|
*/
|
586
|
-
getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
|
616
|
+
getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
|
587
617
|
/**
|
588
618
|
* Mark a person mention as read.
|
589
619
|
*
|
590
620
|
* `HTTP.POST /user/mention/mark_as_read`
|
591
621
|
*/
|
592
|
-
markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
|
622
|
+
markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
|
593
623
|
/**
|
594
624
|
* Get comment replies.
|
595
625
|
*
|
596
626
|
* `HTTP.GET /user/replies`
|
597
627
|
*/
|
598
|
-
getReplies(form: GetReplies): Promise<GetRepliesResponse>;
|
628
|
+
getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
|
599
629
|
/**
|
600
630
|
* Ban a person from your site.
|
601
631
|
*
|
602
632
|
* `HTTP.POST /user/ban`
|
603
633
|
*/
|
604
|
-
banPerson(form: BanPerson): Promise<BanPersonResponse>;
|
634
|
+
banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
|
605
635
|
/**
|
606
636
|
* Get a list of banned users
|
607
637
|
*
|
608
638
|
* `HTTP.GET /user/banned`
|
609
639
|
*/
|
610
|
-
getBannedPersons(): Promise<BannedPersonsResponse>;
|
640
|
+
getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
|
611
641
|
/**
|
612
642
|
* Block a person.
|
613
643
|
*
|
614
644
|
* `HTTP.POST /user/block`
|
615
645
|
*/
|
616
|
-
blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
|
646
|
+
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
|
617
647
|
/**
|
618
648
|
* Fetch a Captcha.
|
619
649
|
*
|
620
650
|
* `HTTP.GET /user/get_captcha`
|
621
651
|
*/
|
622
|
-
getCaptcha(): Promise<GetCaptchaResponse>;
|
652
|
+
getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse>;
|
623
653
|
/**
|
624
654
|
* Delete your account.
|
625
655
|
*
|
626
656
|
* `HTTP.POST /user/delete_account`
|
627
657
|
*/
|
628
|
-
deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
|
658
|
+
deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse>;
|
629
659
|
/**
|
630
660
|
* Reset your password.
|
631
661
|
*
|
632
662
|
* `HTTP.POST /user/password_reset`
|
633
663
|
*/
|
634
|
-
passwordReset(form: PasswordReset): Promise<SuccessResponse>;
|
664
|
+
passwordReset(form: PasswordReset, options?: RequestOptions): Promise<SuccessResponse>;
|
635
665
|
/**
|
636
666
|
* Change your password from an email / token based reset.
|
637
667
|
*
|
638
668
|
* `HTTP.POST /user/password_change`
|
639
669
|
*/
|
640
|
-
passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<SuccessResponse>;
|
670
|
+
passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
|
641
671
|
/**
|
642
672
|
* Mark all replies as read.
|
643
673
|
*
|
644
674
|
* `HTTP.POST /user/mark_all_as_read`
|
645
675
|
*/
|
646
|
-
markAllAsRead(): Promise<GetRepliesResponse>;
|
676
|
+
markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
|
647
677
|
/**
|
648
678
|
* Save your user settings.
|
649
679
|
*
|
650
680
|
* `HTTP.PUT /user/save_user_settings`
|
651
681
|
*/
|
652
|
-
saveUserSettings(form: SaveUserSettings): Promise<SuccessResponse>;
|
682
|
+
saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse>;
|
653
683
|
/**
|
654
684
|
* Change your user password.
|
655
685
|
*
|
656
686
|
* `HTTP.PUT /user/change_password`
|
657
687
|
*/
|
658
|
-
changePassword(form: ChangePassword): Promise<LoginResponse>;
|
688
|
+
changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
|
659
689
|
/**
|
660
690
|
* Get counts for your reports
|
661
691
|
*
|
662
692
|
* `HTTP.GET /user/report_count`
|
663
693
|
*/
|
664
|
-
getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
|
694
|
+
getReportCount(form: GetReportCount, options?: RequestOptions): Promise<GetReportCountResponse>;
|
665
695
|
/**
|
666
696
|
* Get your unread counts
|
667
697
|
*
|
668
698
|
* `HTTP.GET /user/unread_count`
|
669
699
|
*/
|
670
|
-
getUnreadCount(): Promise<GetUnreadCountResponse>;
|
700
|
+
getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
|
671
701
|
/**
|
672
702
|
* Verify your email
|
673
703
|
*
|
674
704
|
* `HTTP.POST /user/verify_email`
|
675
705
|
*/
|
676
|
-
verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
|
706
|
+
verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
|
677
707
|
/**
|
678
708
|
* Add an admin to your site.
|
679
709
|
*
|
680
710
|
* `HTTP.POST /admin/add`
|
681
711
|
*/
|
682
|
-
addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
|
712
|
+
addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
|
683
713
|
/**
|
684
714
|
* Get the unread registration applications count.
|
685
715
|
*
|
686
716
|
* `HTTP.GET /admin/registration_application/count`
|
687
717
|
*/
|
688
|
-
getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
718
|
+
getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
|
689
719
|
/**
|
690
720
|
* List the registration applications.
|
691
721
|
*
|
692
722
|
* `HTTP.GET /admin/registration_application/list`
|
693
723
|
*/
|
694
|
-
listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
|
724
|
+
listRegistrationApplications(form: ListRegistrationApplications, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
|
695
725
|
/**
|
696
726
|
* Approve a registration application
|
697
727
|
*
|
698
728
|
* `HTTP.PUT /admin/registration_application/approve`
|
699
729
|
*/
|
700
|
-
approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
|
730
|
+
approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
|
701
731
|
/**
|
702
732
|
* Get the application a user submitted when they first registered their account
|
703
733
|
*
|
704
734
|
* `HTTP.GET /admin/registration_application`
|
705
735
|
*/
|
706
|
-
getRegistrationApplication(form: GetRegistrationApplication): Promise<RegistrationApplicationResponse>;
|
736
|
+
getRegistrationApplication(form: GetRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
|
707
737
|
/**
|
708
738
|
* Purge / Delete a person from the database.
|
709
739
|
*
|
710
740
|
* `HTTP.POST /admin/purge/person`
|
711
741
|
*/
|
712
|
-
purgePerson(form: PurgePerson): Promise<SuccessResponse>;
|
742
|
+
purgePerson(form: PurgePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
713
743
|
/**
|
714
744
|
* Purge / Delete a community from the database.
|
715
745
|
*
|
716
746
|
* `HTTP.POST /admin/purge/community`
|
717
747
|
*/
|
718
|
-
purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
|
748
|
+
purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
719
749
|
/**
|
720
750
|
* Purge / Delete a post from the database.
|
721
751
|
*
|
722
752
|
* `HTTP.POST /admin/purge/post`
|
723
753
|
*/
|
724
|
-
purgePost(form: PurgePost): Promise<SuccessResponse>;
|
754
|
+
purgePost(form: PurgePost, options?: RequestOptions): Promise<SuccessResponse>;
|
725
755
|
/**
|
726
756
|
* Purge / Delete a comment from the database.
|
727
757
|
*
|
728
758
|
* `HTTP.POST /admin/purge/comment`
|
729
759
|
*/
|
730
|
-
purgeComment(form: PurgeComment): Promise<SuccessResponse>;
|
760
|
+
purgeComment(form: PurgeComment, options?: RequestOptions): Promise<SuccessResponse>;
|
731
761
|
/**
|
732
762
|
* Create a new custom emoji
|
733
763
|
*
|
734
764
|
* `HTTP.POST /custom_emoji`
|
735
765
|
*/
|
736
|
-
createCustomEmoji(form: CreateCustomEmoji): Promise<CustomEmojiResponse>;
|
766
|
+
createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
|
737
767
|
/**
|
738
768
|
* Edit an existing custom emoji
|
739
769
|
*
|
740
770
|
* `HTTP.PUT /custom_emoji`
|
741
771
|
*/
|
742
|
-
editCustomEmoji(form: EditCustomEmoji): Promise<CustomEmojiResponse>;
|
772
|
+
editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
|
743
773
|
/**
|
744
774
|
* Delete a custom emoji
|
745
775
|
*
|
746
776
|
* `HTTP.Post /custom_emoji/delete`
|
747
777
|
*/
|
748
|
-
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
|
778
|
+
deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<SuccessResponse>;
|
779
|
+
/**
|
780
|
+
* List custom emojis
|
781
|
+
*
|
782
|
+
* `HTTP.GET /custom_emoji/list`
|
783
|
+
*/
|
784
|
+
listCustomEmojis(form: ListCustomEmojis, options?: RequestOptions): Promise<ListCustomEmojisResponse>;
|
785
|
+
/**
|
786
|
+
* Create a new tagline
|
787
|
+
*
|
788
|
+
* `HTTP.POST /admin/tagline`
|
789
|
+
*/
|
790
|
+
createTagline(form: CreateTagline, options?: RequestOptions): Promise<TaglineResponse>;
|
791
|
+
/**
|
792
|
+
* Edit an existing tagline
|
793
|
+
*
|
794
|
+
* `HTTP.PUT /admin/tagline`
|
795
|
+
*/
|
796
|
+
editTagline(form: UpdateTagline, options?: RequestOptions): Promise<TaglineResponse>;
|
797
|
+
/**
|
798
|
+
* Delete a tagline
|
799
|
+
*
|
800
|
+
* `HTTP.Post /admin/tagline/delete`
|
801
|
+
*/
|
802
|
+
deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<SuccessResponse>;
|
803
|
+
/**
|
804
|
+
* List taglines
|
805
|
+
*
|
806
|
+
* `HTTP.GET /admin/tagline/list`
|
807
|
+
*/
|
808
|
+
listTaglines(form: ListTaglines, options?: RequestOptions): Promise<ListTaglinesResponse>;
|
809
|
+
/**
|
810
|
+
* Create a new oauth provider method
|
811
|
+
*
|
812
|
+
* `HTTP.POST /oauth_provider`
|
813
|
+
*/
|
814
|
+
createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
|
815
|
+
/**
|
816
|
+
* Edit an existing oauth provider method
|
817
|
+
*
|
818
|
+
* `HTTP.PUT /oauth_provider`
|
819
|
+
*/
|
820
|
+
editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
|
821
|
+
/**
|
822
|
+
* Delete an oauth provider method
|
823
|
+
*
|
824
|
+
* `HTTP.Post /oauth_provider/delete`
|
825
|
+
*/
|
826
|
+
deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<SuccessResponse>;
|
827
|
+
/**
|
828
|
+
* Authenticate with OAuth
|
829
|
+
*
|
830
|
+
* `HTTP.Post /oauth/authenticate`
|
831
|
+
*/
|
832
|
+
authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<LoginResponse>;
|
749
833
|
/**
|
750
834
|
* Fetch federated instances.
|
751
835
|
*
|
752
836
|
* `HTTP.Get /federated_instances`
|
753
837
|
*/
|
754
|
-
getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
|
838
|
+
getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
|
755
839
|
/**
|
756
|
-
* Block an instance.
|
840
|
+
* Block an instance as user.
|
757
841
|
*
|
758
842
|
* `HTTP.Post /site/block`
|
759
843
|
*/
|
760
|
-
|
844
|
+
userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
|
845
|
+
/**
|
846
|
+
* Globally block an instance as admin.
|
847
|
+
*
|
848
|
+
* `HTTP.Post /admin/block_instance`
|
849
|
+
*/
|
850
|
+
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
|
851
|
+
/**
|
852
|
+
* Globally allow an instance as admin.
|
853
|
+
*
|
854
|
+
* `HTTP.Post /admin/allow_instance`
|
855
|
+
*/
|
856
|
+
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
|
761
857
|
/**
|
762
858
|
* Upload an image to the server.
|
763
859
|
*/
|
764
|
-
uploadImage({ image }: UploadImage): Promise<UploadImageResponse>;
|
860
|
+
uploadImage({ image }: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
765
861
|
/**
|
766
862
|
* Delete a pictrs image
|
767
863
|
*/
|
768
|
-
deleteImage({ token, filename }: DeleteImage): Promise<boolean>;
|
864
|
+
deleteImage({ token, filename }: DeleteImage, options?: RequestOptions): Promise<boolean>;
|
769
865
|
/**
|
770
866
|
* Set the headers (can be used to set the auth header)
|
771
867
|
*/
|
@@ -773,3 +869,4 @@ export declare class LemmyHttp {
|
|
773
869
|
[key: string]: string;
|
774
870
|
}): void;
|
775
871
|
}
|
872
|
+
export {};
|