lemmy-js-client 1.0.0-rename-rate-limit-columns.1 → 1.0.0-rename-paged-response-data.0
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 +94 -82
- package/dist/http.js +133 -84
- package/dist/index.d.ts +37 -98
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +5 -5
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +0 -1
- 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 +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/Comment.d.ts +4 -0
- package/dist/types/CommentActions.d.ts +6 -6
- package/dist/types/CommentReportView.d.ts +5 -0
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +0 -2
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +6 -4
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReportView.d.ts +6 -0
- 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/CreatePostLike.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditSite.d.ts +4 -4
- 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/FederationBlockList.d.ts +0 -2
- 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/GetComments.d.ts +0 -1
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +2 -3
- package/dist/types/GetMultiCommunity.d.ts +2 -1
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +1 -1
- package/dist/types/GetSiteResponse.d.ts +6 -0
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/InstanceActions.d.ts +6 -2
- package/dist/types/LemmyErrorType.d.ts +23 -147
- package/dist/types/LikeType.d.ts +1 -1
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
- package/dist/types/ListMedia.d.ts +0 -1
- package/dist/types/ListMultiCommunities.d.ts +12 -1
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -4
- package/dist/types/ListPersonContent.d.ts +0 -1
- package/dist/types/ListPersonHidden.d.ts +0 -1
- package/dist/types/ListPersonLiked.d.ts +0 -1
- package/dist/types/ListPersonRead.d.ts +0 -1
- package/dist/types/ListPersonSaved.d.ts +0 -1
- package/dist/types/ListPostLikes.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListReports.d.ts +0 -1
- package/dist/types/ListTaglines.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +1 -6
- package/dist/types/LocalUser.d.ts +11 -13
- package/dist/types/LocalUserView.d.ts +1 -0
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -1
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +3 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunityResponse.d.ts +4 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +2 -0
- package/dist/types/MyUserInfo.d.ts +4 -1
- package/dist/types/Notification.d.ts +18 -0
- package/dist/types/NotificationData.d.ts +13 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PagedResponse.d.ts +11 -0
- package/dist/types/PaginationCursor.d.ts +5 -1
- package/dist/types/PendingFollowerView.d.ts +9 -0
- package/dist/types/PersonActions.d.ts +12 -0
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +2 -2
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PersonView.d.ts +2 -1
- package/dist/types/PluginMetadata.d.ts +2 -2
- package/dist/types/Post.d.ts +6 -4
- package/dist/types/PostActions.d.ts +13 -11
- package/dist/types/PostActions.js +0 -1
- 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/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostReportView.d.ts +5 -0
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +2 -2
- package/dist/types/PrivateMessage.d.ts +0 -1
- package/dist/types/PrivateMessageReportView.d.ts +3 -0
- 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 +1 -1
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationApplication.d.ts +1 -0
- 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/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +9 -5
- package/dist/types/Search.d.ts +4 -1
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/SearchResponse.d.ts +11 -1
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Tag.d.ts +6 -14
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UntranslatedError.d.ts +14 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserSettingsBackup.d.ts +29 -0
- package/dist/types/VoteShow.d.ts +1 -1
- package/dist/types/VoteView.d.ts +5 -1
- package/package.json +7 -6
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminListUsersResponse.d.ts +0 -10
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- 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/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -31
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederationError.d.ts +0 -10
- package/dist/types/GetCommentsResponse.d.ts +0 -10
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetModlogResponse.d.ts +0 -13
- package/dist/types/GetModlogResponse.js +0 -2
- package/dist/types/GetPostsResponse.d.ts +0 -13
- package/dist/types/GetPostsResponse.js +0 -2
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxCombinedView.js +0 -2
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/ListCommentLikesResponse.d.ts +0 -13
- package/dist/types/ListCommentLikesResponse.js +0 -2
- package/dist/types/ListCommunitiesResponse.d.ts +0 -13
- package/dist/types/ListCommunitiesResponse.js +0 -2
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
- package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
- package/dist/types/ListInbox.js +0 -2
- package/dist/types/ListInboxResponse.d.ts +0 -13
- package/dist/types/ListInboxResponse.js +0 -2
- package/dist/types/ListMediaResponse.d.ts +0 -10
- package/dist/types/ListMediaResponse.js +0 -2
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListMultiCommunitiesResponse.js +0 -2
- package/dist/types/ListPersonContentResponse.d.ts +0 -13
- package/dist/types/ListPersonContentResponse.js +0 -2
- package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
- package/dist/types/ListPersonHiddenResponse.js +0 -2
- package/dist/types/ListPersonLikedResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.js +0 -2
- package/dist/types/ListPersonReadResponse.d.ts +0 -13
- package/dist/types/ListPersonReadResponse.js +0 -2
- package/dist/types/ListPersonSavedResponse.d.ts +0 -13
- package/dist/types/ListPersonSavedResponse.js +0 -2
- package/dist/types/ListPostLikesResponse.d.ts +0 -13
- package/dist/types/ListPostLikesResponse.js +0 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
- package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
- package/dist/types/ListReportsResponse.d.ts +0 -13
- package/dist/types/ListReportsResponse.js +0 -2
- package/dist/types/ListTaglinesResponse.d.ts +0 -13
- package/dist/types/ListTaglinesResponse.js +0 -2
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkCommentReplyAsRead.js +0 -2
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.js +0 -2
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.js +0 -2
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.js +0 -2
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAdd.js +0 -2
- package/dist/types/ModAddCommunity.d.ts +0 -14
- package/dist/types/ModAddCommunity.js +0 -2
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddCommunityView.d.ts +0 -12
- package/dist/types/ModAddCommunityView.js +0 -2
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModAddView.d.ts +0 -10
- package/dist/types/ModAddView.js +0 -2
- package/dist/types/ModBan.d.ts +0 -16
- package/dist/types/ModBan.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModBanId.js +0 -3
- package/dist/types/ModBanView.d.ts +0 -10
- package/dist/types/ModBanView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemoveCommunity.d.ts +0 -14
- package/dist/types/ModRemoveCommunity.js +0 -2
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.js +0 -3
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMention.js +0 -2
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionId.js +0 -3
- package/dist/types/PersonCommentMentionView.d.ts +0 -29
- package/dist/types/PersonCommentMentionView.js +0 -2
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMention.js +0 -2
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionId.js +0 -3
- package/dist/types/PersonPostMentionView.d.ts +0 -31
- package/dist/types/PersonPostMentionView.js +0 -2
- package/dist/types/UserBlockInstanceParams.js +0 -2
- /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{AdminAllowInstance.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminListUsersResponse.js → ListNotifications.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → LockComment.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → ModEditPost.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → Modlog.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{CommentReplyId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → Notification.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → NotificationData.js} +0 -0
- /package/dist/types/{FederationError.js → NotificationDataType.js} +0 -0
- /package/dist/types/{InboxDataType.js → NotificationId.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → NotificationType.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → NotificationView.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → PagedResponse.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{CommentReply.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModAddId.js → PostNotificationsMode.js} +0 -0
- /package/dist/types/{CommentReplyView.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → UntranslatedError.js} +0 -0
- /package/dist/types/{FederatedInstances.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{GetCommentsResponse.js → UpdatePostNotifications.js} +0 -0
- /package/dist/types/{GetCommentsSlimResponse.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → UserBlockInstancePersonsParams.js} +0 -0
- /package/dist/types/{GetFederatedInstancesResponse.js → UserSettingsBackup.js} +0 -0
package/dist/http.js
CHANGED
|
@@ -112,7 +112,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
112
112
|
* @summary List login tokens for your user
|
|
113
113
|
*/
|
|
114
114
|
async listLogins(options) {
|
|
115
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
115
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/login/list", {}, options);
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
|
@@ -205,8 +205,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
205
205
|
/**
|
|
206
206
|
* @summary Get a community's pending follows count.
|
|
207
207
|
*/
|
|
208
|
-
async getCommunityPendingFollowsCount(
|
|
209
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count",
|
|
208
|
+
async getCommunityPendingFollowsCount(options) {
|
|
209
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", {}, options);
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* @summary Get a community's pending followers.
|
|
@@ -230,7 +230,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
230
230
|
* @summary Delete a community.
|
|
231
231
|
*/
|
|
232
232
|
async deleteCommunity(form, options) {
|
|
233
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
233
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community", form, options);
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
|
@@ -298,11 +298,17 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
298
298
|
async editPost(form, options) {
|
|
299
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
|
300
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
303
|
+
*/
|
|
304
|
+
async modEditPost(form, options) {
|
|
305
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/mod_update", form, options);
|
|
306
|
+
}
|
|
301
307
|
/**
|
|
302
308
|
* @summary Delete a post.
|
|
303
309
|
*/
|
|
304
310
|
async deletePost(form, options) {
|
|
305
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
311
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/post", form, options);
|
|
306
312
|
}
|
|
307
313
|
/**
|
|
308
314
|
* @summary A moderator remove for a post.
|
|
@@ -398,7 +404,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
398
404
|
* @summary Delete a comment.
|
|
399
405
|
*/
|
|
400
406
|
async deleteComment(form, options) {
|
|
401
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
407
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/comment", form, options);
|
|
402
408
|
}
|
|
403
409
|
/**
|
|
404
410
|
* @summary A moderator remove for a comment.
|
|
@@ -407,13 +413,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
407
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
|
408
414
|
}
|
|
409
415
|
/**
|
|
410
|
-
* @summary
|
|
416
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
411
417
|
*/
|
|
412
|
-
async
|
|
413
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/
|
|
418
|
+
async lockComment(form, options) {
|
|
419
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/lock", form, options);
|
|
414
420
|
}
|
|
415
421
|
/**
|
|
416
|
-
* @
|
|
422
|
+
* @Summary Like / vote on a comment.
|
|
417
423
|
*/
|
|
418
424
|
async likeComment(form, options) {
|
|
419
425
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
|
@@ -482,13 +488,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
482
488
|
* @summary Delete a private message.
|
|
483
489
|
*/
|
|
484
490
|
async deletePrivateMessage(form, options) {
|
|
485
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* @summary Mark a private message as read.
|
|
489
|
-
*/
|
|
490
|
-
async markPrivateMessageAsRead(form, options) {
|
|
491
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
|
491
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/private_message", form, options);
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* @summary Create a report for a private message.
|
|
@@ -533,16 +533,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
533
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
536
|
-
* @summary
|
|
537
|
-
*/
|
|
538
|
-
async markCommentMentionAsRead(form, options) {
|
|
539
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* @summary Mark a person post body mention as read.
|
|
536
|
+
* @summary Make a note for a person.
|
|
543
537
|
*/
|
|
544
|
-
async
|
|
545
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
|
538
|
+
async notePerson(form, options) {
|
|
539
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
|
|
546
540
|
}
|
|
547
541
|
/**
|
|
548
542
|
* @summary Ban a person from your site.
|
|
@@ -572,7 +566,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
572
566
|
* @summary Delete your account.
|
|
573
567
|
*/
|
|
574
568
|
async deleteAccount(form, options) {
|
|
575
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
569
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account", form, options);
|
|
576
570
|
}
|
|
577
571
|
/**
|
|
578
572
|
* @summary Reset your password.
|
|
@@ -587,10 +581,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
587
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
|
588
582
|
}
|
|
589
583
|
/**
|
|
590
|
-
* @summary Mark all
|
|
584
|
+
* @summary Mark all notifications as read.
|
|
591
585
|
*/
|
|
592
586
|
async markAllNotificationsAsRead(options) {
|
|
593
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
|
587
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read/all", {}, options);
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* @summary Mark a notification as read.
|
|
591
|
+
*/
|
|
592
|
+
async markNotificationAsRead(form, options) {
|
|
593
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read", form, options);
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
596
596
|
* @summary Save your user settings.
|
|
@@ -614,13 +614,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
614
614
|
* @summary Get your unread counts.
|
|
615
615
|
*/
|
|
616
616
|
async getUnreadCount(options) {
|
|
617
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
617
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/count", {}, options);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
621
621
|
*/
|
|
622
|
-
async
|
|
623
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
622
|
+
async listNotifications(form, options) {
|
|
623
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @summary Verify your email
|
|
@@ -752,7 +752,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
752
752
|
* @summary Delete a tagline
|
|
753
753
|
*/
|
|
754
754
|
async deleteTagline(form, options) {
|
|
755
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
755
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
758
758
|
* @summary List taglines.
|
|
@@ -767,10 +767,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
767
767
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
|
768
768
|
}
|
|
769
769
|
/**
|
|
770
|
-
* @summary
|
|
770
|
+
* @summary Edit a community post tag.
|
|
771
771
|
*/
|
|
772
772
|
updateCommunityTag(form, options) {
|
|
773
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
773
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
|
774
774
|
}
|
|
775
775
|
/**
|
|
776
776
|
* @summary Delete a post tag in a community.
|
|
@@ -794,7 +794,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
794
794
|
* @summary Delete an oauth provider method
|
|
795
795
|
*/
|
|
796
796
|
async deleteOAuthProvider(form, options) {
|
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
797
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
800
800
|
* @summary Authenticate with OAuth
|
|
@@ -805,8 +805,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
805
805
|
/**
|
|
806
806
|
* @summary Fetch federated instances.
|
|
807
807
|
*/
|
|
808
|
-
async getFederatedInstances(options) {
|
|
809
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances",
|
|
808
|
+
async getFederatedInstances(form, options) {
|
|
809
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form, options);
|
|
810
810
|
}
|
|
811
811
|
/**
|
|
812
812
|
* @summary List user reports.
|
|
@@ -815,10 +815,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
815
815
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
|
816
816
|
}
|
|
817
817
|
/**
|
|
818
|
-
* @summary Block an instance as user.
|
|
818
|
+
* @summary Block an instance's communities as a user.
|
|
819
819
|
*/
|
|
820
|
-
async
|
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
|
820
|
+
async userBlockInstanceCommunities(form, options) {
|
|
821
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* @summary Block an instance's persons as a user.
|
|
825
|
+
*/
|
|
826
|
+
async userBlockInstancePersons(form, options) {
|
|
827
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
|
|
822
828
|
}
|
|
823
829
|
/**
|
|
824
830
|
* @summary Globally block an instance as admin.
|
|
@@ -920,7 +926,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
920
926
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
921
927
|
*/
|
|
922
928
|
donationDialogShown(options) {
|
|
923
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/
|
|
929
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/donation_dialog_shown", {}, options);
|
|
924
930
|
}
|
|
925
931
|
createMultiCommunity(form, options) {
|
|
926
932
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
|
@@ -943,6 +949,18 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
943
949
|
followMultiCommunity(form, options) {
|
|
944
950
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
|
|
945
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* @summary Change notification settings for a community
|
|
954
|
+
*/
|
|
955
|
+
updateCommunityNotifications(form, options) {
|
|
956
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/notifications", form, options);
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* @summary Change notification settings for a post
|
|
960
|
+
*/
|
|
961
|
+
updatePostNotifications(form, options) {
|
|
962
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/notifications", form, options);
|
|
963
|
+
}
|
|
946
964
|
/**
|
|
947
965
|
* Set the headers (can be used to set the auth header)
|
|
948
966
|
*/
|
|
@@ -997,10 +1015,11 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
|
|
|
997
1015
|
json = await response.json();
|
|
998
1016
|
}
|
|
999
1017
|
catch {
|
|
1000
|
-
throw new LemmyError(response.statusText);
|
|
1018
|
+
throw new LemmyError(response.statusText, response.status);
|
|
1001
1019
|
}
|
|
1002
1020
|
if (!response.ok) {
|
|
1003
|
-
|
|
1021
|
+
console.error(`Request error while calling ${type_} ${endpoint} with ${JSON.stringify(form)}`);
|
|
1022
|
+
let err = new LemmyError(json.error ?? response.statusText, response.status, json.message);
|
|
1004
1023
|
throw err;
|
|
1005
1024
|
}
|
|
1006
1025
|
else {
|
|
@@ -1061,7 +1080,7 @@ __decorate([
|
|
|
1061
1080
|
], LemmyHttp.prototype, "importSettings", null);
|
|
1062
1081
|
__decorate([
|
|
1063
1082
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1064
|
-
(0, runtime_1.Get)("/account/
|
|
1083
|
+
(0, runtime_1.Get)("/account/login/list"),
|
|
1065
1084
|
(0, runtime_1.Tags)("Account"),
|
|
1066
1085
|
__param(0, (0, runtime_1.Inject)())
|
|
1067
1086
|
], LemmyHttp.prototype, "listLogins", null);
|
|
@@ -1172,8 +1191,7 @@ __decorate([
|
|
|
1172
1191
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1173
1192
|
(0, runtime_1.Get)("/community/pending_follows/count"),
|
|
1174
1193
|
(0, runtime_1.Tags)("Community"),
|
|
1175
|
-
__param(0, (0, runtime_1.
|
|
1176
|
-
__param(1, (0, runtime_1.Inject)())
|
|
1194
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1177
1195
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
|
1178
1196
|
__decorate([
|
|
1179
1197
|
(0, runtime_1.Security)("bearerAuth"),
|
|
@@ -1198,7 +1216,7 @@ __decorate([
|
|
|
1198
1216
|
], LemmyHttp.prototype, "blockCommunity", null);
|
|
1199
1217
|
__decorate([
|
|
1200
1218
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1201
|
-
(0, runtime_1.
|
|
1219
|
+
(0, runtime_1.Delete)("/community"),
|
|
1202
1220
|
(0, runtime_1.Tags)("Community"),
|
|
1203
1221
|
__param(0, (0, runtime_1.Body)()),
|
|
1204
1222
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1284,7 +1302,14 @@ __decorate([
|
|
|
1284
1302
|
], LemmyHttp.prototype, "editPost", null);
|
|
1285
1303
|
__decorate([
|
|
1286
1304
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1287
|
-
(0, runtime_1.
|
|
1305
|
+
(0, runtime_1.Put)("/post/mod_update"),
|
|
1306
|
+
(0, runtime_1.Tags)("Post"),
|
|
1307
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1308
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1309
|
+
], LemmyHttp.prototype, "modEditPost", null);
|
|
1310
|
+
__decorate([
|
|
1311
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1312
|
+
(0, runtime_1.Delete)("/post"),
|
|
1288
1313
|
(0, runtime_1.Tags)("Post"),
|
|
1289
1314
|
__param(0, (0, runtime_1.Body)()),
|
|
1290
1315
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1397,7 +1422,7 @@ __decorate([
|
|
|
1397
1422
|
], LemmyHttp.prototype, "editComment", null);
|
|
1398
1423
|
__decorate([
|
|
1399
1424
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1400
|
-
(0, runtime_1.
|
|
1425
|
+
(0, runtime_1.Delete)("/comment"),
|
|
1401
1426
|
(0, runtime_1.Tags)("Comment"),
|
|
1402
1427
|
__param(0, (0, runtime_1.Body)()),
|
|
1403
1428
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1411,11 +1436,11 @@ __decorate([
|
|
|
1411
1436
|
], LemmyHttp.prototype, "removeComment", null);
|
|
1412
1437
|
__decorate([
|
|
1413
1438
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1414
|
-
(0, runtime_1.Post)("/comment/
|
|
1415
|
-
(0, runtime_1.Tags)("Comment"),
|
|
1439
|
+
(0, runtime_1.Post)("/comment/lock"),
|
|
1440
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
|
1416
1441
|
__param(0, (0, runtime_1.Body)()),
|
|
1417
1442
|
__param(1, (0, runtime_1.Inject)())
|
|
1418
|
-
], LemmyHttp.prototype, "
|
|
1443
|
+
], LemmyHttp.prototype, "lockComment", null);
|
|
1419
1444
|
__decorate([
|
|
1420
1445
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1421
1446
|
(0, runtime_1.Post)("/comment/like"),
|
|
@@ -1498,18 +1523,11 @@ __decorate([
|
|
|
1498
1523
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
|
1499
1524
|
__decorate([
|
|
1500
1525
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1501
|
-
(0, runtime_1.
|
|
1526
|
+
(0, runtime_1.Delete)("/private_message"),
|
|
1502
1527
|
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1503
1528
|
__param(0, (0, runtime_1.Body)()),
|
|
1504
1529
|
__param(1, (0, runtime_1.Inject)())
|
|
1505
1530
|
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
|
1506
|
-
__decorate([
|
|
1507
|
-
(0, runtime_1.Security)("bearerAuth"),
|
|
1508
|
-
(0, runtime_1.Post)("/private_message/mark_as_read"),
|
|
1509
|
-
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1510
|
-
__param(0, (0, runtime_1.Body)()),
|
|
1511
|
-
__param(1, (0, runtime_1.Inject)())
|
|
1512
|
-
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
|
1513
1531
|
__decorate([
|
|
1514
1532
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1515
1533
|
(0, runtime_1.Post)("/private_message/report"),
|
|
@@ -1560,18 +1578,11 @@ __decorate([
|
|
|
1560
1578
|
], LemmyHttp.prototype, "listPersonContent", null);
|
|
1561
1579
|
__decorate([
|
|
1562
1580
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1563
|
-
(0, runtime_1.Post)("/
|
|
1564
|
-
(0, runtime_1.Tags)("
|
|
1565
|
-
__param(0, (0, runtime_1.Body)()),
|
|
1566
|
-
__param(1, (0, runtime_1.Inject)())
|
|
1567
|
-
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
|
1568
|
-
__decorate([
|
|
1569
|
-
(0, runtime_1.Security)("bearerAuth"),
|
|
1570
|
-
(0, runtime_1.Post)("/account/mention/post/mark_as_read"),
|
|
1571
|
-
(0, runtime_1.Tags)("Account", "Post"),
|
|
1581
|
+
(0, runtime_1.Post)("/person/note"),
|
|
1582
|
+
(0, runtime_1.Tags)("Person"),
|
|
1572
1583
|
__param(0, (0, runtime_1.Body)()),
|
|
1573
1584
|
__param(1, (0, runtime_1.Inject)())
|
|
1574
|
-
], LemmyHttp.prototype, "
|
|
1585
|
+
], LemmyHttp.prototype, "notePerson", null);
|
|
1575
1586
|
__decorate([
|
|
1576
1587
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1577
1588
|
(0, runtime_1.Post)("/admin/ban"),
|
|
@@ -1600,7 +1611,7 @@ __decorate([
|
|
|
1600
1611
|
], LemmyHttp.prototype, "getCaptcha", null);
|
|
1601
1612
|
__decorate([
|
|
1602
1613
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1603
|
-
(0, runtime_1.
|
|
1614
|
+
(0, runtime_1.Delete)("/account"),
|
|
1604
1615
|
(0, runtime_1.Tags)("Account"),
|
|
1605
1616
|
__param(0, (0, runtime_1.Body)()),
|
|
1606
1617
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1621,10 +1632,17 @@ __decorate([
|
|
|
1621
1632
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
|
1622
1633
|
__decorate([
|
|
1623
1634
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1624
|
-
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
|
1635
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read/all"),
|
|
1625
1636
|
(0, runtime_1.Tags)("Account"),
|
|
1626
1637
|
__param(0, (0, runtime_1.Inject)())
|
|
1627
1638
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
|
1639
|
+
__decorate([
|
|
1640
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1641
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read"),
|
|
1642
|
+
(0, runtime_1.Tags)("Account"),
|
|
1643
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1644
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1645
|
+
], LemmyHttp.prototype, "markNotificationAsRead", null);
|
|
1628
1646
|
__decorate([
|
|
1629
1647
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1630
1648
|
(0, runtime_1.Put)("/account/settings/save"),
|
|
@@ -1648,17 +1666,17 @@ __decorate([
|
|
|
1648
1666
|
], LemmyHttp.prototype, "getReportCount", null);
|
|
1649
1667
|
__decorate([
|
|
1650
1668
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1651
|
-
(0, runtime_1.Get)("/account/
|
|
1669
|
+
(0, runtime_1.Get)("/account/notification/count"),
|
|
1652
1670
|
(0, runtime_1.Tags)("Account"),
|
|
1653
1671
|
__param(0, (0, runtime_1.Inject)())
|
|
1654
1672
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
|
1655
1673
|
__decorate([
|
|
1656
1674
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1657
|
-
(0, runtime_1.Get)("/account/
|
|
1675
|
+
(0, runtime_1.Get)("/account/notification/list"),
|
|
1658
1676
|
(0, runtime_1.Tags)("Account"),
|
|
1659
1677
|
__param(0, (0, runtime_1.Queries)()),
|
|
1660
1678
|
__param(1, (0, runtime_1.Inject)())
|
|
1661
|
-
], LemmyHttp.prototype, "
|
|
1679
|
+
], LemmyHttp.prototype, "listNotifications", null);
|
|
1662
1680
|
__decorate([
|
|
1663
1681
|
(0, runtime_1.Post)("/account/auth/verify_email"),
|
|
1664
1682
|
(0, runtime_1.Tags)("Account"),
|
|
@@ -1806,7 +1824,7 @@ __decorate([
|
|
|
1806
1824
|
], LemmyHttp.prototype, "editTagline", null);
|
|
1807
1825
|
__decorate([
|
|
1808
1826
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1809
|
-
(0, runtime_1.
|
|
1827
|
+
(0, runtime_1.Delete)("/admin/tagline"),
|
|
1810
1828
|
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1811
1829
|
__param(0, (0, runtime_1.Body)()),
|
|
1812
1830
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1856,7 +1874,7 @@ __decorate([
|
|
|
1856
1874
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
|
1857
1875
|
__decorate([
|
|
1858
1876
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1859
|
-
(0, runtime_1.
|
|
1877
|
+
(0, runtime_1.Delete)("/oauth_provider"),
|
|
1860
1878
|
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1861
1879
|
__param(0, (0, runtime_1.Body)()),
|
|
1862
1880
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1871,7 +1889,8 @@ __decorate([
|
|
|
1871
1889
|
__decorate([
|
|
1872
1890
|
(0, runtime_1.Get)("/federated_instances"),
|
|
1873
1891
|
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1874
|
-
__param(0, (0, runtime_1.
|
|
1892
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1893
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1875
1894
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
|
1876
1895
|
__decorate([
|
|
1877
1896
|
(0, runtime_1.Security)("bearerAuth"),
|
|
@@ -1882,11 +1901,18 @@ __decorate([
|
|
|
1882
1901
|
], LemmyHttp.prototype, "listReports", null);
|
|
1883
1902
|
__decorate([
|
|
1884
1903
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1885
|
-
(0, runtime_1.Post)("/account/block/instance"),
|
|
1886
|
-
(0, runtime_1.Tags)("Account"),
|
|
1904
|
+
(0, runtime_1.Post)("/account/block/instance/communities"),
|
|
1905
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
|
1887
1906
|
__param(0, (0, runtime_1.Body)()),
|
|
1888
1907
|
__param(1, (0, runtime_1.Inject)())
|
|
1889
|
-
], LemmyHttp.prototype, "
|
|
1908
|
+
], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
|
|
1909
|
+
__decorate([
|
|
1910
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
1911
|
+
(0, runtime_1.Post)("/account/block/instance/persons"),
|
|
1912
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
|
1913
|
+
__param(0, (0, runtime_1.Body)()),
|
|
1914
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1915
|
+
], LemmyHttp.prototype, "userBlockInstancePersons", null);
|
|
1890
1916
|
__decorate([
|
|
1891
1917
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1892
1918
|
(0, runtime_1.Post)("/admin/instance/block"),
|
|
@@ -1997,48 +2023,70 @@ __decorate([
|
|
|
1997
2023
|
], LemmyHttp.prototype, "imageHealth", null);
|
|
1998
2024
|
__decorate([
|
|
1999
2025
|
(0, runtime_1.Security)("bearerAuth"),
|
|
2000
|
-
(0, runtime_1.Post)("/
|
|
2026
|
+
(0, runtime_1.Post)("/account/donation_dialog_shown"),
|
|
2027
|
+
(0, runtime_1.Tags)("Account"),
|
|
2001
2028
|
__param(0, (0, runtime_1.Inject)())
|
|
2002
2029
|
], LemmyHttp.prototype, "donationDialogShown", null);
|
|
2003
2030
|
__decorate([
|
|
2004
2031
|
(0, runtime_1.Security)("bearerAuth"),
|
|
2005
2032
|
(0, runtime_1.Post)("/multi_community"),
|
|
2033
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2006
2034
|
__param(0, (0, runtime_1.Body)()),
|
|
2007
2035
|
__param(1, (0, runtime_1.Inject)())
|
|
2008
2036
|
], LemmyHttp.prototype, "createMultiCommunity", null);
|
|
2009
2037
|
__decorate([
|
|
2010
2038
|
(0, runtime_1.Security)("bearerAuth"),
|
|
2011
2039
|
(0, runtime_1.Put)("/multi_community"),
|
|
2040
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2012
2041
|
__param(0, (0, runtime_1.Body)()),
|
|
2013
2042
|
__param(1, (0, runtime_1.Inject)())
|
|
2014
2043
|
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
|
2015
2044
|
__decorate([
|
|
2016
2045
|
(0, runtime_1.Get)("/multi_community"),
|
|
2046
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2017
2047
|
__param(0, (0, runtime_1.Queries)()),
|
|
2018
2048
|
__param(1, (0, runtime_1.Inject)())
|
|
2019
2049
|
], LemmyHttp.prototype, "getMultiCommunity", null);
|
|
2020
2050
|
__decorate([
|
|
2021
2051
|
(0, runtime_1.Security)("bearerAuth"),
|
|
2022
2052
|
(0, runtime_1.Post)("/multi_community/entry"),
|
|
2053
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2023
2054
|
__param(0, (0, runtime_1.Body)()),
|
|
2024
2055
|
__param(1, (0, runtime_1.Inject)())
|
|
2025
2056
|
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
|
2026
2057
|
__decorate([
|
|
2027
2058
|
(0, runtime_1.Security)("bearerAuth"),
|
|
2028
2059
|
(0, runtime_1.Delete)("/multi_community/entry"),
|
|
2060
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2029
2061
|
__param(0, (0, runtime_1.Body)()),
|
|
2030
2062
|
__param(1, (0, runtime_1.Inject)())
|
|
2031
2063
|
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
|
2032
2064
|
__decorate([
|
|
2033
2065
|
(0, runtime_1.Get)("/multi_community/list"),
|
|
2066
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2034
2067
|
__param(0, (0, runtime_1.Queries)()),
|
|
2035
2068
|
__param(1, (0, runtime_1.Inject)())
|
|
2036
2069
|
], LemmyHttp.prototype, "listMultiCommunities", null);
|
|
2037
2070
|
__decorate([
|
|
2038
2071
|
(0, runtime_1.Post)("/multi_community/follow"),
|
|
2072
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
|
2039
2073
|
__param(0, (0, runtime_1.Body)()),
|
|
2040
2074
|
__param(1, (0, runtime_1.Inject)())
|
|
2041
2075
|
], LemmyHttp.prototype, "followMultiCommunity", null);
|
|
2076
|
+
__decorate([
|
|
2077
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2078
|
+
(0, runtime_1.Put)("/community/notifications"),
|
|
2079
|
+
(0, runtime_1.Tags)("Community"),
|
|
2080
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2081
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2082
|
+
], LemmyHttp.prototype, "updateCommunityNotifications", null);
|
|
2083
|
+
__decorate([
|
|
2084
|
+
(0, runtime_1.Security)("bearerAuth"),
|
|
2085
|
+
(0, runtime_1.Put)("/post/notifications"),
|
|
2086
|
+
(0, runtime_1.Tags)("Post"),
|
|
2087
|
+
__param(0, (0, runtime_1.Body)()),
|
|
2088
|
+
__param(1, (0, runtime_1.Inject)())
|
|
2089
|
+
], LemmyHttp.prototype, "updatePostNotifications", null);
|
|
2042
2090
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
|
2043
2091
|
(0, runtime_1.Route)("api/v4")
|
|
2044
2092
|
], LemmyHttp);
|
|
@@ -2066,9 +2114,10 @@ function createFormData(image) {
|
|
|
2066
2114
|
* The msg is either an empty string, or extra non-translatable info.
|
|
2067
2115
|
*/
|
|
2068
2116
|
class LemmyError extends Error {
|
|
2069
|
-
constructor(name, msg) {
|
|
2117
|
+
constructor(name, status, msg) {
|
|
2070
2118
|
super(msg ?? "");
|
|
2071
2119
|
this.name = name;
|
|
2120
|
+
this.status = status;
|
|
2072
2121
|
// Set the prototype explicitly.
|
|
2073
2122
|
Object.setPrototypeOf(this, LemmyError.prototype);
|
|
2074
2123
|
}
|