lemmy-js-client 1.0.0-post-tags.0 → 1.0.0-remove-page-limit.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/http.d.ts +28 -28
- package/dist/http.js +703 -706
- package/dist/index.d.ts +16 -21
- package/dist/other_types.d.ts +3 -0
- package/dist/types/BannedPersonsResponse.d.ts +6 -0
- package/dist/types/Comment.d.ts +14 -0
- package/dist/types/CommentActions.d.ts +18 -0
- package/dist/types/CommentReplyView.d.ts +16 -11
- package/dist/types/CommentReport.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +8 -10
- package/dist/types/CommentSlimView.d.ts +12 -10
- package/dist/types/CommentView.d.ts +15 -10
- package/dist/types/Community.d.ts +25 -6
- package/dist/types/CommunityActions.d.ts +35 -0
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +0 -4
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +7 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentReport.d.ts +1 -0
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +1 -2
- package/dist/types/CreatePostReport.d.ts +1 -0
- package/dist/types/CreateSite.d.ts +2 -1
- package/dist/types/EditPost.d.ts +2 -0
- package/dist/types/EditSite.d.ts +6 -3
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetComments.d.ts +8 -1
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +27 -2
- package/dist/types/GetModlogResponse.d.ts +6 -0
- package/dist/types/GetPostResponse.d.ts +0 -2
- package/dist/types/GetPosts.d.ts +5 -5
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/ImageDetails.d.ts +1 -0
- package/dist/types/Instance.d.ts +9 -0
- package/dist/types/InstanceActions.d.ts +18 -0
- package/dist/types/InstanceWithFederationState.d.ts +9 -0
- package/dist/types/LemmyErrorType.d.ts +95 -24
- package/dist/types/ListBannedPersons.d.ts +9 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +8 -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/ListInbox.d.ts +3 -2
- package/dist/types/ListInboxResponse.d.ts +6 -0
- 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/ListPersonContent.d.ts +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -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 +11 -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/LocalSite.d.ts +26 -3
- package/dist/types/LocalUser.d.ts +8 -0
- package/dist/types/LocalUserView.d.ts +2 -4
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +3 -3
- package/dist/types/MyUserInfo.d.ts +1 -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 +9 -0
- package/dist/types/PersonCommentMentionView.d.ts +14 -11
- package/dist/types/PersonPostMentionView.d.ts +16 -16
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonView.d.ts +4 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +15 -0
- package/dist/types/PostActions.d.ts +35 -0
- package/dist/types/PostReport.d.ts +1 -0
- package/dist/types/PostReportView.d.ts +8 -13
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +15 -15
- package/dist/types/PrivateMessage.d.ts +1 -0
- package/dist/types/PrivateMessageReportView.d.ts +1 -1
- package/dist/types/ResendVerificationEmail.d.ts +7 -0
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +5 -0
- package/dist/types/Search.d.ts +8 -2
- package/dist/types/SearchResponse.d.ts +6 -0
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteView.d.ts +2 -2
- package/dist/types/Tag.d.ts +8 -6
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/{PostTags.d.ts → TagsView.d.ts} +1 -1
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +1 -1
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +6 -3
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/CommunityTagResponse.d.ts +0 -7
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ListCommunityTags.d.ts +0 -7
- package/dist/types/ListCommunityTagsResponse.d.ts +0 -4
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityId.js +0 -3
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonAggregates.d.ts +0 -9
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ReportCombinedPaginationCursor.js +0 -3
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SearchCombinedPaginationCursor.js +0 -3
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- package/dist/types/SubscribedType.js +0 -3
- package/dist/types/UpdatePostTags.d.ts +0 -9
- /package/dist/types/{CommentAggregates.js → CommentActions.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → CommunityActions.js} +0 -0
- /package/dist/types/{CommunityTagResponse.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{ListCommunityTags.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{ListCommunityTagsResponse.js → InstanceActions.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → ListBannedPersons.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → ModChangeCommunityVisibility.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{PersonAggregates.js → ModChangeCommunityVisibilityView.js} +0 -0
- /package/dist/types/{PostAggregates.js → PersonActions.js} +0 -0
- /package/dist/types/{PostTags.js → PersonSavedCombinedView.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → PluginMetadata.js} +0 -0
- /package/dist/types/{SiteAggregates.js → PostActions.js} +0 -0
- /package/dist/types/{UpdatePostTags.js → ResendVerificationEmail.js} +0 -0
package/dist/http.js
CHANGED
@@ -22,8 +22,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
22
22
|
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
exports.LemmyHttp = void 0;
|
25
|
+
const runtime_1 = require("@tsoa/runtime");
|
25
26
|
const other_types_1 = require("./other_types");
|
26
|
-
const tsoa_1 = require("tsoa");
|
27
27
|
var HttpType;
|
28
28
|
(function (HttpType) {
|
29
29
|
HttpType["Get"] = "GET";
|
@@ -34,7 +34,7 @@ var HttpType;
|
|
34
34
|
/**
|
35
35
|
* Helps build lemmy HTTP requests.
|
36
36
|
*/
|
37
|
-
let LemmyHttp = class LemmyHttp extends
|
37
|
+
let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
38
38
|
/**
|
39
39
|
* Generates a new instance of LemmyHttp.
|
40
40
|
* @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
|
@@ -529,8 +529,8 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
529
529
|
/**
|
530
530
|
* @summary Get a list of banned users.
|
531
531
|
*/
|
532
|
-
|
533
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned",
|
532
|
+
listBannedPersons(form = {}, options) {
|
533
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", form, options);
|
534
534
|
}
|
535
535
|
/**
|
536
536
|
* @summary Block a person.
|
@@ -604,11 +604,17 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
604
604
|
verifyEmail(form, options) {
|
605
605
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
606
606
|
}
|
607
|
+
/**
|
608
|
+
* @summary Resend a verification email.
|
609
|
+
*/
|
610
|
+
resendVerificationEmail(form, options) {
|
611
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
612
|
+
}
|
607
613
|
/**
|
608
614
|
* @summary List your saved content.
|
609
615
|
*/
|
610
616
|
listPersonSaved(form, options) {
|
611
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
617
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
612
618
|
}
|
613
619
|
/**
|
614
620
|
* @summary Add an admin to your site.
|
@@ -713,34 +719,22 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
713
719
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
714
720
|
}
|
715
721
|
/**
|
716
|
-
* @summary Create a community tag.
|
722
|
+
* @summary Create a community post tag.
|
717
723
|
*/
|
718
724
|
createCommunityTag(form, options) {
|
719
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/
|
725
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
720
726
|
}
|
721
727
|
/**
|
722
|
-
* @summary Update a community tag.
|
728
|
+
* @summary Update a community post tag.
|
723
729
|
*/
|
724
730
|
updateCommunityTag(form, options) {
|
725
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/
|
731
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/tag", form, options);
|
726
732
|
}
|
727
733
|
/**
|
728
|
-
* @summary
|
729
|
-
*/
|
730
|
-
listCommunityTags(form, options) {
|
731
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/post_tag/list", form, options);
|
732
|
-
}
|
733
|
-
/**
|
734
|
-
* @summary Delete a community tag.
|
734
|
+
* @summary Delete a post tag in a community.
|
735
735
|
*/
|
736
736
|
deleteCommunityTag(form, options) {
|
737
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/
|
738
|
-
}
|
739
|
-
/**
|
740
|
-
* @summary Update post tags.
|
741
|
-
*/
|
742
|
-
updatePostTags(form, options) {
|
743
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/tags", form, options);
|
737
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
|
744
738
|
}
|
745
739
|
/**
|
746
740
|
* @summary Create a new oauth provider method
|
@@ -886,6 +880,14 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
886
880
|
async imageHealth(options) {
|
887
881
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
|
888
882
|
}
|
883
|
+
/**
|
884
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
885
|
+
*
|
886
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
887
|
+
*/
|
888
|
+
donation_dialog_shown(options) {
|
889
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
|
890
|
+
}
|
889
891
|
/**
|
890
892
|
* Set the headers (can be used to set the auth header)
|
891
893
|
*/
|
@@ -947,957 +949,952 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
|
|
947
949
|
}
|
948
950
|
};
|
949
951
|
__decorate([
|
950
|
-
(0,
|
951
|
-
(0,
|
952
|
-
(0,
|
953
|
-
(0,
|
954
|
-
__param(0, (0,
|
952
|
+
(0, runtime_1.Security)("bearerAuth"),
|
953
|
+
(0, runtime_1.Security)({}),
|
954
|
+
(0, runtime_1.Get)("/site"),
|
955
|
+
(0, runtime_1.Tags)("Site"),
|
956
|
+
__param(0, (0, runtime_1.Inject)())
|
955
957
|
], LemmyHttp.prototype, "getSite", null);
|
956
958
|
__decorate([
|
957
|
-
(0,
|
958
|
-
(0,
|
959
|
-
(0,
|
960
|
-
__param(0, (0,
|
961
|
-
__param(1, (0,
|
959
|
+
(0, runtime_1.Security)("bearerAuth"),
|
960
|
+
(0, runtime_1.Post)("/site"),
|
961
|
+
(0, runtime_1.Tags)("Site"),
|
962
|
+
__param(0, (0, runtime_1.Body)()),
|
963
|
+
__param(1, (0, runtime_1.Inject)())
|
962
964
|
], LemmyHttp.prototype, "createSite", null);
|
963
965
|
__decorate([
|
964
|
-
(0,
|
965
|
-
(0,
|
966
|
-
(0,
|
967
|
-
__param(0, (0,
|
968
|
-
__param(1, (0,
|
966
|
+
(0, runtime_1.Security)("bearerAuth"),
|
967
|
+
(0, runtime_1.Put)("/site"),
|
968
|
+
(0, runtime_1.Tags)("Site"),
|
969
|
+
__param(0, (0, runtime_1.Body)()),
|
970
|
+
__param(1, (0, runtime_1.Inject)())
|
969
971
|
], LemmyHttp.prototype, "editSite", null);
|
970
972
|
__decorate([
|
971
|
-
(0,
|
972
|
-
(0,
|
973
|
-
(0,
|
974
|
-
__param(0, (0,
|
973
|
+
(0, runtime_1.Security)("bearerAuth"),
|
974
|
+
(0, runtime_1.Post)("/admin/leave"),
|
975
|
+
(0, runtime_1.Tags)("Admin"),
|
976
|
+
__param(0, (0, runtime_1.Inject)())
|
975
977
|
], LemmyHttp.prototype, "leaveAdmin", null);
|
976
978
|
__decorate([
|
977
|
-
(0,
|
978
|
-
(0,
|
979
|
-
(0,
|
980
|
-
__param(0, (0,
|
979
|
+
(0, runtime_1.Security)("bearerAuth"),
|
980
|
+
(0, runtime_1.Post)("/account/auth/totp/generate"),
|
981
|
+
(0, runtime_1.Tags)("Account"),
|
982
|
+
__param(0, (0, runtime_1.Inject)())
|
981
983
|
], LemmyHttp.prototype, "generateTotpSecret", null);
|
982
984
|
__decorate([
|
983
|
-
(0,
|
984
|
-
(0,
|
985
|
-
(0,
|
986
|
-
__param(0, (0,
|
985
|
+
(0, runtime_1.Security)("bearerAuth"),
|
986
|
+
(0, runtime_1.Get)("/account"),
|
987
|
+
(0, runtime_1.Tags)("Account"),
|
988
|
+
__param(0, (0, runtime_1.Inject)())
|
987
989
|
], LemmyHttp.prototype, "getMyUser", null);
|
988
990
|
__decorate([
|
989
|
-
(0,
|
990
|
-
(0,
|
991
|
-
(0,
|
992
|
-
__param(0, (0,
|
991
|
+
(0, runtime_1.Security)("bearerAuth"),
|
992
|
+
(0, runtime_1.Get)("/account/settings/export"),
|
993
|
+
(0, runtime_1.Tags)("Account"),
|
994
|
+
__param(0, (0, runtime_1.Inject)())
|
993
995
|
], LemmyHttp.prototype, "exportSettings", null);
|
994
996
|
__decorate([
|
995
|
-
(0,
|
996
|
-
(0,
|
997
|
-
(0,
|
998
|
-
__param(0, (0,
|
999
|
-
__param(1, (0,
|
997
|
+
(0, runtime_1.Security)("bearerAuth"),
|
998
|
+
(0, runtime_1.Post)("/account/settings/import"),
|
999
|
+
(0, runtime_1.Tags)("Account"),
|
1000
|
+
__param(0, (0, runtime_1.Body)()),
|
1001
|
+
__param(1, (0, runtime_1.Inject)())
|
1000
1002
|
], LemmyHttp.prototype, "importSettings", null);
|
1001
1003
|
__decorate([
|
1002
|
-
(0,
|
1003
|
-
(0,
|
1004
|
-
(0,
|
1005
|
-
__param(0, (0,
|
1004
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1005
|
+
(0, runtime_1.Get)("/account/list_logins"),
|
1006
|
+
(0, runtime_1.Tags)("Account"),
|
1007
|
+
__param(0, (0, runtime_1.Inject)())
|
1006
1008
|
], LemmyHttp.prototype, "listLogins", null);
|
1007
1009
|
__decorate([
|
1008
|
-
(0,
|
1009
|
-
(0,
|
1010
|
-
(0,
|
1011
|
-
__param(0, (0,
|
1010
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1011
|
+
(0, runtime_1.Get)("/account/validate_auth"),
|
1012
|
+
(0, runtime_1.Tags)("Account"),
|
1013
|
+
__param(0, (0, runtime_1.Inject)())
|
1012
1014
|
], LemmyHttp.prototype, "validateAuth", null);
|
1013
1015
|
__decorate([
|
1014
|
-
(0,
|
1015
|
-
(0,
|
1016
|
-
(0,
|
1017
|
-
__param(0, (0,
|
1018
|
-
__param(1, (0,
|
1016
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1017
|
+
(0, runtime_1.Get)("/account/list_media"),
|
1018
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1019
|
+
__param(0, (0, runtime_1.Queries)()),
|
1020
|
+
__param(1, (0, runtime_1.Inject)())
|
1019
1021
|
], LemmyHttp.prototype, "listMedia", null);
|
1020
1022
|
__decorate([
|
1021
|
-
(0,
|
1022
|
-
(0,
|
1023
|
-
(0,
|
1024
|
-
__param(0, (0,
|
1025
|
-
__param(1, (0,
|
1023
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1024
|
+
(0, runtime_1.Get)("/admin/list_all_media"),
|
1025
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1026
|
+
__param(0, (0, runtime_1.Queries)()),
|
1027
|
+
__param(1, (0, runtime_1.Inject)())
|
1026
1028
|
], LemmyHttp.prototype, "listAllMedia", null);
|
1027
1029
|
__decorate([
|
1028
|
-
(0,
|
1029
|
-
(0,
|
1030
|
-
(0,
|
1031
|
-
__param(0, (0,
|
1032
|
-
__param(1, (0,
|
1030
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1031
|
+
(0, runtime_1.Post)("/account/auth/totp/update"),
|
1032
|
+
(0, runtime_1.Tags)("Account"),
|
1033
|
+
__param(0, (0, runtime_1.Body)()),
|
1034
|
+
__param(1, (0, runtime_1.Inject)())
|
1033
1035
|
], LemmyHttp.prototype, "updateTotp", null);
|
1034
1036
|
__decorate([
|
1035
|
-
(0,
|
1036
|
-
(0,
|
1037
|
-
(0,
|
1038
|
-
(0,
|
1039
|
-
__param(0, (0,
|
1040
|
-
__param(1, (0,
|
1037
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1038
|
+
(0, runtime_1.Security)({}),
|
1039
|
+
(0, runtime_1.Get)("/modlog"),
|
1040
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1041
|
+
__param(0, (0, runtime_1.Queries)()),
|
1042
|
+
__param(1, (0, runtime_1.Inject)())
|
1041
1043
|
], LemmyHttp.prototype, "getModlog", null);
|
1042
1044
|
__decorate([
|
1043
|
-
(0,
|
1044
|
-
(0,
|
1045
|
-
(0,
|
1046
|
-
(0,
|
1047
|
-
__param(0, (0,
|
1048
|
-
__param(1, (0,
|
1045
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1046
|
+
(0, runtime_1.Security)({}),
|
1047
|
+
(0, runtime_1.Get)("/search"),
|
1048
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1049
|
+
__param(0, (0, runtime_1.Queries)()),
|
1050
|
+
__param(1, (0, runtime_1.Inject)())
|
1049
1051
|
], LemmyHttp.prototype, "search", null);
|
1050
1052
|
__decorate([
|
1051
|
-
(0,
|
1052
|
-
(0,
|
1053
|
-
(0,
|
1054
|
-
(0,
|
1055
|
-
__param(0, (0,
|
1056
|
-
__param(1, (0,
|
1053
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1054
|
+
(0, runtime_1.Security)({}),
|
1055
|
+
(0, runtime_1.Get)("/resolve_object"),
|
1056
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1057
|
+
__param(0, (0, runtime_1.Queries)()),
|
1058
|
+
__param(1, (0, runtime_1.Inject)())
|
1057
1059
|
], LemmyHttp.prototype, "resolveObject", null);
|
1058
1060
|
__decorate([
|
1059
|
-
(0,
|
1060
|
-
(0,
|
1061
|
-
(0,
|
1062
|
-
__param(0, (0,
|
1063
|
-
__param(1, (0,
|
1061
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1062
|
+
(0, runtime_1.Post)("/community"),
|
1063
|
+
(0, runtime_1.Tags)("Community"),
|
1064
|
+
__param(0, (0, runtime_1.Body)()),
|
1065
|
+
__param(1, (0, runtime_1.Inject)())
|
1064
1066
|
], LemmyHttp.prototype, "createCommunity", null);
|
1065
1067
|
__decorate([
|
1066
|
-
(0,
|
1067
|
-
(0,
|
1068
|
-
(0,
|
1069
|
-
(0,
|
1070
|
-
__param(0, (0,
|
1071
|
-
__param(1, (0,
|
1068
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1069
|
+
(0, runtime_1.Security)({}),
|
1070
|
+
(0, runtime_1.Get)("/community"),
|
1071
|
+
(0, runtime_1.Tags)("Community"),
|
1072
|
+
__param(0, (0, runtime_1.Queries)()),
|
1073
|
+
__param(1, (0, runtime_1.Inject)())
|
1072
1074
|
], LemmyHttp.prototype, "getCommunity", null);
|
1073
1075
|
__decorate([
|
1074
|
-
(0,
|
1075
|
-
(0,
|
1076
|
-
(0,
|
1077
|
-
__param(0, (0,
|
1078
|
-
__param(1, (0,
|
1076
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1077
|
+
(0, runtime_1.Put)("/community"),
|
1078
|
+
(0, runtime_1.Tags)("Community"),
|
1079
|
+
__param(0, (0, runtime_1.Body)()),
|
1080
|
+
__param(1, (0, runtime_1.Inject)())
|
1079
1081
|
], LemmyHttp.prototype, "editCommunity", null);
|
1080
1082
|
__decorate([
|
1081
|
-
(0,
|
1082
|
-
(0,
|
1083
|
-
(0,
|
1084
|
-
(0,
|
1085
|
-
__param(0, (0,
|
1086
|
-
__param(1, (0,
|
1083
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1084
|
+
(0, runtime_1.Security)({}),
|
1085
|
+
(0, runtime_1.Get)("/community/list"),
|
1086
|
+
(0, runtime_1.Tags)("Community"),
|
1087
|
+
__param(0, (0, runtime_1.Queries)()),
|
1088
|
+
__param(1, (0, runtime_1.Inject)())
|
1087
1089
|
], LemmyHttp.prototype, "listCommunities", null);
|
1088
1090
|
__decorate([
|
1089
|
-
(0,
|
1090
|
-
(0,
|
1091
|
-
(0,
|
1092
|
-
__param(0, (0,
|
1093
|
-
__param(1, (0,
|
1094
|
-
__param(1, (0,
|
1091
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1092
|
+
(0, runtime_1.Post)("/community/follow"),
|
1093
|
+
(0, runtime_1.Tags)("Community"),
|
1094
|
+
__param(0, (0, runtime_1.Body)()),
|
1095
|
+
__param(1, (0, runtime_1.Inject)()),
|
1096
|
+
__param(1, (0, runtime_1.Inject)())
|
1095
1097
|
], LemmyHttp.prototype, "followCommunity", null);
|
1096
1098
|
__decorate([
|
1097
|
-
(0,
|
1098
|
-
(0,
|
1099
|
-
(0,
|
1100
|
-
__param(0, (0,
|
1101
|
-
__param(1, (0,
|
1099
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1100
|
+
(0, runtime_1.Get)("/community/pending_follows/count"),
|
1101
|
+
(0, runtime_1.Tags)("Community"),
|
1102
|
+
__param(0, (0, runtime_1.Queries)()),
|
1103
|
+
__param(1, (0, runtime_1.Inject)())
|
1102
1104
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
1103
1105
|
__decorate([
|
1104
|
-
(0,
|
1105
|
-
(0,
|
1106
|
-
(0,
|
1107
|
-
__param(0, (0,
|
1108
|
-
__param(1, (0,
|
1106
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1107
|
+
(0, runtime_1.Get)("/community/pending_follows/list"),
|
1108
|
+
(0, runtime_1.Tags)("Community"),
|
1109
|
+
__param(0, (0, runtime_1.Queries)()),
|
1110
|
+
__param(1, (0, runtime_1.Inject)())
|
1109
1111
|
], LemmyHttp.prototype, "listCommunityPendingFollows", null);
|
1110
1112
|
__decorate([
|
1111
|
-
(0,
|
1112
|
-
(0,
|
1113
|
-
(0,
|
1114
|
-
__param(0, (0,
|
1115
|
-
__param(1, (0,
|
1113
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1114
|
+
(0, runtime_1.Post)("/community/pending_follows/approve"),
|
1115
|
+
(0, runtime_1.Tags)("Community"),
|
1116
|
+
__param(0, (0, runtime_1.Body)()),
|
1117
|
+
__param(1, (0, runtime_1.Inject)())
|
1116
1118
|
], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
|
1117
1119
|
__decorate([
|
1118
|
-
(0,
|
1119
|
-
(0,
|
1120
|
-
(0,
|
1121
|
-
__param(0, (0,
|
1122
|
-
__param(1, (0,
|
1120
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1121
|
+
(0, runtime_1.Post)("/account/block/community"),
|
1122
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
1123
|
+
__param(0, (0, runtime_1.Body)()),
|
1124
|
+
__param(1, (0, runtime_1.Inject)())
|
1123
1125
|
], LemmyHttp.prototype, "blockCommunity", null);
|
1124
1126
|
__decorate([
|
1125
|
-
(0,
|
1126
|
-
(0,
|
1127
|
-
(0,
|
1128
|
-
__param(0, (0,
|
1129
|
-
__param(1, (0,
|
1127
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1128
|
+
(0, runtime_1.Post)("/community/delete"),
|
1129
|
+
(0, runtime_1.Tags)("Community"),
|
1130
|
+
__param(0, (0, runtime_1.Body)()),
|
1131
|
+
__param(1, (0, runtime_1.Inject)())
|
1130
1132
|
], LemmyHttp.prototype, "deleteCommunity", null);
|
1131
1133
|
__decorate([
|
1132
|
-
(0,
|
1133
|
-
(0,
|
1134
|
-
(0,
|
1135
|
-
__param(0, (0,
|
1136
|
-
__param(1, (0,
|
1134
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1135
|
+
(0, runtime_1.Put)("/community/hide"),
|
1136
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
1137
|
+
__param(0, (0, runtime_1.Body)()),
|
1138
|
+
__param(1, (0, runtime_1.Inject)())
|
1137
1139
|
], LemmyHttp.prototype, "hideCommunity", null);
|
1138
1140
|
__decorate([
|
1139
|
-
(0,
|
1140
|
-
(0,
|
1141
|
-
(0,
|
1142
|
-
__param(0, (0,
|
1143
|
-
__param(1, (0,
|
1141
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1142
|
+
(0, runtime_1.Post)("/community/remove"),
|
1143
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1144
|
+
__param(0, (0, runtime_1.Body)()),
|
1145
|
+
__param(1, (0, runtime_1.Inject)())
|
1144
1146
|
], LemmyHttp.prototype, "removeCommunity", null);
|
1145
1147
|
__decorate([
|
1146
|
-
(0,
|
1147
|
-
(0,
|
1148
|
-
(0,
|
1149
|
-
__param(0, (0,
|
1150
|
-
__param(1, (0,
|
1148
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1149
|
+
(0, runtime_1.Post)("/community/transfer"),
|
1150
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1151
|
+
__param(0, (0, runtime_1.Body)()),
|
1152
|
+
__param(1, (0, runtime_1.Inject)())
|
1151
1153
|
], LemmyHttp.prototype, "transferCommunity", null);
|
1152
1154
|
__decorate([
|
1153
|
-
(0,
|
1154
|
-
(0,
|
1155
|
-
(0,
|
1156
|
-
__param(0, (0,
|
1157
|
-
__param(1, (0,
|
1155
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1156
|
+
(0, runtime_1.Post)("/community/ban_user"),
|
1157
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1158
|
+
__param(0, (0, runtime_1.Body)()),
|
1159
|
+
__param(1, (0, runtime_1.Inject)())
|
1158
1160
|
], LemmyHttp.prototype, "banFromCommunity", null);
|
1159
1161
|
__decorate([
|
1160
|
-
(0,
|
1161
|
-
(0,
|
1162
|
-
(0,
|
1163
|
-
__param(0, (0,
|
1164
|
-
__param(1, (0,
|
1162
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1163
|
+
(0, runtime_1.Post)("/community/mod"),
|
1164
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1165
|
+
__param(0, (0, runtime_1.Body)()),
|
1166
|
+
__param(1, (0, runtime_1.Inject)())
|
1165
1167
|
], LemmyHttp.prototype, "addModToCommunity", null);
|
1166
1168
|
__decorate([
|
1167
|
-
(0,
|
1168
|
-
(0,
|
1169
|
-
(0,
|
1170
|
-
(0,
|
1171
|
-
__param(0, (0,
|
1172
|
-
__param(1, (0,
|
1169
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1170
|
+
(0, runtime_1.Security)({}),
|
1171
|
+
(0, runtime_1.Get)("/community/random"),
|
1172
|
+
(0, runtime_1.Tags)("Community"),
|
1173
|
+
__param(0, (0, runtime_1.Queries)()),
|
1174
|
+
__param(1, (0, runtime_1.Inject)())
|
1173
1175
|
], LemmyHttp.prototype, "getRandomCommunity", null);
|
1174
1176
|
__decorate([
|
1175
|
-
(0,
|
1176
|
-
(0,
|
1177
|
-
(0,
|
1178
|
-
__param(0, (0,
|
1179
|
-
__param(1, (0,
|
1177
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1178
|
+
(0, runtime_1.Post)("/post"),
|
1179
|
+
(0, runtime_1.Tags)("Post"),
|
1180
|
+
__param(0, (0, runtime_1.Body)()),
|
1181
|
+
__param(1, (0, runtime_1.Inject)())
|
1180
1182
|
], LemmyHttp.prototype, "createPost", null);
|
1181
1183
|
__decorate([
|
1182
|
-
(0,
|
1183
|
-
(0,
|
1184
|
-
(0,
|
1185
|
-
(0,
|
1186
|
-
__param(0, (0,
|
1187
|
-
__param(1, (0,
|
1184
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1185
|
+
(0, runtime_1.Security)({}),
|
1186
|
+
(0, runtime_1.Get)("/post"),
|
1187
|
+
(0, runtime_1.Tags)("Post"),
|
1188
|
+
__param(0, (0, runtime_1.Queries)()),
|
1189
|
+
__param(1, (0, runtime_1.Inject)())
|
1188
1190
|
], LemmyHttp.prototype, "getPost", null);
|
1189
1191
|
__decorate([
|
1190
|
-
(0,
|
1191
|
-
(0,
|
1192
|
-
(0,
|
1193
|
-
__param(0, (0,
|
1194
|
-
__param(1, (0,
|
1192
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1193
|
+
(0, runtime_1.Put)("/post"),
|
1194
|
+
(0, runtime_1.Tags)("Post"),
|
1195
|
+
__param(0, (0, runtime_1.Body)()),
|
1196
|
+
__param(1, (0, runtime_1.Inject)())
|
1195
1197
|
], LemmyHttp.prototype, "editPost", null);
|
1196
1198
|
__decorate([
|
1197
|
-
(0,
|
1198
|
-
(0,
|
1199
|
-
(0,
|
1200
|
-
__param(0, (0,
|
1201
|
-
__param(1, (0,
|
1199
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1200
|
+
(0, runtime_1.Post)("/post/delete"),
|
1201
|
+
(0, runtime_1.Tags)("Post"),
|
1202
|
+
__param(0, (0, runtime_1.Body)()),
|
1203
|
+
__param(1, (0, runtime_1.Inject)())
|
1202
1204
|
], LemmyHttp.prototype, "deletePost", null);
|
1203
1205
|
__decorate([
|
1204
|
-
(0,
|
1205
|
-
(0,
|
1206
|
-
(0,
|
1207
|
-
__param(0, (0,
|
1208
|
-
__param(1, (0,
|
1206
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1207
|
+
(0, runtime_1.Post)("/post/remove"),
|
1208
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1209
|
+
__param(0, (0, runtime_1.Body)()),
|
1210
|
+
__param(1, (0, runtime_1.Inject)())
|
1209
1211
|
], LemmyHttp.prototype, "removePost", null);
|
1210
1212
|
__decorate([
|
1211
|
-
(0,
|
1212
|
-
(0,
|
1213
|
-
(0,
|
1214
|
-
__param(0, (0,
|
1215
|
-
__param(1, (0,
|
1213
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1214
|
+
(0, runtime_1.Post)("/post/mark_as_read"),
|
1215
|
+
(0, runtime_1.Tags)("Post"),
|
1216
|
+
__param(0, (0, runtime_1.Body)()),
|
1217
|
+
__param(1, (0, runtime_1.Inject)())
|
1216
1218
|
], LemmyHttp.prototype, "markPostAsRead", null);
|
1217
1219
|
__decorate([
|
1218
|
-
(0,
|
1219
|
-
(0,
|
1220
|
-
(0,
|
1221
|
-
__param(0, (0,
|
1222
|
-
__param(1, (0,
|
1220
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1221
|
+
(0, runtime_1.Post)("/post/mark_as_read/many"),
|
1222
|
+
(0, runtime_1.Tags)("Post"),
|
1223
|
+
__param(0, (0, runtime_1.Body)()),
|
1224
|
+
__param(1, (0, runtime_1.Inject)())
|
1223
1225
|
], LemmyHttp.prototype, "markManyPostAsRead", null);
|
1224
1226
|
__decorate([
|
1225
|
-
(0,
|
1226
|
-
(0,
|
1227
|
-
(0,
|
1228
|
-
__param(0, (0,
|
1229
|
-
__param(1, (0,
|
1227
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1228
|
+
(0, runtime_1.Post)("/post/hide"),
|
1229
|
+
(0, runtime_1.Tags)("Post"),
|
1230
|
+
__param(0, (0, runtime_1.Body)()),
|
1231
|
+
__param(1, (0, runtime_1.Inject)())
|
1230
1232
|
], LemmyHttp.prototype, "hidePost", null);
|
1231
1233
|
__decorate([
|
1232
|
-
(0,
|
1233
|
-
(0,
|
1234
|
-
(0,
|
1235
|
-
__param(0, (0,
|
1236
|
-
__param(1, (0,
|
1234
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1235
|
+
(0, runtime_1.Post)("/post/lock"),
|
1236
|
+
(0, runtime_1.Tags)("Post"),
|
1237
|
+
__param(0, (0, runtime_1.Body)()),
|
1238
|
+
__param(1, (0, runtime_1.Inject)())
|
1237
1239
|
], LemmyHttp.prototype, "lockPost", null);
|
1238
1240
|
__decorate([
|
1239
|
-
(0,
|
1240
|
-
(0,
|
1241
|
-
(0,
|
1242
|
-
__param(0, (0,
|
1243
|
-
__param(1, (0,
|
1241
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1242
|
+
(0, runtime_1.Post)("/post/feature"),
|
1243
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1244
|
+
__param(0, (0, runtime_1.Body)()),
|
1245
|
+
__param(1, (0, runtime_1.Inject)())
|
1244
1246
|
], LemmyHttp.prototype, "featurePost", null);
|
1245
1247
|
__decorate([
|
1246
|
-
(0,
|
1247
|
-
(0,
|
1248
|
-
(0,
|
1249
|
-
(0,
|
1250
|
-
__param(0, (0,
|
1251
|
-
__param(1, (0,
|
1248
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1249
|
+
(0, runtime_1.Security)({}),
|
1250
|
+
(0, runtime_1.Get)("/post/list"),
|
1251
|
+
(0, runtime_1.Tags)("Post"),
|
1252
|
+
__param(0, (0, runtime_1.Queries)()),
|
1253
|
+
__param(1, (0, runtime_1.Inject)())
|
1252
1254
|
], LemmyHttp.prototype, "getPosts", null);
|
1253
1255
|
__decorate([
|
1254
|
-
(0,
|
1255
|
-
(0,
|
1256
|
-
(0,
|
1257
|
-
__param(0, (0,
|
1258
|
-
__param(1, (0,
|
1256
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1257
|
+
(0, runtime_1.Post)("/post/like"),
|
1258
|
+
(0, runtime_1.Tags)("Post"),
|
1259
|
+
__param(0, (0, runtime_1.Body)()),
|
1260
|
+
__param(1, (0, runtime_1.Inject)())
|
1259
1261
|
], LemmyHttp.prototype, "likePost", null);
|
1260
1262
|
__decorate([
|
1261
|
-
(0,
|
1262
|
-
(0,
|
1263
|
-
(0,
|
1264
|
-
__param(0, (0,
|
1265
|
-
__param(1, (0,
|
1263
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1264
|
+
(0, runtime_1.Get)("/post/like/list"),
|
1265
|
+
(0, runtime_1.Tags)("Post", "Admin"),
|
1266
|
+
__param(0, (0, runtime_1.Queries)()),
|
1267
|
+
__param(1, (0, runtime_1.Inject)())
|
1266
1268
|
], LemmyHttp.prototype, "listPostLikes", null);
|
1267
1269
|
__decorate([
|
1268
|
-
(0,
|
1269
|
-
(0,
|
1270
|
-
(0,
|
1271
|
-
__param(0, (0,
|
1272
|
-
__param(1, (0,
|
1270
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1271
|
+
(0, runtime_1.Put)("/post/save"),
|
1272
|
+
(0, runtime_1.Tags)("Post"),
|
1273
|
+
__param(0, (0, runtime_1.Body)()),
|
1274
|
+
__param(1, (0, runtime_1.Inject)())
|
1273
1275
|
], LemmyHttp.prototype, "savePost", null);
|
1274
1276
|
__decorate([
|
1275
|
-
(0,
|
1276
|
-
(0,
|
1277
|
-
(0,
|
1278
|
-
__param(0, (0,
|
1279
|
-
__param(1, (0,
|
1277
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1278
|
+
(0, runtime_1.Post)("/post/report"),
|
1279
|
+
(0, runtime_1.Tags)("Post"),
|
1280
|
+
__param(0, (0, runtime_1.Body)()),
|
1281
|
+
__param(1, (0, runtime_1.Inject)())
|
1280
1282
|
], LemmyHttp.prototype, "createPostReport", null);
|
1281
1283
|
__decorate([
|
1282
|
-
(0,
|
1283
|
-
(0,
|
1284
|
-
(0,
|
1285
|
-
__param(0, (0,
|
1286
|
-
__param(1, (0,
|
1284
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1285
|
+
(0, runtime_1.Put)("/post/report/resolve"),
|
1286
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1287
|
+
__param(0, (0, runtime_1.Body)()),
|
1288
|
+
__param(1, (0, runtime_1.Inject)())
|
1287
1289
|
], LemmyHttp.prototype, "resolvePostReport", null);
|
1288
1290
|
__decorate([
|
1289
|
-
(0,
|
1290
|
-
(0,
|
1291
|
-
(0,
|
1292
|
-
__param(0, (0,
|
1293
|
-
__param(1, (0,
|
1291
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1292
|
+
(0, runtime_1.Get)("/post/site_metadata"),
|
1293
|
+
(0, runtime_1.Tags)("Miscellaneous", "Post"),
|
1294
|
+
__param(0, (0, runtime_1.Queries)()),
|
1295
|
+
__param(1, (0, runtime_1.Inject)())
|
1294
1296
|
], LemmyHttp.prototype, "getSiteMetadata", null);
|
1295
1297
|
__decorate([
|
1296
|
-
(0,
|
1297
|
-
(0,
|
1298
|
-
(0,
|
1299
|
-
__param(0, (0,
|
1300
|
-
__param(1, (0,
|
1298
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1299
|
+
(0, runtime_1.Post)("/comment"),
|
1300
|
+
(0, runtime_1.Tags)("Comment"),
|
1301
|
+
__param(0, (0, runtime_1.Body)()),
|
1302
|
+
__param(1, (0, runtime_1.Inject)())
|
1301
1303
|
], LemmyHttp.prototype, "createComment", null);
|
1302
1304
|
__decorate([
|
1303
|
-
(0,
|
1304
|
-
(0,
|
1305
|
-
(0,
|
1306
|
-
__param(0, (0,
|
1307
|
-
__param(1, (0,
|
1305
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1306
|
+
(0, runtime_1.Put)("/comment"),
|
1307
|
+
(0, runtime_1.Tags)("Comment"),
|
1308
|
+
__param(0, (0, runtime_1.Body)()),
|
1309
|
+
__param(1, (0, runtime_1.Inject)())
|
1308
1310
|
], LemmyHttp.prototype, "editComment", null);
|
1309
1311
|
__decorate([
|
1310
|
-
(0,
|
1311
|
-
(0,
|
1312
|
-
(0,
|
1313
|
-
__param(0, (0,
|
1314
|
-
__param(1, (0,
|
1312
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1313
|
+
(0, runtime_1.Post)("/comment/delete"),
|
1314
|
+
(0, runtime_1.Tags)("Comment"),
|
1315
|
+
__param(0, (0, runtime_1.Body)()),
|
1316
|
+
__param(1, (0, runtime_1.Inject)())
|
1315
1317
|
], LemmyHttp.prototype, "deleteComment", null);
|
1316
1318
|
__decorate([
|
1317
|
-
(0,
|
1318
|
-
(0,
|
1319
|
-
(0,
|
1320
|
-
__param(0, (0,
|
1321
|
-
__param(1, (0,
|
1319
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1320
|
+
(0, runtime_1.Post)("/comment/remove"),
|
1321
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1322
|
+
__param(0, (0, runtime_1.Body)()),
|
1323
|
+
__param(1, (0, runtime_1.Inject)())
|
1322
1324
|
], LemmyHttp.prototype, "removeComment", null);
|
1323
1325
|
__decorate([
|
1324
|
-
(0,
|
1325
|
-
(0,
|
1326
|
-
(0,
|
1327
|
-
__param(0, (0,
|
1328
|
-
__param(1, (0,
|
1326
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1327
|
+
(0, runtime_1.Post)("/comment/mark_as_read"),
|
1328
|
+
(0, runtime_1.Tags)("Comment"),
|
1329
|
+
__param(0, (0, runtime_1.Body)()),
|
1330
|
+
__param(1, (0, runtime_1.Inject)())
|
1329
1331
|
], LemmyHttp.prototype, "markCommentReplyAsRead", null);
|
1330
1332
|
__decorate([
|
1331
|
-
(0,
|
1332
|
-
(0,
|
1333
|
-
(0,
|
1334
|
-
__param(0, (0,
|
1335
|
-
__param(1, (0,
|
1333
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1334
|
+
(0, runtime_1.Post)("/comment/like"),
|
1335
|
+
(0, runtime_1.Tags)("Comment"),
|
1336
|
+
__param(0, (0, runtime_1.Body)()),
|
1337
|
+
__param(1, (0, runtime_1.Inject)())
|
1336
1338
|
], LemmyHttp.prototype, "likeComment", null);
|
1337
1339
|
__decorate([
|
1338
|
-
(0,
|
1339
|
-
(0,
|
1340
|
-
(0,
|
1341
|
-
__param(0, (0,
|
1342
|
-
__param(1, (0,
|
1340
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1341
|
+
(0, runtime_1.Get)("/comment/like/list"),
|
1342
|
+
(0, runtime_1.Tags)("Comment", "Admin"),
|
1343
|
+
__param(0, (0, runtime_1.Queries)()),
|
1344
|
+
__param(1, (0, runtime_1.Inject)())
|
1343
1345
|
], LemmyHttp.prototype, "listCommentLikes", null);
|
1344
1346
|
__decorate([
|
1345
|
-
(0,
|
1346
|
-
(0,
|
1347
|
-
(0,
|
1348
|
-
__param(0, (0,
|
1349
|
-
__param(1, (0,
|
1347
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1348
|
+
(0, runtime_1.Put)("/comment/save"),
|
1349
|
+
(0, runtime_1.Tags)("Comment"),
|
1350
|
+
__param(0, (0, runtime_1.Body)()),
|
1351
|
+
__param(1, (0, runtime_1.Inject)())
|
1350
1352
|
], LemmyHttp.prototype, "saveComment", null);
|
1351
1353
|
__decorate([
|
1352
|
-
(0,
|
1353
|
-
(0,
|
1354
|
-
(0,
|
1355
|
-
__param(0, (0,
|
1356
|
-
__param(1, (0,
|
1354
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1355
|
+
(0, runtime_1.Post)("/comment/distinguish"),
|
1356
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1357
|
+
__param(0, (0, runtime_1.Body)()),
|
1358
|
+
__param(1, (0, runtime_1.Inject)())
|
1357
1359
|
], LemmyHttp.prototype, "distinguishComment", null);
|
1358
1360
|
__decorate([
|
1359
|
-
(0,
|
1360
|
-
(0,
|
1361
|
-
(0,
|
1362
|
-
(0,
|
1363
|
-
__param(0, (0,
|
1364
|
-
__param(1, (0,
|
1361
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1362
|
+
(0, runtime_1.Security)({}),
|
1363
|
+
(0, runtime_1.Get)("/comment/list"),
|
1364
|
+
(0, runtime_1.Tags)("Comment"),
|
1365
|
+
__param(0, (0, runtime_1.Queries)()),
|
1366
|
+
__param(1, (0, runtime_1.Inject)())
|
1365
1367
|
], LemmyHttp.prototype, "getComments", null);
|
1366
1368
|
__decorate([
|
1367
|
-
(0,
|
1368
|
-
(0,
|
1369
|
-
(0,
|
1370
|
-
(0,
|
1371
|
-
__param(0, (0,
|
1372
|
-
__param(1, (0,
|
1369
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1370
|
+
(0, runtime_1.Security)({}),
|
1371
|
+
(0, runtime_1.Get)("/comment/list/slim"),
|
1372
|
+
(0, runtime_1.Tags)("Comment"),
|
1373
|
+
__param(0, (0, runtime_1.Queries)()),
|
1374
|
+
__param(1, (0, runtime_1.Inject)())
|
1373
1375
|
], LemmyHttp.prototype, "getCommentsSlim", null);
|
1374
1376
|
__decorate([
|
1375
|
-
(0,
|
1376
|
-
(0,
|
1377
|
-
(0,
|
1378
|
-
(0,
|
1379
|
-
__param(0, (0,
|
1380
|
-
__param(1, (0,
|
1377
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1378
|
+
(0, runtime_1.Security)({}),
|
1379
|
+
(0, runtime_1.Get)("/comment"),
|
1380
|
+
(0, runtime_1.Tags)("Comment"),
|
1381
|
+
__param(0, (0, runtime_1.Queries)()),
|
1382
|
+
__param(1, (0, runtime_1.Inject)())
|
1381
1383
|
], LemmyHttp.prototype, "getComment", null);
|
1382
1384
|
__decorate([
|
1383
|
-
(0,
|
1384
|
-
(0,
|
1385
|
-
(0,
|
1386
|
-
__param(0, (0,
|
1387
|
-
__param(1, (0,
|
1385
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1386
|
+
(0, runtime_1.Post)("/comment/report"),
|
1387
|
+
(0, runtime_1.Tags)("Comment"),
|
1388
|
+
__param(0, (0, runtime_1.Body)()),
|
1389
|
+
__param(1, (0, runtime_1.Inject)())
|
1388
1390
|
], LemmyHttp.prototype, "createCommentReport", null);
|
1389
1391
|
__decorate([
|
1390
|
-
(0,
|
1391
|
-
(0,
|
1392
|
-
(0,
|
1393
|
-
__param(0, (0,
|
1394
|
-
__param(1, (0,
|
1392
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1393
|
+
(0, runtime_1.Put)("/comment/report/resolve"),
|
1394
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1395
|
+
__param(0, (0, runtime_1.Body)()),
|
1396
|
+
__param(1, (0, runtime_1.Inject)())
|
1395
1397
|
], LemmyHttp.prototype, "resolveCommentReport", null);
|
1396
1398
|
__decorate([
|
1397
|
-
(0,
|
1398
|
-
(0,
|
1399
|
-
(0,
|
1400
|
-
__param(0, (0,
|
1401
|
-
__param(1, (0,
|
1399
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1400
|
+
(0, runtime_1.Post)("/private_message"),
|
1401
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1402
|
+
__param(0, (0, runtime_1.Body)()),
|
1403
|
+
__param(1, (0, runtime_1.Inject)())
|
1402
1404
|
], LemmyHttp.prototype, "createPrivateMessage", null);
|
1403
1405
|
__decorate([
|
1404
|
-
(0,
|
1405
|
-
(0,
|
1406
|
-
(0,
|
1407
|
-
__param(0, (0,
|
1408
|
-
__param(1, (0,
|
1406
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1407
|
+
(0, runtime_1.Put)("/private_message"),
|
1408
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1409
|
+
__param(0, (0, runtime_1.Body)()),
|
1410
|
+
__param(1, (0, runtime_1.Inject)())
|
1409
1411
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
1410
1412
|
__decorate([
|
1411
|
-
(0,
|
1412
|
-
(0,
|
1413
|
-
(0,
|
1414
|
-
__param(0, (0,
|
1415
|
-
__param(1, (0,
|
1413
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1414
|
+
(0, runtime_1.Post)("/private_message/delete"),
|
1415
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1416
|
+
__param(0, (0, runtime_1.Body)()),
|
1417
|
+
__param(1, (0, runtime_1.Inject)())
|
1416
1418
|
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
1417
1419
|
__decorate([
|
1418
|
-
(0,
|
1419
|
-
(0,
|
1420
|
-
(0,
|
1421
|
-
__param(0, (0,
|
1422
|
-
__param(1, (0,
|
1420
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1421
|
+
(0, runtime_1.Post)("/private_message/mark_as_read"),
|
1422
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1423
|
+
__param(0, (0, runtime_1.Body)()),
|
1424
|
+
__param(1, (0, runtime_1.Inject)())
|
1423
1425
|
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
1424
1426
|
__decorate([
|
1425
|
-
(0,
|
1426
|
-
(0,
|
1427
|
-
(0,
|
1428
|
-
__param(0, (0,
|
1429
|
-
__param(1, (0,
|
1427
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1428
|
+
(0, runtime_1.Post)("/private_message/report"),
|
1429
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1430
|
+
__param(0, (0, runtime_1.Body)()),
|
1431
|
+
__param(1, (0, runtime_1.Inject)())
|
1430
1432
|
], LemmyHttp.prototype, "createPrivateMessageReport", null);
|
1431
1433
|
__decorate([
|
1432
|
-
(0,
|
1433
|
-
(0,
|
1434
|
-
(0,
|
1435
|
-
__param(0, (0,
|
1436
|
-
__param(1, (0,
|
1434
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1435
|
+
(0, runtime_1.Put)("/private_message/report/resolve"),
|
1436
|
+
(0, runtime_1.Tags)("PrivateMessage", "Admin"),
|
1437
|
+
__param(0, (0, runtime_1.Body)()),
|
1438
|
+
__param(1, (0, runtime_1.Inject)())
|
1437
1439
|
], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
|
1438
1440
|
__decorate([
|
1439
|
-
(0,
|
1440
|
-
(0,
|
1441
|
-
__param(0, (0,
|
1442
|
-
__param(1, (0,
|
1441
|
+
(0, runtime_1.Post)("/account/auth/register"),
|
1442
|
+
(0, runtime_1.Tags)("Account"),
|
1443
|
+
__param(0, (0, runtime_1.Body)()),
|
1444
|
+
__param(1, (0, runtime_1.Inject)())
|
1443
1445
|
], LemmyHttp.prototype, "register", null);
|
1444
1446
|
__decorate([
|
1445
|
-
(0,
|
1446
|
-
(0,
|
1447
|
-
__param(0, (0,
|
1448
|
-
__param(1, (0,
|
1447
|
+
(0, runtime_1.Post)("/account/auth/login"),
|
1448
|
+
(0, runtime_1.Tags)("Account"),
|
1449
|
+
__param(0, (0, runtime_1.Body)()),
|
1450
|
+
__param(1, (0, runtime_1.Inject)())
|
1449
1451
|
], LemmyHttp.prototype, "login", null);
|
1450
1452
|
__decorate([
|
1451
|
-
(0,
|
1452
|
-
(0,
|
1453
|
-
(0,
|
1454
|
-
__param(0, (0,
|
1453
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1454
|
+
(0, runtime_1.Post)("/account/auth/logout"),
|
1455
|
+
(0, runtime_1.Tags)("Account"),
|
1456
|
+
__param(0, (0, runtime_1.Inject)())
|
1455
1457
|
], LemmyHttp.prototype, "logout", null);
|
1456
1458
|
__decorate([
|
1457
|
-
(0,
|
1458
|
-
(0,
|
1459
|
-
(0,
|
1460
|
-
(0,
|
1461
|
-
__param(0, (0,
|
1462
|
-
__param(1, (0,
|
1459
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1460
|
+
(0, runtime_1.Security)({}),
|
1461
|
+
(0, runtime_1.Get)("/person"),
|
1462
|
+
(0, runtime_1.Tags)("Person"),
|
1463
|
+
__param(0, (0, runtime_1.Queries)()),
|
1464
|
+
__param(1, (0, runtime_1.Inject)())
|
1463
1465
|
], LemmyHttp.prototype, "getPersonDetails", null);
|
1464
1466
|
__decorate([
|
1465
|
-
(0,
|
1466
|
-
(0,
|
1467
|
-
(0,
|
1468
|
-
(0,
|
1469
|
-
__param(0, (0,
|
1470
|
-
__param(1, (0,
|
1467
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1468
|
+
(0, runtime_1.Security)({}),
|
1469
|
+
(0, runtime_1.Get)("/person/content"),
|
1470
|
+
(0, runtime_1.Tags)("Person"),
|
1471
|
+
__param(0, (0, runtime_1.Queries)()),
|
1472
|
+
__param(1, (0, runtime_1.Inject)())
|
1471
1473
|
], LemmyHttp.prototype, "listPersonContent", null);
|
1472
1474
|
__decorate([
|
1473
|
-
(0,
|
1474
|
-
(0,
|
1475
|
-
(0,
|
1476
|
-
__param(0, (0,
|
1477
|
-
__param(1, (0,
|
1475
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1476
|
+
(0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
|
1477
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
1478
|
+
__param(0, (0, runtime_1.Body)()),
|
1479
|
+
__param(1, (0, runtime_1.Inject)())
|
1478
1480
|
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
1479
1481
|
__decorate([
|
1480
|
-
(0,
|
1481
|
-
(0,
|
1482
|
-
(0,
|
1483
|
-
__param(0, (0,
|
1484
|
-
__param(1, (0,
|
1482
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1483
|
+
(0, runtime_1.Post)("/account/mention/post/mark_as_read"),
|
1484
|
+
(0, runtime_1.Tags)("Account", "Post"),
|
1485
|
+
__param(0, (0, runtime_1.Body)()),
|
1486
|
+
__param(1, (0, runtime_1.Inject)())
|
1485
1487
|
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1486
1488
|
__decorate([
|
1487
|
-
(0,
|
1488
|
-
(0,
|
1489
|
-
(0,
|
1490
|
-
__param(0, (0,
|
1491
|
-
__param(1, (0,
|
1489
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1490
|
+
(0, runtime_1.Post)("/admin/ban"),
|
1491
|
+
(0, runtime_1.Tags)("Admin"),
|
1492
|
+
__param(0, (0, runtime_1.Body)()),
|
1493
|
+
__param(1, (0, runtime_1.Inject)())
|
1492
1494
|
], LemmyHttp.prototype, "banPerson", null);
|
1493
1495
|
__decorate([
|
1494
|
-
(0,
|
1495
|
-
(0,
|
1496
|
-
(0,
|
1497
|
-
__param(0, (0,
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
(0,
|
1502
|
-
(0,
|
1503
|
-
|
1504
|
-
__param(
|
1496
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1497
|
+
(0, runtime_1.Get)("/admin/banned"),
|
1498
|
+
(0, runtime_1.Tags)("Admin", "Miscellaneous"),
|
1499
|
+
__param(0, (0, runtime_1.Queries)()),
|
1500
|
+
__param(1, (0, runtime_1.Inject)())
|
1501
|
+
], LemmyHttp.prototype, "listBannedPersons", null);
|
1502
|
+
__decorate([
|
1503
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1504
|
+
(0, runtime_1.Post)("/account/block/person"),
|
1505
|
+
(0, runtime_1.Tags)("Account"),
|
1506
|
+
__param(0, (0, runtime_1.Body)()),
|
1507
|
+
__param(1, (0, runtime_1.Inject)())
|
1505
1508
|
], LemmyHttp.prototype, "blockPerson", null);
|
1506
1509
|
__decorate([
|
1507
|
-
(0,
|
1508
|
-
(0,
|
1509
|
-
__param(0, (0,
|
1510
|
+
(0, runtime_1.Get)("/account/auth/get_captcha"),
|
1511
|
+
(0, runtime_1.Tags)("Account"),
|
1512
|
+
__param(0, (0, runtime_1.Inject)())
|
1510
1513
|
], LemmyHttp.prototype, "getCaptcha", null);
|
1511
1514
|
__decorate([
|
1512
|
-
(0,
|
1513
|
-
(0,
|
1514
|
-
(0,
|
1515
|
-
__param(0, (0,
|
1516
|
-
__param(1, (0,
|
1515
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1516
|
+
(0, runtime_1.Post)("/account/delete"),
|
1517
|
+
(0, runtime_1.Tags)("Account"),
|
1518
|
+
__param(0, (0, runtime_1.Body)()),
|
1519
|
+
__param(1, (0, runtime_1.Inject)())
|
1517
1520
|
], LemmyHttp.prototype, "deleteAccount", null);
|
1518
1521
|
__decorate([
|
1519
|
-
(0,
|
1520
|
-
(0,
|
1521
|
-
(0,
|
1522
|
-
__param(0, (0,
|
1523
|
-
__param(1, (0,
|
1522
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1523
|
+
(0, runtime_1.Post)("/account/auth/password_reset"),
|
1524
|
+
(0, runtime_1.Tags)("Account"),
|
1525
|
+
__param(0, (0, runtime_1.Body)()),
|
1526
|
+
__param(1, (0, runtime_1.Inject)())
|
1524
1527
|
], LemmyHttp.prototype, "passwordReset", null);
|
1525
1528
|
__decorate([
|
1526
|
-
(0,
|
1527
|
-
(0,
|
1528
|
-
(0,
|
1529
|
-
__param(0, (0,
|
1530
|
-
__param(1, (0,
|
1529
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1530
|
+
(0, runtime_1.Post)("/account/auth/password_change"),
|
1531
|
+
(0, runtime_1.Tags)("Account"),
|
1532
|
+
__param(0, (0, runtime_1.Body)()),
|
1533
|
+
__param(1, (0, runtime_1.Inject)())
|
1531
1534
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
1532
1535
|
__decorate([
|
1533
|
-
(0,
|
1534
|
-
(0,
|
1535
|
-
(0,
|
1536
|
-
__param(0, (0,
|
1536
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1537
|
+
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
1538
|
+
(0, runtime_1.Tags)("Account"),
|
1539
|
+
__param(0, (0, runtime_1.Inject)())
|
1537
1540
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1538
1541
|
__decorate([
|
1539
|
-
(0,
|
1540
|
-
(0,
|
1541
|
-
(0,
|
1542
|
-
__param(0, (0,
|
1543
|
-
__param(1, (0,
|
1542
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1543
|
+
(0, runtime_1.Put)("/account/settings/save"),
|
1544
|
+
(0, runtime_1.Tags)("Account"),
|
1545
|
+
__param(0, (0, runtime_1.Body)()),
|
1546
|
+
__param(1, (0, runtime_1.Inject)())
|
1544
1547
|
], LemmyHttp.prototype, "saveUserSettings", null);
|
1545
1548
|
__decorate([
|
1546
|
-
(0,
|
1547
|
-
(0,
|
1548
|
-
(0,
|
1549
|
-
__param(0, (0,
|
1550
|
-
__param(1, (0,
|
1549
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1550
|
+
(0, runtime_1.Put)("/account/auth/change_password"),
|
1551
|
+
(0, runtime_1.Tags)("Account"),
|
1552
|
+
__param(0, (0, runtime_1.Body)()),
|
1553
|
+
__param(1, (0, runtime_1.Inject)())
|
1551
1554
|
], LemmyHttp.prototype, "changePassword", null);
|
1552
1555
|
__decorate([
|
1553
|
-
(0,
|
1554
|
-
(0,
|
1555
|
-
(0,
|
1556
|
-
__param(0, (0,
|
1557
|
-
__param(1, (0,
|
1556
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1557
|
+
(0, runtime_1.Get)("/account/report_count"),
|
1558
|
+
(0, runtime_1.Tags)("Account"),
|
1559
|
+
__param(0, (0, runtime_1.Queries)()),
|
1560
|
+
__param(1, (0, runtime_1.Inject)())
|
1558
1561
|
], LemmyHttp.prototype, "getReportCount", null);
|
1559
1562
|
__decorate([
|
1560
|
-
(0,
|
1561
|
-
(0,
|
1562
|
-
(0,
|
1563
|
-
__param(0, (0,
|
1563
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1564
|
+
(0, runtime_1.Get)("/account/unread_count"),
|
1565
|
+
(0, runtime_1.Tags)("Account"),
|
1566
|
+
__param(0, (0, runtime_1.Inject)())
|
1564
1567
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
1565
1568
|
__decorate([
|
1566
|
-
(0,
|
1567
|
-
(0,
|
1568
|
-
(0,
|
1569
|
-
__param(0, (0,
|
1570
|
-
__param(1, (0,
|
1569
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1570
|
+
(0, runtime_1.Get)("/account/inbox"),
|
1571
|
+
(0, runtime_1.Tags)("Account"),
|
1572
|
+
__param(0, (0, runtime_1.Queries)()),
|
1573
|
+
__param(1, (0, runtime_1.Inject)())
|
1571
1574
|
], LemmyHttp.prototype, "listInbox", null);
|
1572
1575
|
__decorate([
|
1573
|
-
(0,
|
1574
|
-
(0,
|
1575
|
-
__param(0, (0,
|
1576
|
-
__param(1, (0,
|
1576
|
+
(0, runtime_1.Post)("/account/auth/verify_email"),
|
1577
|
+
(0, runtime_1.Tags)("Account"),
|
1578
|
+
__param(0, (0, runtime_1.Body)()),
|
1579
|
+
__param(1, (0, runtime_1.Inject)())
|
1577
1580
|
], LemmyHttp.prototype, "verifyEmail", null);
|
1578
1581
|
__decorate([
|
1579
|
-
(0,
|
1580
|
-
(0,
|
1581
|
-
(0,
|
1582
|
-
__param(
|
1583
|
-
|
1582
|
+
(0, runtime_1.Post)("/account/auth/resend_verification_email"),
|
1583
|
+
(0, runtime_1.Tags)("Account"),
|
1584
|
+
__param(0, (0, runtime_1.Body)()),
|
1585
|
+
__param(1, (0, runtime_1.Inject)())
|
1586
|
+
], LemmyHttp.prototype, "resendVerificationEmail", null);
|
1587
|
+
__decorate([
|
1588
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1589
|
+
(0, runtime_1.Get)("/account/saved"),
|
1590
|
+
(0, runtime_1.Tags)("Account"),
|
1591
|
+
__param(0, (0, runtime_1.Queries)()),
|
1592
|
+
__param(1, (0, runtime_1.Inject)())
|
1584
1593
|
], LemmyHttp.prototype, "listPersonSaved", null);
|
1585
1594
|
__decorate([
|
1586
|
-
(0,
|
1587
|
-
(0,
|
1588
|
-
(0,
|
1589
|
-
__param(0, (0,
|
1590
|
-
__param(1, (0,
|
1595
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1596
|
+
(0, runtime_1.Post)("/admin/add"),
|
1597
|
+
(0, runtime_1.Tags)("Admin"),
|
1598
|
+
__param(0, (0, runtime_1.Body)()),
|
1599
|
+
__param(1, (0, runtime_1.Inject)())
|
1591
1600
|
], LemmyHttp.prototype, "addAdmin", null);
|
1592
1601
|
__decorate([
|
1593
|
-
(0,
|
1594
|
-
(0,
|
1595
|
-
(0,
|
1596
|
-
__param(0, (0,
|
1602
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1603
|
+
(0, runtime_1.Get)("/admin/registration_application/count"),
|
1604
|
+
(0, runtime_1.Tags)("Admin"),
|
1605
|
+
__param(0, (0, runtime_1.Inject)())
|
1597
1606
|
], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
|
1598
1607
|
__decorate([
|
1599
|
-
(0,
|
1600
|
-
(0,
|
1601
|
-
(0,
|
1602
|
-
__param(0, (0,
|
1603
|
-
__param(1, (0,
|
1608
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1609
|
+
(0, runtime_1.Get)("/admin/registration_application/list"),
|
1610
|
+
(0, runtime_1.Tags)("Admin"),
|
1611
|
+
__param(0, (0, runtime_1.Queries)()),
|
1612
|
+
__param(1, (0, runtime_1.Inject)())
|
1604
1613
|
], LemmyHttp.prototype, "listRegistrationApplications", null);
|
1605
1614
|
__decorate([
|
1606
|
-
(0,
|
1607
|
-
(0,
|
1608
|
-
(0,
|
1609
|
-
__param(0, (0,
|
1610
|
-
__param(1, (0,
|
1615
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1616
|
+
(0, runtime_1.Put)("/admin/registration_application/approve"),
|
1617
|
+
(0, runtime_1.Tags)("Admin"),
|
1618
|
+
__param(0, (0, runtime_1.Body)()),
|
1619
|
+
__param(1, (0, runtime_1.Inject)())
|
1611
1620
|
], LemmyHttp.prototype, "approveRegistrationApplication", null);
|
1612
1621
|
__decorate([
|
1613
|
-
(0,
|
1614
|
-
(0,
|
1615
|
-
(0,
|
1616
|
-
__param(0, (0,
|
1617
|
-
__param(1, (0,
|
1622
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1623
|
+
(0, runtime_1.Get)("/admin/registration_application"),
|
1624
|
+
(0, runtime_1.Tags)("Admin"),
|
1625
|
+
__param(0, (0, runtime_1.Queries)()),
|
1626
|
+
__param(1, (0, runtime_1.Inject)())
|
1618
1627
|
], LemmyHttp.prototype, "getRegistrationApplication", null);
|
1619
1628
|
__decorate([
|
1620
|
-
(0,
|
1621
|
-
(0,
|
1622
|
-
(0,
|
1623
|
-
__param(0, (0,
|
1624
|
-
__param(1, (0,
|
1629
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1630
|
+
(0, runtime_1.Post)("/admin/purge/person"),
|
1631
|
+
(0, runtime_1.Tags)("Admin"),
|
1632
|
+
__param(0, (0, runtime_1.Body)()),
|
1633
|
+
__param(1, (0, runtime_1.Inject)())
|
1625
1634
|
], LemmyHttp.prototype, "purgePerson", null);
|
1626
1635
|
__decorate([
|
1627
|
-
(0,
|
1628
|
-
(0,
|
1629
|
-
(0,
|
1630
|
-
__param(0, (0,
|
1631
|
-
__param(1, (0,
|
1636
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1637
|
+
(0, runtime_1.Post)("/admin/purge/community"),
|
1638
|
+
(0, runtime_1.Tags)("Admin"),
|
1639
|
+
__param(0, (0, runtime_1.Body)()),
|
1640
|
+
__param(1, (0, runtime_1.Inject)())
|
1632
1641
|
], LemmyHttp.prototype, "purgeCommunity", null);
|
1633
1642
|
__decorate([
|
1634
|
-
(0,
|
1635
|
-
(0,
|
1636
|
-
(0,
|
1637
|
-
__param(0, (0,
|
1638
|
-
__param(1, (0,
|
1643
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1644
|
+
(0, runtime_1.Post)("/admin/purge/post"),
|
1645
|
+
(0, runtime_1.Tags)("Admin"),
|
1646
|
+
__param(0, (0, runtime_1.Body)()),
|
1647
|
+
__param(1, (0, runtime_1.Inject)())
|
1639
1648
|
], LemmyHttp.prototype, "purgePost", null);
|
1640
1649
|
__decorate([
|
1641
|
-
(0,
|
1642
|
-
(0,
|
1643
|
-
(0,
|
1644
|
-
__param(0, (0,
|
1645
|
-
__param(1, (0,
|
1650
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1651
|
+
(0, runtime_1.Post)("/admin/purge/comment"),
|
1652
|
+
(0, runtime_1.Tags)("Admin"),
|
1653
|
+
__param(0, (0, runtime_1.Body)()),
|
1654
|
+
__param(1, (0, runtime_1.Inject)())
|
1646
1655
|
], LemmyHttp.prototype, "purgeComment", null);
|
1647
1656
|
__decorate([
|
1648
|
-
(0,
|
1649
|
-
(0,
|
1650
|
-
(0,
|
1651
|
-
__param(0, (0,
|
1652
|
-
__param(1, (0,
|
1657
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1658
|
+
(0, runtime_1.Post)("/custom_emoji"),
|
1659
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1660
|
+
__param(0, (0, runtime_1.Body)()),
|
1661
|
+
__param(1, (0, runtime_1.Inject)())
|
1653
1662
|
], LemmyHttp.prototype, "createCustomEmoji", null);
|
1654
1663
|
__decorate([
|
1655
|
-
(0,
|
1656
|
-
(0,
|
1657
|
-
(0,
|
1658
|
-
__param(0, (0,
|
1659
|
-
__param(1, (0,
|
1664
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1665
|
+
(0, runtime_1.Put)("/custom_emoji"),
|
1666
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1667
|
+
__param(0, (0, runtime_1.Body)()),
|
1668
|
+
__param(1, (0, runtime_1.Inject)())
|
1660
1669
|
], LemmyHttp.prototype, "editCustomEmoji", null);
|
1661
1670
|
__decorate([
|
1662
|
-
(0,
|
1663
|
-
(0,
|
1664
|
-
(0,
|
1665
|
-
__param(0, (0,
|
1666
|
-
__param(1, (0,
|
1671
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1672
|
+
(0, runtime_1.Post)("/custom_emoji/delete"),
|
1673
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1674
|
+
__param(0, (0, runtime_1.Body)()),
|
1675
|
+
__param(1, (0, runtime_1.Inject)())
|
1667
1676
|
], LemmyHttp.prototype, "deleteCustomEmoji", null);
|
1668
1677
|
__decorate([
|
1669
|
-
(0,
|
1670
|
-
(0,
|
1671
|
-
(0,
|
1672
|
-
(0,
|
1673
|
-
__param(0, (0,
|
1674
|
-
__param(1, (0,
|
1678
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1679
|
+
(0, runtime_1.Security)({}),
|
1680
|
+
(0, runtime_1.Get)("/custom_emoji/list"),
|
1681
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1682
|
+
__param(0, (0, runtime_1.Queries)()),
|
1683
|
+
__param(1, (0, runtime_1.Inject)())
|
1675
1684
|
], LemmyHttp.prototype, "listCustomEmojis", null);
|
1676
1685
|
__decorate([
|
1677
|
-
(0,
|
1678
|
-
(0,
|
1679
|
-
(0,
|
1680
|
-
__param(0, (0,
|
1681
|
-
__param(1, (0,
|
1686
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1687
|
+
(0, runtime_1.Post)("/admin/tagline"),
|
1688
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1689
|
+
__param(0, (0, runtime_1.Body)()),
|
1690
|
+
__param(1, (0, runtime_1.Inject)())
|
1682
1691
|
], LemmyHttp.prototype, "createTagline", null);
|
1683
1692
|
__decorate([
|
1684
|
-
(0,
|
1685
|
-
(0,
|
1686
|
-
(0,
|
1687
|
-
__param(0, (0,
|
1688
|
-
__param(1, (0,
|
1693
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1694
|
+
(0, runtime_1.Put)("/admin/tagline"),
|
1695
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1696
|
+
__param(0, (0, runtime_1.Body)()),
|
1697
|
+
__param(1, (0, runtime_1.Inject)())
|
1689
1698
|
], LemmyHttp.prototype, "editTagline", null);
|
1690
1699
|
__decorate([
|
1691
|
-
(0,
|
1692
|
-
(0,
|
1693
|
-
(0,
|
1694
|
-
__param(0, (0,
|
1695
|
-
__param(1, (0,
|
1700
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1701
|
+
(0, runtime_1.Post)("/admin/tagline/delete"),
|
1702
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1703
|
+
__param(0, (0, runtime_1.Body)()),
|
1704
|
+
__param(1, (0, runtime_1.Inject)())
|
1696
1705
|
], LemmyHttp.prototype, "deleteTagline", null);
|
1697
1706
|
__decorate([
|
1698
|
-
(0,
|
1699
|
-
(0,
|
1700
|
-
(0,
|
1701
|
-
(0,
|
1702
|
-
__param(0, (0,
|
1703
|
-
__param(1, (0,
|
1707
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1708
|
+
(0, runtime_1.Security)({}),
|
1709
|
+
(0, runtime_1.Get)("/admin/tagline/list"),
|
1710
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1711
|
+
__param(0, (0, runtime_1.Queries)()),
|
1712
|
+
__param(1, (0, runtime_1.Inject)())
|
1704
1713
|
], LemmyHttp.prototype, "listTaglines", null);
|
1705
1714
|
__decorate([
|
1706
|
-
(0,
|
1707
|
-
(0,
|
1708
|
-
(0,
|
1709
|
-
__param(0, (0,
|
1710
|
-
__param(1, (0,
|
1715
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1716
|
+
(0, runtime_1.Post)("/community/tag"),
|
1717
|
+
(0, runtime_1.Tags)("Community"),
|
1718
|
+
__param(0, (0, runtime_1.Body)()),
|
1719
|
+
__param(1, (0, runtime_1.Inject)())
|
1711
1720
|
], LemmyHttp.prototype, "createCommunityTag", null);
|
1712
1721
|
__decorate([
|
1713
|
-
(0,
|
1714
|
-
(0,
|
1715
|
-
(0,
|
1716
|
-
__param(0, (0,
|
1717
|
-
__param(1, (0,
|
1722
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1723
|
+
(0, runtime_1.Put)("/community/tag"),
|
1724
|
+
(0, runtime_1.Tags)("Community"),
|
1725
|
+
__param(0, (0, runtime_1.Body)()),
|
1726
|
+
__param(1, (0, runtime_1.Inject)())
|
1718
1727
|
], LemmyHttp.prototype, "updateCommunityTag", null);
|
1719
1728
|
__decorate([
|
1720
|
-
(0,
|
1721
|
-
(0,
|
1722
|
-
(0,
|
1723
|
-
(0,
|
1724
|
-
__param(
|
1725
|
-
__param(1, (0, tsoa_1.Inject)())
|
1726
|
-
], LemmyHttp.prototype, "listCommunityTags", null);
|
1727
|
-
__decorate([
|
1728
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
1729
|
-
(0, tsoa_1.Post)("/community/post_tag"),
|
1730
|
-
(0, tsoa_1.Tags)("Community"),
|
1731
|
-
__param(0, (0, tsoa_1.Body)()),
|
1732
|
-
__param(1, (0, tsoa_1.Inject)())
|
1729
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1730
|
+
(0, runtime_1.Delete)("/community/tag"),
|
1731
|
+
(0, runtime_1.Tags)("Community"),
|
1732
|
+
__param(0, (0, runtime_1.Body)()),
|
1733
|
+
__param(1, (0, runtime_1.Inject)())
|
1733
1734
|
], LemmyHttp.prototype, "deleteCommunityTag", null);
|
1734
1735
|
__decorate([
|
1735
|
-
(0,
|
1736
|
-
(0,
|
1737
|
-
(0,
|
1738
|
-
__param(0, (0,
|
1739
|
-
__param(1, (0,
|
1740
|
-
], LemmyHttp.prototype, "updatePostTags", null);
|
1741
|
-
__decorate([
|
1742
|
-
(0, tsoa_1.Security)("bearerAuth"),
|
1743
|
-
(0, tsoa_1.Post)("/oauth_provider"),
|
1744
|
-
(0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
|
1745
|
-
__param(0, (0, tsoa_1.Body)()),
|
1746
|
-
__param(1, (0, tsoa_1.Inject)())
|
1736
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1737
|
+
(0, runtime_1.Post)("/oauth_provider"),
|
1738
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1739
|
+
__param(0, (0, runtime_1.Body)()),
|
1740
|
+
__param(1, (0, runtime_1.Inject)())
|
1747
1741
|
], LemmyHttp.prototype, "createOAuthProvider", null);
|
1748
1742
|
__decorate([
|
1749
|
-
(0,
|
1750
|
-
(0,
|
1751
|
-
(0,
|
1752
|
-
__param(0, (0,
|
1753
|
-
__param(1, (0,
|
1743
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1744
|
+
(0, runtime_1.Put)("/oauth_provider"),
|
1745
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1746
|
+
__param(0, (0, runtime_1.Body)()),
|
1747
|
+
__param(1, (0, runtime_1.Inject)())
|
1754
1748
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
1755
1749
|
__decorate([
|
1756
|
-
(0,
|
1757
|
-
(0,
|
1758
|
-
(0,
|
1759
|
-
__param(0, (0,
|
1760
|
-
__param(1, (0,
|
1750
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1751
|
+
(0, runtime_1.Post)("/oauth_provider/delete"),
|
1752
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1753
|
+
__param(0, (0, runtime_1.Body)()),
|
1754
|
+
__param(1, (0, runtime_1.Inject)())
|
1761
1755
|
], LemmyHttp.prototype, "deleteOAuthProvider", null);
|
1762
1756
|
__decorate([
|
1763
|
-
(0,
|
1764
|
-
(0,
|
1765
|
-
(0,
|
1766
|
-
__param(0, (0,
|
1767
|
-
__param(1, (0,
|
1757
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1758
|
+
(0, runtime_1.Post)("/oauth/authenticate"),
|
1759
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1760
|
+
__param(0, (0, runtime_1.Body)()),
|
1761
|
+
__param(1, (0, runtime_1.Inject)())
|
1768
1762
|
], LemmyHttp.prototype, "authenticateWithOAuth", null);
|
1769
1763
|
__decorate([
|
1770
|
-
(0,
|
1771
|
-
(0,
|
1772
|
-
__param(0, (0,
|
1764
|
+
(0, runtime_1.Get)("/federated_instances"),
|
1765
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1766
|
+
__param(0, (0, runtime_1.Inject)())
|
1773
1767
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
1774
1768
|
__decorate([
|
1775
|
-
(0,
|
1776
|
-
(0,
|
1777
|
-
(0,
|
1778
|
-
__param(0, (0,
|
1779
|
-
__param(1, (0,
|
1769
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1770
|
+
(0, runtime_1.Get)("/report/list"),
|
1771
|
+
(0, runtime_1.Tags)("Admin"),
|
1772
|
+
__param(0, (0, runtime_1.Queries)()),
|
1773
|
+
__param(1, (0, runtime_1.Inject)())
|
1780
1774
|
], LemmyHttp.prototype, "listReports", null);
|
1781
1775
|
__decorate([
|
1782
|
-
(0,
|
1783
|
-
(0,
|
1784
|
-
(0,
|
1785
|
-
__param(0, (0,
|
1786
|
-
__param(1, (0,
|
1776
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1777
|
+
(0, runtime_1.Post)("/account/block/instance"),
|
1778
|
+
(0, runtime_1.Tags)("Account"),
|
1779
|
+
__param(0, (0, runtime_1.Body)()),
|
1780
|
+
__param(1, (0, runtime_1.Inject)())
|
1787
1781
|
], LemmyHttp.prototype, "userBlockInstance", null);
|
1788
1782
|
__decorate([
|
1789
|
-
(0,
|
1790
|
-
(0,
|
1791
|
-
(0,
|
1792
|
-
__param(0, (0,
|
1793
|
-
__param(1, (0,
|
1783
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1784
|
+
(0, runtime_1.Post)("/admin/instance/block"),
|
1785
|
+
(0, runtime_1.Tags)("Admin"),
|
1786
|
+
__param(0, (0, runtime_1.Body)()),
|
1787
|
+
__param(1, (0, runtime_1.Inject)())
|
1794
1788
|
], LemmyHttp.prototype, "adminBlockInstance", null);
|
1795
1789
|
__decorate([
|
1796
|
-
(0,
|
1797
|
-
(0,
|
1798
|
-
(0,
|
1799
|
-
__param(0, (0,
|
1800
|
-
__param(1, (0,
|
1790
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1791
|
+
(0, runtime_1.Post)("/admin/instance/allow"),
|
1792
|
+
(0, runtime_1.Tags)("Admin"),
|
1793
|
+
__param(0, (0, runtime_1.Body)()),
|
1794
|
+
__param(1, (0, runtime_1.Inject)())
|
1801
1795
|
], LemmyHttp.prototype, "adminAllowInstance", null);
|
1802
1796
|
__decorate([
|
1803
|
-
(0,
|
1804
|
-
(0,
|
1805
|
-
(0,
|
1806
|
-
__param(0, (0,
|
1807
|
-
__param(1, (0,
|
1797
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1798
|
+
(0, runtime_1.Post)("/account/avatar"),
|
1799
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1800
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1801
|
+
__param(1, (0, runtime_1.Inject)())
|
1808
1802
|
], LemmyHttp.prototype, "uploadUserAvatar", null);
|
1809
1803
|
__decorate([
|
1810
|
-
(0,
|
1811
|
-
(0,
|
1812
|
-
(0,
|
1813
|
-
__param(0, (0,
|
1804
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1805
|
+
(0, runtime_1.Delete)("/account/avatar"),
|
1806
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1807
|
+
__param(0, (0, runtime_1.Inject)())
|
1814
1808
|
], LemmyHttp.prototype, "deleteUserAvatar", null);
|
1815
1809
|
__decorate([
|
1816
|
-
(0,
|
1817
|
-
(0,
|
1818
|
-
(0,
|
1819
|
-
__param(0, (0,
|
1820
|
-
__param(1, (0,
|
1810
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1811
|
+
(0, runtime_1.Post)("/account/banner"),
|
1812
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1813
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1814
|
+
__param(1, (0, runtime_1.Inject)())
|
1821
1815
|
], LemmyHttp.prototype, "uploadUserBanner", null);
|
1822
1816
|
__decorate([
|
1823
|
-
(0,
|
1824
|
-
(0,
|
1825
|
-
(0,
|
1826
|
-
__param(0, (0,
|
1817
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1818
|
+
(0, runtime_1.Delete)("/account/banner"),
|
1819
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1820
|
+
__param(0, (0, runtime_1.Inject)())
|
1827
1821
|
], LemmyHttp.prototype, "deleteUserBanner", null);
|
1828
1822
|
__decorate([
|
1829
|
-
(0,
|
1830
|
-
(0,
|
1831
|
-
(0,
|
1832
|
-
__param(0, (0,
|
1833
|
-
__param(1, (0,
|
1823
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1824
|
+
(0, runtime_1.Post)("/community/icon"),
|
1825
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1826
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1827
|
+
__param(1, (0, runtime_1.Inject)())
|
1834
1828
|
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
1835
1829
|
__decorate([
|
1836
|
-
(0,
|
1837
|
-
(0,
|
1838
|
-
(0,
|
1839
|
-
__param(0, (0,
|
1830
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1831
|
+
(0, runtime_1.Delete)("/community/icon"),
|
1832
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1833
|
+
__param(0, (0, runtime_1.Inject)())
|
1840
1834
|
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
1841
1835
|
__decorate([
|
1842
|
-
(0,
|
1843
|
-
(0,
|
1844
|
-
(0,
|
1845
|
-
__param(0, (0,
|
1846
|
-
__param(1, (0,
|
1836
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1837
|
+
(0, runtime_1.Post)("/community/banner"),
|
1838
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1839
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1840
|
+
__param(1, (0, runtime_1.Inject)())
|
1847
1841
|
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
1848
1842
|
__decorate([
|
1849
|
-
(0,
|
1850
|
-
(0,
|
1851
|
-
(0,
|
1852
|
-
__param(0, (0,
|
1843
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1844
|
+
(0, runtime_1.Delete)("/community/banner"),
|
1845
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1846
|
+
__param(0, (0, runtime_1.Inject)())
|
1853
1847
|
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
1854
1848
|
__decorate([
|
1855
|
-
(0,
|
1856
|
-
(0,
|
1857
|
-
(0,
|
1858
|
-
__param(0, (0,
|
1859
|
-
__param(1, (0,
|
1849
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1850
|
+
(0, runtime_1.Post)("/site/icon"),
|
1851
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1852
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1853
|
+
__param(1, (0, runtime_1.Inject)())
|
1860
1854
|
], LemmyHttp.prototype, "uploadSiteIcon", null);
|
1861
1855
|
__decorate([
|
1862
|
-
(0,
|
1863
|
-
(0,
|
1864
|
-
(0,
|
1865
|
-
__param(0, (0,
|
1856
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1857
|
+
(0, runtime_1.Delete)("/site/icon"),
|
1858
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1859
|
+
__param(0, (0, runtime_1.Inject)())
|
1866
1860
|
], LemmyHttp.prototype, "deleteSiteIcon", null);
|
1867
1861
|
__decorate([
|
1868
|
-
(0,
|
1869
|
-
(0,
|
1870
|
-
(0,
|
1871
|
-
__param(0, (0,
|
1872
|
-
__param(1, (0,
|
1862
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1863
|
+
(0, runtime_1.Post)("/site/banner"),
|
1864
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1865
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1866
|
+
__param(1, (0, runtime_1.Inject)())
|
1873
1867
|
], LemmyHttp.prototype, "uploadSiteBanner", null);
|
1874
1868
|
__decorate([
|
1875
|
-
(0,
|
1876
|
-
(0,
|
1877
|
-
(0,
|
1878
|
-
__param(0, (0,
|
1869
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1870
|
+
(0, runtime_1.Delete)("/site/banner"),
|
1871
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1872
|
+
__param(0, (0, runtime_1.Inject)())
|
1879
1873
|
], LemmyHttp.prototype, "deleteSiteBanner", null);
|
1880
1874
|
__decorate([
|
1881
|
-
(0,
|
1882
|
-
(0,
|
1883
|
-
(0,
|
1884
|
-
__param(0, (0,
|
1885
|
-
__param(1, (0,
|
1875
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1876
|
+
(0, runtime_1.Post)("/image"),
|
1877
|
+
(0, runtime_1.Tags)("Media"),
|
1878
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1879
|
+
__param(1, (0, runtime_1.Inject)())
|
1886
1880
|
], LemmyHttp.prototype, "uploadImage", null);
|
1887
1881
|
__decorate([
|
1888
|
-
(0,
|
1889
|
-
(0,
|
1890
|
-
(0,
|
1891
|
-
__param(0, (0,
|
1892
|
-
__param(1, (0,
|
1882
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1883
|
+
(0, runtime_1.Delete)("/image"),
|
1884
|
+
(0, runtime_1.Tags)("Media"),
|
1885
|
+
__param(0, (0, runtime_1.Queries)()),
|
1886
|
+
__param(1, (0, runtime_1.Inject)())
|
1893
1887
|
], LemmyHttp.prototype, "deleteImage", null);
|
1894
1888
|
__decorate([
|
1895
|
-
(0,
|
1896
|
-
(0,
|
1897
|
-
__param(0, (0,
|
1889
|
+
(0, runtime_1.Get)("image/health"),
|
1890
|
+
(0, runtime_1.Tags)("Media"),
|
1891
|
+
__param(0, (0, runtime_1.Inject)())
|
1898
1892
|
], LemmyHttp.prototype, "imageHealth", null);
|
1893
|
+
__decorate([
|
1894
|
+
__param(0, (0, runtime_1.Inject)())
|
1895
|
+
], LemmyHttp.prototype, "donation_dialog_shown", null);
|
1899
1896
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
1900
|
-
(0,
|
1897
|
+
(0, runtime_1.Route)("api/v4")
|
1901
1898
|
], LemmyHttp);
|
1902
1899
|
function encodeGetParams(p) {
|
1903
1900
|
return Object.entries(p)
|