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