lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-comment-lock.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/http.d.ts +134 -47
- package/dist/http.js +1155 -923
- package/dist/index.d.ts +77 -49
- package/dist/other_types.d.ts +23 -2
- package/dist/types/AdminAdd.d.ts +12 -0
- package/dist/types/AdminAddId.d.ts +1 -0
- package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBan.d.ts +16 -0
- package/dist/types/AdminBanId.d.ts +1 -0
- package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
- package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
- package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +20 -2
- package/dist/types/CommentActions.d.ts +14 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +10 -13
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +7 -13
- package/dist/types/CommentView.d.ts +13 -13
- package/dist/types/Community.d.ts +25 -6
- package/dist/types/CommunityActions.d.ts +29 -0
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +4 -4
- package/dist/types/CommunityView.d.ts +4 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +10 -0
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +18 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +30 -21
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FederationError.d.ts +4 -2
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +6 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +3 -9
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/Instance.d.ts +13 -3
- package/dist/types/InstanceActions.d.ts +18 -0
- package/dist/types/InstanceWithFederationState.d.ts +11 -2
- package/dist/types/LemmyErrorType.d.ts +36 -83
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListNotifications.d.ts +12 -0
- package/dist/types/ListNotificationsResponse.d.ts +13 -0
- package/dist/types/ListPersonContent.d.ts +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -0
- package/dist/types/ListPersonHidden.d.ts +9 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonSaved.d.ts +3 -2
- package/dist/types/ListPersonSavedResponse.d.ts +8 -2
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +3 -2
- package/dist/types/ListReportsResponse.d.ts +6 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +31 -11
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +8 -1
- package/dist/types/LocalUserView.d.ts +2 -4
- package/dist/types/LockComment.d.ts +6 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
- package/dist/types/ModAddToCommunityId.d.ts +1 -0
- package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
- package/dist/types/ModAddToCommunityView.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModEditPost.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockComment.d.ts +14 -0
- package/dist/types/ModLockComment.js +2 -0
- package/dist/types/ModLockCommentId.d.ts +1 -0
- package/dist/types/ModLockCommentView.d.ts +14 -0
- package/dist/types/ModLockCommentView.js +2 -0
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +19 -16
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +3 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/NotificationView.js +2 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PaginationCursor.d.ts +1 -4
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +4 -10
- package/dist/types/PersonActions.d.ts +26 -0
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonSavedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +4 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +18 -3
- package/dist/types/PostActions.d.ts +33 -0
- package/dist/types/PostActions.js +2 -0
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +10 -16
- package/dist/types/PostView.d.ts +13 -18
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +3 -1
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +11 -1
- package/dist/types/Search.d.ts +8 -3
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +6 -0
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/SiteView.d.ts +2 -2
- package/dist/types/Tag.d.ts +7 -13
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UpdatePostNotifications.js +2 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserBlockInstancePersonsParams.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +27 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +11 -7
- package/dist/types/BannedPersonsResponse.d.ts +0 -7
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -31
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/ListInbox.d.ts +0 -11
- package/dist/types/ListInboxResponse.d.ts +0 -7
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModBan.d.ts +0 -14
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonAggregates.d.ts +0 -10
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -31
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -36
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/PostTags.d.ts +0 -7
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminAdd.js} +0 -0
- /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
- /package/dist/types/{CommentAggregates.js → AdminAddView.js} +0 -0
- /package/dist/types/{CommentReply.js → AdminBan.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → AdminBanId.js} +0 -0
- /package/dist/types/{CommentReplyView.js → AdminBanView.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → AdminListUsers.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → AdminRemoveCommunity.js} +0 -0
- /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunityView.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → CommentActions.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → CommunityActions.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{ModAdd.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{ModAddId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunity.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ModAddCommunityView.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{ModAddView.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ModBan.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ModBanView.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModBanId.js → InstanceActions.js} +0 -0
- /package/dist/types/{ModHideCommunityId.js → LikeType.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{ModRemoveCommunity.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommunityView.js → ListNotifications.js} +0 -0
- /package/dist/types/{PersonAggregates.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListPersonHiddenResponse.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListPersonLikedResponse.js} +0 -0
- /package/dist/types/{PostAggregates.js → ListPersonRead.js} +0 -0
- /package/dist/types/{PostTags.js → ListPersonReadResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → LockComment.js} +0 -0
- /package/dist/types/{SiteAggregates.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ModAddToCommunity.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ModAddToCommunityId.js} +0 -0
- /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
- /package/dist/types/{PersonContentCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → NotificationDataType.js} +0 -0
- /package/dist/types/{PersonSavedCombinedPaginationCursor.js → NotificationId.js} +0 -0
- /package/dist/types/{ReportCombinedPaginationCursor.js → NotificationTypes.js} +0 -0
- /package/dist/types/{SearchCombinedPaginationCursor.js → PersonActions.js} +0 -0
- /package/dist/types/{SubscribedType.js → PluginMetadata.js} +0 -0
package/README.md
CHANGED
@@ -52,6 +52,12 @@ Use `pnpm add` to develop and test changes locally:
|
|
52
52
|
|
53
53
|
`pnpm add path/to/lemmy-js-client`
|
54
54
|
|
55
|
+
Alternatively, use `yalc publish` and `yalc add lemmy-js-client`
|
56
|
+
|
57
|
+
## Generating typescript types from lemmy structs
|
58
|
+
|
59
|
+
Run `./scripts/copy_generated_types_from_lemmy.sh`
|
60
|
+
|
55
61
|
## OpenAPI
|
56
62
|
|
57
63
|
To generate OpenAPI docs, run `pnpm tsoa`
|
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Controller } from "tsoa";
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI,
|
1
|
+
import { Controller } from "@tsoa/runtime";
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -10,7 +10,6 @@ import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
10
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
11
11
|
import { BanPerson } from "./types/BanPerson";
|
12
12
|
import { BanPersonResponse } from "./types/BanPersonResponse";
|
13
|
-
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
14
13
|
import { BlockCommunity } from "./types/BlockCommunity";
|
15
14
|
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
16
15
|
import { BlockPerson } from "./types/BlockPerson";
|
@@ -18,11 +17,15 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
18
17
|
import { ChangePassword } from "./types/ChangePassword";
|
19
18
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
20
19
|
import { CommentResponse } from "./types/CommentResponse";
|
20
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
21
21
|
import { CommunityResponse } from "./types/CommunityResponse";
|
22
22
|
import { CreateComment } from "./types/CreateComment";
|
23
23
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
24
24
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
25
25
|
import { CreateCommunity } from "./types/CreateCommunity";
|
26
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
27
|
+
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
28
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
26
29
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
27
30
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
28
31
|
import { CreatePost } from "./types/CreatePost";
|
@@ -35,6 +38,7 @@ import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
|
35
38
|
import { DeleteAccount } from "./types/DeleteAccount";
|
36
39
|
import { DeleteComment } from "./types/DeleteComment";
|
37
40
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
41
|
+
import { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
38
42
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
39
43
|
import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
40
44
|
import { DeletePost } from "./types/DeletePost";
|
@@ -66,11 +70,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
|
|
66
70
|
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
67
71
|
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
68
72
|
import { LockPost } from "./types/LockPost";
|
73
|
+
import { LockComment } from "./types/LockComment";
|
69
74
|
import { Login } from "./types/Login";
|
70
75
|
import { LoginResponse } from "./types/LoginResponse";
|
71
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
72
76
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
73
|
-
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
74
77
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
75
78
|
import { PasswordReset } from "./types/PasswordReset";
|
76
79
|
import { PostReportResponse } from "./types/PostReportResponse";
|
@@ -87,7 +90,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
87
90
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
88
91
|
import { RemovePost } from "./types/RemovePost";
|
89
92
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
90
|
-
import {
|
93
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
91
94
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
92
95
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
93
96
|
import { SaveComment } from "./types/SaveComment";
|
@@ -102,7 +105,6 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
102
105
|
import { UpdateTotp } from "./types/UpdateTotp";
|
103
106
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
104
107
|
import { SuccessResponse } from "./types/SuccessResponse";
|
105
|
-
import { LoginToken } from "./types/LoginToken";
|
106
108
|
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
107
109
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
108
110
|
import { HidePost } from "./types/HidePost";
|
@@ -119,17 +121,34 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
|
|
119
121
|
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
120
122
|
import { ListReportsResponse } from "./types/ListReportsResponse";
|
121
123
|
import { MyUserInfo } from "./types/MyUserInfo";
|
122
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
123
124
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
124
125
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
125
126
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
126
127
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
127
128
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
128
|
-
import { ListInboxResponse } from "./types/ListInboxResponse";
|
129
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
130
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
131
129
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
130
|
+
import { Tag } from "./types/Tag";
|
132
131
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
132
|
+
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
133
|
+
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
134
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
135
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
136
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
137
|
+
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
138
|
+
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
139
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
140
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
141
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
142
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
143
|
+
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
144
|
+
import { NotePerson } from "./types/NotePerson";
|
145
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
146
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
147
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
148
|
+
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
149
|
+
import { ModEditPost } from "./types/ModEditPost";
|
150
|
+
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
151
|
+
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
133
152
|
type RequestOptions = Pick<RequestInit, "signal">;
|
134
153
|
/**
|
135
154
|
* Helps build lemmy HTTP requests.
|
@@ -188,19 +207,27 @@ export declare class LemmyHttp extends Controller {
|
|
188
207
|
/**
|
189
208
|
* @summary List login tokens for your user
|
190
209
|
*/
|
191
|
-
listLogins(options?: RequestOptions): Promise<
|
210
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
192
211
|
/**
|
193
212
|
* @summary Returns an error message if your auth token is invalid
|
194
213
|
*/
|
195
214
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
196
215
|
/**
|
197
|
-
* @summary List all the media for your
|
216
|
+
* @summary List all the media for your account.
|
198
217
|
*/
|
199
218
|
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
219
|
+
/**
|
220
|
+
* @summary Delete media for your account.
|
221
|
+
*/
|
222
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
223
|
+
/**
|
224
|
+
* @summary Delete any media. (Admin only)
|
225
|
+
*/
|
226
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
200
227
|
/**
|
201
228
|
* @summary List all the media known to your instance.
|
202
229
|
*/
|
203
|
-
|
230
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
204
231
|
/**
|
205
232
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
206
233
|
*
|
@@ -214,13 +241,13 @@ export declare class LemmyHttp extends Controller {
|
|
214
241
|
*/
|
215
242
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
216
243
|
/**
|
217
|
-
* @summary Search lemmy.
|
244
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
218
245
|
*/
|
219
246
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
220
247
|
/**
|
221
248
|
* @summary Fetch a non-local / federated object.
|
222
249
|
*/
|
223
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
250
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
224
251
|
/**
|
225
252
|
* @summary Create a new community.
|
226
253
|
*/
|
@@ -285,6 +312,14 @@ export declare class LemmyHttp extends Controller {
|
|
285
312
|
* @summary Get a random community.
|
286
313
|
*/
|
287
314
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
315
|
+
/**
|
316
|
+
* @summary Create a report for a community.
|
317
|
+
*/
|
318
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
319
|
+
/**
|
320
|
+
* @summary Resolve a report for a private message.
|
321
|
+
*/
|
322
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
288
323
|
/**
|
289
324
|
* @summary Create a post.
|
290
325
|
*/
|
@@ -297,6 +332,10 @@ export declare class LemmyHttp extends Controller {
|
|
297
332
|
* @summary Edit a post.
|
298
333
|
*/
|
299
334
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
335
|
+
/**
|
336
|
+
* @summary Mods can change nsfw flag and tags for a post
|
337
|
+
*/
|
338
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
300
339
|
/**
|
301
340
|
* @summary Delete a post.
|
302
341
|
*/
|
@@ -308,7 +347,7 @@ export declare class LemmyHttp extends Controller {
|
|
308
347
|
/**
|
309
348
|
* @summary Mark a post as read.
|
310
349
|
*/
|
311
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
350
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
312
351
|
/**
|
313
352
|
* @summary Mark multiple posts as read.
|
314
353
|
*/
|
@@ -370,11 +409,11 @@ export declare class LemmyHttp extends Controller {
|
|
370
409
|
*/
|
371
410
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
372
411
|
/**
|
373
|
-
* @summary
|
412
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
374
413
|
*/
|
375
|
-
|
414
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
|
376
415
|
/**
|
377
|
-
* @
|
416
|
+
* @Summary Like / vote on a comment.
|
378
417
|
*/
|
379
418
|
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
380
419
|
/**
|
@@ -421,10 +460,6 @@ export declare class LemmyHttp extends Controller {
|
|
421
460
|
* @summary Delete a private message.
|
422
461
|
*/
|
423
462
|
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
424
|
-
/**
|
425
|
-
* @summary Mark a private message as read.
|
426
|
-
*/
|
427
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
428
463
|
/**
|
429
464
|
* @summary Create a report for a private message.
|
430
465
|
*/
|
@@ -454,21 +489,17 @@ export declare class LemmyHttp extends Controller {
|
|
454
489
|
*/
|
455
490
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
456
491
|
/**
|
457
|
-
* @summary
|
492
|
+
* @summary Make a note for a person.
|
458
493
|
*/
|
459
|
-
|
460
|
-
/**
|
461
|
-
* @summary Mark a person post body mention as read.
|
462
|
-
*/
|
463
|
-
markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
494
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
464
495
|
/**
|
465
496
|
* @summary Ban a person from your site.
|
466
497
|
*/
|
467
498
|
banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
|
468
499
|
/**
|
469
|
-
* @summary Get a list of
|
500
|
+
* @summary Get a list of users.
|
470
501
|
*/
|
471
|
-
|
502
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
|
472
503
|
/**
|
473
504
|
* @summary Block a person.
|
474
505
|
*/
|
@@ -493,6 +524,10 @@ export declare class LemmyHttp extends Controller {
|
|
493
524
|
* @summary Mark all replies as read.
|
494
525
|
*/
|
495
526
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
527
|
+
/**
|
528
|
+
* @summary Mark a comment as read.
|
529
|
+
*/
|
530
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
496
531
|
/**
|
497
532
|
* @summary Save your user settings.
|
498
533
|
*/
|
@@ -512,7 +547,7 @@ export declare class LemmyHttp extends Controller {
|
|
512
547
|
/**
|
513
548
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
514
549
|
*/
|
515
|
-
|
550
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
|
516
551
|
/**
|
517
552
|
* @summary Verify your email
|
518
553
|
*/
|
@@ -525,6 +560,18 @@ export declare class LemmyHttp extends Controller {
|
|
525
560
|
* @summary List your saved content.
|
526
561
|
*/
|
527
562
|
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
563
|
+
/**
|
564
|
+
* @summary List your read content.
|
565
|
+
*/
|
566
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
|
567
|
+
/**
|
568
|
+
* @summary List your hidden content.
|
569
|
+
*/
|
570
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
571
|
+
/**
|
572
|
+
* @summary List your liked content.
|
573
|
+
*/
|
574
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
528
575
|
/**
|
529
576
|
* @summary Add an admin to your site.
|
530
577
|
*/
|
@@ -593,6 +640,18 @@ export declare class LemmyHttp extends Controller {
|
|
593
640
|
* @summary List taglines.
|
594
641
|
*/
|
595
642
|
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
|
643
|
+
/**
|
644
|
+
* @summary Create a community post tag.
|
645
|
+
*/
|
646
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
647
|
+
/**
|
648
|
+
* @summary Edit a community post tag.
|
649
|
+
*/
|
650
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
651
|
+
/**
|
652
|
+
* @summary Delete a post tag in a community.
|
653
|
+
*/
|
654
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
596
655
|
/**
|
597
656
|
* @summary Create a new oauth provider method
|
598
657
|
*/
|
@@ -618,9 +677,13 @@ export declare class LemmyHttp extends Controller {
|
|
618
677
|
*/
|
619
678
|
listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
|
620
679
|
/**
|
621
|
-
* @summary Block an instance as user.
|
680
|
+
* @summary Block an instance's communities as a user.
|
681
|
+
*/
|
682
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
683
|
+
/**
|
684
|
+
* @summary Block an instance's persons as a user.
|
622
685
|
*/
|
623
|
-
|
686
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
624
687
|
/**
|
625
688
|
* @summary Globally block an instance as admin.
|
626
689
|
*/
|
@@ -632,7 +695,7 @@ export declare class LemmyHttp extends Controller {
|
|
632
695
|
/**
|
633
696
|
* @summary Upload new user avatar.
|
634
697
|
*/
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
698
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
636
699
|
/**
|
637
700
|
* @summary Delete the user avatar.
|
638
701
|
*/
|
@@ -640,7 +703,7 @@ export declare class LemmyHttp extends Controller {
|
|
640
703
|
/**
|
641
704
|
* @summary Upload new user banner.
|
642
705
|
*/
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
706
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
644
707
|
/**
|
645
708
|
* @summary Delete the user banner.
|
646
709
|
*/
|
@@ -648,23 +711,23 @@ export declare class LemmyHttp extends Controller {
|
|
648
711
|
/**
|
649
712
|
* @summary Upload new community icon.
|
650
713
|
*/
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
714
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
652
715
|
/**
|
653
716
|
* @summary Delete the community icon.
|
654
717
|
*/
|
655
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
718
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
656
719
|
/**
|
657
720
|
* @summary Upload new community banner.
|
658
721
|
*/
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
722
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
660
723
|
/**
|
661
724
|
* @summary Delete the community banner.
|
662
725
|
*/
|
663
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
726
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
664
727
|
/**
|
665
728
|
* @summary Upload new site icon.
|
666
729
|
*/
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
730
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
668
731
|
/**
|
669
732
|
* @summary Delete the site icon.
|
670
733
|
*/
|
@@ -672,7 +735,7 @@ export declare class LemmyHttp extends Controller {
|
|
672
735
|
/**
|
673
736
|
* @summary Upload new site banner.
|
674
737
|
*/
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
738
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
676
739
|
/**
|
677
740
|
* @summary Delete the site banner.
|
678
741
|
*/
|
@@ -681,14 +744,29 @@ export declare class LemmyHttp extends Controller {
|
|
681
744
|
* @summary Upload an image to the server.
|
682
745
|
*/
|
683
746
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
684
|
-
/**
|
685
|
-
* @summary Delete a pictrs image
|
686
|
-
*/
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
688
747
|
/**
|
689
748
|
* @summary Health check for image functionality
|
690
749
|
*/
|
691
750
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
751
|
+
/**
|
752
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
753
|
+
*/
|
754
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
755
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
756
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
757
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
758
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
759
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
760
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
761
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
762
|
+
/**
|
763
|
+
* @summary Change notification settings for a community
|
764
|
+
*/
|
765
|
+
updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
766
|
+
/**
|
767
|
+
* @summary Change notification settings for a post
|
768
|
+
*/
|
769
|
+
updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
692
770
|
/**
|
693
771
|
* Set the headers (can be used to set the auth header)
|
694
772
|
*/
|
@@ -696,4 +774,13 @@ export declare class LemmyHttp extends Controller {
|
|
696
774
|
[key: string]: string;
|
697
775
|
}): void;
|
698
776
|
}
|
777
|
+
/**
|
778
|
+
* A Lemmy error type.
|
779
|
+
*
|
780
|
+
* The name is the i18n translatable error code.
|
781
|
+
* The msg is either an empty string, or extra non-translatable info.
|
782
|
+
*/
|
783
|
+
export declare class LemmyError extends Error {
|
784
|
+
constructor(name: string, msg?: string);
|
785
|
+
}
|
699
786
|
export {};
|