import { Controller } from "@tsoa/runtime"; import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, UploadImage, GetFederatedInstancesI, ListPersonsI, SearchI, ListInvitationsI } from "./other_types"; import { AddAdmin } from "./types/AddAdmin"; import { AddAdminResponse } from "./types/AddAdminResponse"; import { AddModToCommunity } from "./types/AddModToCommunity"; import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse"; import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication"; import { BanFromCommunity } from "./types/BanFromCommunity"; import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead"; import { BanPerson } from "./types/BanPerson"; import { BlockCommunity } from "./types/BlockCommunity"; import { BlockPerson } from "./types/BlockPerson"; import { ChangePassword } from "./types/ChangePassword"; import { CommentReportResponse } from "./types/CommentReportResponse"; import { CommentResponse } from "./types/CommentResponse"; import { CommunityReportResponse } from "./types/CommunityReportResponse"; import { CommunityResponse } from "./types/CommunityResponse"; import { CreateComment } from "./types/CreateComment"; import { CreateCommentLike } from "./types/CreateCommentLike"; import { CreateCommentReport } from "./types/CreateCommentReport"; import { CreateCommunity } from "./types/CreateCommunity"; import { CreateCommunityReport } from "./types/CreateCommunityReport"; import { CreateCommunityTag } from "./types/CreateCommunityTag"; import { EditCommunityTag } from "./types/EditCommunityTag"; import { CreateCustomEmoji } from "./types/CreateCustomEmoji"; import { CreateOAuthProvider } from "./types/CreateOAuthProvider"; import { CreatePost } from "./types/CreatePost"; import { CreatePostLike } from "./types/CreatePostLike"; import { CreatePostReport } from "./types/CreatePostReport"; import { CreatePrivateMessage } from "./types/CreatePrivateMessage"; import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport"; import { CreateSite } from "./types/CreateSite"; import { CustomEmojiResponse } from "./types/CustomEmojiResponse"; import { DeleteAccount } from "./types/DeleteAccount"; import { DeleteComment } from "./types/DeleteComment"; import { DeleteCommunity } from "./types/DeleteCommunity"; import { DeleteCommunityTag } from "./types/DeleteCommunityTag"; import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji"; import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider"; import { DeletePost } from "./types/DeletePost"; import { DeletePrivateMessage } from "./types/DeletePrivateMessage"; import { DistinguishComment } from "./types/DistinguishComment"; import { EditComment } from "./types/EditComment"; import { EditCommunity } from "./types/EditCommunity"; import { EditCustomEmoji } from "./types/EditCustomEmoji"; import { EditOAuthProvider } from "./types/EditOAuthProvider"; import { EditPost } from "./types/EditPost"; import { EditPrivateMessage } from "./types/EditPrivateMessage"; import { EditSite } from "./types/EditSite"; import { FeaturePost } from "./types/FeaturePost"; import { FollowCommunity } from "./types/FollowCommunity"; import { GetCaptchaResponse } from "./types/GetCaptchaResponse"; import { GetCommunityResponse } from "./types/GetCommunityResponse"; import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse"; import { GetPostResponse } from "./types/GetPostResponse"; import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse"; import { GetSiteResponse } from "./types/GetSiteResponse"; import { LockPost } from "./types/LockPost"; import { LockComment } from "./types/LockComment"; import { Login } from "./types/Login"; import { LoginResponse } from "./types/LoginResponse"; import { MarkPostAsRead } from "./types/MarkPostAsRead"; import { ChangePasswordAfterReset } from "./types/ChangePasswordAfterReset"; import { ResetPassword } from "./types/ResetPassword"; import { PostReportResponse } from "./types/PostReportResponse"; import { PostResponse } from "./types/PostResponse"; import { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse"; import { PrivateMessageResponse } from "./types/PrivateMessageResponse"; import { PurgeComment } from "./types/PurgeComment"; import { PurgeCommunity } from "./types/PurgeCommunity"; import { PurgePerson } from "./types/PurgePerson"; import { PurgePost } from "./types/PurgePost"; import { Register } from "./types/Register"; import { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse"; import { RemoveComment } from "./types/RemoveComment"; import { RemoveCommunity } from "./types/RemoveCommunity"; import { RemovePost } from "./types/RemovePost"; import { ResolveCommentReport } from "./types/ResolveCommentReport"; import { ResolveCommunityReport } from "./types/ResolveCommunityReport"; import { ResolvePostReport } from "./types/ResolvePostReport"; import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport"; import { SaveComment } from "./types/SaveComment"; import { SavePost } from "./types/SavePost"; import { SaveUserSettings } from "./types/SaveUserSettings"; import { SiteResponse } from "./types/SiteResponse"; import { TransferCommunity } from "./types/TransferCommunity"; import { VerifyEmail } from "./types/VerifyEmail"; import { HideCommunity } from "./types/HideCommunity"; import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse"; import { EditTotp } from "./types/EditTotp"; import { EditTotpResponse } from "./types/EditTotpResponse"; import { SuccessResponse } from "./types/SuccessResponse"; import { HidePost } from "./types/HidePost"; import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth"; import { CreateTagline } from "./types/CreateTagline"; import { TaglineResponse } from "./types/TaglineResponse"; import { EditTagline } from "./types/EditTagline"; import { DeleteTagline } from "./types/DeleteTagline"; import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse"; import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower"; import { MyUserInfo } from "./types/MyUserInfo"; import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams"; import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams"; import { UploadImageResponse } from "./types/UploadImageResponse"; import { CommunityTag } from "./types/CommunityTag"; import { ResendVerificationEmail } from "./types/ResendVerificationEmail"; import { CommunityIdQuery } from "./types/CommunityIdQuery"; import { CreateMultiCommunity } from "./types/CreateMultiCommunity"; import { EditMultiCommunity } from "./types/EditMultiCommunity"; import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry"; import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse"; import { FollowMultiCommunity } from "./types/FollowMultiCommunity"; import { ListLoginsResponse } from "./types/ListLoginsResponse"; import { NotePerson } from "./types/NotePerson"; import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams"; import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams"; import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead"; import { ModEditPost } from "./types/ModEditPost"; import { EditCommunityNotifications } from "./types/EditCommunityNotifications"; import { EditPostNotifications } from "./types/EditPostNotifications"; import { MultiCommunityResponse } from "./types/MultiCommunityResponse"; import { PersonResponse } from "./types/PersonResponse"; import { LocalImageView } from "./types/LocalImageView"; import { PagedResponse } from "./types/PagedResponse"; import { ModlogView } from "./types/ModlogView"; import { CommunityView } from "./types/CommunityView"; import { PendingFollowerView } from "./types/PendingFollowerView"; import { PostView } from "./types/PostView"; import { VoteView } from "./types/VoteView"; import { CommentView } from "./types/CommentView"; import { CommentSlimView } from "./types/CommentSlimView"; import { LocalUserView } from "./types/LocalUserView"; import { NotificationView } from "./types/NotificationView"; import { RegistrationApplicationView } from "./types/RegistrationApplicationView"; import { Tagline } from "./types/Tagline"; import { ReportCombinedView } from "./types/ReportCombinedView"; import { FederatedInstanceView } from "./types/FederatedInstanceView"; import { MultiCommunityView } from "./types/MultiCommunityView"; import { PostCommentCombinedView } from "./types/PostCommentCombinedView"; import { UnreadCountsResponse } from "./types/UnreadCountsResponse"; import { AdminOAuthProvider } from "./types/AdminOAuthProvider"; import { CreatePostWarning } from "./types/CreatePostWarning"; import { CreateCommentWarning } from "./types/CreateCommentWarning"; import { ResolveObjectView } from "./types/ResolveObjectView"; import { PersonView } from "./types/PersonView"; import { NodeInfo } from "./types/NodeInfo"; import { UserSettingsBackup } from "./types/UserSettingsBackup"; import { SearchResponse } from "./types/SearchResponse"; import { RequestState } from "./request_state"; import { CreateInvitation } from "./types/CreateInvitation"; import { CreateInvitationResponse } from "./types/CreateInvitationResponse"; import { RevokeInvitation } from "./types/RevokeInvitation"; import { LocalUserInvite } from "./types/LocalUserInvite"; declare enum HttpType { Get = "GET", Post = "POST", Put = "PUT", Delete = "DELETE" } type RequestOptions = Pick; declare class LemmyController extends Controller { #private; /** * Generates a new instance of LemmyHttp. * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX * @param headers optional headers. Should contain `x-real-ip` and `x-forwarded-for` . */ constructor(baseUrl: string, options?: { fetchFunction?: typeof fetch; headers?: { [key: string]: string; }; }); upload(path: string, { image }: UploadImage, options?: RequestOptions): Promise>; uploadWithQuery(path: string, query: QueryType, { image }: UploadImage, options?: RequestOptions): Promise>; wrapper(type_: HttpType, endpoint: string, form: BodyType, options: RequestOptions | undefined, no_prefix?: boolean): Promise>; /** * Set the headers (can be used to set the auth header) */ setHeaders(headers: { [key: string]: string; }): void; } /** * Helps build lemmy HTTP requests. */ export declare class LemmyHttp extends LemmyController { /** * @summary Gets the site, and your user data. */ getSite(options?: RequestOptions): Promise>; /** * @summary Create your site. */ createSite(form: CreateSite, options?: RequestOptions): Promise>; /** * @summary Edit your site. */ editSite(form: EditSite, options?: RequestOptions): Promise>; /** * @summary Leave the Site admins. */ leaveAdmin(options?: RequestOptions): Promise>; /** * @summary Generate a TOTP / two-factor secret. * * Generate a TOTP / two-factor secret. * Afterwards you need to call `/account/auth/totp/edit` with a valid token to enable it. */ generateTotpSecret(options?: RequestOptions): Promise>; /** * @summary Get data of current user. */ getMyUser(options?: RequestOptions): Promise>; /** * @summary Export a backup of your user settings. * * Export a backup of your user settings, including your saved content, * followed communities, and blocks. */ exportUserSettings(options?: RequestOptions): Promise>; /** * @summary Import a backup of your user settings. */ importUserSettings(form: UserSettingsBackup, options?: RequestOptions): Promise>; /** * @summary List login tokens for your user */ listLogins(options?: RequestOptions): Promise>; /** * @summary Returns an error message if your auth token is invalid */ validateAuth(options?: RequestOptions): Promise>; /** * @summary List all the media for your account. */ listMedia(form?: ListMediaI, options?: RequestOptions): Promise>>; /** * @summary Delete media for your account. */ deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise>; /** * @summary Delete any media. (Admin only) */ adminDeleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise>; /** * @summary List all the media known to your instance. */ adminListMedia(form?: ListMediaI, options?: RequestOptions): Promise>>; /** * @summary Enable / Disable TOTP / two-factor authentication. * * To enable, you need to first call `/account/auth/totp/generate` and then pass a valid token to this. * * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token. */ editTotp(form: EditTotp, options?: RequestOptions): Promise>; /** * @summary Get the modlog. */ getModlog(form?: GetModlogI, options?: RequestOptions): Promise>>; /** * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`. */ search(form: SearchI, options?: RequestOptions): Promise>; /** * @summary Fetch a non-local / federated object. */ resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise>; /** * @summary Create a new community. */ createCommunity(form: CreateCommunity, options?: RequestOptions): Promise>; /** * @summary Get / fetch a community. */ getCommunity(form?: GetCommunityI, options?: RequestOptions): Promise>; /** * @summary Edit a community. */ editCommunity(form: EditCommunity, options?: RequestOptions): Promise>; /** * @summary List communities, with various filters. */ listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise>>; /** * @summary Follow / subscribe to a community. */ followCommunity(form: FollowCommunity, options?: RequestOptions): Promise>; /** * @summary Returns the amount of unread items of various types. For normal users this means * the number of unread notifications, mods and admins get additional unread counts for * reports, registration applications and pending follows to private communities. */ getUnreadCounts(options?: RequestOptions): Promise>; /** * @summary Get a community's pending followers. */ listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise>>; /** * @summary Approve a community pending follow request. */ approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise>; /** * @summary Block a community. */ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise>; /** * @summary Delete a community. */ deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise>; /** * @summary Hide a community from public / "All" view. Admins only. */ hideCommunity(form: HideCommunity, options?: RequestOptions): Promise>; /** * @summary A moderator remove for a community. */ removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise>; /** * @summary Transfer your community to an existing moderator. */ transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise>; /** * @summary Ban a user from a community. */ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise>; /** * @summary Add a moderator to your community. */ addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise>; /** * @summary Get a random community. */ getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise>; /** * @summary Create a report for a community. */ createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise>; /** * @summary Resolve a report for a private message. */ resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise>; /** * @summary Create a post. */ createPost(form: CreatePost, options?: RequestOptions): Promise>; /** * @summary Get / fetch a post. */ getPost(form?: GetPostI, options?: RequestOptions): Promise>; /** * @summary Edit a post. */ editPost(form: EditPost, options?: RequestOptions): Promise>; /** * @summary Mods can change nsfw flag and tags for a post */ modEditPost(form: ModEditPost, options?: RequestOptions): Promise>; /** * @summary Creates a warning against a post and notifies the user. */ warnPost(form: CreatePostWarning, options?: RequestOptions): Promise>; /** * @summary Delete a post. */ deletePost(form: DeletePost, options?: RequestOptions): Promise>; /** * @summary A moderator remove for a post. */ removePost(form: RemovePost, options?: RequestOptions): Promise>; /** * @summary Mark a post as read. */ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise>; /** * @summary Mark multiple posts as read. */ markManyPostsAsRead(form: MarkManyPostsAsRead, options?: RequestOptions): Promise>; /** * @summary Hide a post from list views. */ hidePost(form: HidePost, options?: RequestOptions): Promise>; /** * @summary A moderator can lock a post ( IE disable new comments ). */ lockPost(form: LockPost, options?: RequestOptions): Promise>; /** * @summary A moderator can feature a community post ( IE stick it to the top of a community ). */ featurePost(form: FeaturePost, options?: RequestOptions): Promise>; /** * @summary Get / fetch posts, with various filters. */ getPosts(form?: GetPostsI, options?: RequestOptions): Promise>>; /** * @summary Like / vote on a post. */ likePost(form: CreatePostLike, options?: RequestOptions): Promise>; /** * @summary List a post's likes. Admin-only. */ listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise>>; /** * @summary Save a post. */ savePost(form: SavePost, options?: RequestOptions): Promise>; /** * @summary Report a post. */ createPostReport(form: CreatePostReport, options?: RequestOptions): Promise>; /** * @summary Resolve a post report. Only a mod can do this. */ resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise>; /** * @summary Fetch metadata for any given site. */ getSiteMetadata(form: GetSiteMetadataI, options?: RequestOptions): Promise>; /** * @summary Create a comment. */ createComment(form: CreateComment, options?: RequestOptions): Promise>; /** * @summary Edit a comment. */ editComment(form: EditComment, options?: RequestOptions): Promise>; /** * @summary Delete a comment. */ deleteComment(form: DeleteComment, options?: RequestOptions): Promise>; /** * @summary A moderator remove for a comment. */ removeComment(form: RemoveComment, options?: RequestOptions): Promise>; /** * @summary A moderator can lock a comment (IE disable replies). */ lockComment(form: LockComment, options?: RequestOptions): Promise>; /** * @Summary Like / vote on a comment. */ likeComment(form: CreateCommentLike, options?: RequestOptions): Promise>; /** * @summary List a comment's likes. Admin-only. */ listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise>>; /** * @summary Save a comment. */ saveComment(form: SaveComment, options?: RequestOptions): Promise>; /** * @summary Distinguishes a comment (speak as moderator) */ distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise>; /** * @summary Get / fetch comments. */ getComments(form?: GetCommentsI, options?: RequestOptions): Promise>>; /** * @summary Get / fetch comments, but without the post or community. */ getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise>>; /** * @summary Get / fetch comment. */ getComment(form: GetCommentI, options?: RequestOptions): Promise>; /** * @summary Creates a warning against a comment and notifies the user. */ warnComment(form: CreateCommentWarning, options?: RequestOptions): Promise>; /** * @summary Report a comment. */ createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise>; /** * @summary Resolve a comment report. Only a mod can do this. */ resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise>; /** * @summary Create a private message. */ createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise>; /** * @summary Edit a private message. */ editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise>; /** * @summary Delete a private message. */ deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise>; /** * @summary Create a report for a private message. */ createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise>; /** * @summary Resolve a report for a private message. */ resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise>; /** * @summary Register a new user. */ register(form: Register, options?: RequestOptions): Promise>; /** * @summary Log into lemmy. */ login(form: Login, options?: RequestOptions): Promise>; /** * @summary Invalidate the currently used auth token. */ logout(options?: RequestOptions): Promise>; /** * @summary Get the details for a person. */ getPersonDetails(form?: GetPersonDetailsI, options?: RequestOptions): Promise>; /** * @summary List the content for a person. */ listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise>>; /** * @summary Make a note for a person. */ notePerson(form: NotePerson, options?: RequestOptions): Promise>; /** * @summary List persons. */ listPersons(form?: ListPersonsI, options?: RequestOptions): Promise>>; /** * @summary Ban a person from your site. */ banPerson(form: BanPerson, options?: RequestOptions): Promise>; /** * @summary Get a list of users. */ adminListUsers(form?: AdminListUsersI, options?: RequestOptions): Promise>>; /** * @summary Block a person. */ blockPerson(form: BlockPerson, options?: RequestOptions): Promise>; /** * @summary Fetch a Captcha. */ getCaptcha(options?: RequestOptions): Promise>; /** * @summary Delete your account. */ deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise>; /** * @summary Reset your password. */ resetPassword(form: ResetPassword, options?: RequestOptions): Promise>; /** * @summary Change your password from an email / token based reset. */ changePasswordAfterReset(form: ChangePasswordAfterReset, options?: RequestOptions): Promise>; /** * @summary Mark all notifications as read. */ markAllNotificationsAsRead(options?: RequestOptions): Promise>; /** * @summary Mark a notification as read. */ markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise>; /** * @summary Save your user settings. */ saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise>; /** * @summary Change your user password. */ changePassword(form: ChangePassword, options?: RequestOptions): Promise>; /** * @summary Get your inbox (replies, comment mentions, post mentions, and messages) */ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise>>; /** * @summary Verify your email */ verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise>; /** * @summary Resend a verification email. */ resendVerificationEmail(form: ResendVerificationEmail, options?: RequestOptions): Promise>; /** * @summary List your saved content. */ listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise>>; /** * @summary List your read content. */ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise>>; /** * @summary List your hidden content. */ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise>>; /** * @summary List your liked content. */ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise>>; /** * @summary Add an admin to your site. */ addAdmin(form: AddAdmin, options?: RequestOptions): Promise>; /** * @summary List the registration applications. */ listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise>>; /** * @summary Approve a registration application */ approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise>; /** * @summary Get the application a user submitted when they first registered their account */ getRegistrationApplication(form: GetRegistrationApplicationI, options?: RequestOptions): Promise>; /** * @summary Purge / Delete a person from the database. */ purgePerson(form: PurgePerson, options?: RequestOptions): Promise>; /** * @summary Purge / Delete a community from the database. */ purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise>; /** * @summary Purge / Delete a post from the database. */ purgePost(form: PurgePost, options?: RequestOptions): Promise>; /** * @summary Purge / Delete a comment from the database. */ purgeComment(form: PurgeComment, options?: RequestOptions): Promise>; /** * @summary Create a new custom emoji. */ createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise>; /** * @summary Edit an existing custom emoji. */ editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise>; /** * @summary Delete a custom emoji. */ deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise>; /** * @summary List custom emojis */ listCustomEmojis(form: ListCustomEmojisI, options?: RequestOptions): Promise>; /** * @summary Create a new tagline */ createTagline(form: CreateTagline, options?: RequestOptions): Promise>; /** * @summary Edit an existing tagline */ editTagline(form: EditTagline, options?: RequestOptions): Promise>; /** * @summary Delete a tagline */ deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise>; /** * @summary List taglines. */ listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise>>; /** * @summary Create a community post tag. */ createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise>; /** * @summary Edit a community post tag. */ editCommunityTag(form: EditCommunityTag, options?: RequestOptions): Promise>; /** * @summary Delete a post tag in a community. */ deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise>; /** * @summary Create a new oauth provider method */ createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise>; /** * @summary Edit an existing oauth provider method */ editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise>; /** * @summary Delete an oauth provider method */ deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise>; /** * @summary Authenticate with OAuth */ authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise>; /** * @summary Fetch federated instances. */ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise>>; /** * @summary List user reports. */ listReports(form: ListReportsI, options?: RequestOptions): Promise>>; /** * @summary Block an instance's communities as a user. */ userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise>; /** * @summary Block an instance's persons as a user. */ userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise>; /** * @summary Globally block an instance as admin. */ adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise>; /** * @summary Globally allow an instance as admin. */ adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise>; /** * @summary Upload new user avatar. */ uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the user avatar. */ deleteUserAvatar(options?: RequestOptions): Promise>; /** * @summary Upload new user banner. */ uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the user banner. */ deleteUserBanner(options?: RequestOptions): Promise>; /** * @summary Upload new community icon. */ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the community icon. */ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise>; /** * @summary Upload new community banner. */ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the community banner. */ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise>; /** * @summary Upload new site icon. */ uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the site icon. */ deleteSiteIcon(options?: RequestOptions): Promise>; /** * @summary Upload new site banner. */ uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Delete the site banner. */ deleteSiteBanner(options?: RequestOptions): Promise>; /** * @summary Upload an image to the server. */ uploadImage(image: UploadImage, options?: RequestOptions): Promise>; /** * @summary Health check for image functionality */ imageHealth(options?: RequestOptions): Promise>; /** * Mark the donation dialog as shown, so it isn't displayed anymore. */ markDonationDialogShown(options?: RequestOptions): Promise>; createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise>; editMultiCommunity(form: EditMultiCommunity, options?: RequestOptions): Promise>; getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise>; createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise>; deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise>; listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise>>; followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise>; /** * @summary Change notification settings for a community */ editCommunityNotifications(form: EditCommunityNotifications, options?: RequestOptions): Promise>; /** * @summary Change notification settings for a post */ editPostNotifications(form: EditPostNotifications, options?: RequestOptions): Promise>; /** * @summary Create a new registration invitation */ createRegistrationInvitation(form: CreateInvitation, options?: RequestOptions): Promise>; /** * @summary Revoke a previously created registration invitation */ revokeRegistrationInvitation(form: RevokeInvitation, options?: RequestOptions): Promise>; /** * @summary Revoke a previously created registration invitation */ listRegistrationInvitations(form: ListInvitationsI, options?: RequestOptions): Promise>>; } export declare class NodeInfoHttp extends LemmyController { /** * @summary Metadata for the instance */ nodeinfo(options?: RequestOptions): Promise>; } /** * A Lemmy error type. * * The name is the i18n translatable error code. * The message is either an empty string, or extra non-translatable info. */ export declare class LemmyError extends Error { name: string; status: number; message: string; cause: unknown; constructor(name: string, status: number, message?: string, cause?: unknown); } export {};