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