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/dist/http.js
CHANGED
@@ -8,15 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
8
8
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
9
9
|
return function (target, key) { decorator(target, key, paramIndex); }
|
10
10
|
};
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
-
});
|
19
|
-
};
|
20
11
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
21
12
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
22
13
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
@@ -28,10 +19,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
28
19
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
29
20
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
30
21
|
};
|
31
|
-
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
22
|
+
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
|
32
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
33
|
-
exports.LemmyHttp = void 0;
|
34
|
-
const
|
24
|
+
exports.LemmyError = exports.LemmyHttp = void 0;
|
25
|
+
const runtime_1 = require("@tsoa/runtime");
|
35
26
|
const other_types_1 = require("./other_types");
|
36
27
|
var HttpType;
|
37
28
|
(function (HttpType) {
|
@@ -43,7 +34,7 @@ var HttpType;
|
|
43
34
|
/**
|
44
35
|
* Helps build lemmy HTTP requests.
|
45
36
|
*/
|
46
|
-
let LemmyHttp = class LemmyHttp extends
|
37
|
+
let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
47
38
|
/**
|
48
39
|
* Generates a new instance of LemmyHttp.
|
49
40
|
* @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
|
@@ -56,35 +47,35 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
56
47
|
_LemmyHttp_headers.set(this, {});
|
57
48
|
_LemmyHttp_fetchFunction.set(this, fetch.bind(globalThis));
|
58
49
|
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
|
59
|
-
if (options
|
50
|
+
if (options?.headers) {
|
60
51
|
__classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
|
61
52
|
}
|
62
|
-
if (options
|
53
|
+
if (options?.fetchFunction) {
|
63
54
|
__classPrivateFieldSet(this, _LemmyHttp_fetchFunction, options.fetchFunction, "f");
|
64
55
|
}
|
65
56
|
}
|
66
57
|
/**
|
67
58
|
* @summary Gets the site, and your user data.
|
68
59
|
*/
|
69
|
-
getSite(options) {
|
60
|
+
async getSite(options) {
|
70
61
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
71
62
|
}
|
72
63
|
/**
|
73
64
|
* @summary Create your site.
|
74
65
|
*/
|
75
|
-
createSite(form, options) {
|
66
|
+
async createSite(form, options) {
|
76
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
77
68
|
}
|
78
69
|
/**
|
79
70
|
* @summary Edit your site.
|
80
71
|
*/
|
81
|
-
editSite(form, options) {
|
72
|
+
async editSite(form, options) {
|
82
73
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
83
74
|
}
|
84
75
|
/**
|
85
76
|
* @summary Leave the Site admins.
|
86
77
|
*/
|
87
|
-
leaveAdmin(options) {
|
78
|
+
async leaveAdmin(options) {
|
88
79
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
89
80
|
}
|
90
81
|
/**
|
@@ -93,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
93
84
|
* Generate a TOTP / two-factor secret.
|
94
85
|
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
95
86
|
*/
|
96
|
-
generateTotpSecret(options) {
|
87
|
+
async generateTotpSecret(options) {
|
97
88
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
98
89
|
}
|
99
90
|
/**
|
100
91
|
* @summary Get data of current user.
|
101
92
|
*/
|
102
|
-
getMyUser(options) {
|
93
|
+
async getMyUser(options) {
|
103
94
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
104
95
|
}
|
105
96
|
/**
|
@@ -108,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
108
99
|
* Export a backup of your user settings, including your saved content,
|
109
100
|
* followed communities, and blocks.
|
110
101
|
*/
|
111
|
-
exportSettings(options) {
|
102
|
+
async exportSettings(options) {
|
112
103
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
113
104
|
}
|
114
105
|
/**
|
115
106
|
* @summary Import a backup of your user settings.
|
116
107
|
*/
|
117
|
-
importSettings(form, options) {
|
108
|
+
async importSettings(form, options) {
|
118
109
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
119
110
|
}
|
120
111
|
/**
|
121
112
|
* @summary List login tokens for your user
|
122
113
|
*/
|
123
|
-
listLogins(options) {
|
114
|
+
async listLogins(options) {
|
124
115
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
|
125
116
|
}
|
126
117
|
/**
|
127
118
|
* @summary Returns an error message if your auth token is invalid
|
128
119
|
*/
|
129
|
-
validateAuth(options) {
|
120
|
+
async validateAuth(options) {
|
130
121
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
131
122
|
}
|
132
123
|
/**
|
133
|
-
* @summary List all the media for your
|
124
|
+
* @summary List all the media for your account.
|
134
125
|
*/
|
135
|
-
listMedia(form = {}, options) {
|
136
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
126
|
+
async listMedia(form = {}, options) {
|
127
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* @summary Delete media for your account.
|
131
|
+
*/
|
132
|
+
async deleteMedia(form, options) {
|
133
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* @summary Delete any media. (Admin only)
|
137
|
+
*/
|
138
|
+
async deleteMediaAdmin(form, options) {
|
139
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
137
140
|
}
|
138
141
|
/**
|
139
142
|
* @summary List all the media known to your instance.
|
140
143
|
*/
|
141
|
-
|
142
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
144
|
+
async listMediaAdmin(form = {}, options) {
|
145
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
|
143
146
|
}
|
144
147
|
/**
|
145
148
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
@@ -148,758 +151,815 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
148
151
|
*
|
149
152
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
150
153
|
*/
|
151
|
-
updateTotp(form, options) {
|
154
|
+
async updateTotp(form, options) {
|
152
155
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
153
156
|
}
|
154
157
|
/**
|
155
158
|
* @summary Get the modlog.
|
156
159
|
*/
|
157
|
-
getModlog(form = {}, options) {
|
160
|
+
async getModlog(form = {}, options) {
|
158
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
159
162
|
}
|
160
163
|
/**
|
161
|
-
* @summary Search lemmy.
|
164
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
162
165
|
*/
|
163
|
-
search(form, options) {
|
166
|
+
async search(form, options) {
|
164
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
165
168
|
}
|
166
169
|
/**
|
167
170
|
* @summary Fetch a non-local / federated object.
|
168
171
|
*/
|
169
|
-
resolveObject(form, options) {
|
172
|
+
async resolveObject(form, options) {
|
170
173
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
171
174
|
}
|
172
175
|
/**
|
173
176
|
* @summary Create a new community.
|
174
177
|
*/
|
175
|
-
createCommunity(form, options) {
|
178
|
+
async createCommunity(form, options) {
|
176
179
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
177
180
|
}
|
178
181
|
/**
|
179
182
|
* @summary Get / fetch a community.
|
180
183
|
*/
|
181
|
-
getCommunity(form = {}, options) {
|
184
|
+
async getCommunity(form = {}, options) {
|
182
185
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
183
186
|
}
|
184
187
|
/**
|
185
188
|
* @summary Edit a community.
|
186
189
|
*/
|
187
|
-
editCommunity(form, options) {
|
190
|
+
async editCommunity(form, options) {
|
188
191
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
189
192
|
}
|
190
193
|
/**
|
191
194
|
* @summary List communities, with various filters.
|
192
195
|
*/
|
193
|
-
listCommunities(form = {}, options) {
|
196
|
+
async listCommunities(form = {}, options) {
|
194
197
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
195
198
|
}
|
196
199
|
/**
|
197
200
|
* @summary Follow / subscribe to a community.
|
198
201
|
*/
|
199
|
-
followCommunity(form, options) {
|
202
|
+
async followCommunity(form, options) {
|
200
203
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
201
204
|
}
|
202
205
|
/**
|
203
206
|
* @summary Get a community's pending follows count.
|
204
207
|
*/
|
205
|
-
getCommunityPendingFollowsCount(form, options) {
|
208
|
+
async getCommunityPendingFollowsCount(form, options) {
|
206
209
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
207
210
|
}
|
208
211
|
/**
|
209
212
|
* @summary Get a community's pending followers.
|
210
213
|
*/
|
211
|
-
listCommunityPendingFollows(form, options) {
|
214
|
+
async listCommunityPendingFollows(form, options) {
|
212
215
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
213
216
|
}
|
214
217
|
/**
|
215
218
|
* @summary Approve a community pending follow request.
|
216
219
|
*/
|
217
|
-
approveCommunityPendingFollow(form, options) {
|
220
|
+
async approveCommunityPendingFollow(form, options) {
|
218
221
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
219
222
|
}
|
220
223
|
/**
|
221
224
|
* @summary Block a community.
|
222
225
|
*/
|
223
|
-
blockCommunity(form, options) {
|
226
|
+
async blockCommunity(form, options) {
|
224
227
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
225
228
|
}
|
226
229
|
/**
|
227
230
|
* @summary Delete a community.
|
228
231
|
*/
|
229
|
-
deleteCommunity(form, options) {
|
232
|
+
async deleteCommunity(form, options) {
|
230
233
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
231
234
|
}
|
232
235
|
/**
|
233
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
234
237
|
*/
|
235
|
-
hideCommunity(form, options) {
|
238
|
+
async hideCommunity(form, options) {
|
236
239
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
237
240
|
}
|
238
241
|
/**
|
239
242
|
* @summary A moderator remove for a community.
|
240
243
|
*/
|
241
|
-
removeCommunity(form, options) {
|
244
|
+
async removeCommunity(form, options) {
|
242
245
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
243
246
|
}
|
244
247
|
/**
|
245
248
|
* @summary Transfer your community to an existing moderator.
|
246
249
|
*/
|
247
|
-
transferCommunity(form, options) {
|
250
|
+
async transferCommunity(form, options) {
|
248
251
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
249
252
|
}
|
250
253
|
/**
|
251
254
|
* @summary Ban a user from a community.
|
252
255
|
*/
|
253
|
-
banFromCommunity(form, options) {
|
256
|
+
async banFromCommunity(form, options) {
|
254
257
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
255
258
|
}
|
256
259
|
/**
|
257
260
|
* @summary Add a moderator to your community.
|
258
261
|
*/
|
259
|
-
addModToCommunity(form, options) {
|
262
|
+
async addModToCommunity(form, options) {
|
260
263
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
261
264
|
}
|
262
265
|
/**
|
263
266
|
* @summary Get a random community.
|
264
267
|
*/
|
265
|
-
getRandomCommunity(form, options) {
|
268
|
+
async getRandomCommunity(form, options) {
|
266
269
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
267
270
|
}
|
271
|
+
/**
|
272
|
+
* @summary Create a report for a community.
|
273
|
+
*/
|
274
|
+
async createCommunityReport(form, options) {
|
275
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* @summary Resolve a report for a private message.
|
279
|
+
*/
|
280
|
+
async resolveCommunityReport(form, options) {
|
281
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
|
282
|
+
}
|
268
283
|
/**
|
269
284
|
* @summary Create a post.
|
270
285
|
*/
|
271
|
-
createPost(form, options) {
|
286
|
+
async createPost(form, options) {
|
272
287
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
273
288
|
}
|
274
289
|
/**
|
275
290
|
* @summary Get / fetch a post.
|
276
291
|
*/
|
277
|
-
getPost(form = {}, options) {
|
292
|
+
async getPost(form = {}, options) {
|
278
293
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
279
294
|
}
|
280
295
|
/**
|
281
296
|
* @summary Edit a post.
|
282
297
|
*/
|
283
|
-
editPost(form, options) {
|
298
|
+
async editPost(form, options) {
|
284
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
285
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
|
+
}
|
286
307
|
/**
|
287
308
|
* @summary Delete a post.
|
288
309
|
*/
|
289
|
-
deletePost(form, options) {
|
310
|
+
async deletePost(form, options) {
|
290
311
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
291
312
|
}
|
292
313
|
/**
|
293
314
|
* @summary A moderator remove for a post.
|
294
315
|
*/
|
295
|
-
removePost(form, options) {
|
316
|
+
async removePost(form, options) {
|
296
317
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
297
318
|
}
|
298
319
|
/**
|
299
320
|
* @summary Mark a post as read.
|
300
321
|
*/
|
301
|
-
markPostAsRead(form, options) {
|
322
|
+
async markPostAsRead(form, options) {
|
302
323
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
303
324
|
}
|
304
325
|
/**
|
305
326
|
* @summary Mark multiple posts as read.
|
306
327
|
*/
|
307
|
-
markManyPostAsRead(form, options) {
|
328
|
+
async markManyPostAsRead(form, options) {
|
308
329
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
309
330
|
}
|
310
331
|
/**
|
311
332
|
* @summary Hide a post from list views.
|
312
333
|
*/
|
313
|
-
hidePost(form, options) {
|
334
|
+
async hidePost(form, options) {
|
314
335
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
315
336
|
}
|
316
337
|
/**
|
317
338
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
318
339
|
*/
|
319
|
-
lockPost(form, options) {
|
340
|
+
async lockPost(form, options) {
|
320
341
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
321
342
|
}
|
322
343
|
/**
|
323
344
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
324
345
|
*/
|
325
|
-
featurePost(form, options) {
|
346
|
+
async featurePost(form, options) {
|
326
347
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
327
348
|
}
|
328
349
|
/**
|
329
350
|
* @summary Get / fetch posts, with various filters.
|
330
351
|
*/
|
331
|
-
getPosts(form = {}, options) {
|
352
|
+
async getPosts(form = {}, options) {
|
332
353
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
333
354
|
}
|
334
355
|
/**
|
335
356
|
* @summary Like / vote on a post.
|
336
357
|
*/
|
337
|
-
likePost(form, options) {
|
358
|
+
async likePost(form, options) {
|
338
359
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
339
360
|
}
|
340
361
|
/**
|
341
362
|
* @summary List a post's likes. Admin-only.
|
342
363
|
*/
|
343
|
-
listPostLikes(form, options) {
|
364
|
+
async listPostLikes(form, options) {
|
344
365
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
345
366
|
}
|
346
367
|
/**
|
347
368
|
* @summary Save a post.
|
348
369
|
*/
|
349
|
-
savePost(form, options) {
|
370
|
+
async savePost(form, options) {
|
350
371
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
351
372
|
}
|
352
373
|
/**
|
353
374
|
* @summary Report a post.
|
354
375
|
*/
|
355
|
-
createPostReport(form, options) {
|
376
|
+
async createPostReport(form, options) {
|
356
377
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
357
378
|
}
|
358
379
|
/**
|
359
380
|
* @summary Resolve a post report. Only a mod can do this.
|
360
381
|
*/
|
361
|
-
resolvePostReport(form, options) {
|
382
|
+
async resolvePostReport(form, options) {
|
362
383
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
363
384
|
}
|
364
385
|
/**
|
365
386
|
* @summary Fetch metadata for any given site.
|
366
387
|
*/
|
367
|
-
getSiteMetadata(form, options) {
|
388
|
+
async getSiteMetadata(form, options) {
|
368
389
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
369
390
|
}
|
370
391
|
/**
|
371
392
|
* @summary Create a comment.
|
372
393
|
*/
|
373
|
-
createComment(form, options) {
|
394
|
+
async createComment(form, options) {
|
374
395
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
375
396
|
}
|
376
397
|
/**
|
377
398
|
* @summary Edit a comment.
|
378
399
|
*/
|
379
|
-
editComment(form, options) {
|
400
|
+
async editComment(form, options) {
|
380
401
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
381
402
|
}
|
382
403
|
/**
|
383
404
|
* @summary Delete a comment.
|
384
405
|
*/
|
385
|
-
deleteComment(form, options) {
|
406
|
+
async deleteComment(form, options) {
|
386
407
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
387
408
|
}
|
388
409
|
/**
|
389
410
|
* @summary A moderator remove for a comment.
|
390
411
|
*/
|
391
|
-
removeComment(form, options) {
|
412
|
+
async removeComment(form, options) {
|
392
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
393
414
|
}
|
394
415
|
/**
|
395
|
-
* @summary
|
416
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
396
417
|
*/
|
397
|
-
|
398
|
-
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);
|
399
420
|
}
|
400
421
|
/**
|
401
|
-
* @
|
422
|
+
* @Summary Like / vote on a comment.
|
402
423
|
*/
|
403
|
-
likeComment(form, options) {
|
424
|
+
async likeComment(form, options) {
|
404
425
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
405
426
|
}
|
406
427
|
/**
|
407
428
|
* @summary List a comment's likes. Admin-only.
|
408
429
|
*/
|
409
|
-
listCommentLikes(form, options) {
|
430
|
+
async listCommentLikes(form, options) {
|
410
431
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
411
432
|
}
|
412
433
|
/**
|
413
434
|
* @summary Save a comment.
|
414
435
|
*/
|
415
|
-
saveComment(form, options) {
|
436
|
+
async saveComment(form, options) {
|
416
437
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
417
438
|
}
|
418
439
|
/**
|
419
440
|
* @summary Distinguishes a comment (speak as moderator)
|
420
441
|
*/
|
421
|
-
distinguishComment(form, options) {
|
442
|
+
async distinguishComment(form, options) {
|
422
443
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
423
444
|
}
|
424
445
|
/**
|
425
446
|
* @summary Get / fetch comments.
|
426
447
|
*/
|
427
|
-
getComments(form = {}, options) {
|
448
|
+
async getComments(form = {}, options) {
|
428
449
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
429
450
|
}
|
430
451
|
/**
|
431
452
|
* @summary Get / fetch comments, but without the post or community.
|
432
453
|
*/
|
433
|
-
getCommentsSlim(form = {}, options) {
|
454
|
+
async getCommentsSlim(form = {}, options) {
|
434
455
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
435
456
|
}
|
436
457
|
/**
|
437
458
|
* @summary Get / fetch comment.
|
438
459
|
*/
|
439
|
-
getComment(form, options) {
|
460
|
+
async getComment(form, options) {
|
440
461
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
441
462
|
}
|
442
463
|
/**
|
443
464
|
* @summary Report a comment.
|
444
465
|
*/
|
445
|
-
createCommentReport(form, options) {
|
466
|
+
async createCommentReport(form, options) {
|
446
467
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
447
468
|
}
|
448
469
|
/**
|
449
470
|
* @summary Resolve a comment report. Only a mod can do this.
|
450
471
|
*/
|
451
|
-
resolveCommentReport(form, options) {
|
472
|
+
async resolveCommentReport(form, options) {
|
452
473
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
453
474
|
}
|
454
475
|
/**
|
455
476
|
* @summary Create a private message.
|
456
477
|
*/
|
457
|
-
createPrivateMessage(form, options) {
|
478
|
+
async createPrivateMessage(form, options) {
|
458
479
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
459
480
|
}
|
460
481
|
/**
|
461
482
|
* @summary Edit a private message.
|
462
483
|
*/
|
463
|
-
editPrivateMessage(form, options) {
|
484
|
+
async editPrivateMessage(form, options) {
|
464
485
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
465
486
|
}
|
466
487
|
/**
|
467
488
|
* @summary Delete a private message.
|
468
489
|
*/
|
469
|
-
deletePrivateMessage(form, options) {
|
490
|
+
async deletePrivateMessage(form, options) {
|
470
491
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
471
492
|
}
|
472
|
-
/**
|
473
|
-
* @summary Mark a private message as read.
|
474
|
-
*/
|
475
|
-
markPrivateMessageAsRead(form, options) {
|
476
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
477
|
-
}
|
478
493
|
/**
|
479
494
|
* @summary Create a report for a private message.
|
480
495
|
*/
|
481
|
-
createPrivateMessageReport(form, options) {
|
496
|
+
async createPrivateMessageReport(form, options) {
|
482
497
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
483
498
|
}
|
484
499
|
/**
|
485
500
|
* @summary Resolve a report for a private message.
|
486
501
|
*/
|
487
|
-
resolvePrivateMessageReport(form, options) {
|
502
|
+
async resolvePrivateMessageReport(form, options) {
|
488
503
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
489
504
|
}
|
490
505
|
/**
|
491
506
|
* @summary Register a new user.
|
492
507
|
*/
|
493
|
-
register(form, options) {
|
508
|
+
async register(form, options) {
|
494
509
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
495
510
|
}
|
496
511
|
/**
|
497
512
|
* @summary Log into lemmy.
|
498
513
|
*/
|
499
|
-
login(form, options) {
|
514
|
+
async login(form, options) {
|
500
515
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
501
516
|
}
|
502
517
|
/**
|
503
518
|
* @summary Invalidate the currently used auth token.
|
504
519
|
*/
|
505
|
-
logout(options) {
|
520
|
+
async logout(options) {
|
506
521
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
507
522
|
}
|
508
523
|
/**
|
509
524
|
* @summary Get the details for a person.
|
510
525
|
*/
|
511
|
-
getPersonDetails(form = {}, options) {
|
526
|
+
async getPersonDetails(form = {}, options) {
|
512
527
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
513
528
|
}
|
514
529
|
/**
|
515
530
|
* @summary List the content for a person.
|
516
531
|
*/
|
517
|
-
listPersonContent(form = {}, options) {
|
532
|
+
async listPersonContent(form = {}, options) {
|
518
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
519
534
|
}
|
520
535
|
/**
|
521
|
-
* @summary
|
522
|
-
*/
|
523
|
-
markCommentMentionAsRead(form, options) {
|
524
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
525
|
-
}
|
526
|
-
/**
|
527
|
-
* @summary Mark a person post body mention as read.
|
536
|
+
* @summary Make a note for a person.
|
528
537
|
*/
|
529
|
-
|
530
|
-
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);
|
531
540
|
}
|
532
541
|
/**
|
533
542
|
* @summary Ban a person from your site.
|
534
543
|
*/
|
535
|
-
banPerson(form, options) {
|
544
|
+
async banPerson(form, options) {
|
536
545
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
537
546
|
}
|
538
547
|
/**
|
539
|
-
* @summary Get a list of
|
548
|
+
* @summary Get a list of users.
|
540
549
|
*/
|
541
|
-
|
542
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/
|
550
|
+
async listUsers(form = {}, options) {
|
551
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
|
543
552
|
}
|
544
553
|
/**
|
545
554
|
* @summary Block a person.
|
546
555
|
*/
|
547
|
-
blockPerson(form, options) {
|
556
|
+
async blockPerson(form, options) {
|
548
557
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
549
558
|
}
|
550
559
|
/**
|
551
560
|
* @summary Fetch a Captcha.
|
552
561
|
*/
|
553
|
-
getCaptcha(options) {
|
562
|
+
async getCaptcha(options) {
|
554
563
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
555
564
|
}
|
556
565
|
/**
|
557
566
|
* @summary Delete your account.
|
558
567
|
*/
|
559
|
-
deleteAccount(form, options) {
|
568
|
+
async deleteAccount(form, options) {
|
560
569
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
561
570
|
}
|
562
571
|
/**
|
563
572
|
* @summary Reset your password.
|
564
573
|
*/
|
565
|
-
passwordReset(form, options) {
|
574
|
+
async passwordReset(form, options) {
|
566
575
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
567
576
|
}
|
568
577
|
/**
|
569
578
|
* @summary Change your password from an email / token based reset.
|
570
579
|
*/
|
571
|
-
passwordChangeAfterReset(form, options) {
|
580
|
+
async passwordChangeAfterReset(form, options) {
|
572
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
573
582
|
}
|
574
583
|
/**
|
575
584
|
* @summary Mark all replies as read.
|
576
585
|
*/
|
577
|
-
markAllNotificationsAsRead(options) {
|
586
|
+
async markAllNotificationsAsRead(options) {
|
578
587
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
579
588
|
}
|
589
|
+
/**
|
590
|
+
* @summary Mark a comment as read.
|
591
|
+
*/
|
592
|
+
async markNotificationAsRead(form, options) {
|
593
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
|
594
|
+
}
|
580
595
|
/**
|
581
596
|
* @summary Save your user settings.
|
582
597
|
*/
|
583
|
-
saveUserSettings(form, options) {
|
598
|
+
async saveUserSettings(form, options) {
|
584
599
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
585
600
|
}
|
586
601
|
/**
|
587
602
|
* @summary Change your user password.
|
588
603
|
*/
|
589
|
-
changePassword(form, options) {
|
604
|
+
async changePassword(form, options) {
|
590
605
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
591
606
|
}
|
592
607
|
/**
|
593
608
|
* @summary Get counts for your reports.
|
594
609
|
*/
|
595
|
-
getReportCount(form, options) {
|
610
|
+
async getReportCount(form, options) {
|
596
611
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
597
612
|
}
|
598
613
|
/**
|
599
614
|
* @summary Get your unread counts.
|
600
615
|
*/
|
601
|
-
getUnreadCount(options) {
|
616
|
+
async getUnreadCount(options) {
|
602
617
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
603
618
|
}
|
604
619
|
/**
|
605
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
606
621
|
*/
|
607
|
-
|
608
|
-
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/notifications", form, options);
|
609
624
|
}
|
610
625
|
/**
|
611
626
|
* @summary Verify your email
|
612
627
|
*/
|
613
|
-
verifyEmail(form, options) {
|
628
|
+
async verifyEmail(form, options) {
|
614
629
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
615
630
|
}
|
616
631
|
/**
|
617
632
|
* @summary Resend a verification email.
|
618
633
|
*/
|
619
|
-
resendVerificationEmail(form, options) {
|
634
|
+
async resendVerificationEmail(form, options) {
|
620
635
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
621
636
|
}
|
622
637
|
/**
|
623
638
|
* @summary List your saved content.
|
624
639
|
*/
|
625
|
-
listPersonSaved(form, options) {
|
626
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
640
|
+
async listPersonSaved(form, options) {
|
641
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
642
|
+
}
|
643
|
+
/**
|
644
|
+
* @summary List your read content.
|
645
|
+
*/
|
646
|
+
async listPersonRead(form, options) {
|
647
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
|
648
|
+
}
|
649
|
+
/**
|
650
|
+
* @summary List your hidden content.
|
651
|
+
*/
|
652
|
+
async listPersonHidden(form, options) {
|
653
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
|
654
|
+
}
|
655
|
+
/**
|
656
|
+
* @summary List your liked content.
|
657
|
+
*/
|
658
|
+
async listPersonLiked(form, options) {
|
659
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
|
627
660
|
}
|
628
661
|
/**
|
629
662
|
* @summary Add an admin to your site.
|
630
663
|
*/
|
631
|
-
addAdmin(form, options) {
|
664
|
+
async addAdmin(form, options) {
|
632
665
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
633
666
|
}
|
634
667
|
/**
|
635
668
|
* @summary Get the unread registration applications count.
|
636
669
|
*/
|
637
|
-
getUnreadRegistrationApplicationCount(options) {
|
670
|
+
async getUnreadRegistrationApplicationCount(options) {
|
638
671
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
639
672
|
}
|
640
673
|
/**
|
641
674
|
* @summary List the registration applications.
|
642
675
|
*/
|
643
|
-
listRegistrationApplications(form, options) {
|
676
|
+
async listRegistrationApplications(form, options) {
|
644
677
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
645
678
|
}
|
646
679
|
/**
|
647
680
|
* @summary Approve a registration application
|
648
681
|
*/
|
649
|
-
approveRegistrationApplication(form, options) {
|
682
|
+
async approveRegistrationApplication(form, options) {
|
650
683
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
651
684
|
}
|
652
685
|
/**
|
653
686
|
* @summary Get the application a user submitted when they first registered their account
|
654
687
|
*/
|
655
|
-
getRegistrationApplication(form, options) {
|
688
|
+
async getRegistrationApplication(form, options) {
|
656
689
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
657
690
|
}
|
658
691
|
/**
|
659
692
|
* @summary Purge / Delete a person from the database.
|
660
693
|
*/
|
661
|
-
purgePerson(form, options) {
|
694
|
+
async purgePerson(form, options) {
|
662
695
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
663
696
|
}
|
664
697
|
/**
|
665
698
|
* @summary Purge / Delete a community from the database.
|
666
699
|
*/
|
667
|
-
purgeCommunity(form, options) {
|
700
|
+
async purgeCommunity(form, options) {
|
668
701
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
669
702
|
}
|
670
703
|
/**
|
671
704
|
* @summary Purge / Delete a post from the database.
|
672
705
|
*/
|
673
|
-
purgePost(form, options) {
|
706
|
+
async purgePost(form, options) {
|
674
707
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
675
708
|
}
|
676
709
|
/**
|
677
710
|
* @summary Purge / Delete a comment from the database.
|
678
711
|
*/
|
679
|
-
purgeComment(form, options) {
|
712
|
+
async purgeComment(form, options) {
|
680
713
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
681
714
|
}
|
682
715
|
/**
|
683
716
|
* @summary Create a new custom emoji.
|
684
717
|
*/
|
685
|
-
createCustomEmoji(form, options) {
|
718
|
+
async createCustomEmoji(form, options) {
|
686
719
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
687
720
|
}
|
688
721
|
/**
|
689
722
|
* @summary Edit an existing custom emoji.
|
690
723
|
*/
|
691
|
-
editCustomEmoji(form, options) {
|
724
|
+
async editCustomEmoji(form, options) {
|
692
725
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
693
726
|
}
|
694
727
|
/**
|
695
728
|
* @summary Delete a custom emoji.
|
696
729
|
*/
|
697
|
-
deleteCustomEmoji(form, options) {
|
730
|
+
async deleteCustomEmoji(form, options) {
|
698
731
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
699
732
|
}
|
700
733
|
/**
|
701
734
|
* @summary List custom emojis
|
702
735
|
*/
|
703
|
-
listCustomEmojis(form, options) {
|
736
|
+
async listCustomEmojis(form, options) {
|
704
737
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
705
738
|
}
|
706
739
|
/**
|
707
740
|
* @summary Create a new tagline
|
708
741
|
*/
|
709
|
-
createTagline(form, options) {
|
742
|
+
async createTagline(form, options) {
|
710
743
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
711
744
|
}
|
712
745
|
/**
|
713
746
|
* @summary Edit an existing tagline
|
714
747
|
*/
|
715
|
-
editTagline(form, options) {
|
748
|
+
async editTagline(form, options) {
|
716
749
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
717
750
|
}
|
718
751
|
/**
|
719
752
|
* @summary Delete a tagline
|
720
753
|
*/
|
721
|
-
deleteTagline(form, options) {
|
754
|
+
async deleteTagline(form, options) {
|
722
755
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
723
756
|
}
|
724
757
|
/**
|
725
758
|
* @summary List taglines.
|
726
759
|
*/
|
727
|
-
listTaglines(form, options) {
|
760
|
+
async listTaglines(form, options) {
|
728
761
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
729
762
|
}
|
763
|
+
/**
|
764
|
+
* @summary Create a community post tag.
|
765
|
+
*/
|
766
|
+
createCommunityTag(form, options) {
|
767
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
768
|
+
}
|
769
|
+
/**
|
770
|
+
* @summary Edit a community post tag.
|
771
|
+
*/
|
772
|
+
updateCommunityTag(form, options) {
|
773
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
774
|
+
}
|
775
|
+
/**
|
776
|
+
* @summary Delete a post tag in a community.
|
777
|
+
*/
|
778
|
+
deleteCommunityTag(form, options) {
|
779
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
|
780
|
+
}
|
730
781
|
/**
|
731
782
|
* @summary Create a new oauth provider method
|
732
783
|
*/
|
733
|
-
createOAuthProvider(form, options) {
|
784
|
+
async createOAuthProvider(form, options) {
|
734
785
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
735
786
|
}
|
736
787
|
/**
|
737
788
|
* @summary Edit an existing oauth provider method
|
738
789
|
*/
|
739
|
-
editOAuthProvider(form, options) {
|
790
|
+
async editOAuthProvider(form, options) {
|
740
791
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
741
792
|
}
|
742
793
|
/**
|
743
794
|
* @summary Delete an oauth provider method
|
744
795
|
*/
|
745
|
-
deleteOAuthProvider(form, options) {
|
796
|
+
async deleteOAuthProvider(form, options) {
|
746
797
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
747
798
|
}
|
748
799
|
/**
|
749
800
|
* @summary Authenticate with OAuth
|
750
801
|
*/
|
751
|
-
authenticateWithOAuth(form, options) {
|
802
|
+
async authenticateWithOAuth(form, options) {
|
752
803
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
753
804
|
}
|
754
805
|
/**
|
755
806
|
* @summary Fetch federated instances.
|
756
807
|
*/
|
757
|
-
getFederatedInstances(options) {
|
808
|
+
async getFederatedInstances(options) {
|
758
809
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
759
810
|
}
|
760
811
|
/**
|
761
812
|
* @summary List user reports.
|
762
813
|
*/
|
763
|
-
listReports(form, options) {
|
814
|
+
async listReports(form, options) {
|
764
815
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
765
816
|
}
|
766
817
|
/**
|
767
|
-
* @summary Block an instance as user.
|
818
|
+
* @summary Block an instance's communities as a user.
|
819
|
+
*/
|
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.
|
768
825
|
*/
|
769
|
-
|
770
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
826
|
+
async userBlockInstancePersons(form, options) {
|
827
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
|
771
828
|
}
|
772
829
|
/**
|
773
830
|
* @summary Globally block an instance as admin.
|
774
831
|
*/
|
775
|
-
adminBlockInstance(form, options) {
|
832
|
+
async adminBlockInstance(form, options) {
|
776
833
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
777
834
|
}
|
778
835
|
/**
|
779
836
|
* @summary Globally allow an instance as admin.
|
780
837
|
*/
|
781
|
-
adminAllowInstance(form, options) {
|
838
|
+
async adminAllowInstance(form, options) {
|
782
839
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
783
840
|
}
|
784
841
|
/**
|
785
842
|
* @summary Upload new user avatar.
|
786
843
|
*/
|
787
|
-
uploadUserAvatar(image, options) {
|
788
|
-
return
|
789
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
|
790
|
-
});
|
844
|
+
async uploadUserAvatar(image, options) {
|
845
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
|
791
846
|
}
|
792
847
|
/**
|
793
848
|
* @summary Delete the user avatar.
|
794
849
|
*/
|
795
|
-
deleteUserAvatar(options) {
|
796
|
-
return
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
|
798
|
-
});
|
850
|
+
async deleteUserAvatar(options) {
|
851
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
|
799
852
|
}
|
800
853
|
/**
|
801
854
|
* @summary Upload new user banner.
|
802
855
|
*/
|
803
|
-
uploadUserBanner(image, options) {
|
804
|
-
return
|
805
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
|
806
|
-
});
|
856
|
+
async uploadUserBanner(image, options) {
|
857
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
|
807
858
|
}
|
808
859
|
/**
|
809
860
|
* @summary Delete the user banner.
|
810
861
|
*/
|
811
|
-
deleteUserBanner(options) {
|
812
|
-
return
|
813
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
|
814
|
-
});
|
862
|
+
async deleteUserBanner(options) {
|
863
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
|
815
864
|
}
|
816
865
|
/**
|
817
866
|
* @summary Upload new community icon.
|
818
867
|
*/
|
819
|
-
uploadCommunityIcon(image, options) {
|
820
|
-
return
|
821
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
|
822
|
-
});
|
868
|
+
async uploadCommunityIcon(query, image, options) {
|
869
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
|
823
870
|
}
|
824
871
|
/**
|
825
872
|
* @summary Delete the community icon.
|
826
873
|
*/
|
827
|
-
deleteCommunityIcon(options) {
|
828
|
-
return
|
829
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
|
830
|
-
});
|
874
|
+
async deleteCommunityIcon(form, options) {
|
875
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
|
831
876
|
}
|
832
877
|
/**
|
833
878
|
* @summary Upload new community banner.
|
834
879
|
*/
|
835
|
-
uploadCommunityBanner(image, options) {
|
836
|
-
return
|
837
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
|
838
|
-
});
|
880
|
+
async uploadCommunityBanner(query, image, options) {
|
881
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
|
839
882
|
}
|
840
883
|
/**
|
841
884
|
* @summary Delete the community banner.
|
842
885
|
*/
|
843
|
-
deleteCommunityBanner(options) {
|
844
|
-
return
|
845
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
|
846
|
-
});
|
886
|
+
async deleteCommunityBanner(form, options) {
|
887
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
|
847
888
|
}
|
848
889
|
/**
|
849
890
|
* @summary Upload new site icon.
|
850
891
|
*/
|
851
|
-
uploadSiteIcon(image, options) {
|
852
|
-
return
|
853
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
|
854
|
-
});
|
892
|
+
async uploadSiteIcon(image, options) {
|
893
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
|
855
894
|
}
|
856
895
|
/**
|
857
896
|
* @summary Delete the site icon.
|
858
897
|
*/
|
859
|
-
deleteSiteIcon(options) {
|
860
|
-
return
|
861
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
|
862
|
-
});
|
898
|
+
async deleteSiteIcon(options) {
|
899
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
|
863
900
|
}
|
864
901
|
/**
|
865
902
|
* @summary Upload new site banner.
|
866
903
|
*/
|
867
|
-
uploadSiteBanner(image, options) {
|
868
|
-
return
|
869
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
|
870
|
-
});
|
904
|
+
async uploadSiteBanner(image, options) {
|
905
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
|
871
906
|
}
|
872
907
|
/**
|
873
908
|
* @summary Delete the site banner.
|
874
909
|
*/
|
875
|
-
deleteSiteBanner(options) {
|
876
|
-
return
|
877
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
|
878
|
-
});
|
910
|
+
async deleteSiteBanner(options) {
|
911
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
|
879
912
|
}
|
880
913
|
/**
|
881
914
|
* @summary Upload an image to the server.
|
882
915
|
*/
|
883
|
-
uploadImage(image, options) {
|
884
|
-
return
|
885
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
886
|
-
});
|
916
|
+
async uploadImage(image, options) {
|
917
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
887
918
|
}
|
888
919
|
/**
|
889
|
-
* @summary
|
920
|
+
* @summary Health check for image functionality
|
890
921
|
*/
|
891
|
-
|
892
|
-
return
|
893
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
894
|
-
});
|
922
|
+
async imageHealth(options) {
|
923
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
|
895
924
|
}
|
896
925
|
/**
|
897
|
-
*
|
926
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
898
927
|
*/
|
899
|
-
|
900
|
-
return
|
901
|
-
|
902
|
-
|
928
|
+
donationDialogShown(options) {
|
929
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/donation_dialog_shown", {}, options);
|
930
|
+
}
|
931
|
+
createMultiCommunity(form, options) {
|
932
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
933
|
+
}
|
934
|
+
updateMultiCommunity(form, options) {
|
935
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
|
936
|
+
}
|
937
|
+
getMultiCommunity(form, options) {
|
938
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
|
939
|
+
}
|
940
|
+
createMultiCommunityEntry(form, options) {
|
941
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
|
942
|
+
}
|
943
|
+
deleteMultiCommunityEntry(form, options) {
|
944
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
|
945
|
+
}
|
946
|
+
listMultiCommunities(form, options) {
|
947
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
|
948
|
+
}
|
949
|
+
followMultiCommunity(form, options) {
|
950
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
|
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);
|
903
963
|
}
|
904
964
|
/**
|
905
965
|
* Set the headers (can be used to set the auth header)
|
@@ -916,961 +976,1118 @@ _LemmyHttp_instances = new WeakSet();
|
|
916
976
|
_LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
|
917
977
|
return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
|
918
978
|
};
|
919
|
-
_LemmyHttp_upload = function _LemmyHttp_upload(
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
979
|
+
_LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
|
980
|
+
const formData = createFormData(image);
|
981
|
+
const response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), {
|
982
|
+
...options,
|
983
|
+
method: HttpType.Post,
|
984
|
+
body: formData,
|
985
|
+
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
924
986
|
});
|
987
|
+
return response.json();
|
925
988
|
};
|
926
|
-
|
927
|
-
return
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
989
|
+
_LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
|
990
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
|
991
|
+
};
|
992
|
+
_LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
|
993
|
+
let response;
|
994
|
+
if (type_ === HttpType.Get) {
|
995
|
+
const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
|
996
|
+
response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
|
997
|
+
...options,
|
998
|
+
method: HttpType.Get,
|
999
|
+
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
1000
|
+
});
|
1001
|
+
}
|
1002
|
+
else {
|
1003
|
+
response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
|
1004
|
+
...options,
|
1005
|
+
method: type_,
|
1006
|
+
headers: {
|
1007
|
+
"Content-Type": "application/json",
|
1008
|
+
...__classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
1009
|
+
},
|
1010
|
+
body: JSON.stringify(form),
|
1011
|
+
});
|
1012
|
+
}
|
1013
|
+
let json = undefined;
|
1014
|
+
try {
|
1015
|
+
json = await response.json();
|
1016
|
+
}
|
1017
|
+
catch {
|
1018
|
+
throw new LemmyError(response.statusText);
|
1019
|
+
}
|
1020
|
+
if (!response.ok) {
|
1021
|
+
let err = new LemmyError(json.error ?? response.statusText, json.message);
|
1022
|
+
throw err;
|
1023
|
+
}
|
1024
|
+
else {
|
1025
|
+
return json;
|
1026
|
+
}
|
951
1027
|
};
|
952
1028
|
__decorate([
|
953
|
-
(0,
|
954
|
-
(0,
|
955
|
-
(0,
|
956
|
-
(0,
|
957
|
-
__param(0, (0,
|
1029
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1030
|
+
(0, runtime_1.Security)({}),
|
1031
|
+
(0, runtime_1.Get)("/site"),
|
1032
|
+
(0, runtime_1.Tags)("Site"),
|
1033
|
+
__param(0, (0, runtime_1.Inject)())
|
958
1034
|
], LemmyHttp.prototype, "getSite", null);
|
959
1035
|
__decorate([
|
960
|
-
(0,
|
961
|
-
(0,
|
962
|
-
(0,
|
963
|
-
__param(0, (0,
|
964
|
-
__param(1, (0,
|
1036
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1037
|
+
(0, runtime_1.Post)("/site"),
|
1038
|
+
(0, runtime_1.Tags)("Site"),
|
1039
|
+
__param(0, (0, runtime_1.Body)()),
|
1040
|
+
__param(1, (0, runtime_1.Inject)())
|
965
1041
|
], LemmyHttp.prototype, "createSite", null);
|
966
1042
|
__decorate([
|
967
|
-
(0,
|
968
|
-
(0,
|
969
|
-
(0,
|
970
|
-
__param(0, (0,
|
971
|
-
__param(1, (0,
|
1043
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1044
|
+
(0, runtime_1.Put)("/site"),
|
1045
|
+
(0, runtime_1.Tags)("Site"),
|
1046
|
+
__param(0, (0, runtime_1.Body)()),
|
1047
|
+
__param(1, (0, runtime_1.Inject)())
|
972
1048
|
], LemmyHttp.prototype, "editSite", null);
|
973
1049
|
__decorate([
|
974
|
-
(0,
|
975
|
-
(0,
|
976
|
-
(0,
|
977
|
-
__param(0, (0,
|
1050
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1051
|
+
(0, runtime_1.Post)("/admin/leave"),
|
1052
|
+
(0, runtime_1.Tags)("Admin"),
|
1053
|
+
__param(0, (0, runtime_1.Inject)())
|
978
1054
|
], LemmyHttp.prototype, "leaveAdmin", null);
|
979
1055
|
__decorate([
|
980
|
-
(0,
|
981
|
-
(0,
|
982
|
-
(0,
|
983
|
-
__param(0, (0,
|
1056
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1057
|
+
(0, runtime_1.Post)("/account/auth/totp/generate"),
|
1058
|
+
(0, runtime_1.Tags)("Account"),
|
1059
|
+
__param(0, (0, runtime_1.Inject)())
|
984
1060
|
], LemmyHttp.prototype, "generateTotpSecret", null);
|
985
1061
|
__decorate([
|
986
|
-
(0,
|
987
|
-
(0,
|
988
|
-
(0,
|
989
|
-
__param(0, (0,
|
1062
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1063
|
+
(0, runtime_1.Get)("/account"),
|
1064
|
+
(0, runtime_1.Tags)("Account"),
|
1065
|
+
__param(0, (0, runtime_1.Inject)())
|
990
1066
|
], LemmyHttp.prototype, "getMyUser", null);
|
991
1067
|
__decorate([
|
992
|
-
(0,
|
993
|
-
(0,
|
994
|
-
(0,
|
995
|
-
__param(0, (0,
|
1068
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1069
|
+
(0, runtime_1.Get)("/account/settings/export"),
|
1070
|
+
(0, runtime_1.Tags)("Account"),
|
1071
|
+
__param(0, (0, runtime_1.Inject)())
|
996
1072
|
], LemmyHttp.prototype, "exportSettings", null);
|
997
1073
|
__decorate([
|
998
|
-
(0,
|
999
|
-
(0,
|
1000
|
-
(0,
|
1001
|
-
__param(0, (0,
|
1002
|
-
__param(1, (0,
|
1074
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1075
|
+
(0, runtime_1.Post)("/account/settings/import"),
|
1076
|
+
(0, runtime_1.Tags)("Account"),
|
1077
|
+
__param(0, (0, runtime_1.Body)()),
|
1078
|
+
__param(1, (0, runtime_1.Inject)())
|
1003
1079
|
], LemmyHttp.prototype, "importSettings", null);
|
1004
1080
|
__decorate([
|
1005
|
-
(0,
|
1006
|
-
(0,
|
1007
|
-
(0,
|
1008
|
-
__param(0, (0,
|
1081
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1082
|
+
(0, runtime_1.Get)("/account/list_logins"),
|
1083
|
+
(0, runtime_1.Tags)("Account"),
|
1084
|
+
__param(0, (0, runtime_1.Inject)())
|
1009
1085
|
], LemmyHttp.prototype, "listLogins", null);
|
1010
1086
|
__decorate([
|
1011
|
-
(0,
|
1012
|
-
(0,
|
1013
|
-
(0,
|
1014
|
-
__param(0, (0,
|
1087
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1088
|
+
(0, runtime_1.Get)("/account/validate_auth"),
|
1089
|
+
(0, runtime_1.Tags)("Account"),
|
1090
|
+
__param(0, (0, runtime_1.Inject)())
|
1015
1091
|
], LemmyHttp.prototype, "validateAuth", null);
|
1016
1092
|
__decorate([
|
1017
|
-
(0,
|
1018
|
-
(0,
|
1019
|
-
(0,
|
1020
|
-
__param(0, (0,
|
1021
|
-
__param(1, (0,
|
1093
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1094
|
+
(0, runtime_1.Get)("/account/media/list"),
|
1095
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1096
|
+
__param(0, (0, runtime_1.Queries)()),
|
1097
|
+
__param(1, (0, runtime_1.Inject)())
|
1022
1098
|
], LemmyHttp.prototype, "listMedia", null);
|
1023
1099
|
__decorate([
|
1024
|
-
(0,
|
1025
|
-
(0,
|
1026
|
-
(0,
|
1027
|
-
__param(0, (0,
|
1028
|
-
__param(1, (0,
|
1029
|
-
], LemmyHttp.prototype, "
|
1030
|
-
__decorate([
|
1031
|
-
(0,
|
1032
|
-
(0,
|
1033
|
-
(0,
|
1034
|
-
__param(0, (0,
|
1035
|
-
__param(1, (0,
|
1100
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1101
|
+
(0, runtime_1.Delete)("/account/media"),
|
1102
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1103
|
+
__param(0, (0, runtime_1.Queries)()),
|
1104
|
+
__param(1, (0, runtime_1.Inject)())
|
1105
|
+
], LemmyHttp.prototype, "deleteMedia", null);
|
1106
|
+
__decorate([
|
1107
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1108
|
+
(0, runtime_1.Delete)("/image"),
|
1109
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1110
|
+
__param(0, (0, runtime_1.Queries)()),
|
1111
|
+
__param(1, (0, runtime_1.Inject)())
|
1112
|
+
], LemmyHttp.prototype, "deleteMediaAdmin", null);
|
1113
|
+
__decorate([
|
1114
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1115
|
+
(0, runtime_1.Get)("/image/list"),
|
1116
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1117
|
+
__param(0, (0, runtime_1.Queries)()),
|
1118
|
+
__param(1, (0, runtime_1.Inject)())
|
1119
|
+
], LemmyHttp.prototype, "listMediaAdmin", null);
|
1120
|
+
__decorate([
|
1121
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1122
|
+
(0, runtime_1.Post)("/account/auth/totp/update"),
|
1123
|
+
(0, runtime_1.Tags)("Account"),
|
1124
|
+
__param(0, (0, runtime_1.Body)()),
|
1125
|
+
__param(1, (0, runtime_1.Inject)())
|
1036
1126
|
], LemmyHttp.prototype, "updateTotp", null);
|
1037
1127
|
__decorate([
|
1038
|
-
(0,
|
1039
|
-
(0,
|
1040
|
-
(0,
|
1041
|
-
(0,
|
1042
|
-
__param(0, (0,
|
1043
|
-
__param(1, (0,
|
1128
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1129
|
+
(0, runtime_1.Security)({}),
|
1130
|
+
(0, runtime_1.Get)("/modlog"),
|
1131
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1132
|
+
__param(0, (0, runtime_1.Queries)()),
|
1133
|
+
__param(1, (0, runtime_1.Inject)())
|
1044
1134
|
], LemmyHttp.prototype, "getModlog", null);
|
1045
1135
|
__decorate([
|
1046
|
-
(0,
|
1047
|
-
(0,
|
1048
|
-
(0,
|
1049
|
-
(0,
|
1050
|
-
__param(0, (0,
|
1051
|
-
__param(1, (0,
|
1136
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1137
|
+
(0, runtime_1.Security)({}),
|
1138
|
+
(0, runtime_1.Get)("/search"),
|
1139
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1140
|
+
__param(0, (0, runtime_1.Queries)()),
|
1141
|
+
__param(1, (0, runtime_1.Inject)())
|
1052
1142
|
], LemmyHttp.prototype, "search", null);
|
1053
1143
|
__decorate([
|
1054
|
-
(0,
|
1055
|
-
(0,
|
1056
|
-
(0,
|
1057
|
-
(0,
|
1058
|
-
__param(0, (0,
|
1059
|
-
__param(1, (0,
|
1144
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1145
|
+
(0, runtime_1.Security)({}),
|
1146
|
+
(0, runtime_1.Get)("/resolve_object"),
|
1147
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1148
|
+
__param(0, (0, runtime_1.Queries)()),
|
1149
|
+
__param(1, (0, runtime_1.Inject)())
|
1060
1150
|
], LemmyHttp.prototype, "resolveObject", null);
|
1061
1151
|
__decorate([
|
1062
|
-
(0,
|
1063
|
-
(0,
|
1064
|
-
(0,
|
1065
|
-
__param(0, (0,
|
1066
|
-
__param(1, (0,
|
1152
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1153
|
+
(0, runtime_1.Post)("/community"),
|
1154
|
+
(0, runtime_1.Tags)("Community"),
|
1155
|
+
__param(0, (0, runtime_1.Body)()),
|
1156
|
+
__param(1, (0, runtime_1.Inject)())
|
1067
1157
|
], LemmyHttp.prototype, "createCommunity", null);
|
1068
1158
|
__decorate([
|
1069
|
-
(0,
|
1070
|
-
(0,
|
1071
|
-
(0,
|
1072
|
-
(0,
|
1073
|
-
__param(0, (0,
|
1074
|
-
__param(1, (0,
|
1159
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1160
|
+
(0, runtime_1.Security)({}),
|
1161
|
+
(0, runtime_1.Get)("/community"),
|
1162
|
+
(0, runtime_1.Tags)("Community"),
|
1163
|
+
__param(0, (0, runtime_1.Queries)()),
|
1164
|
+
__param(1, (0, runtime_1.Inject)())
|
1075
1165
|
], LemmyHttp.prototype, "getCommunity", null);
|
1076
1166
|
__decorate([
|
1077
|
-
(0,
|
1078
|
-
(0,
|
1079
|
-
(0,
|
1080
|
-
__param(0, (0,
|
1081
|
-
__param(1, (0,
|
1167
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1168
|
+
(0, runtime_1.Put)("/community"),
|
1169
|
+
(0, runtime_1.Tags)("Community"),
|
1170
|
+
__param(0, (0, runtime_1.Body)()),
|
1171
|
+
__param(1, (0, runtime_1.Inject)())
|
1082
1172
|
], LemmyHttp.prototype, "editCommunity", null);
|
1083
1173
|
__decorate([
|
1084
|
-
(0,
|
1085
|
-
(0,
|
1086
|
-
(0,
|
1087
|
-
(0,
|
1088
|
-
__param(0, (0,
|
1089
|
-
__param(1, (0,
|
1174
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1175
|
+
(0, runtime_1.Security)({}),
|
1176
|
+
(0, runtime_1.Get)("/community/list"),
|
1177
|
+
(0, runtime_1.Tags)("Community"),
|
1178
|
+
__param(0, (0, runtime_1.Queries)()),
|
1179
|
+
__param(1, (0, runtime_1.Inject)())
|
1090
1180
|
], LemmyHttp.prototype, "listCommunities", null);
|
1091
1181
|
__decorate([
|
1092
|
-
(0,
|
1093
|
-
(0,
|
1094
|
-
(0,
|
1095
|
-
__param(0, (0,
|
1096
|
-
__param(1, (0,
|
1097
|
-
__param(1, (0,
|
1182
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1183
|
+
(0, runtime_1.Post)("/community/follow"),
|
1184
|
+
(0, runtime_1.Tags)("Community"),
|
1185
|
+
__param(0, (0, runtime_1.Body)()),
|
1186
|
+
__param(1, (0, runtime_1.Inject)()),
|
1187
|
+
__param(1, (0, runtime_1.Inject)())
|
1098
1188
|
], LemmyHttp.prototype, "followCommunity", null);
|
1099
1189
|
__decorate([
|
1100
|
-
(0,
|
1101
|
-
(0,
|
1102
|
-
(0,
|
1103
|
-
__param(0, (0,
|
1104
|
-
__param(1, (0,
|
1190
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1191
|
+
(0, runtime_1.Get)("/community/pending_follows/count"),
|
1192
|
+
(0, runtime_1.Tags)("Community"),
|
1193
|
+
__param(0, (0, runtime_1.Queries)()),
|
1194
|
+
__param(1, (0, runtime_1.Inject)())
|
1105
1195
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
1106
1196
|
__decorate([
|
1107
|
-
(0,
|
1108
|
-
(0,
|
1109
|
-
(0,
|
1110
|
-
__param(0, (0,
|
1111
|
-
__param(1, (0,
|
1197
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1198
|
+
(0, runtime_1.Get)("/community/pending_follows/list"),
|
1199
|
+
(0, runtime_1.Tags)("Community"),
|
1200
|
+
__param(0, (0, runtime_1.Queries)()),
|
1201
|
+
__param(1, (0, runtime_1.Inject)())
|
1112
1202
|
], LemmyHttp.prototype, "listCommunityPendingFollows", null);
|
1113
1203
|
__decorate([
|
1114
|
-
(0,
|
1115
|
-
(0,
|
1116
|
-
(0,
|
1117
|
-
__param(0, (0,
|
1118
|
-
__param(1, (0,
|
1204
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1205
|
+
(0, runtime_1.Post)("/community/pending_follows/approve"),
|
1206
|
+
(0, runtime_1.Tags)("Community"),
|
1207
|
+
__param(0, (0, runtime_1.Body)()),
|
1208
|
+
__param(1, (0, runtime_1.Inject)())
|
1119
1209
|
], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
|
1120
1210
|
__decorate([
|
1121
|
-
(0,
|
1122
|
-
(0,
|
1123
|
-
(0,
|
1124
|
-
__param(0, (0,
|
1125
|
-
__param(1, (0,
|
1211
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1212
|
+
(0, runtime_1.Post)("/account/block/community"),
|
1213
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
1214
|
+
__param(0, (0, runtime_1.Body)()),
|
1215
|
+
__param(1, (0, runtime_1.Inject)())
|
1126
1216
|
], LemmyHttp.prototype, "blockCommunity", null);
|
1127
1217
|
__decorate([
|
1128
|
-
(0,
|
1129
|
-
(0,
|
1130
|
-
(0,
|
1131
|
-
__param(0, (0,
|
1132
|
-
__param(1, (0,
|
1218
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1219
|
+
(0, runtime_1.Post)("/community/delete"),
|
1220
|
+
(0, runtime_1.Tags)("Community"),
|
1221
|
+
__param(0, (0, runtime_1.Body)()),
|
1222
|
+
__param(1, (0, runtime_1.Inject)())
|
1133
1223
|
], LemmyHttp.prototype, "deleteCommunity", null);
|
1134
1224
|
__decorate([
|
1135
|
-
(0,
|
1136
|
-
(0,
|
1137
|
-
(0,
|
1138
|
-
__param(0, (0,
|
1139
|
-
__param(1, (0,
|
1225
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1226
|
+
(0, runtime_1.Put)("/community/hide"),
|
1227
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
1228
|
+
__param(0, (0, runtime_1.Body)()),
|
1229
|
+
__param(1, (0, runtime_1.Inject)())
|
1140
1230
|
], LemmyHttp.prototype, "hideCommunity", null);
|
1141
1231
|
__decorate([
|
1142
|
-
(0,
|
1143
|
-
(0,
|
1144
|
-
(0,
|
1145
|
-
__param(0, (0,
|
1146
|
-
__param(1, (0,
|
1232
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1233
|
+
(0, runtime_1.Post)("/community/remove"),
|
1234
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1235
|
+
__param(0, (0, runtime_1.Body)()),
|
1236
|
+
__param(1, (0, runtime_1.Inject)())
|
1147
1237
|
], LemmyHttp.prototype, "removeCommunity", null);
|
1148
1238
|
__decorate([
|
1149
|
-
(0,
|
1150
|
-
(0,
|
1151
|
-
(0,
|
1152
|
-
__param(0, (0,
|
1153
|
-
__param(1, (0,
|
1239
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1240
|
+
(0, runtime_1.Post)("/community/transfer"),
|
1241
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1242
|
+
__param(0, (0, runtime_1.Body)()),
|
1243
|
+
__param(1, (0, runtime_1.Inject)())
|
1154
1244
|
], LemmyHttp.prototype, "transferCommunity", null);
|
1155
1245
|
__decorate([
|
1156
|
-
(0,
|
1157
|
-
(0,
|
1158
|
-
(0,
|
1159
|
-
__param(0, (0,
|
1160
|
-
__param(1, (0,
|
1246
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1247
|
+
(0, runtime_1.Post)("/community/ban_user"),
|
1248
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1249
|
+
__param(0, (0, runtime_1.Body)()),
|
1250
|
+
__param(1, (0, runtime_1.Inject)())
|
1161
1251
|
], LemmyHttp.prototype, "banFromCommunity", null);
|
1162
1252
|
__decorate([
|
1163
|
-
(0,
|
1164
|
-
(0,
|
1165
|
-
(0,
|
1166
|
-
__param(0, (0,
|
1167
|
-
__param(1, (0,
|
1253
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1254
|
+
(0, runtime_1.Post)("/community/mod"),
|
1255
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1256
|
+
__param(0, (0, runtime_1.Body)()),
|
1257
|
+
__param(1, (0, runtime_1.Inject)())
|
1168
1258
|
], LemmyHttp.prototype, "addModToCommunity", null);
|
1169
1259
|
__decorate([
|
1170
|
-
(0,
|
1171
|
-
(0,
|
1172
|
-
(0,
|
1173
|
-
(0,
|
1174
|
-
__param(0, (0,
|
1175
|
-
__param(1, (0,
|
1260
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1261
|
+
(0, runtime_1.Security)({}),
|
1262
|
+
(0, runtime_1.Get)("/community/random"),
|
1263
|
+
(0, runtime_1.Tags)("Community"),
|
1264
|
+
__param(0, (0, runtime_1.Queries)()),
|
1265
|
+
__param(1, (0, runtime_1.Inject)())
|
1176
1266
|
], LemmyHttp.prototype, "getRandomCommunity", null);
|
1177
1267
|
__decorate([
|
1178
|
-
(0,
|
1179
|
-
(0,
|
1180
|
-
(0,
|
1181
|
-
__param(0, (0,
|
1182
|
-
__param(1, (0,
|
1268
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1269
|
+
(0, runtime_1.Post)("/community/report"),
|
1270
|
+
(0, runtime_1.Tags)("Community"),
|
1271
|
+
__param(0, (0, runtime_1.Body)()),
|
1272
|
+
__param(1, (0, runtime_1.Inject)())
|
1273
|
+
], LemmyHttp.prototype, "createCommunityReport", null);
|
1274
|
+
__decorate([
|
1275
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1276
|
+
(0, runtime_1.Put)("/community/report/resolve"),
|
1277
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
1278
|
+
__param(0, (0, runtime_1.Body)()),
|
1279
|
+
__param(1, (0, runtime_1.Inject)())
|
1280
|
+
], LemmyHttp.prototype, "resolveCommunityReport", null);
|
1281
|
+
__decorate([
|
1282
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1283
|
+
(0, runtime_1.Post)("/post"),
|
1284
|
+
(0, runtime_1.Tags)("Post"),
|
1285
|
+
__param(0, (0, runtime_1.Body)()),
|
1286
|
+
__param(1, (0, runtime_1.Inject)())
|
1183
1287
|
], LemmyHttp.prototype, "createPost", null);
|
1184
1288
|
__decorate([
|
1185
|
-
(0,
|
1186
|
-
(0,
|
1187
|
-
(0,
|
1188
|
-
(0,
|
1189
|
-
__param(0, (0,
|
1190
|
-
__param(1, (0,
|
1289
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1290
|
+
(0, runtime_1.Security)({}),
|
1291
|
+
(0, runtime_1.Get)("/post"),
|
1292
|
+
(0, runtime_1.Tags)("Post"),
|
1293
|
+
__param(0, (0, runtime_1.Queries)()),
|
1294
|
+
__param(1, (0, runtime_1.Inject)())
|
1191
1295
|
], LemmyHttp.prototype, "getPost", null);
|
1192
1296
|
__decorate([
|
1193
|
-
(0,
|
1194
|
-
(0,
|
1195
|
-
(0,
|
1196
|
-
__param(0, (0,
|
1197
|
-
__param(1, (0,
|
1297
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1298
|
+
(0, runtime_1.Put)("/post"),
|
1299
|
+
(0, runtime_1.Tags)("Post"),
|
1300
|
+
__param(0, (0, runtime_1.Body)()),
|
1301
|
+
__param(1, (0, runtime_1.Inject)())
|
1198
1302
|
], LemmyHttp.prototype, "editPost", null);
|
1199
1303
|
__decorate([
|
1200
|
-
(0,
|
1201
|
-
(0,
|
1202
|
-
(0,
|
1203
|
-
__param(0, (0,
|
1204
|
-
__param(1, (0,
|
1304
|
+
(0, runtime_1.Security)("bearerAuth"),
|
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.Post)("/post/delete"),
|
1313
|
+
(0, runtime_1.Tags)("Post"),
|
1314
|
+
__param(0, (0, runtime_1.Body)()),
|
1315
|
+
__param(1, (0, runtime_1.Inject)())
|
1205
1316
|
], LemmyHttp.prototype, "deletePost", null);
|
1206
1317
|
__decorate([
|
1207
|
-
(0,
|
1208
|
-
(0,
|
1209
|
-
(0,
|
1210
|
-
__param(0, (0,
|
1211
|
-
__param(1, (0,
|
1318
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1319
|
+
(0, runtime_1.Post)("/post/remove"),
|
1320
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1321
|
+
__param(0, (0, runtime_1.Body)()),
|
1322
|
+
__param(1, (0, runtime_1.Inject)())
|
1212
1323
|
], LemmyHttp.prototype, "removePost", null);
|
1213
1324
|
__decorate([
|
1214
|
-
(0,
|
1215
|
-
(0,
|
1216
|
-
(0,
|
1217
|
-
__param(0, (0,
|
1218
|
-
__param(1, (0,
|
1325
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1326
|
+
(0, runtime_1.Post)("/post/mark_as_read"),
|
1327
|
+
(0, runtime_1.Tags)("Post"),
|
1328
|
+
__param(0, (0, runtime_1.Body)()),
|
1329
|
+
__param(1, (0, runtime_1.Inject)())
|
1219
1330
|
], LemmyHttp.prototype, "markPostAsRead", null);
|
1220
1331
|
__decorate([
|
1221
|
-
(0,
|
1222
|
-
(0,
|
1223
|
-
(0,
|
1224
|
-
__param(0, (0,
|
1225
|
-
__param(1, (0,
|
1332
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1333
|
+
(0, runtime_1.Post)("/post/mark_as_read/many"),
|
1334
|
+
(0, runtime_1.Tags)("Post"),
|
1335
|
+
__param(0, (0, runtime_1.Body)()),
|
1336
|
+
__param(1, (0, runtime_1.Inject)())
|
1226
1337
|
], LemmyHttp.prototype, "markManyPostAsRead", null);
|
1227
1338
|
__decorate([
|
1228
|
-
(0,
|
1229
|
-
(0,
|
1230
|
-
(0,
|
1231
|
-
__param(0, (0,
|
1232
|
-
__param(1, (0,
|
1339
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1340
|
+
(0, runtime_1.Post)("/post/hide"),
|
1341
|
+
(0, runtime_1.Tags)("Post"),
|
1342
|
+
__param(0, (0, runtime_1.Body)()),
|
1343
|
+
__param(1, (0, runtime_1.Inject)())
|
1233
1344
|
], LemmyHttp.prototype, "hidePost", null);
|
1234
1345
|
__decorate([
|
1235
|
-
(0,
|
1236
|
-
(0,
|
1237
|
-
(0,
|
1238
|
-
__param(0, (0,
|
1239
|
-
__param(1, (0,
|
1346
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1347
|
+
(0, runtime_1.Post)("/post/lock"),
|
1348
|
+
(0, runtime_1.Tags)("Post"),
|
1349
|
+
__param(0, (0, runtime_1.Body)()),
|
1350
|
+
__param(1, (0, runtime_1.Inject)())
|
1240
1351
|
], LemmyHttp.prototype, "lockPost", null);
|
1241
1352
|
__decorate([
|
1242
|
-
(0,
|
1243
|
-
(0,
|
1244
|
-
(0,
|
1245
|
-
__param(0, (0,
|
1246
|
-
__param(1, (0,
|
1353
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1354
|
+
(0, runtime_1.Post)("/post/feature"),
|
1355
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1356
|
+
__param(0, (0, runtime_1.Body)()),
|
1357
|
+
__param(1, (0, runtime_1.Inject)())
|
1247
1358
|
], LemmyHttp.prototype, "featurePost", null);
|
1248
1359
|
__decorate([
|
1249
|
-
(0,
|
1250
|
-
(0,
|
1251
|
-
(0,
|
1252
|
-
(0,
|
1253
|
-
__param(0, (0,
|
1254
|
-
__param(1, (0,
|
1360
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1361
|
+
(0, runtime_1.Security)({}),
|
1362
|
+
(0, runtime_1.Get)("/post/list"),
|
1363
|
+
(0, runtime_1.Tags)("Post"),
|
1364
|
+
__param(0, (0, runtime_1.Queries)()),
|
1365
|
+
__param(1, (0, runtime_1.Inject)())
|
1255
1366
|
], LemmyHttp.prototype, "getPosts", null);
|
1256
1367
|
__decorate([
|
1257
|
-
(0,
|
1258
|
-
(0,
|
1259
|
-
(0,
|
1260
|
-
__param(0, (0,
|
1261
|
-
__param(1, (0,
|
1368
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1369
|
+
(0, runtime_1.Post)("/post/like"),
|
1370
|
+
(0, runtime_1.Tags)("Post"),
|
1371
|
+
__param(0, (0, runtime_1.Body)()),
|
1372
|
+
__param(1, (0, runtime_1.Inject)())
|
1262
1373
|
], LemmyHttp.prototype, "likePost", null);
|
1263
1374
|
__decorate([
|
1264
|
-
(0,
|
1265
|
-
(0,
|
1266
|
-
(0,
|
1267
|
-
__param(0, (0,
|
1268
|
-
__param(1, (0,
|
1375
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1376
|
+
(0, runtime_1.Get)("/post/like/list"),
|
1377
|
+
(0, runtime_1.Tags)("Post", "Admin"),
|
1378
|
+
__param(0, (0, runtime_1.Queries)()),
|
1379
|
+
__param(1, (0, runtime_1.Inject)())
|
1269
1380
|
], LemmyHttp.prototype, "listPostLikes", null);
|
1270
1381
|
__decorate([
|
1271
|
-
(0,
|
1272
|
-
(0,
|
1273
|
-
(0,
|
1274
|
-
__param(0, (0,
|
1275
|
-
__param(1, (0,
|
1382
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1383
|
+
(0, runtime_1.Put)("/post/save"),
|
1384
|
+
(0, runtime_1.Tags)("Post"),
|
1385
|
+
__param(0, (0, runtime_1.Body)()),
|
1386
|
+
__param(1, (0, runtime_1.Inject)())
|
1276
1387
|
], LemmyHttp.prototype, "savePost", null);
|
1277
1388
|
__decorate([
|
1278
|
-
(0,
|
1279
|
-
(0,
|
1280
|
-
(0,
|
1281
|
-
__param(0, (0,
|
1282
|
-
__param(1, (0,
|
1389
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1390
|
+
(0, runtime_1.Post)("/post/report"),
|
1391
|
+
(0, runtime_1.Tags)("Post"),
|
1392
|
+
__param(0, (0, runtime_1.Body)()),
|
1393
|
+
__param(1, (0, runtime_1.Inject)())
|
1283
1394
|
], LemmyHttp.prototype, "createPostReport", null);
|
1284
1395
|
__decorate([
|
1285
|
-
(0,
|
1286
|
-
(0,
|
1287
|
-
(0,
|
1288
|
-
__param(0, (0,
|
1289
|
-
__param(1, (0,
|
1396
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1397
|
+
(0, runtime_1.Put)("/post/report/resolve"),
|
1398
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1399
|
+
__param(0, (0, runtime_1.Body)()),
|
1400
|
+
__param(1, (0, runtime_1.Inject)())
|
1290
1401
|
], LemmyHttp.prototype, "resolvePostReport", null);
|
1291
1402
|
__decorate([
|
1292
|
-
(0,
|
1293
|
-
(0,
|
1294
|
-
(0,
|
1295
|
-
__param(0, (0,
|
1296
|
-
__param(1, (0,
|
1403
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1404
|
+
(0, runtime_1.Get)("/post/site_metadata"),
|
1405
|
+
(0, runtime_1.Tags)("Miscellaneous", "Post"),
|
1406
|
+
__param(0, (0, runtime_1.Queries)()),
|
1407
|
+
__param(1, (0, runtime_1.Inject)())
|
1297
1408
|
], LemmyHttp.prototype, "getSiteMetadata", null);
|
1298
1409
|
__decorate([
|
1299
|
-
(0,
|
1300
|
-
(0,
|
1301
|
-
(0,
|
1302
|
-
__param(0, (0,
|
1303
|
-
__param(1, (0,
|
1410
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1411
|
+
(0, runtime_1.Post)("/comment"),
|
1412
|
+
(0, runtime_1.Tags)("Comment"),
|
1413
|
+
__param(0, (0, runtime_1.Body)()),
|
1414
|
+
__param(1, (0, runtime_1.Inject)())
|
1304
1415
|
], LemmyHttp.prototype, "createComment", null);
|
1305
1416
|
__decorate([
|
1306
|
-
(0,
|
1307
|
-
(0,
|
1308
|
-
(0,
|
1309
|
-
__param(0, (0,
|
1310
|
-
__param(1, (0,
|
1417
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1418
|
+
(0, runtime_1.Put)("/comment"),
|
1419
|
+
(0, runtime_1.Tags)("Comment"),
|
1420
|
+
__param(0, (0, runtime_1.Body)()),
|
1421
|
+
__param(1, (0, runtime_1.Inject)())
|
1311
1422
|
], LemmyHttp.prototype, "editComment", null);
|
1312
1423
|
__decorate([
|
1313
|
-
(0,
|
1314
|
-
(0,
|
1315
|
-
(0,
|
1316
|
-
__param(0, (0,
|
1317
|
-
__param(1, (0,
|
1424
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1425
|
+
(0, runtime_1.Post)("/comment/delete"),
|
1426
|
+
(0, runtime_1.Tags)("Comment"),
|
1427
|
+
__param(0, (0, runtime_1.Body)()),
|
1428
|
+
__param(1, (0, runtime_1.Inject)())
|
1318
1429
|
], LemmyHttp.prototype, "deleteComment", null);
|
1319
1430
|
__decorate([
|
1320
|
-
(0,
|
1321
|
-
(0,
|
1322
|
-
(0,
|
1323
|
-
__param(0, (0,
|
1324
|
-
__param(1, (0,
|
1431
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1432
|
+
(0, runtime_1.Post)("/comment/remove"),
|
1433
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1434
|
+
__param(0, (0, runtime_1.Body)()),
|
1435
|
+
__param(1, (0, runtime_1.Inject)())
|
1325
1436
|
], LemmyHttp.prototype, "removeComment", null);
|
1326
1437
|
__decorate([
|
1327
|
-
(0,
|
1328
|
-
(0,
|
1329
|
-
(0,
|
1330
|
-
__param(0, (0,
|
1331
|
-
__param(1, (0,
|
1332
|
-
], LemmyHttp.prototype, "
|
1333
|
-
__decorate([
|
1334
|
-
(0,
|
1335
|
-
(0,
|
1336
|
-
(0,
|
1337
|
-
__param(0, (0,
|
1338
|
-
__param(1, (0,
|
1438
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1439
|
+
(0, runtime_1.Post)("/comment/lock"),
|
1440
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1441
|
+
__param(0, (0, runtime_1.Body)()),
|
1442
|
+
__param(1, (0, runtime_1.Inject)())
|
1443
|
+
], LemmyHttp.prototype, "lockComment", null);
|
1444
|
+
__decorate([
|
1445
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1446
|
+
(0, runtime_1.Post)("/comment/like"),
|
1447
|
+
(0, runtime_1.Tags)("Comment"),
|
1448
|
+
__param(0, (0, runtime_1.Body)()),
|
1449
|
+
__param(1, (0, runtime_1.Inject)())
|
1339
1450
|
], LemmyHttp.prototype, "likeComment", null);
|
1340
1451
|
__decorate([
|
1341
|
-
(0,
|
1342
|
-
(0,
|
1343
|
-
(0,
|
1344
|
-
__param(0, (0,
|
1345
|
-
__param(1, (0,
|
1452
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1453
|
+
(0, runtime_1.Get)("/comment/like/list"),
|
1454
|
+
(0, runtime_1.Tags)("Comment", "Admin"),
|
1455
|
+
__param(0, (0, runtime_1.Queries)()),
|
1456
|
+
__param(1, (0, runtime_1.Inject)())
|
1346
1457
|
], LemmyHttp.prototype, "listCommentLikes", null);
|
1347
1458
|
__decorate([
|
1348
|
-
(0,
|
1349
|
-
(0,
|
1350
|
-
(0,
|
1351
|
-
__param(0, (0,
|
1352
|
-
__param(1, (0,
|
1459
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1460
|
+
(0, runtime_1.Put)("/comment/save"),
|
1461
|
+
(0, runtime_1.Tags)("Comment"),
|
1462
|
+
__param(0, (0, runtime_1.Body)()),
|
1463
|
+
__param(1, (0, runtime_1.Inject)())
|
1353
1464
|
], LemmyHttp.prototype, "saveComment", null);
|
1354
1465
|
__decorate([
|
1355
|
-
(0,
|
1356
|
-
(0,
|
1357
|
-
(0,
|
1358
|
-
__param(0, (0,
|
1359
|
-
__param(1, (0,
|
1466
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1467
|
+
(0, runtime_1.Post)("/comment/distinguish"),
|
1468
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1469
|
+
__param(0, (0, runtime_1.Body)()),
|
1470
|
+
__param(1, (0, runtime_1.Inject)())
|
1360
1471
|
], LemmyHttp.prototype, "distinguishComment", null);
|
1361
1472
|
__decorate([
|
1362
|
-
(0,
|
1363
|
-
(0,
|
1364
|
-
(0,
|
1365
|
-
(0,
|
1366
|
-
__param(0, (0,
|
1367
|
-
__param(1, (0,
|
1473
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1474
|
+
(0, runtime_1.Security)({}),
|
1475
|
+
(0, runtime_1.Get)("/comment/list"),
|
1476
|
+
(0, runtime_1.Tags)("Comment"),
|
1477
|
+
__param(0, (0, runtime_1.Queries)()),
|
1478
|
+
__param(1, (0, runtime_1.Inject)())
|
1368
1479
|
], LemmyHttp.prototype, "getComments", null);
|
1369
1480
|
__decorate([
|
1370
|
-
(0,
|
1371
|
-
(0,
|
1372
|
-
(0,
|
1373
|
-
(0,
|
1374
|
-
__param(0, (0,
|
1375
|
-
__param(1, (0,
|
1481
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1482
|
+
(0, runtime_1.Security)({}),
|
1483
|
+
(0, runtime_1.Get)("/comment/list/slim"),
|
1484
|
+
(0, runtime_1.Tags)("Comment"),
|
1485
|
+
__param(0, (0, runtime_1.Queries)()),
|
1486
|
+
__param(1, (0, runtime_1.Inject)())
|
1376
1487
|
], LemmyHttp.prototype, "getCommentsSlim", null);
|
1377
1488
|
__decorate([
|
1378
|
-
(0,
|
1379
|
-
(0,
|
1380
|
-
(0,
|
1381
|
-
(0,
|
1382
|
-
__param(0, (0,
|
1383
|
-
__param(1, (0,
|
1489
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1490
|
+
(0, runtime_1.Security)({}),
|
1491
|
+
(0, runtime_1.Get)("/comment"),
|
1492
|
+
(0, runtime_1.Tags)("Comment"),
|
1493
|
+
__param(0, (0, runtime_1.Queries)()),
|
1494
|
+
__param(1, (0, runtime_1.Inject)())
|
1384
1495
|
], LemmyHttp.prototype, "getComment", null);
|
1385
1496
|
__decorate([
|
1386
|
-
(0,
|
1387
|
-
(0,
|
1388
|
-
(0,
|
1389
|
-
__param(0, (0,
|
1390
|
-
__param(1, (0,
|
1497
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1498
|
+
(0, runtime_1.Post)("/comment/report"),
|
1499
|
+
(0, runtime_1.Tags)("Comment"),
|
1500
|
+
__param(0, (0, runtime_1.Body)()),
|
1501
|
+
__param(1, (0, runtime_1.Inject)())
|
1391
1502
|
], LemmyHttp.prototype, "createCommentReport", null);
|
1392
1503
|
__decorate([
|
1393
|
-
(0,
|
1394
|
-
(0,
|
1395
|
-
(0,
|
1396
|
-
__param(0, (0,
|
1397
|
-
__param(1, (0,
|
1504
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1505
|
+
(0, runtime_1.Put)("/comment/report/resolve"),
|
1506
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1507
|
+
__param(0, (0, runtime_1.Body)()),
|
1508
|
+
__param(1, (0, runtime_1.Inject)())
|
1398
1509
|
], LemmyHttp.prototype, "resolveCommentReport", null);
|
1399
1510
|
__decorate([
|
1400
|
-
(0,
|
1401
|
-
(0,
|
1402
|
-
(0,
|
1403
|
-
__param(0, (0,
|
1404
|
-
__param(1, (0,
|
1511
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1512
|
+
(0, runtime_1.Post)("/private_message"),
|
1513
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1514
|
+
__param(0, (0, runtime_1.Body)()),
|
1515
|
+
__param(1, (0, runtime_1.Inject)())
|
1405
1516
|
], LemmyHttp.prototype, "createPrivateMessage", null);
|
1406
1517
|
__decorate([
|
1407
|
-
(0,
|
1408
|
-
(0,
|
1409
|
-
(0,
|
1410
|
-
__param(0, (0,
|
1411
|
-
__param(1, (0,
|
1518
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1519
|
+
(0, runtime_1.Put)("/private_message"),
|
1520
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1521
|
+
__param(0, (0, runtime_1.Body)()),
|
1522
|
+
__param(1, (0, runtime_1.Inject)())
|
1412
1523
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
1413
1524
|
__decorate([
|
1414
|
-
(0,
|
1415
|
-
(0,
|
1416
|
-
(0,
|
1417
|
-
__param(0, (0,
|
1418
|
-
__param(1, (0,
|
1525
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1526
|
+
(0, runtime_1.Post)("/private_message/delete"),
|
1527
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1528
|
+
__param(0, (0, runtime_1.Body)()),
|
1529
|
+
__param(1, (0, runtime_1.Inject)())
|
1419
1530
|
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
1420
1531
|
__decorate([
|
1421
|
-
(0,
|
1422
|
-
(0,
|
1423
|
-
(0,
|
1424
|
-
__param(0, (0,
|
1425
|
-
__param(1, (0,
|
1426
|
-
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
1427
|
-
__decorate([
|
1428
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
1429
|
-
(0, tsoa_1.Post)("/private_message/report"),
|
1430
|
-
(0, tsoa_1.Tags)("PrivateMessage"),
|
1431
|
-
__param(0, (0, tsoa_1.Body)()),
|
1432
|
-
__param(1, (0, tsoa_1.Inject)())
|
1532
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1533
|
+
(0, runtime_1.Post)("/private_message/report"),
|
1534
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1535
|
+
__param(0, (0, runtime_1.Body)()),
|
1536
|
+
__param(1, (0, runtime_1.Inject)())
|
1433
1537
|
], LemmyHttp.prototype, "createPrivateMessageReport", null);
|
1434
1538
|
__decorate([
|
1435
|
-
(0,
|
1436
|
-
(0,
|
1437
|
-
(0,
|
1438
|
-
__param(0, (0,
|
1439
|
-
__param(1, (0,
|
1539
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1540
|
+
(0, runtime_1.Put)("/private_message/report/resolve"),
|
1541
|
+
(0, runtime_1.Tags)("PrivateMessage", "Admin"),
|
1542
|
+
__param(0, (0, runtime_1.Body)()),
|
1543
|
+
__param(1, (0, runtime_1.Inject)())
|
1440
1544
|
], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
|
1441
1545
|
__decorate([
|
1442
|
-
(0,
|
1443
|
-
(0,
|
1444
|
-
__param(0, (0,
|
1445
|
-
__param(1, (0,
|
1546
|
+
(0, runtime_1.Post)("/account/auth/register"),
|
1547
|
+
(0, runtime_1.Tags)("Account"),
|
1548
|
+
__param(0, (0, runtime_1.Body)()),
|
1549
|
+
__param(1, (0, runtime_1.Inject)())
|
1446
1550
|
], LemmyHttp.prototype, "register", null);
|
1447
1551
|
__decorate([
|
1448
|
-
(0,
|
1449
|
-
(0,
|
1450
|
-
__param(0, (0,
|
1451
|
-
__param(1, (0,
|
1552
|
+
(0, runtime_1.Post)("/account/auth/login"),
|
1553
|
+
(0, runtime_1.Tags)("Account"),
|
1554
|
+
__param(0, (0, runtime_1.Body)()),
|
1555
|
+
__param(1, (0, runtime_1.Inject)())
|
1452
1556
|
], LemmyHttp.prototype, "login", null);
|
1453
1557
|
__decorate([
|
1454
|
-
(0,
|
1455
|
-
(0,
|
1456
|
-
(0,
|
1457
|
-
__param(0, (0,
|
1558
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1559
|
+
(0, runtime_1.Post)("/account/auth/logout"),
|
1560
|
+
(0, runtime_1.Tags)("Account"),
|
1561
|
+
__param(0, (0, runtime_1.Inject)())
|
1458
1562
|
], LemmyHttp.prototype, "logout", null);
|
1459
1563
|
__decorate([
|
1460
|
-
(0,
|
1461
|
-
(0,
|
1462
|
-
(0,
|
1463
|
-
(0,
|
1464
|
-
__param(0, (0,
|
1465
|
-
__param(1, (0,
|
1564
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1565
|
+
(0, runtime_1.Security)({}),
|
1566
|
+
(0, runtime_1.Get)("/person"),
|
1567
|
+
(0, runtime_1.Tags)("Person"),
|
1568
|
+
__param(0, (0, runtime_1.Queries)()),
|
1569
|
+
__param(1, (0, runtime_1.Inject)())
|
1466
1570
|
], LemmyHttp.prototype, "getPersonDetails", null);
|
1467
1571
|
__decorate([
|
1468
|
-
(0,
|
1469
|
-
(0,
|
1470
|
-
(0,
|
1471
|
-
(0,
|
1472
|
-
__param(0, (0,
|
1473
|
-
__param(1, (0,
|
1572
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1573
|
+
(0, runtime_1.Security)({}),
|
1574
|
+
(0, runtime_1.Get)("/person/content"),
|
1575
|
+
(0, runtime_1.Tags)("Person"),
|
1576
|
+
__param(0, (0, runtime_1.Queries)()),
|
1577
|
+
__param(1, (0, runtime_1.Inject)())
|
1474
1578
|
], LemmyHttp.prototype, "listPersonContent", null);
|
1475
1579
|
__decorate([
|
1476
|
-
(0,
|
1477
|
-
(0,
|
1478
|
-
(0,
|
1479
|
-
__param(0, (0,
|
1480
|
-
__param(1, (0,
|
1481
|
-
], LemmyHttp.prototype, "
|
1482
|
-
__decorate([
|
1483
|
-
(0,
|
1484
|
-
(0,
|
1485
|
-
(0,
|
1486
|
-
__param(0, (0,
|
1487
|
-
__param(1, (0,
|
1488
|
-
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1489
|
-
__decorate([
|
1490
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
1491
|
-
(0, tsoa_1.Post)("/admin/ban"),
|
1492
|
-
(0, tsoa_1.Tags)("Admin"),
|
1493
|
-
__param(0, (0, tsoa_1.Body)()),
|
1494
|
-
__param(1, (0, tsoa_1.Inject)())
|
1580
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1581
|
+
(0, runtime_1.Post)("/person/note"),
|
1582
|
+
(0, runtime_1.Tags)("Person"),
|
1583
|
+
__param(0, (0, runtime_1.Body)()),
|
1584
|
+
__param(1, (0, runtime_1.Inject)())
|
1585
|
+
], LemmyHttp.prototype, "notePerson", null);
|
1586
|
+
__decorate([
|
1587
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1588
|
+
(0, runtime_1.Post)("/admin/ban"),
|
1589
|
+
(0, runtime_1.Tags)("Admin"),
|
1590
|
+
__param(0, (0, runtime_1.Body)()),
|
1591
|
+
__param(1, (0, runtime_1.Inject)())
|
1495
1592
|
], LemmyHttp.prototype, "banPerson", null);
|
1496
1593
|
__decorate([
|
1497
|
-
(0,
|
1498
|
-
(0,
|
1499
|
-
(0,
|
1500
|
-
__param(0, (0,
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
(0,
|
1505
|
-
(0,
|
1506
|
-
|
1507
|
-
__param(
|
1594
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1595
|
+
(0, runtime_1.Get)("/admin/users"),
|
1596
|
+
(0, runtime_1.Tags)("Admin", "Miscellaneous"),
|
1597
|
+
__param(0, (0, runtime_1.Queries)()),
|
1598
|
+
__param(1, (0, runtime_1.Inject)())
|
1599
|
+
], LemmyHttp.prototype, "listUsers", null);
|
1600
|
+
__decorate([
|
1601
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1602
|
+
(0, runtime_1.Post)("/account/block/person"),
|
1603
|
+
(0, runtime_1.Tags)("Account"),
|
1604
|
+
__param(0, (0, runtime_1.Body)()),
|
1605
|
+
__param(1, (0, runtime_1.Inject)())
|
1508
1606
|
], LemmyHttp.prototype, "blockPerson", null);
|
1509
1607
|
__decorate([
|
1510
|
-
(0,
|
1511
|
-
(0,
|
1512
|
-
__param(0, (0,
|
1608
|
+
(0, runtime_1.Get)("/account/auth/get_captcha"),
|
1609
|
+
(0, runtime_1.Tags)("Account"),
|
1610
|
+
__param(0, (0, runtime_1.Inject)())
|
1513
1611
|
], LemmyHttp.prototype, "getCaptcha", null);
|
1514
1612
|
__decorate([
|
1515
|
-
(0,
|
1516
|
-
(0,
|
1517
|
-
(0,
|
1518
|
-
__param(0, (0,
|
1519
|
-
__param(1, (0,
|
1613
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1614
|
+
(0, runtime_1.Post)("/account/delete"),
|
1615
|
+
(0, runtime_1.Tags)("Account"),
|
1616
|
+
__param(0, (0, runtime_1.Body)()),
|
1617
|
+
__param(1, (0, runtime_1.Inject)())
|
1520
1618
|
], LemmyHttp.prototype, "deleteAccount", null);
|
1521
1619
|
__decorate([
|
1522
|
-
(0,
|
1523
|
-
(0,
|
1524
|
-
(0,
|
1525
|
-
__param(0, (0,
|
1526
|
-
__param(1, (0,
|
1620
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1621
|
+
(0, runtime_1.Post)("/account/auth/password_reset"),
|
1622
|
+
(0, runtime_1.Tags)("Account"),
|
1623
|
+
__param(0, (0, runtime_1.Body)()),
|
1624
|
+
__param(1, (0, runtime_1.Inject)())
|
1527
1625
|
], LemmyHttp.prototype, "passwordReset", null);
|
1528
1626
|
__decorate([
|
1529
|
-
(0,
|
1530
|
-
(0,
|
1531
|
-
(0,
|
1532
|
-
__param(0, (0,
|
1533
|
-
__param(1, (0,
|
1627
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1628
|
+
(0, runtime_1.Post)("/account/auth/password_change"),
|
1629
|
+
(0, runtime_1.Tags)("Account"),
|
1630
|
+
__param(0, (0, runtime_1.Body)()),
|
1631
|
+
__param(1, (0, runtime_1.Inject)())
|
1534
1632
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
1535
1633
|
__decorate([
|
1536
|
-
(0,
|
1537
|
-
(0,
|
1538
|
-
(0,
|
1539
|
-
__param(0, (0,
|
1634
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1635
|
+
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
1636
|
+
(0, runtime_1.Tags)("Account"),
|
1637
|
+
__param(0, (0, runtime_1.Inject)())
|
1540
1638
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1541
1639
|
__decorate([
|
1542
|
-
(0,
|
1543
|
-
(0,
|
1544
|
-
(0,
|
1545
|
-
__param(0, (0,
|
1546
|
-
__param(1, (0,
|
1640
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1641
|
+
(0, runtime_1.Post)("/account/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);
|
1646
|
+
__decorate([
|
1647
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1648
|
+
(0, runtime_1.Put)("/account/settings/save"),
|
1649
|
+
(0, runtime_1.Tags)("Account"),
|
1650
|
+
__param(0, (0, runtime_1.Body)()),
|
1651
|
+
__param(1, (0, runtime_1.Inject)())
|
1547
1652
|
], LemmyHttp.prototype, "saveUserSettings", null);
|
1548
1653
|
__decorate([
|
1549
|
-
(0,
|
1550
|
-
(0,
|
1551
|
-
(0,
|
1552
|
-
__param(0, (0,
|
1553
|
-
__param(1, (0,
|
1654
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1655
|
+
(0, runtime_1.Put)("/account/auth/change_password"),
|
1656
|
+
(0, runtime_1.Tags)("Account"),
|
1657
|
+
__param(0, (0, runtime_1.Body)()),
|
1658
|
+
__param(1, (0, runtime_1.Inject)())
|
1554
1659
|
], LemmyHttp.prototype, "changePassword", null);
|
1555
1660
|
__decorate([
|
1556
|
-
(0,
|
1557
|
-
(0,
|
1558
|
-
(0,
|
1559
|
-
__param(0, (0,
|
1560
|
-
__param(1, (0,
|
1661
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1662
|
+
(0, runtime_1.Get)("/account/report_count"),
|
1663
|
+
(0, runtime_1.Tags)("Account"),
|
1664
|
+
__param(0, (0, runtime_1.Queries)()),
|
1665
|
+
__param(1, (0, runtime_1.Inject)())
|
1561
1666
|
], LemmyHttp.prototype, "getReportCount", null);
|
1562
1667
|
__decorate([
|
1563
|
-
(0,
|
1564
|
-
(0,
|
1565
|
-
(0,
|
1566
|
-
__param(0, (0,
|
1668
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1669
|
+
(0, runtime_1.Get)("/account/unread_count"),
|
1670
|
+
(0, runtime_1.Tags)("Account"),
|
1671
|
+
__param(0, (0, runtime_1.Inject)())
|
1567
1672
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
1568
1673
|
__decorate([
|
1569
|
-
(0,
|
1570
|
-
(0,
|
1571
|
-
(0,
|
1572
|
-
__param(0, (0,
|
1573
|
-
__param(1, (0,
|
1574
|
-
], LemmyHttp.prototype, "
|
1575
|
-
__decorate([
|
1576
|
-
(0,
|
1577
|
-
(0,
|
1578
|
-
__param(0, (0,
|
1579
|
-
__param(1, (0,
|
1674
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1675
|
+
(0, runtime_1.Get)("/account/notifications"),
|
1676
|
+
(0, runtime_1.Tags)("Account"),
|
1677
|
+
__param(0, (0, runtime_1.Queries)()),
|
1678
|
+
__param(1, (0, runtime_1.Inject)())
|
1679
|
+
], LemmyHttp.prototype, "listNotifications", null);
|
1680
|
+
__decorate([
|
1681
|
+
(0, runtime_1.Post)("/account/auth/verify_email"),
|
1682
|
+
(0, runtime_1.Tags)("Account"),
|
1683
|
+
__param(0, (0, runtime_1.Body)()),
|
1684
|
+
__param(1, (0, runtime_1.Inject)())
|
1580
1685
|
], LemmyHttp.prototype, "verifyEmail", null);
|
1581
1686
|
__decorate([
|
1582
|
-
(0,
|
1583
|
-
(0,
|
1584
|
-
__param(0, (0,
|
1585
|
-
__param(1, (0,
|
1687
|
+
(0, runtime_1.Post)("/account/auth/resend_verification_email"),
|
1688
|
+
(0, runtime_1.Tags)("Account"),
|
1689
|
+
__param(0, (0, runtime_1.Body)()),
|
1690
|
+
__param(1, (0, runtime_1.Inject)())
|
1586
1691
|
], LemmyHttp.prototype, "resendVerificationEmail", null);
|
1587
1692
|
__decorate([
|
1588
|
-
(0,
|
1589
|
-
(0,
|
1590
|
-
(0,
|
1591
|
-
__param(0, (0,
|
1592
|
-
__param(1, (0,
|
1693
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1694
|
+
(0, runtime_1.Get)("/account/saved"),
|
1695
|
+
(0, runtime_1.Tags)("Account"),
|
1696
|
+
__param(0, (0, runtime_1.Queries)()),
|
1697
|
+
__param(1, (0, runtime_1.Inject)())
|
1593
1698
|
], LemmyHttp.prototype, "listPersonSaved", null);
|
1594
1699
|
__decorate([
|
1595
|
-
(0,
|
1596
|
-
(0,
|
1597
|
-
(0,
|
1598
|
-
__param(0, (0,
|
1599
|
-
__param(1, (0,
|
1700
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1701
|
+
(0, runtime_1.Get)("/account/read"),
|
1702
|
+
(0, runtime_1.Tags)("Account"),
|
1703
|
+
__param(0, (0, runtime_1.Queries)()),
|
1704
|
+
__param(1, (0, runtime_1.Inject)())
|
1705
|
+
], LemmyHttp.prototype, "listPersonRead", null);
|
1706
|
+
__decorate([
|
1707
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1708
|
+
(0, runtime_1.Get)("/account/hidden"),
|
1709
|
+
(0, runtime_1.Tags)("Account"),
|
1710
|
+
__param(0, (0, runtime_1.Queries)()),
|
1711
|
+
__param(1, (0, runtime_1.Inject)())
|
1712
|
+
], LemmyHttp.prototype, "listPersonHidden", null);
|
1713
|
+
__decorate([
|
1714
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1715
|
+
(0, runtime_1.Get)("/account/liked"),
|
1716
|
+
(0, runtime_1.Tags)("Account"),
|
1717
|
+
__param(0, (0, runtime_1.Queries)()),
|
1718
|
+
__param(1, (0, runtime_1.Inject)())
|
1719
|
+
], LemmyHttp.prototype, "listPersonLiked", null);
|
1720
|
+
__decorate([
|
1721
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1722
|
+
(0, runtime_1.Post)("/admin/add"),
|
1723
|
+
(0, runtime_1.Tags)("Admin"),
|
1724
|
+
__param(0, (0, runtime_1.Body)()),
|
1725
|
+
__param(1, (0, runtime_1.Inject)())
|
1600
1726
|
], LemmyHttp.prototype, "addAdmin", null);
|
1601
1727
|
__decorate([
|
1602
|
-
(0,
|
1603
|
-
(0,
|
1604
|
-
(0,
|
1605
|
-
__param(0, (0,
|
1728
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1729
|
+
(0, runtime_1.Get)("/admin/registration_application/count"),
|
1730
|
+
(0, runtime_1.Tags)("Admin"),
|
1731
|
+
__param(0, (0, runtime_1.Inject)())
|
1606
1732
|
], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
|
1607
1733
|
__decorate([
|
1608
|
-
(0,
|
1609
|
-
(0,
|
1610
|
-
(0,
|
1611
|
-
__param(0, (0,
|
1612
|
-
__param(1, (0,
|
1734
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1735
|
+
(0, runtime_1.Get)("/admin/registration_application/list"),
|
1736
|
+
(0, runtime_1.Tags)("Admin"),
|
1737
|
+
__param(0, (0, runtime_1.Queries)()),
|
1738
|
+
__param(1, (0, runtime_1.Inject)())
|
1613
1739
|
], LemmyHttp.prototype, "listRegistrationApplications", null);
|
1614
1740
|
__decorate([
|
1615
|
-
(0,
|
1616
|
-
(0,
|
1617
|
-
(0,
|
1618
|
-
__param(0, (0,
|
1619
|
-
__param(1, (0,
|
1741
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1742
|
+
(0, runtime_1.Put)("/admin/registration_application/approve"),
|
1743
|
+
(0, runtime_1.Tags)("Admin"),
|
1744
|
+
__param(0, (0, runtime_1.Body)()),
|
1745
|
+
__param(1, (0, runtime_1.Inject)())
|
1620
1746
|
], LemmyHttp.prototype, "approveRegistrationApplication", null);
|
1621
1747
|
__decorate([
|
1622
|
-
(0,
|
1623
|
-
(0,
|
1624
|
-
(0,
|
1625
|
-
__param(0, (0,
|
1626
|
-
__param(1, (0,
|
1748
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1749
|
+
(0, runtime_1.Get)("/admin/registration_application"),
|
1750
|
+
(0, runtime_1.Tags)("Admin"),
|
1751
|
+
__param(0, (0, runtime_1.Queries)()),
|
1752
|
+
__param(1, (0, runtime_1.Inject)())
|
1627
1753
|
], LemmyHttp.prototype, "getRegistrationApplication", null);
|
1628
1754
|
__decorate([
|
1629
|
-
(0,
|
1630
|
-
(0,
|
1631
|
-
(0,
|
1632
|
-
__param(0, (0,
|
1633
|
-
__param(1, (0,
|
1755
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1756
|
+
(0, runtime_1.Post)("/admin/purge/person"),
|
1757
|
+
(0, runtime_1.Tags)("Admin"),
|
1758
|
+
__param(0, (0, runtime_1.Body)()),
|
1759
|
+
__param(1, (0, runtime_1.Inject)())
|
1634
1760
|
], LemmyHttp.prototype, "purgePerson", null);
|
1635
1761
|
__decorate([
|
1636
|
-
(0,
|
1637
|
-
(0,
|
1638
|
-
(0,
|
1639
|
-
__param(0, (0,
|
1640
|
-
__param(1, (0,
|
1762
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1763
|
+
(0, runtime_1.Post)("/admin/purge/community"),
|
1764
|
+
(0, runtime_1.Tags)("Admin"),
|
1765
|
+
__param(0, (0, runtime_1.Body)()),
|
1766
|
+
__param(1, (0, runtime_1.Inject)())
|
1641
1767
|
], LemmyHttp.prototype, "purgeCommunity", null);
|
1642
1768
|
__decorate([
|
1643
|
-
(0,
|
1644
|
-
(0,
|
1645
|
-
(0,
|
1646
|
-
__param(0, (0,
|
1647
|
-
__param(1, (0,
|
1769
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1770
|
+
(0, runtime_1.Post)("/admin/purge/post"),
|
1771
|
+
(0, runtime_1.Tags)("Admin"),
|
1772
|
+
__param(0, (0, runtime_1.Body)()),
|
1773
|
+
__param(1, (0, runtime_1.Inject)())
|
1648
1774
|
], LemmyHttp.prototype, "purgePost", null);
|
1649
1775
|
__decorate([
|
1650
|
-
(0,
|
1651
|
-
(0,
|
1652
|
-
(0,
|
1653
|
-
__param(0, (0,
|
1654
|
-
__param(1, (0,
|
1776
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1777
|
+
(0, runtime_1.Post)("/admin/purge/comment"),
|
1778
|
+
(0, runtime_1.Tags)("Admin"),
|
1779
|
+
__param(0, (0, runtime_1.Body)()),
|
1780
|
+
__param(1, (0, runtime_1.Inject)())
|
1655
1781
|
], LemmyHttp.prototype, "purgeComment", null);
|
1656
1782
|
__decorate([
|
1657
|
-
(0,
|
1658
|
-
(0,
|
1659
|
-
(0,
|
1660
|
-
__param(0, (0,
|
1661
|
-
__param(1, (0,
|
1783
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1784
|
+
(0, runtime_1.Post)("/custom_emoji"),
|
1785
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1786
|
+
__param(0, (0, runtime_1.Body)()),
|
1787
|
+
__param(1, (0, runtime_1.Inject)())
|
1662
1788
|
], LemmyHttp.prototype, "createCustomEmoji", null);
|
1663
1789
|
__decorate([
|
1664
|
-
(0,
|
1665
|
-
(0,
|
1666
|
-
(0,
|
1667
|
-
__param(0, (0,
|
1668
|
-
__param(1, (0,
|
1790
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1791
|
+
(0, runtime_1.Put)("/custom_emoji"),
|
1792
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1793
|
+
__param(0, (0, runtime_1.Body)()),
|
1794
|
+
__param(1, (0, runtime_1.Inject)())
|
1669
1795
|
], LemmyHttp.prototype, "editCustomEmoji", null);
|
1670
1796
|
__decorate([
|
1671
|
-
(0,
|
1672
|
-
(0,
|
1673
|
-
(0,
|
1674
|
-
__param(0, (0,
|
1675
|
-
__param(1, (0,
|
1797
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1798
|
+
(0, runtime_1.Post)("/custom_emoji/delete"),
|
1799
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1800
|
+
__param(0, (0, runtime_1.Body)()),
|
1801
|
+
__param(1, (0, runtime_1.Inject)())
|
1676
1802
|
], LemmyHttp.prototype, "deleteCustomEmoji", null);
|
1677
1803
|
__decorate([
|
1678
|
-
(0,
|
1679
|
-
(0,
|
1680
|
-
(0,
|
1681
|
-
(0,
|
1682
|
-
__param(0, (0,
|
1683
|
-
__param(1, (0,
|
1804
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1805
|
+
(0, runtime_1.Security)({}),
|
1806
|
+
(0, runtime_1.Get)("/custom_emoji/list"),
|
1807
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1808
|
+
__param(0, (0, runtime_1.Queries)()),
|
1809
|
+
__param(1, (0, runtime_1.Inject)())
|
1684
1810
|
], LemmyHttp.prototype, "listCustomEmojis", null);
|
1685
1811
|
__decorate([
|
1686
|
-
(0,
|
1687
|
-
(0,
|
1688
|
-
(0,
|
1689
|
-
__param(0, (0,
|
1690
|
-
__param(1, (0,
|
1812
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1813
|
+
(0, runtime_1.Post)("/admin/tagline"),
|
1814
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1815
|
+
__param(0, (0, runtime_1.Body)()),
|
1816
|
+
__param(1, (0, runtime_1.Inject)())
|
1691
1817
|
], LemmyHttp.prototype, "createTagline", null);
|
1692
1818
|
__decorate([
|
1693
|
-
(0,
|
1694
|
-
(0,
|
1695
|
-
(0,
|
1696
|
-
__param(0, (0,
|
1697
|
-
__param(1, (0,
|
1819
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1820
|
+
(0, runtime_1.Put)("/admin/tagline"),
|
1821
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1822
|
+
__param(0, (0, runtime_1.Body)()),
|
1823
|
+
__param(1, (0, runtime_1.Inject)())
|
1698
1824
|
], LemmyHttp.prototype, "editTagline", null);
|
1699
1825
|
__decorate([
|
1700
|
-
(0,
|
1701
|
-
(0,
|
1702
|
-
(0,
|
1703
|
-
__param(0, (0,
|
1704
|
-
__param(1, (0,
|
1826
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1827
|
+
(0, runtime_1.Post)("/admin/tagline/delete"),
|
1828
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1829
|
+
__param(0, (0, runtime_1.Body)()),
|
1830
|
+
__param(1, (0, runtime_1.Inject)())
|
1705
1831
|
], LemmyHttp.prototype, "deleteTagline", null);
|
1706
1832
|
__decorate([
|
1707
|
-
(0,
|
1708
|
-
(0,
|
1709
|
-
(0,
|
1710
|
-
(0,
|
1711
|
-
__param(0, (0,
|
1712
|
-
__param(1, (0,
|
1833
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1834
|
+
(0, runtime_1.Security)({}),
|
1835
|
+
(0, runtime_1.Get)("/admin/tagline/list"),
|
1836
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1837
|
+
__param(0, (0, runtime_1.Queries)()),
|
1838
|
+
__param(1, (0, runtime_1.Inject)())
|
1713
1839
|
], LemmyHttp.prototype, "listTaglines", null);
|
1714
1840
|
__decorate([
|
1715
|
-
(0,
|
1716
|
-
(0,
|
1717
|
-
(0,
|
1718
|
-
__param(0, (0,
|
1719
|
-
__param(1, (0,
|
1841
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1842
|
+
(0, runtime_1.Post)("/community/tag"),
|
1843
|
+
(0, runtime_1.Tags)("Community"),
|
1844
|
+
__param(0, (0, runtime_1.Body)()),
|
1845
|
+
__param(1, (0, runtime_1.Inject)())
|
1846
|
+
], LemmyHttp.prototype, "createCommunityTag", null);
|
1847
|
+
__decorate([
|
1848
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1849
|
+
(0, runtime_1.Put)("/community/tag"),
|
1850
|
+
(0, runtime_1.Tags)("Community"),
|
1851
|
+
__param(0, (0, runtime_1.Body)()),
|
1852
|
+
__param(1, (0, runtime_1.Inject)())
|
1853
|
+
], LemmyHttp.prototype, "updateCommunityTag", null);
|
1854
|
+
__decorate([
|
1855
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1856
|
+
(0, runtime_1.Delete)("/community/tag"),
|
1857
|
+
(0, runtime_1.Tags)("Community"),
|
1858
|
+
__param(0, (0, runtime_1.Body)()),
|
1859
|
+
__param(1, (0, runtime_1.Inject)())
|
1860
|
+
], LemmyHttp.prototype, "deleteCommunityTag", null);
|
1861
|
+
__decorate([
|
1862
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1863
|
+
(0, runtime_1.Post)("/oauth_provider"),
|
1864
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1865
|
+
__param(0, (0, runtime_1.Body)()),
|
1866
|
+
__param(1, (0, runtime_1.Inject)())
|
1720
1867
|
], LemmyHttp.prototype, "createOAuthProvider", null);
|
1721
1868
|
__decorate([
|
1722
|
-
(0,
|
1723
|
-
(0,
|
1724
|
-
(0,
|
1725
|
-
__param(0, (0,
|
1726
|
-
__param(1, (0,
|
1869
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1870
|
+
(0, runtime_1.Put)("/oauth_provider"),
|
1871
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1872
|
+
__param(0, (0, runtime_1.Body)()),
|
1873
|
+
__param(1, (0, runtime_1.Inject)())
|
1727
1874
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
1728
1875
|
__decorate([
|
1729
|
-
(0,
|
1730
|
-
(0,
|
1731
|
-
(0,
|
1732
|
-
__param(0, (0,
|
1733
|
-
__param(1, (0,
|
1876
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1877
|
+
(0, runtime_1.Post)("/oauth_provider/delete"),
|
1878
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1879
|
+
__param(0, (0, runtime_1.Body)()),
|
1880
|
+
__param(1, (0, runtime_1.Inject)())
|
1734
1881
|
], LemmyHttp.prototype, "deleteOAuthProvider", null);
|
1735
1882
|
__decorate([
|
1736
|
-
(0,
|
1737
|
-
(0,
|
1738
|
-
(0,
|
1739
|
-
__param(0, (0,
|
1740
|
-
__param(1, (0,
|
1883
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1884
|
+
(0, runtime_1.Post)("/oauth/authenticate"),
|
1885
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1886
|
+
__param(0, (0, runtime_1.Body)()),
|
1887
|
+
__param(1, (0, runtime_1.Inject)())
|
1741
1888
|
], LemmyHttp.prototype, "authenticateWithOAuth", null);
|
1742
1889
|
__decorate([
|
1743
|
-
(0,
|
1744
|
-
(0,
|
1745
|
-
__param(0, (0,
|
1890
|
+
(0, runtime_1.Get)("/federated_instances"),
|
1891
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1892
|
+
__param(0, (0, runtime_1.Inject)())
|
1746
1893
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
1747
1894
|
__decorate([
|
1748
|
-
(0,
|
1749
|
-
(0,
|
1750
|
-
(0,
|
1751
|
-
__param(0, (0,
|
1752
|
-
__param(1, (0,
|
1895
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1896
|
+
(0, runtime_1.Get)("/report/list"),
|
1897
|
+
(0, runtime_1.Tags)("Admin"),
|
1898
|
+
__param(0, (0, runtime_1.Queries)()),
|
1899
|
+
__param(1, (0, runtime_1.Inject)())
|
1753
1900
|
], LemmyHttp.prototype, "listReports", null);
|
1754
1901
|
__decorate([
|
1755
|
-
(0,
|
1756
|
-
(0,
|
1757
|
-
(0,
|
1758
|
-
__param(0, (0,
|
1759
|
-
__param(1, (0,
|
1760
|
-
], LemmyHttp.prototype, "
|
1761
|
-
__decorate([
|
1762
|
-
(0,
|
1763
|
-
(0,
|
1764
|
-
(0,
|
1765
|
-
__param(0, (0,
|
1766
|
-
__param(1, (0,
|
1902
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1903
|
+
(0, runtime_1.Post)("/account/block/instance/communities"),
|
1904
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
1905
|
+
__param(0, (0, runtime_1.Body)()),
|
1906
|
+
__param(1, (0, runtime_1.Inject)())
|
1907
|
+
], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
|
1908
|
+
__decorate([
|
1909
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1910
|
+
(0, runtime_1.Post)("/account/block/instance/persons"),
|
1911
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
1912
|
+
__param(0, (0, runtime_1.Body)()),
|
1913
|
+
__param(1, (0, runtime_1.Inject)())
|
1914
|
+
], LemmyHttp.prototype, "userBlockInstancePersons", null);
|
1915
|
+
__decorate([
|
1916
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1917
|
+
(0, runtime_1.Post)("/admin/instance/block"),
|
1918
|
+
(0, runtime_1.Tags)("Admin"),
|
1919
|
+
__param(0, (0, runtime_1.Body)()),
|
1920
|
+
__param(1, (0, runtime_1.Inject)())
|
1767
1921
|
], LemmyHttp.prototype, "adminBlockInstance", null);
|
1768
1922
|
__decorate([
|
1769
|
-
(0,
|
1770
|
-
(0,
|
1771
|
-
(0,
|
1772
|
-
__param(0, (0,
|
1773
|
-
__param(1, (0,
|
1923
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1924
|
+
(0, runtime_1.Post)("/admin/instance/allow"),
|
1925
|
+
(0, runtime_1.Tags)("Admin"),
|
1926
|
+
__param(0, (0, runtime_1.Body)()),
|
1927
|
+
__param(1, (0, runtime_1.Inject)())
|
1774
1928
|
], LemmyHttp.prototype, "adminAllowInstance", null);
|
1775
1929
|
__decorate([
|
1776
|
-
(0,
|
1777
|
-
(0,
|
1778
|
-
(0,
|
1779
|
-
__param(0, (0,
|
1780
|
-
__param(1, (0,
|
1930
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1931
|
+
(0, runtime_1.Post)("/account/avatar"),
|
1932
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1933
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1934
|
+
__param(1, (0, runtime_1.Inject)())
|
1781
1935
|
], LemmyHttp.prototype, "uploadUserAvatar", null);
|
1782
1936
|
__decorate([
|
1783
|
-
(0,
|
1784
|
-
(0,
|
1785
|
-
(0,
|
1786
|
-
__param(0, (0,
|
1937
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1938
|
+
(0, runtime_1.Delete)("/account/avatar"),
|
1939
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1940
|
+
__param(0, (0, runtime_1.Inject)())
|
1787
1941
|
], LemmyHttp.prototype, "deleteUserAvatar", null);
|
1788
1942
|
__decorate([
|
1789
|
-
(0,
|
1790
|
-
(0,
|
1791
|
-
(0,
|
1792
|
-
__param(0, (0,
|
1793
|
-
__param(1, (0,
|
1943
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1944
|
+
(0, runtime_1.Post)("/account/banner"),
|
1945
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1946
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1947
|
+
__param(1, (0, runtime_1.Inject)())
|
1794
1948
|
], LemmyHttp.prototype, "uploadUserBanner", null);
|
1795
1949
|
__decorate([
|
1796
|
-
(0,
|
1797
|
-
(0,
|
1798
|
-
(0,
|
1799
|
-
__param(0, (0,
|
1950
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1951
|
+
(0, runtime_1.Delete)("/account/banner"),
|
1952
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1953
|
+
__param(0, (0, runtime_1.Inject)())
|
1800
1954
|
], LemmyHttp.prototype, "deleteUserBanner", null);
|
1801
1955
|
__decorate([
|
1802
|
-
(0,
|
1803
|
-
(0,
|
1804
|
-
(0,
|
1805
|
-
__param(0, (0,
|
1806
|
-
__param(1, (0,
|
1956
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1957
|
+
(0, runtime_1.Post)("/community/icon"),
|
1958
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1959
|
+
__param(0, (0, runtime_1.Queries)()),
|
1960
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
1961
|
+
__param(2, (0, runtime_1.Inject)())
|
1807
1962
|
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
1808
1963
|
__decorate([
|
1809
|
-
(0,
|
1810
|
-
(0,
|
1811
|
-
(0,
|
1812
|
-
__param(0, (0,
|
1964
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1965
|
+
(0, runtime_1.Delete)("/community/icon"),
|
1966
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1967
|
+
__param(0, (0, runtime_1.Body)()),
|
1968
|
+
__param(1, (0, runtime_1.Inject)())
|
1813
1969
|
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
1814
1970
|
__decorate([
|
1815
|
-
(0,
|
1816
|
-
(0,
|
1817
|
-
(0,
|
1818
|
-
__param(0, (0,
|
1819
|
-
__param(1, (0,
|
1971
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1972
|
+
(0, runtime_1.Post)("/community/banner"),
|
1973
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1974
|
+
__param(0, (0, runtime_1.Queries)()),
|
1975
|
+
__param(1, (0, runtime_1.UploadedFile)()),
|
1976
|
+
__param(2, (0, runtime_1.Inject)())
|
1820
1977
|
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
1821
1978
|
__decorate([
|
1822
|
-
(0,
|
1823
|
-
(0,
|
1824
|
-
(0,
|
1825
|
-
__param(0, (0,
|
1979
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1980
|
+
(0, runtime_1.Delete)("/community/banner"),
|
1981
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1982
|
+
__param(0, (0, runtime_1.Body)()),
|
1983
|
+
__param(1, (0, runtime_1.Inject)())
|
1826
1984
|
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
1827
1985
|
__decorate([
|
1828
|
-
(0,
|
1829
|
-
(0,
|
1830
|
-
(0,
|
1831
|
-
__param(0, (0,
|
1832
|
-
__param(1, (0,
|
1986
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1987
|
+
(0, runtime_1.Post)("/site/icon"),
|
1988
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1989
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1990
|
+
__param(1, (0, runtime_1.Inject)())
|
1833
1991
|
], LemmyHttp.prototype, "uploadSiteIcon", null);
|
1834
1992
|
__decorate([
|
1835
|
-
(0,
|
1836
|
-
(0,
|
1837
|
-
(0,
|
1838
|
-
__param(0, (0,
|
1993
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1994
|
+
(0, runtime_1.Delete)("/site/icon"),
|
1995
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1996
|
+
__param(0, (0, runtime_1.Inject)())
|
1839
1997
|
], LemmyHttp.prototype, "deleteSiteIcon", null);
|
1840
1998
|
__decorate([
|
1841
|
-
(0,
|
1842
|
-
(0,
|
1843
|
-
(0,
|
1844
|
-
__param(0, (0,
|
1845
|
-
__param(1, (0,
|
1999
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2000
|
+
(0, runtime_1.Post)("/site/banner"),
|
2001
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
2002
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
2003
|
+
__param(1, (0, runtime_1.Inject)())
|
1846
2004
|
], LemmyHttp.prototype, "uploadSiteBanner", null);
|
1847
2005
|
__decorate([
|
1848
|
-
(0,
|
1849
|
-
(0,
|
1850
|
-
(0,
|
1851
|
-
__param(0, (0,
|
2006
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2007
|
+
(0, runtime_1.Delete)("/site/banner"),
|
2008
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
2009
|
+
__param(0, (0, runtime_1.Inject)())
|
1852
2010
|
], LemmyHttp.prototype, "deleteSiteBanner", null);
|
1853
2011
|
__decorate([
|
1854
|
-
(0,
|
1855
|
-
(0,
|
1856
|
-
(0,
|
1857
|
-
__param(0, (0,
|
1858
|
-
__param(1, (0,
|
2012
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2013
|
+
(0, runtime_1.Post)("/image"),
|
2014
|
+
(0, runtime_1.Tags)("Media"),
|
2015
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
2016
|
+
__param(1, (0, runtime_1.Inject)())
|
1859
2017
|
], LemmyHttp.prototype, "uploadImage", null);
|
1860
2018
|
__decorate([
|
1861
|
-
(0,
|
1862
|
-
(0,
|
1863
|
-
(0,
|
1864
|
-
__param(0, (0, tsoa_1.Queries)()),
|
1865
|
-
__param(1, (0, tsoa_1.Inject)())
|
1866
|
-
], LemmyHttp.prototype, "deleteImage", null);
|
1867
|
-
__decorate([
|
1868
|
-
(0, tsoa_1.Get)("image/health"),
|
1869
|
-
(0, tsoa_1.Tags)("Media"),
|
1870
|
-
__param(0, (0, tsoa_1.Inject)())
|
2019
|
+
(0, runtime_1.Get)("/image/health"),
|
2020
|
+
(0, runtime_1.Tags)("Media"),
|
2021
|
+
__param(0, (0, runtime_1.Inject)())
|
1871
2022
|
], LemmyHttp.prototype, "imageHealth", null);
|
2023
|
+
__decorate([
|
2024
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2025
|
+
(0, runtime_1.Post)("/account/donation_dialog_shown"),
|
2026
|
+
(0, runtime_1.Tags)("Account"),
|
2027
|
+
__param(0, (0, runtime_1.Inject)())
|
2028
|
+
], LemmyHttp.prototype, "donationDialogShown", null);
|
2029
|
+
__decorate([
|
2030
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2031
|
+
(0, runtime_1.Post)("/multi_community"),
|
2032
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2033
|
+
__param(0, (0, runtime_1.Body)()),
|
2034
|
+
__param(1, (0, runtime_1.Inject)())
|
2035
|
+
], LemmyHttp.prototype, "createMultiCommunity", null);
|
2036
|
+
__decorate([
|
2037
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2038
|
+
(0, runtime_1.Put)("/multi_community"),
|
2039
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2040
|
+
__param(0, (0, runtime_1.Body)()),
|
2041
|
+
__param(1, (0, runtime_1.Inject)())
|
2042
|
+
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
2043
|
+
__decorate([
|
2044
|
+
(0, runtime_1.Get)("/multi_community"),
|
2045
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2046
|
+
__param(0, (0, runtime_1.Queries)()),
|
2047
|
+
__param(1, (0, runtime_1.Inject)())
|
2048
|
+
], LemmyHttp.prototype, "getMultiCommunity", null);
|
2049
|
+
__decorate([
|
2050
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2051
|
+
(0, runtime_1.Post)("/multi_community/entry"),
|
2052
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2053
|
+
__param(0, (0, runtime_1.Body)()),
|
2054
|
+
__param(1, (0, runtime_1.Inject)())
|
2055
|
+
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
2056
|
+
__decorate([
|
2057
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2058
|
+
(0, runtime_1.Delete)("/multi_community/entry"),
|
2059
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2060
|
+
__param(0, (0, runtime_1.Body)()),
|
2061
|
+
__param(1, (0, runtime_1.Inject)())
|
2062
|
+
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2063
|
+
__decorate([
|
2064
|
+
(0, runtime_1.Get)("/multi_community/list"),
|
2065
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2066
|
+
__param(0, (0, runtime_1.Queries)()),
|
2067
|
+
__param(1, (0, runtime_1.Inject)())
|
2068
|
+
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2069
|
+
__decorate([
|
2070
|
+
(0, runtime_1.Post)("/multi_community/follow"),
|
2071
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2072
|
+
__param(0, (0, runtime_1.Body)()),
|
2073
|
+
__param(1, (0, runtime_1.Inject)())
|
2074
|
+
], LemmyHttp.prototype, "followMultiCommunity", null);
|
2075
|
+
__decorate([
|
2076
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2077
|
+
(0, runtime_1.Put)("/community/notifications"),
|
2078
|
+
(0, runtime_1.Tags)("Community"),
|
2079
|
+
__param(0, (0, runtime_1.Body)()),
|
2080
|
+
__param(1, (0, runtime_1.Inject)())
|
2081
|
+
], LemmyHttp.prototype, "updateCommunityNotifications", null);
|
2082
|
+
__decorate([
|
2083
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2084
|
+
(0, runtime_1.Put)("/post/notifications"),
|
2085
|
+
(0, runtime_1.Tags)("Post"),
|
2086
|
+
__param(0, (0, runtime_1.Body)()),
|
2087
|
+
__param(1, (0, runtime_1.Inject)())
|
2088
|
+
], LemmyHttp.prototype, "updatePostNotifications", null);
|
1872
2089
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
1873
|
-
(0,
|
2090
|
+
(0, runtime_1.Route)("api/v4")
|
1874
2091
|
], LemmyHttp);
|
1875
2092
|
function encodeGetParams(p) {
|
1876
2093
|
return Object.entries(p)
|
@@ -1889,3 +2106,18 @@ function createFormData(image) {
|
|
1889
2106
|
}
|
1890
2107
|
return formData;
|
1891
2108
|
}
|
2109
|
+
/**
|
2110
|
+
* A Lemmy error type.
|
2111
|
+
*
|
2112
|
+
* The name is the i18n translatable error code.
|
2113
|
+
* The msg is either an empty string, or extra non-translatable info.
|
2114
|
+
*/
|
2115
|
+
class LemmyError extends Error {
|
2116
|
+
constructor(name, msg) {
|
2117
|
+
super(msg ?? "");
|
2118
|
+
this.name = name;
|
2119
|
+
// Set the prototype explicitly.
|
2120
|
+
Object.setPrototypeOf(this, LemmyError.prototype);
|
2121
|
+
}
|
2122
|
+
}
|
2123
|
+
exports.LemmyError = LemmyError;
|