lemmy-js-client 1.0.0-media-fixes.1 → 1.0.0-merge-modlog-tables.2
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 +110 -49
- package/dist/http.js +281 -85
- package/dist/index.d.ts +80 -15
- package/dist/other_types.d.ts +22 -7
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
- package/dist/types/AdminPurgeComment.d.ts +4 -8
- package/dist/types/AdminPurgeCommunity.d.ts +4 -8
- package/dist/types/AdminPurgePerson.d.ts +4 -8
- package/dist/types/AdminPurgePost.d.ts +4 -8
- package/dist/types/AllLemmyErrors.d.ts +1 -0
- package/dist/types/AllLemmyErrors.js +117 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/BanFromCommunity.d.ts +2 -2
- package/dist/types/BanPerson.d.ts +2 -2
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/Comment.d.ts +6 -2
- package/dist/types/CommentActions.d.ts +6 -10
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentAggregates.d.ts +9 -0
- package/dist/types/CommentReply.d.ts +2 -5
- package/dist/types/CommentReplyId.d.ts +0 -3
- package/dist/types/CommentReplyView.d.ts +0 -5
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +12 -13
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +0 -3
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +4 -5
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +11 -17
- package/dist/types/CommunityAggregates.d.ts +13 -0
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityNotificationsMode.js +3 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +0 -2
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateMultiCommunity.js +3 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +17 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/CustomEmojiView.d.ts +2 -5
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +30 -20
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationAllowList.js +3 -0
- package/dist/types/FederationBlockList.d.ts +3 -5
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationMode.d.ts +1 -1
- package/dist/types/FederationQueueState.d.ts +18 -0
- 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/GetFederatedInstances.d.ts +9 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetFederatedInstancesKind.js +3 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +3 -2
- package/dist/types/GetMultiCommunity.d.ts +5 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +5 -11
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +8 -8
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +40 -94
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -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 +4 -2
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +8 -2
- 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/{ListInbox.d.ts → ListNotifications.d.ts} +4 -3
- package/dist/types/ListNotifications.js +2 -0
- package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +4 -3
- package/dist/types/ListNotificationsResponse.js +2 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- 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 +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -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 +9 -10
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +13 -14
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LocalUserVoteDisplayMode.d.ts +8 -0
- package/dist/types/LocalUserVoteDisplayMode.js +2 -0
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockComment.js +2 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +7 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/MarkNotificationAsRead.js +2 -0
- package/dist/types/ModAdd.d.ts +4 -8
- package/dist/types/ModAddCommunity.d.ts +4 -8
- package/dist/types/ModBan.d.ts +4 -10
- package/dist/types/ModBanFromCommunity.d.ts +4 -8
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModEditPost.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +4 -8
- package/dist/types/ModHideCommunity.d.ts +10 -0
- package/dist/types/ModHideCommunity.js +2 -0
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModHideCommunityView.d.ts +11 -0
- package/dist/types/ModHideCommunityView.js +2 -0
- package/dist/types/ModLockPost.d.ts +4 -8
- package/dist/types/ModRemoveComment.d.ts +4 -8
- package/dist/types/ModRemoveCommunity.d.ts +4 -8
- package/dist/types/ModRemovePost.d.ts +4 -8
- package/dist/types/ModTransferCommunity.d.ts +4 -8
- package/dist/types/Modlog.d.ts +9 -0
- package/dist/types/Modlog.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -4
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogId.js +3 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogKind.js +3 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/ModlogView.js +2 -0
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/MultiCommunityEntry.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/MultiCommunityId.js +3 -0
- package/dist/types/MultiCommunityResponse.d.ts +4 -0
- package/dist/types/MultiCommunityResponse.js +2 -0
- package/dist/types/MultiCommunityView.d.ts +8 -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 +18 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationData.d.ts +13 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationDataType.js +3 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationId.js +3 -0
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationType.js +3 -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/PendingFollowerView.d.ts +9 -0
- package/dist/types/PendingFollowerView.js +2 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonAggregates.d.ts +6 -0
- package/dist/types/PersonAggregates.js +2 -0
- package/dist/types/PersonCommentMentionView.d.ts +0 -3
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonMention.d.ts +10 -0
- package/dist/types/PersonMention.js +2 -0
- package/dist/types/PersonMentionId.d.ts +1 -0
- package/dist/types/PersonMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +0 -5
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonResponse.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonView.d.ts +4 -4
- package/dist/types/Post.d.ts +9 -7
- package/dist/types/PostActions.d.ts +15 -17
- package/dist/types/PostAggregates.d.ts +10 -0
- package/dist/types/PostAggregates.js +2 -0
- package/dist/types/PostFeatureType.d.ts +1 -1
- package/dist/types/PostListingMode.d.ts +1 -1
- 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 +15 -13
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PostView.d.ts +4 -5
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +3 -6
- package/dist/types/PurgeComment.d.ts +1 -1
- package/dist/types/PurgeCommunity.d.ts +1 -1
- package/dist/types/PurgePerson.d.ts +1 -1
- package/dist/types/PurgePost.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/RegistrationApplicationView.d.ts +2 -5
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +1 -1
- package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ReportCombinedPaginationCursor.js +3 -0
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +12 -6
- package/dist/types/Search.d.ts +6 -1
- package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/SearchCombinedPaginationCursor.js +3 -0
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteAggregates.d.ts +12 -0
- package/dist/types/SiteAggregates.js +2 -0
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/SiteView.d.ts +4 -7
- package/dist/types/SortType.d.ts +1 -0
- package/dist/types/SortType.js +3 -0
- package/dist/types/SubscribedType.d.ts +1 -0
- package/dist/types/SubscribedType.js +3 -0
- package/dist/types/Tag.d.ts +8 -16
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UntranslatedError.d.ts +14 -0
- package/dist/types/UntranslatedError.js +3 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- 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 +29 -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 +2 -5
- package/package.json +7 -6
- package/dist/types/BanPersonResponse.d.ts +0 -8
- package/dist/types/BlockCommunityResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.d.ts +0 -8
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- 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/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BanPersonResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → CommentAggregates.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → CommunityAggregates.js} +0 -0
- /package/dist/types/{FederatedInstances.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → FederationQueueState.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ListMultiCommunitiesResponse.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
1
|
import { Controller } from "@tsoa/runtime";
|
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI,
|
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, 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";
|
|
@@ -9,21 +9,20 @@ import { BanFromCommunity } from "./types/BanFromCommunity";
|
|
|
9
9
|
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
10
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
11
11
|
import { BanPerson } from "./types/BanPerson";
|
|
12
|
-
import { BanPersonResponse } from "./types/BanPersonResponse";
|
|
13
|
-
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
|
14
12
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
15
|
-
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
16
13
|
import { BlockPerson } from "./types/BlockPerson";
|
|
17
|
-
import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
18
14
|
import { ChangePassword } from "./types/ChangePassword";
|
|
19
15
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
|
20
16
|
import { CommentResponse } from "./types/CommentResponse";
|
|
17
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
|
21
18
|
import { CommunityResponse } from "./types/CommunityResponse";
|
|
22
19
|
import { CreateComment } from "./types/CreateComment";
|
|
23
20
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
|
24
21
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
25
22
|
import { CreateCommunity } from "./types/CreateCommunity";
|
|
23
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
|
26
24
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
|
25
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
27
26
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
|
28
27
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
|
29
28
|
import { CreatePost } from "./types/CreatePost";
|
|
@@ -68,11 +67,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
|
|
|
68
67
|
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
69
68
|
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
70
69
|
import { LockPost } from "./types/LockPost";
|
|
70
|
+
import { LockComment } from "./types/LockComment";
|
|
71
71
|
import { Login } from "./types/Login";
|
|
72
72
|
import { LoginResponse } from "./types/LoginResponse";
|
|
73
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|
74
73
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
75
|
-
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
|
76
74
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
77
75
|
import { PasswordReset } from "./types/PasswordReset";
|
|
78
76
|
import { PostReportResponse } from "./types/PostReportResponse";
|
|
@@ -89,7 +87,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
|
89
87
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
90
88
|
import { RemovePost } from "./types/RemovePost";
|
|
91
89
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
|
92
|
-
import {
|
|
90
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
|
93
91
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
|
94
92
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
|
95
93
|
import { SaveComment } from "./types/SaveComment";
|
|
@@ -98,14 +96,12 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
|
98
96
|
import { SearchResponse } from "./types/SearchResponse";
|
|
99
97
|
import { SiteResponse } from "./types/SiteResponse";
|
|
100
98
|
import { TransferCommunity } from "./types/TransferCommunity";
|
|
101
|
-
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
102
99
|
import { VerifyEmail } from "./types/VerifyEmail";
|
|
103
100
|
import { HideCommunity } from "./types/HideCommunity";
|
|
104
101
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
105
102
|
import { UpdateTotp } from "./types/UpdateTotp";
|
|
106
103
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
107
104
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
108
|
-
import { LoginToken } from "./types/LoginToken";
|
|
109
105
|
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
110
106
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
111
107
|
import { HidePost } from "./types/HidePost";
|
|
@@ -122,18 +118,36 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
|
|
|
122
118
|
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
123
119
|
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
124
120
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
125
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
|
126
121
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
127
122
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
128
123
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
129
124
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
130
125
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
|
131
|
-
import { ListInboxResponse } from "./types/ListInboxResponse";
|
|
132
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
|
133
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
|
134
126
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
135
127
|
import { Tag } from "./types/Tag";
|
|
136
128
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
129
|
+
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
130
|
+
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
131
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
132
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
133
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
134
|
+
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
135
|
+
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
136
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
137
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
138
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
139
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
140
|
+
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
141
|
+
import { NotePerson } from "./types/NotePerson";
|
|
142
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
143
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
144
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
145
|
+
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
146
|
+
import { ModEditPost } from "./types/ModEditPost";
|
|
147
|
+
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
148
|
+
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
149
|
+
import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
150
|
+
import { PersonResponse } from "./types/PersonResponse";
|
|
137
151
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
138
152
|
/**
|
|
139
153
|
* Helps build lemmy HTTP requests.
|
|
@@ -192,7 +206,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
192
206
|
/**
|
|
193
207
|
* @summary List login tokens for your user
|
|
194
208
|
*/
|
|
195
|
-
listLogins(options?: RequestOptions): Promise<
|
|
209
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
|
196
210
|
/**
|
|
197
211
|
* @summary Returns an error message if your auth token is invalid
|
|
198
212
|
*/
|
|
@@ -226,13 +240,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
226
240
|
*/
|
|
227
241
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
|
228
242
|
/**
|
|
229
|
-
* @summary Search lemmy.
|
|
243
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
230
244
|
*/
|
|
231
245
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
|
232
246
|
/**
|
|
233
247
|
* @summary Fetch a non-local / federated object.
|
|
234
248
|
*/
|
|
235
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
|
249
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
|
236
250
|
/**
|
|
237
251
|
* @summary Create a new community.
|
|
238
252
|
*/
|
|
@@ -256,7 +270,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
256
270
|
/**
|
|
257
271
|
* @summary Get a community's pending follows count.
|
|
258
272
|
*/
|
|
259
|
-
getCommunityPendingFollowsCount(
|
|
273
|
+
getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
|
|
260
274
|
/**
|
|
261
275
|
* @summary Get a community's pending followers.
|
|
262
276
|
*/
|
|
@@ -268,7 +282,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
268
282
|
/**
|
|
269
283
|
* @summary Block a community.
|
|
270
284
|
*/
|
|
271
|
-
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<
|
|
285
|
+
blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
|
|
272
286
|
/**
|
|
273
287
|
* @summary Delete a community.
|
|
274
288
|
*/
|
|
@@ -297,6 +311,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
297
311
|
* @summary Get a random community.
|
|
298
312
|
*/
|
|
299
313
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
|
314
|
+
/**
|
|
315
|
+
* @summary Create a report for a community.
|
|
316
|
+
*/
|
|
317
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
318
|
+
/**
|
|
319
|
+
* @summary Resolve a report for a private message.
|
|
320
|
+
*/
|
|
321
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
300
322
|
/**
|
|
301
323
|
* @summary Create a post.
|
|
302
324
|
*/
|
|
@@ -309,6 +331,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
309
331
|
* @summary Edit a post.
|
|
310
332
|
*/
|
|
311
333
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
334
|
+
/**
|
|
335
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
336
|
+
*/
|
|
337
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
312
338
|
/**
|
|
313
339
|
* @summary Delete a post.
|
|
314
340
|
*/
|
|
@@ -320,7 +346,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
320
346
|
/**
|
|
321
347
|
* @summary Mark a post as read.
|
|
322
348
|
*/
|
|
323
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
|
349
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
|
324
350
|
/**
|
|
325
351
|
* @summary Mark multiple posts as read.
|
|
326
352
|
*/
|
|
@@ -328,7 +354,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
328
354
|
/**
|
|
329
355
|
* @summary Hide a post from list views.
|
|
330
356
|
*/
|
|
331
|
-
hidePost(form: HidePost, options?: RequestOptions): Promise<
|
|
357
|
+
hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
|
|
332
358
|
/**
|
|
333
359
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
|
334
360
|
*/
|
|
@@ -382,11 +408,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
382
408
|
*/
|
|
383
409
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
384
410
|
/**
|
|
385
|
-
* @summary
|
|
411
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
386
412
|
*/
|
|
387
|
-
|
|
413
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
388
414
|
/**
|
|
389
|
-
* @
|
|
415
|
+
* @Summary Like / vote on a comment.
|
|
390
416
|
*/
|
|
391
417
|
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
|
392
418
|
/**
|
|
@@ -433,10 +459,6 @@ export declare class LemmyHttp extends Controller {
|
|
|
433
459
|
* @summary Delete a private message.
|
|
434
460
|
*/
|
|
435
461
|
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
|
436
|
-
/**
|
|
437
|
-
* @summary Mark a private message as read.
|
|
438
|
-
*/
|
|
439
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
440
462
|
/**
|
|
441
463
|
* @summary Create a report for a private message.
|
|
442
464
|
*/
|
|
@@ -466,25 +488,21 @@ export declare class LemmyHttp extends Controller {
|
|
|
466
488
|
*/
|
|
467
489
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
|
468
490
|
/**
|
|
469
|
-
* @summary
|
|
470
|
-
*/
|
|
471
|
-
markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
472
|
-
/**
|
|
473
|
-
* @summary Mark a person post body mention as read.
|
|
491
|
+
* @summary Make a note for a person.
|
|
474
492
|
*/
|
|
475
|
-
|
|
493
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
|
476
494
|
/**
|
|
477
495
|
* @summary Ban a person from your site.
|
|
478
496
|
*/
|
|
479
|
-
banPerson(form: BanPerson, options?: RequestOptions): Promise<
|
|
497
|
+
banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
480
498
|
/**
|
|
481
|
-
* @summary Get a list of
|
|
499
|
+
* @summary Get a list of users.
|
|
482
500
|
*/
|
|
483
|
-
|
|
501
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
|
|
484
502
|
/**
|
|
485
503
|
* @summary Block a person.
|
|
486
504
|
*/
|
|
487
|
-
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<
|
|
505
|
+
blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
|
|
488
506
|
/**
|
|
489
507
|
* @summary Fetch a Captcha.
|
|
490
508
|
*/
|
|
@@ -505,6 +523,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
505
523
|
* @summary Mark all replies as read.
|
|
506
524
|
*/
|
|
507
525
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
526
|
+
/**
|
|
527
|
+
* @summary Mark a notification as read.
|
|
528
|
+
*/
|
|
529
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
508
530
|
/**
|
|
509
531
|
* @summary Save your user settings.
|
|
510
532
|
*/
|
|
@@ -524,7 +546,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
524
546
|
/**
|
|
525
547
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
526
548
|
*/
|
|
527
|
-
|
|
549
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
|
|
528
550
|
/**
|
|
529
551
|
* @summary Verify your email
|
|
530
552
|
*/
|
|
@@ -537,6 +559,18 @@ export declare class LemmyHttp extends Controller {
|
|
|
537
559
|
* @summary List your saved content.
|
|
538
560
|
*/
|
|
539
561
|
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
|
562
|
+
/**
|
|
563
|
+
* @summary List your read content.
|
|
564
|
+
*/
|
|
565
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
|
|
566
|
+
/**
|
|
567
|
+
* @summary List your hidden content.
|
|
568
|
+
*/
|
|
569
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
|
570
|
+
/**
|
|
571
|
+
* @summary List your liked content.
|
|
572
|
+
*/
|
|
573
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
|
540
574
|
/**
|
|
541
575
|
* @summary Add an admin to your site.
|
|
542
576
|
*/
|
|
@@ -610,7 +644,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
610
644
|
*/
|
|
611
645
|
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
612
646
|
/**
|
|
613
|
-
* @summary
|
|
647
|
+
* @summary Edit a community post tag.
|
|
614
648
|
*/
|
|
615
649
|
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
616
650
|
/**
|
|
@@ -642,9 +676,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
642
676
|
*/
|
|
643
677
|
listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
|
|
644
678
|
/**
|
|
645
|
-
* @summary Block an instance as user.
|
|
679
|
+
* @summary Block an instance's communities as a user.
|
|
680
|
+
*/
|
|
681
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
682
|
+
/**
|
|
683
|
+
* @summary Block an instance's persons as a user.
|
|
646
684
|
*/
|
|
647
|
-
|
|
685
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
648
686
|
/**
|
|
649
687
|
* @summary Globally block an instance as admin.
|
|
650
688
|
*/
|
|
@@ -672,19 +710,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
672
710
|
/**
|
|
673
711
|
* @summary Upload new community icon.
|
|
674
712
|
*/
|
|
675
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
713
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
676
714
|
/**
|
|
677
715
|
* @summary Delete the community icon.
|
|
678
716
|
*/
|
|
679
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
|
717
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
680
718
|
/**
|
|
681
719
|
* @summary Upload new community banner.
|
|
682
720
|
*/
|
|
683
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
721
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
684
722
|
/**
|
|
685
723
|
* @summary Delete the community banner.
|
|
686
724
|
*/
|
|
687
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
|
725
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
688
726
|
/**
|
|
689
727
|
* @summary Upload new site icon.
|
|
690
728
|
*/
|
|
@@ -711,10 +749,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
711
749
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
712
750
|
/**
|
|
713
751
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
714
|
-
*
|
|
715
|
-
* `HTTP.POST /user/donation_dialog_shown`
|
|
716
752
|
*/
|
|
717
|
-
|
|
753
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
|
754
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
755
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
756
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
757
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
|
|
758
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
759
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
|
760
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
|
|
761
|
+
/**
|
|
762
|
+
* @summary Change notification settings for a community
|
|
763
|
+
*/
|
|
764
|
+
updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
765
|
+
/**
|
|
766
|
+
* @summary Change notification settings for a post
|
|
767
|
+
*/
|
|
768
|
+
updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
718
769
|
/**
|
|
719
770
|
* Set the headers (can be used to set the auth header)
|
|
720
771
|
*/
|
|
@@ -722,4 +773,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
722
773
|
[key: string]: string;
|
|
723
774
|
}): void;
|
|
724
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
* A Lemmy error type.
|
|
778
|
+
*
|
|
779
|
+
* The name is the i18n translatable error code.
|
|
780
|
+
* The msg is either an empty string, or extra non-translatable info.
|
|
781
|
+
*/
|
|
782
|
+
export declare class LemmyError extends Error {
|
|
783
|
+
status: number;
|
|
784
|
+
constructor(name: string, status: number, msg?: string);
|
|
785
|
+
}
|
|
725
786
|
export {};
|