lemmy-js-client 1.0.0-post-tags.0 → 1.0.0-remove-page-limit.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/http.d.ts +38 -34
- package/dist/http.js +845 -835
- 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
|
@@ -57,25 +57,25 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
57
57
|
/**
|
58
58
|
* @summary Gets the site, and your user data.
|
59
59
|
*/
|
60
|
-
getSite(options) {
|
60
|
+
async getSite(options) {
|
61
61
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
62
62
|
}
|
63
63
|
/**
|
64
64
|
* @summary Create your site.
|
65
65
|
*/
|
66
|
-
createSite(form, options) {
|
66
|
+
async createSite(form, options) {
|
67
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
68
68
|
}
|
69
69
|
/**
|
70
70
|
* @summary Edit your site.
|
71
71
|
*/
|
72
|
-
editSite(form, options) {
|
72
|
+
async editSite(form, options) {
|
73
73
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
74
74
|
}
|
75
75
|
/**
|
76
76
|
* @summary Leave the Site admins.
|
77
77
|
*/
|
78
|
-
leaveAdmin(options) {
|
78
|
+
async leaveAdmin(options) {
|
79
79
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
80
80
|
}
|
81
81
|
/**
|
@@ -84,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
84
84
|
* Generate a TOTP / two-factor secret.
|
85
85
|
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
86
86
|
*/
|
87
|
-
generateTotpSecret(options) {
|
87
|
+
async generateTotpSecret(options) {
|
88
88
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
89
89
|
}
|
90
90
|
/**
|
91
91
|
* @summary Get data of current user.
|
92
92
|
*/
|
93
|
-
getMyUser(options) {
|
93
|
+
async getMyUser(options) {
|
94
94
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
95
95
|
}
|
96
96
|
/**
|
@@ -99,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
99
99
|
* Export a backup of your user settings, including your saved content,
|
100
100
|
* followed communities, and blocks.
|
101
101
|
*/
|
102
|
-
exportSettings(options) {
|
102
|
+
async exportSettings(options) {
|
103
103
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
104
104
|
}
|
105
105
|
/**
|
106
106
|
* @summary Import a backup of your user settings.
|
107
107
|
*/
|
108
|
-
importSettings(form, options) {
|
108
|
+
async importSettings(form, options) {
|
109
109
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
110
110
|
}
|
111
111
|
/**
|
112
112
|
* @summary List login tokens for your user
|
113
113
|
*/
|
114
|
-
listLogins(options) {
|
114
|
+
async listLogins(options) {
|
115
115
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
|
116
116
|
}
|
117
117
|
/**
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
119
119
|
*/
|
120
|
-
validateAuth(options) {
|
120
|
+
async validateAuth(options) {
|
121
121
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
122
122
|
}
|
123
123
|
/**
|
124
|
-
* @summary List all the media for your
|
124
|
+
* @summary List all the media for your account.
|
125
125
|
*/
|
126
|
-
listMedia(form = {}, options) {
|
127
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
126
|
+
async listMedia(form = {}, options) {
|
127
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* @summary Delete media for your account.
|
131
|
+
*/
|
132
|
+
async deleteMedia(form, options) {
|
133
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* @summary Delete any media. (Admin only)
|
137
|
+
*/
|
138
|
+
async deleteMediaAdmin(form, options) {
|
139
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
128
140
|
}
|
129
141
|
/**
|
130
142
|
* @summary List all the media known to your instance.
|
131
143
|
*/
|
132
|
-
|
133
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
144
|
+
async listMediaAdmin(form = {}, options) {
|
145
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
|
134
146
|
}
|
135
147
|
/**
|
136
148
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
@@ -139,661 +151,655 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
139
151
|
*
|
140
152
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
141
153
|
*/
|
142
|
-
updateTotp(form, options) {
|
154
|
+
async updateTotp(form, options) {
|
143
155
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
144
156
|
}
|
145
157
|
/**
|
146
158
|
* @summary Get the modlog.
|
147
159
|
*/
|
148
|
-
getModlog(form = {}, options) {
|
160
|
+
async getModlog(form = {}, options) {
|
149
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
150
162
|
}
|
151
163
|
/**
|
152
164
|
* @summary Search lemmy.
|
153
165
|
*/
|
154
|
-
search(form, options) {
|
166
|
+
async search(form, options) {
|
155
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
156
168
|
}
|
157
169
|
/**
|
158
170
|
* @summary Fetch a non-local / federated object.
|
159
171
|
*/
|
160
|
-
resolveObject(form, options) {
|
172
|
+
async resolveObject(form, options) {
|
161
173
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
162
174
|
}
|
163
175
|
/**
|
164
176
|
* @summary Create a new community.
|
165
177
|
*/
|
166
|
-
createCommunity(form, options) {
|
178
|
+
async createCommunity(form, options) {
|
167
179
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
168
180
|
}
|
169
181
|
/**
|
170
182
|
* @summary Get / fetch a community.
|
171
183
|
*/
|
172
|
-
getCommunity(form = {}, options) {
|
184
|
+
async getCommunity(form = {}, options) {
|
173
185
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
174
186
|
}
|
175
187
|
/**
|
176
188
|
* @summary Edit a community.
|
177
189
|
*/
|
178
|
-
editCommunity(form, options) {
|
190
|
+
async editCommunity(form, options) {
|
179
191
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
180
192
|
}
|
181
193
|
/**
|
182
194
|
* @summary List communities, with various filters.
|
183
195
|
*/
|
184
|
-
listCommunities(form = {}, options) {
|
196
|
+
async listCommunities(form = {}, options) {
|
185
197
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
186
198
|
}
|
187
199
|
/**
|
188
200
|
* @summary Follow / subscribe to a community.
|
189
201
|
*/
|
190
|
-
followCommunity(form, options) {
|
202
|
+
async followCommunity(form, options) {
|
191
203
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
192
204
|
}
|
193
205
|
/**
|
194
206
|
* @summary Get a community's pending follows count.
|
195
207
|
*/
|
196
|
-
getCommunityPendingFollowsCount(form, options) {
|
208
|
+
async getCommunityPendingFollowsCount(form, options) {
|
197
209
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
198
210
|
}
|
199
211
|
/**
|
200
212
|
* @summary Get a community's pending followers.
|
201
213
|
*/
|
202
|
-
listCommunityPendingFollows(form, options) {
|
214
|
+
async listCommunityPendingFollows(form, options) {
|
203
215
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
204
216
|
}
|
205
217
|
/**
|
206
218
|
* @summary Approve a community pending follow request.
|
207
219
|
*/
|
208
|
-
approveCommunityPendingFollow(form, options) {
|
220
|
+
async approveCommunityPendingFollow(form, options) {
|
209
221
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
210
222
|
}
|
211
223
|
/**
|
212
224
|
* @summary Block a community.
|
213
225
|
*/
|
214
|
-
blockCommunity(form, options) {
|
226
|
+
async blockCommunity(form, options) {
|
215
227
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
216
228
|
}
|
217
229
|
/**
|
218
230
|
* @summary Delete a community.
|
219
231
|
*/
|
220
|
-
deleteCommunity(form, options) {
|
232
|
+
async deleteCommunity(form, options) {
|
221
233
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
222
234
|
}
|
223
235
|
/**
|
224
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
225
237
|
*/
|
226
|
-
hideCommunity(form, options) {
|
238
|
+
async hideCommunity(form, options) {
|
227
239
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
228
240
|
}
|
229
241
|
/**
|
230
242
|
* @summary A moderator remove for a community.
|
231
243
|
*/
|
232
|
-
removeCommunity(form, options) {
|
244
|
+
async removeCommunity(form, options) {
|
233
245
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
234
246
|
}
|
235
247
|
/**
|
236
248
|
* @summary Transfer your community to an existing moderator.
|
237
249
|
*/
|
238
|
-
transferCommunity(form, options) {
|
250
|
+
async transferCommunity(form, options) {
|
239
251
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
240
252
|
}
|
241
253
|
/**
|
242
254
|
* @summary Ban a user from a community.
|
243
255
|
*/
|
244
|
-
banFromCommunity(form, options) {
|
256
|
+
async banFromCommunity(form, options) {
|
245
257
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
246
258
|
}
|
247
259
|
/**
|
248
260
|
* @summary Add a moderator to your community.
|
249
261
|
*/
|
250
|
-
addModToCommunity(form, options) {
|
262
|
+
async addModToCommunity(form, options) {
|
251
263
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
252
264
|
}
|
253
265
|
/**
|
254
266
|
* @summary Get a random community.
|
255
267
|
*/
|
256
|
-
getRandomCommunity(form, options) {
|
268
|
+
async getRandomCommunity(form, options) {
|
257
269
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
258
270
|
}
|
259
271
|
/**
|
260
272
|
* @summary Create a post.
|
261
273
|
*/
|
262
|
-
createPost(form, options) {
|
274
|
+
async createPost(form, options) {
|
263
275
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
264
276
|
}
|
265
277
|
/**
|
266
278
|
* @summary Get / fetch a post.
|
267
279
|
*/
|
268
|
-
getPost(form = {}, options) {
|
280
|
+
async getPost(form = {}, options) {
|
269
281
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
270
282
|
}
|
271
283
|
/**
|
272
284
|
* @summary Edit a post.
|
273
285
|
*/
|
274
|
-
editPost(form, options) {
|
286
|
+
async editPost(form, options) {
|
275
287
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
276
288
|
}
|
277
289
|
/**
|
278
290
|
* @summary Delete a post.
|
279
291
|
*/
|
280
|
-
deletePost(form, options) {
|
292
|
+
async deletePost(form, options) {
|
281
293
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
282
294
|
}
|
283
295
|
/**
|
284
296
|
* @summary A moderator remove for a post.
|
285
297
|
*/
|
286
|
-
removePost(form, options) {
|
298
|
+
async removePost(form, options) {
|
287
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
288
300
|
}
|
289
301
|
/**
|
290
302
|
* @summary Mark a post as read.
|
291
303
|
*/
|
292
|
-
markPostAsRead(form, options) {
|
304
|
+
async markPostAsRead(form, options) {
|
293
305
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
294
306
|
}
|
295
307
|
/**
|
296
308
|
* @summary Mark multiple posts as read.
|
297
309
|
*/
|
298
|
-
markManyPostAsRead(form, options) {
|
310
|
+
async markManyPostAsRead(form, options) {
|
299
311
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
300
312
|
}
|
301
313
|
/**
|
302
314
|
* @summary Hide a post from list views.
|
303
315
|
*/
|
304
|
-
hidePost(form, options) {
|
316
|
+
async hidePost(form, options) {
|
305
317
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
306
318
|
}
|
307
319
|
/**
|
308
320
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
309
321
|
*/
|
310
|
-
lockPost(form, options) {
|
322
|
+
async lockPost(form, options) {
|
311
323
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
312
324
|
}
|
313
325
|
/**
|
314
326
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
315
327
|
*/
|
316
|
-
featurePost(form, options) {
|
328
|
+
async featurePost(form, options) {
|
317
329
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
318
330
|
}
|
319
331
|
/**
|
320
332
|
* @summary Get / fetch posts, with various filters.
|
321
333
|
*/
|
322
|
-
getPosts(form = {}, options) {
|
334
|
+
async getPosts(form = {}, options) {
|
323
335
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
324
336
|
}
|
325
337
|
/**
|
326
338
|
* @summary Like / vote on a post.
|
327
339
|
*/
|
328
|
-
likePost(form, options) {
|
340
|
+
async likePost(form, options) {
|
329
341
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
330
342
|
}
|
331
343
|
/**
|
332
344
|
* @summary List a post's likes. Admin-only.
|
333
345
|
*/
|
334
|
-
listPostLikes(form, options) {
|
346
|
+
async listPostLikes(form, options) {
|
335
347
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
336
348
|
}
|
337
349
|
/**
|
338
350
|
* @summary Save a post.
|
339
351
|
*/
|
340
|
-
savePost(form, options) {
|
352
|
+
async savePost(form, options) {
|
341
353
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
342
354
|
}
|
343
355
|
/**
|
344
356
|
* @summary Report a post.
|
345
357
|
*/
|
346
|
-
createPostReport(form, options) {
|
358
|
+
async createPostReport(form, options) {
|
347
359
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
348
360
|
}
|
349
361
|
/**
|
350
362
|
* @summary Resolve a post report. Only a mod can do this.
|
351
363
|
*/
|
352
|
-
resolvePostReport(form, options) {
|
364
|
+
async resolvePostReport(form, options) {
|
353
365
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
354
366
|
}
|
355
367
|
/**
|
356
368
|
* @summary Fetch metadata for any given site.
|
357
369
|
*/
|
358
|
-
getSiteMetadata(form, options) {
|
370
|
+
async getSiteMetadata(form, options) {
|
359
371
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
360
372
|
}
|
361
373
|
/**
|
362
374
|
* @summary Create a comment.
|
363
375
|
*/
|
364
|
-
createComment(form, options) {
|
376
|
+
async createComment(form, options) {
|
365
377
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
366
378
|
}
|
367
379
|
/**
|
368
380
|
* @summary Edit a comment.
|
369
381
|
*/
|
370
|
-
editComment(form, options) {
|
382
|
+
async editComment(form, options) {
|
371
383
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
372
384
|
}
|
373
385
|
/**
|
374
386
|
* @summary Delete a comment.
|
375
387
|
*/
|
376
|
-
deleteComment(form, options) {
|
388
|
+
async deleteComment(form, options) {
|
377
389
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
378
390
|
}
|
379
391
|
/**
|
380
392
|
* @summary A moderator remove for a comment.
|
381
393
|
*/
|
382
|
-
removeComment(form, options) {
|
394
|
+
async removeComment(form, options) {
|
383
395
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
384
396
|
}
|
385
397
|
/**
|
386
398
|
* @summary Mark a comment as read.
|
387
399
|
*/
|
388
|
-
markCommentReplyAsRead(form, options) {
|
400
|
+
async markCommentReplyAsRead(form, options) {
|
389
401
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
390
402
|
}
|
391
403
|
/**
|
392
404
|
* @summary Like / vote on a comment.
|
393
405
|
*/
|
394
|
-
likeComment(form, options) {
|
406
|
+
async likeComment(form, options) {
|
395
407
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
396
408
|
}
|
397
409
|
/**
|
398
410
|
* @summary List a comment's likes. Admin-only.
|
399
411
|
*/
|
400
|
-
listCommentLikes(form, options) {
|
412
|
+
async listCommentLikes(form, options) {
|
401
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
402
414
|
}
|
403
415
|
/**
|
404
416
|
* @summary Save a comment.
|
405
417
|
*/
|
406
|
-
saveComment(form, options) {
|
418
|
+
async saveComment(form, options) {
|
407
419
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
408
420
|
}
|
409
421
|
/**
|
410
422
|
* @summary Distinguishes a comment (speak as moderator)
|
411
423
|
*/
|
412
|
-
distinguishComment(form, options) {
|
424
|
+
async distinguishComment(form, options) {
|
413
425
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
414
426
|
}
|
415
427
|
/**
|
416
428
|
* @summary Get / fetch comments.
|
417
429
|
*/
|
418
|
-
getComments(form = {}, options) {
|
430
|
+
async getComments(form = {}, options) {
|
419
431
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
420
432
|
}
|
421
433
|
/**
|
422
434
|
* @summary Get / fetch comments, but without the post or community.
|
423
435
|
*/
|
424
|
-
getCommentsSlim(form = {}, options) {
|
436
|
+
async getCommentsSlim(form = {}, options) {
|
425
437
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
426
438
|
}
|
427
439
|
/**
|
428
440
|
* @summary Get / fetch comment.
|
429
441
|
*/
|
430
|
-
getComment(form, options) {
|
442
|
+
async getComment(form, options) {
|
431
443
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
432
444
|
}
|
433
445
|
/**
|
434
446
|
* @summary Report a comment.
|
435
447
|
*/
|
436
|
-
createCommentReport(form, options) {
|
448
|
+
async createCommentReport(form, options) {
|
437
449
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
438
450
|
}
|
439
451
|
/**
|
440
452
|
* @summary Resolve a comment report. Only a mod can do this.
|
441
453
|
*/
|
442
|
-
resolveCommentReport(form, options) {
|
454
|
+
async resolveCommentReport(form, options) {
|
443
455
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
444
456
|
}
|
445
457
|
/**
|
446
458
|
* @summary Create a private message.
|
447
459
|
*/
|
448
|
-
createPrivateMessage(form, options) {
|
460
|
+
async createPrivateMessage(form, options) {
|
449
461
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
450
462
|
}
|
451
463
|
/**
|
452
464
|
* @summary Edit a private message.
|
453
465
|
*/
|
454
|
-
editPrivateMessage(form, options) {
|
466
|
+
async editPrivateMessage(form, options) {
|
455
467
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
456
468
|
}
|
457
469
|
/**
|
458
470
|
* @summary Delete a private message.
|
459
471
|
*/
|
460
|
-
deletePrivateMessage(form, options) {
|
472
|
+
async deletePrivateMessage(form, options) {
|
461
473
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
462
474
|
}
|
463
475
|
/**
|
464
476
|
* @summary Mark a private message as read.
|
465
477
|
*/
|
466
|
-
markPrivateMessageAsRead(form, options) {
|
478
|
+
async markPrivateMessageAsRead(form, options) {
|
467
479
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
468
480
|
}
|
469
481
|
/**
|
470
482
|
* @summary Create a report for a private message.
|
471
483
|
*/
|
472
|
-
createPrivateMessageReport(form, options) {
|
484
|
+
async createPrivateMessageReport(form, options) {
|
473
485
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
474
486
|
}
|
475
487
|
/**
|
476
488
|
* @summary Resolve a report for a private message.
|
477
489
|
*/
|
478
|
-
resolvePrivateMessageReport(form, options) {
|
490
|
+
async resolvePrivateMessageReport(form, options) {
|
479
491
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
480
492
|
}
|
481
493
|
/**
|
482
494
|
* @summary Register a new user.
|
483
495
|
*/
|
484
|
-
register(form, options) {
|
496
|
+
async register(form, options) {
|
485
497
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
486
498
|
}
|
487
499
|
/**
|
488
500
|
* @summary Log into lemmy.
|
489
501
|
*/
|
490
|
-
login(form, options) {
|
502
|
+
async login(form, options) {
|
491
503
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
492
504
|
}
|
493
505
|
/**
|
494
506
|
* @summary Invalidate the currently used auth token.
|
495
507
|
*/
|
496
|
-
logout(options) {
|
508
|
+
async logout(options) {
|
497
509
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
498
510
|
}
|
499
511
|
/**
|
500
512
|
* @summary Get the details for a person.
|
501
513
|
*/
|
502
|
-
getPersonDetails(form = {}, options) {
|
514
|
+
async getPersonDetails(form = {}, options) {
|
503
515
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
504
516
|
}
|
505
517
|
/**
|
506
518
|
* @summary List the content for a person.
|
507
519
|
*/
|
508
|
-
listPersonContent(form = {}, options) {
|
520
|
+
async listPersonContent(form = {}, options) {
|
509
521
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
510
522
|
}
|
511
523
|
/**
|
512
524
|
* @summary Mark a person mention as read.
|
513
525
|
*/
|
514
|
-
markCommentMentionAsRead(form, options) {
|
526
|
+
async markCommentMentionAsRead(form, options) {
|
515
527
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
516
528
|
}
|
517
529
|
/**
|
518
530
|
* @summary Mark a person post body mention as read.
|
519
531
|
*/
|
520
|
-
markPostMentionAsRead(form, options) {
|
532
|
+
async markPostMentionAsRead(form, options) {
|
521
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
522
534
|
}
|
523
535
|
/**
|
524
536
|
* @summary Ban a person from your site.
|
525
537
|
*/
|
526
|
-
banPerson(form, options) {
|
538
|
+
async banPerson(form, options) {
|
527
539
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
528
540
|
}
|
529
541
|
/**
|
530
542
|
* @summary Get a list of banned users.
|
531
543
|
*/
|
532
|
-
|
533
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned",
|
544
|
+
async listBannedPersons(form = {}, options) {
|
545
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", form, options);
|
534
546
|
}
|
535
547
|
/**
|
536
548
|
* @summary Block a person.
|
537
549
|
*/
|
538
|
-
blockPerson(form, options) {
|
550
|
+
async blockPerson(form, options) {
|
539
551
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
540
552
|
}
|
541
553
|
/**
|
542
554
|
* @summary Fetch a Captcha.
|
543
555
|
*/
|
544
|
-
getCaptcha(options) {
|
556
|
+
async getCaptcha(options) {
|
545
557
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
546
558
|
}
|
547
559
|
/**
|
548
560
|
* @summary Delete your account.
|
549
561
|
*/
|
550
|
-
deleteAccount(form, options) {
|
562
|
+
async deleteAccount(form, options) {
|
551
563
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
552
564
|
}
|
553
565
|
/**
|
554
566
|
* @summary Reset your password.
|
555
567
|
*/
|
556
|
-
passwordReset(form, options) {
|
568
|
+
async passwordReset(form, options) {
|
557
569
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
558
570
|
}
|
559
571
|
/**
|
560
572
|
* @summary Change your password from an email / token based reset.
|
561
573
|
*/
|
562
|
-
passwordChangeAfterReset(form, options) {
|
574
|
+
async passwordChangeAfterReset(form, options) {
|
563
575
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
564
576
|
}
|
565
577
|
/**
|
566
578
|
* @summary Mark all replies as read.
|
567
579
|
*/
|
568
|
-
markAllNotificationsAsRead(options) {
|
580
|
+
async markAllNotificationsAsRead(options) {
|
569
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
570
582
|
}
|
571
583
|
/**
|
572
584
|
* @summary Save your user settings.
|
573
585
|
*/
|
574
|
-
saveUserSettings(form, options) {
|
586
|
+
async saveUserSettings(form, options) {
|
575
587
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
576
588
|
}
|
577
589
|
/**
|
578
590
|
* @summary Change your user password.
|
579
591
|
*/
|
580
|
-
changePassword(form, options) {
|
592
|
+
async changePassword(form, options) {
|
581
593
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
582
594
|
}
|
583
595
|
/**
|
584
596
|
* @summary Get counts for your reports.
|
585
597
|
*/
|
586
|
-
getReportCount(form, options) {
|
598
|
+
async getReportCount(form, options) {
|
587
599
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
588
600
|
}
|
589
601
|
/**
|
590
602
|
* @summary Get your unread counts.
|
591
603
|
*/
|
592
|
-
getUnreadCount(options) {
|
604
|
+
async getUnreadCount(options) {
|
593
605
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
594
606
|
}
|
595
607
|
/**
|
596
608
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
597
609
|
*/
|
598
|
-
listInbox(form, options) {
|
610
|
+
async listInbox(form, options) {
|
599
611
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
|
600
612
|
}
|
601
613
|
/**
|
602
614
|
* @summary Verify your email
|
603
615
|
*/
|
604
|
-
verifyEmail(form, options) {
|
616
|
+
async verifyEmail(form, options) {
|
605
617
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
606
618
|
}
|
619
|
+
/**
|
620
|
+
* @summary Resend a verification email.
|
621
|
+
*/
|
622
|
+
async resendVerificationEmail(form, options) {
|
623
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
624
|
+
}
|
607
625
|
/**
|
608
626
|
* @summary List your saved content.
|
609
627
|
*/
|
610
|
-
listPersonSaved(form, options) {
|
611
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
628
|
+
async listPersonSaved(form, options) {
|
629
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
612
630
|
}
|
613
631
|
/**
|
614
632
|
* @summary Add an admin to your site.
|
615
633
|
*/
|
616
|
-
addAdmin(form, options) {
|
634
|
+
async addAdmin(form, options) {
|
617
635
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
618
636
|
}
|
619
637
|
/**
|
620
638
|
* @summary Get the unread registration applications count.
|
621
639
|
*/
|
622
|
-
getUnreadRegistrationApplicationCount(options) {
|
640
|
+
async getUnreadRegistrationApplicationCount(options) {
|
623
641
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
624
642
|
}
|
625
643
|
/**
|
626
644
|
* @summary List the registration applications.
|
627
645
|
*/
|
628
|
-
listRegistrationApplications(form, options) {
|
646
|
+
async listRegistrationApplications(form, options) {
|
629
647
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
630
648
|
}
|
631
649
|
/**
|
632
650
|
* @summary Approve a registration application
|
633
651
|
*/
|
634
|
-
approveRegistrationApplication(form, options) {
|
652
|
+
async approveRegistrationApplication(form, options) {
|
635
653
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
636
654
|
}
|
637
655
|
/**
|
638
656
|
* @summary Get the application a user submitted when they first registered their account
|
639
657
|
*/
|
640
|
-
getRegistrationApplication(form, options) {
|
658
|
+
async getRegistrationApplication(form, options) {
|
641
659
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
642
660
|
}
|
643
661
|
/**
|
644
662
|
* @summary Purge / Delete a person from the database.
|
645
663
|
*/
|
646
|
-
purgePerson(form, options) {
|
664
|
+
async purgePerson(form, options) {
|
647
665
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
648
666
|
}
|
649
667
|
/**
|
650
668
|
* @summary Purge / Delete a community from the database.
|
651
669
|
*/
|
652
|
-
purgeCommunity(form, options) {
|
670
|
+
async purgeCommunity(form, options) {
|
653
671
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
654
672
|
}
|
655
673
|
/**
|
656
674
|
* @summary Purge / Delete a post from the database.
|
657
675
|
*/
|
658
|
-
purgePost(form, options) {
|
676
|
+
async purgePost(form, options) {
|
659
677
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
660
678
|
}
|
661
679
|
/**
|
662
680
|
* @summary Purge / Delete a comment from the database.
|
663
681
|
*/
|
664
|
-
purgeComment(form, options) {
|
682
|
+
async purgeComment(form, options) {
|
665
683
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
666
684
|
}
|
667
685
|
/**
|
668
686
|
* @summary Create a new custom emoji.
|
669
687
|
*/
|
670
|
-
createCustomEmoji(form, options) {
|
688
|
+
async createCustomEmoji(form, options) {
|
671
689
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
672
690
|
}
|
673
691
|
/**
|
674
692
|
* @summary Edit an existing custom emoji.
|
675
693
|
*/
|
676
|
-
editCustomEmoji(form, options) {
|
694
|
+
async editCustomEmoji(form, options) {
|
677
695
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
678
696
|
}
|
679
697
|
/**
|
680
698
|
* @summary Delete a custom emoji.
|
681
699
|
*/
|
682
|
-
deleteCustomEmoji(form, options) {
|
700
|
+
async deleteCustomEmoji(form, options) {
|
683
701
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
684
702
|
}
|
685
703
|
/**
|
686
704
|
* @summary List custom emojis
|
687
705
|
*/
|
688
|
-
listCustomEmojis(form, options) {
|
706
|
+
async listCustomEmojis(form, options) {
|
689
707
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
690
708
|
}
|
691
709
|
/**
|
692
710
|
* @summary Create a new tagline
|
693
711
|
*/
|
694
|
-
createTagline(form, options) {
|
712
|
+
async createTagline(form, options) {
|
695
713
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
696
714
|
}
|
697
715
|
/**
|
698
716
|
* @summary Edit an existing tagline
|
699
717
|
*/
|
700
|
-
editTagline(form, options) {
|
718
|
+
async editTagline(form, options) {
|
701
719
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
702
720
|
}
|
703
721
|
/**
|
704
722
|
* @summary Delete a tagline
|
705
723
|
*/
|
706
|
-
deleteTagline(form, options) {
|
724
|
+
async deleteTagline(form, options) {
|
707
725
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
708
726
|
}
|
709
727
|
/**
|
710
728
|
* @summary List taglines.
|
711
729
|
*/
|
712
|
-
listTaglines(form, options) {
|
730
|
+
async listTaglines(form, options) {
|
713
731
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
714
732
|
}
|
715
733
|
/**
|
716
|
-
* @summary Create a community tag.
|
734
|
+
* @summary Create a community post tag.
|
717
735
|
*/
|
718
736
|
createCommunityTag(form, options) {
|
719
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/
|
737
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
720
738
|
}
|
721
739
|
/**
|
722
|
-
* @summary Update a community tag.
|
740
|
+
* @summary Update a community post tag.
|
723
741
|
*/
|
724
742
|
updateCommunityTag(form, options) {
|
725
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/
|
726
|
-
}
|
727
|
-
/**
|
728
|
-
* @summary List community tags.
|
729
|
-
*/
|
730
|
-
listCommunityTags(form, options) {
|
731
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/post_tag/list", form, options);
|
743
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/tag", form, options);
|
732
744
|
}
|
733
745
|
/**
|
734
|
-
* @summary Delete a
|
746
|
+
* @summary Delete a post tag in a community.
|
735
747
|
*/
|
736
748
|
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);
|
749
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
|
744
750
|
}
|
745
751
|
/**
|
746
752
|
* @summary Create a new oauth provider method
|
747
753
|
*/
|
748
|
-
createOAuthProvider(form, options) {
|
754
|
+
async createOAuthProvider(form, options) {
|
749
755
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
750
756
|
}
|
751
757
|
/**
|
752
758
|
* @summary Edit an existing oauth provider method
|
753
759
|
*/
|
754
|
-
editOAuthProvider(form, options) {
|
760
|
+
async editOAuthProvider(form, options) {
|
755
761
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
756
762
|
}
|
757
763
|
/**
|
758
764
|
* @summary Delete an oauth provider method
|
759
765
|
*/
|
760
|
-
deleteOAuthProvider(form, options) {
|
766
|
+
async deleteOAuthProvider(form, options) {
|
761
767
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
762
768
|
}
|
763
769
|
/**
|
764
770
|
* @summary Authenticate with OAuth
|
765
771
|
*/
|
766
|
-
authenticateWithOAuth(form, options) {
|
772
|
+
async authenticateWithOAuth(form, options) {
|
767
773
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
768
774
|
}
|
769
775
|
/**
|
770
776
|
* @summary Fetch federated instances.
|
771
777
|
*/
|
772
|
-
getFederatedInstances(options) {
|
778
|
+
async getFederatedInstances(options) {
|
773
779
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
774
780
|
}
|
775
781
|
/**
|
776
782
|
* @summary List user reports.
|
777
783
|
*/
|
778
|
-
listReports(form, options) {
|
784
|
+
async listReports(form, options) {
|
779
785
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
780
786
|
}
|
781
787
|
/**
|
782
788
|
* @summary Block an instance as user.
|
783
789
|
*/
|
784
|
-
userBlockInstance(form, options) {
|
790
|
+
async userBlockInstance(form, options) {
|
785
791
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
786
792
|
}
|
787
793
|
/**
|
788
794
|
* @summary Globally block an instance as admin.
|
789
795
|
*/
|
790
|
-
adminBlockInstance(form, options) {
|
796
|
+
async adminBlockInstance(form, options) {
|
791
797
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
792
798
|
}
|
793
799
|
/**
|
794
800
|
* @summary Globally allow an instance as admin.
|
795
801
|
*/
|
796
|
-
adminAllowInstance(form, options) {
|
802
|
+
async adminAllowInstance(form, options) {
|
797
803
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
798
804
|
}
|
799
805
|
/**
|
@@ -874,18 +880,20 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
874
880
|
async uploadImage(image, options) {
|
875
881
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
876
882
|
}
|
877
|
-
/**
|
878
|
-
* @summary Delete a pictrs image
|
879
|
-
*/
|
880
|
-
async deleteImage(form, options) {
|
881
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
882
|
-
}
|
883
883
|
/**
|
884
884
|
* @summary Health check for image functionality
|
885
885
|
*/
|
886
886
|
async imageHealth(options) {
|
887
887
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
|
888
888
|
}
|
889
|
+
/**
|
890
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
891
|
+
*
|
892
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
893
|
+
*/
|
894
|
+
donation_dialog_shown(options) {
|
895
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
|
896
|
+
}
|
889
897
|
/**
|
890
898
|
* Set the headers (can be used to set the auth header)
|
891
899
|
*/
|
@@ -947,957 +955,959 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
|
|
947
955
|
}
|
948
956
|
};
|
949
957
|
__decorate([
|
950
|
-
(0,
|
951
|
-
(0,
|
952
|
-
(0,
|
953
|
-
(0,
|
954
|
-
__param(0, (0,
|
958
|
+
(0, runtime_1.Security)("bearerAuth"),
|
959
|
+
(0, runtime_1.Security)({}),
|
960
|
+
(0, runtime_1.Get)("/site"),
|
961
|
+
(0, runtime_1.Tags)("Site"),
|
962
|
+
__param(0, (0, runtime_1.Inject)())
|
955
963
|
], LemmyHttp.prototype, "getSite", null);
|
956
964
|
__decorate([
|
957
|
-
(0,
|
958
|
-
(0,
|
959
|
-
(0,
|
960
|
-
__param(0, (0,
|
961
|
-
__param(1, (0,
|
965
|
+
(0, runtime_1.Security)("bearerAuth"),
|
966
|
+
(0, runtime_1.Post)("/site"),
|
967
|
+
(0, runtime_1.Tags)("Site"),
|
968
|
+
__param(0, (0, runtime_1.Body)()),
|
969
|
+
__param(1, (0, runtime_1.Inject)())
|
962
970
|
], LemmyHttp.prototype, "createSite", null);
|
963
971
|
__decorate([
|
964
|
-
(0,
|
965
|
-
(0,
|
966
|
-
(0,
|
967
|
-
__param(0, (0,
|
968
|
-
__param(1, (0,
|
972
|
+
(0, runtime_1.Security)("bearerAuth"),
|
973
|
+
(0, runtime_1.Put)("/site"),
|
974
|
+
(0, runtime_1.Tags)("Site"),
|
975
|
+
__param(0, (0, runtime_1.Body)()),
|
976
|
+
__param(1, (0, runtime_1.Inject)())
|
969
977
|
], LemmyHttp.prototype, "editSite", null);
|
970
978
|
__decorate([
|
971
|
-
(0,
|
972
|
-
(0,
|
973
|
-
(0,
|
974
|
-
__param(0, (0,
|
979
|
+
(0, runtime_1.Security)("bearerAuth"),
|
980
|
+
(0, runtime_1.Post)("/admin/leave"),
|
981
|
+
(0, runtime_1.Tags)("Admin"),
|
982
|
+
__param(0, (0, runtime_1.Inject)())
|
975
983
|
], LemmyHttp.prototype, "leaveAdmin", null);
|
976
984
|
__decorate([
|
977
|
-
(0,
|
978
|
-
(0,
|
979
|
-
(0,
|
980
|
-
__param(0, (0,
|
985
|
+
(0, runtime_1.Security)("bearerAuth"),
|
986
|
+
(0, runtime_1.Post)("/account/auth/totp/generate"),
|
987
|
+
(0, runtime_1.Tags)("Account"),
|
988
|
+
__param(0, (0, runtime_1.Inject)())
|
981
989
|
], LemmyHttp.prototype, "generateTotpSecret", null);
|
982
990
|
__decorate([
|
983
|
-
(0,
|
984
|
-
(0,
|
985
|
-
(0,
|
986
|
-
__param(0, (0,
|
991
|
+
(0, runtime_1.Security)("bearerAuth"),
|
992
|
+
(0, runtime_1.Get)("/account"),
|
993
|
+
(0, runtime_1.Tags)("Account"),
|
994
|
+
__param(0, (0, runtime_1.Inject)())
|
987
995
|
], LemmyHttp.prototype, "getMyUser", null);
|
988
996
|
__decorate([
|
989
|
-
(0,
|
990
|
-
(0,
|
991
|
-
(0,
|
992
|
-
__param(0, (0,
|
997
|
+
(0, runtime_1.Security)("bearerAuth"),
|
998
|
+
(0, runtime_1.Get)("/account/settings/export"),
|
999
|
+
(0, runtime_1.Tags)("Account"),
|
1000
|
+
__param(0, (0, runtime_1.Inject)())
|
993
1001
|
], LemmyHttp.prototype, "exportSettings", null);
|
994
1002
|
__decorate([
|
995
|
-
(0,
|
996
|
-
(0,
|
997
|
-
(0,
|
998
|
-
__param(0, (0,
|
999
|
-
__param(1, (0,
|
1003
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1004
|
+
(0, runtime_1.Post)("/account/settings/import"),
|
1005
|
+
(0, runtime_1.Tags)("Account"),
|
1006
|
+
__param(0, (0, runtime_1.Body)()),
|
1007
|
+
__param(1, (0, runtime_1.Inject)())
|
1000
1008
|
], LemmyHttp.prototype, "importSettings", null);
|
1001
1009
|
__decorate([
|
1002
|
-
(0,
|
1003
|
-
(0,
|
1004
|
-
(0,
|
1005
|
-
__param(0, (0,
|
1010
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1011
|
+
(0, runtime_1.Get)("/account/list_logins"),
|
1012
|
+
(0, runtime_1.Tags)("Account"),
|
1013
|
+
__param(0, (0, runtime_1.Inject)())
|
1006
1014
|
], LemmyHttp.prototype, "listLogins", null);
|
1007
1015
|
__decorate([
|
1008
|
-
(0,
|
1009
|
-
(0,
|
1010
|
-
(0,
|
1011
|
-
__param(0, (0,
|
1016
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1017
|
+
(0, runtime_1.Get)("/account/validate_auth"),
|
1018
|
+
(0, runtime_1.Tags)("Account"),
|
1019
|
+
__param(0, (0, runtime_1.Inject)())
|
1012
1020
|
], LemmyHttp.prototype, "validateAuth", null);
|
1013
1021
|
__decorate([
|
1014
|
-
(0,
|
1015
|
-
(0,
|
1016
|
-
(0,
|
1017
|
-
__param(0, (0,
|
1018
|
-
__param(1, (0,
|
1022
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1023
|
+
(0, runtime_1.Get)("/account/media/list"),
|
1024
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1025
|
+
__param(0, (0, runtime_1.Queries)()),
|
1026
|
+
__param(1, (0, runtime_1.Inject)())
|
1019
1027
|
], LemmyHttp.prototype, "listMedia", null);
|
1020
1028
|
__decorate([
|
1021
|
-
(0,
|
1022
|
-
(0,
|
1023
|
-
(0,
|
1024
|
-
__param(0, (0,
|
1025
|
-
__param(1, (0,
|
1026
|
-
], LemmyHttp.prototype, "
|
1027
|
-
__decorate([
|
1028
|
-
(0,
|
1029
|
-
(0,
|
1030
|
-
(0,
|
1031
|
-
__param(0, (0,
|
1032
|
-
__param(1, (0,
|
1029
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1030
|
+
(0, runtime_1.Delete)("/account/media"),
|
1031
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1032
|
+
__param(0, (0, runtime_1.Queries)()),
|
1033
|
+
__param(1, (0, runtime_1.Inject)())
|
1034
|
+
], LemmyHttp.prototype, "deleteMedia", null);
|
1035
|
+
__decorate([
|
1036
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1037
|
+
(0, runtime_1.Delete)("/image"),
|
1038
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1039
|
+
__param(0, (0, runtime_1.Queries)()),
|
1040
|
+
__param(1, (0, runtime_1.Inject)())
|
1041
|
+
], LemmyHttp.prototype, "deleteMediaAdmin", null);
|
1042
|
+
__decorate([
|
1043
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1044
|
+
(0, runtime_1.Get)("/image/list"),
|
1045
|
+
(0, runtime_1.Tags)("Admin", "Media"),
|
1046
|
+
__param(0, (0, runtime_1.Queries)()),
|
1047
|
+
__param(1, (0, runtime_1.Inject)())
|
1048
|
+
], LemmyHttp.prototype, "listMediaAdmin", null);
|
1049
|
+
__decorate([
|
1050
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1051
|
+
(0, runtime_1.Post)("/account/auth/totp/update"),
|
1052
|
+
(0, runtime_1.Tags)("Account"),
|
1053
|
+
__param(0, (0, runtime_1.Body)()),
|
1054
|
+
__param(1, (0, runtime_1.Inject)())
|
1033
1055
|
], LemmyHttp.prototype, "updateTotp", null);
|
1034
1056
|
__decorate([
|
1035
|
-
(0,
|
1036
|
-
(0,
|
1037
|
-
(0,
|
1038
|
-
(0,
|
1039
|
-
__param(0, (0,
|
1040
|
-
__param(1, (0,
|
1057
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1058
|
+
(0, runtime_1.Security)({}),
|
1059
|
+
(0, runtime_1.Get)("/modlog"),
|
1060
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1061
|
+
__param(0, (0, runtime_1.Queries)()),
|
1062
|
+
__param(1, (0, runtime_1.Inject)())
|
1041
1063
|
], LemmyHttp.prototype, "getModlog", null);
|
1042
1064
|
__decorate([
|
1043
|
-
(0,
|
1044
|
-
(0,
|
1045
|
-
(0,
|
1046
|
-
(0,
|
1047
|
-
__param(0, (0,
|
1048
|
-
__param(1, (0,
|
1065
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1066
|
+
(0, runtime_1.Security)({}),
|
1067
|
+
(0, runtime_1.Get)("/search"),
|
1068
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1069
|
+
__param(0, (0, runtime_1.Queries)()),
|
1070
|
+
__param(1, (0, runtime_1.Inject)())
|
1049
1071
|
], LemmyHttp.prototype, "search", null);
|
1050
1072
|
__decorate([
|
1051
|
-
(0,
|
1052
|
-
(0,
|
1053
|
-
(0,
|
1054
|
-
(0,
|
1055
|
-
__param(0, (0,
|
1056
|
-
__param(1, (0,
|
1073
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1074
|
+
(0, runtime_1.Security)({}),
|
1075
|
+
(0, runtime_1.Get)("/resolve_object"),
|
1076
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1077
|
+
__param(0, (0, runtime_1.Queries)()),
|
1078
|
+
__param(1, (0, runtime_1.Inject)())
|
1057
1079
|
], LemmyHttp.prototype, "resolveObject", null);
|
1058
1080
|
__decorate([
|
1059
|
-
(0,
|
1060
|
-
(0,
|
1061
|
-
(0,
|
1062
|
-
__param(0, (0,
|
1063
|
-
__param(1, (0,
|
1081
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1082
|
+
(0, runtime_1.Post)("/community"),
|
1083
|
+
(0, runtime_1.Tags)("Community"),
|
1084
|
+
__param(0, (0, runtime_1.Body)()),
|
1085
|
+
__param(1, (0, runtime_1.Inject)())
|
1064
1086
|
], LemmyHttp.prototype, "createCommunity", null);
|
1065
1087
|
__decorate([
|
1066
|
-
(0,
|
1067
|
-
(0,
|
1068
|
-
(0,
|
1069
|
-
(0,
|
1070
|
-
__param(0, (0,
|
1071
|
-
__param(1, (0,
|
1088
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1089
|
+
(0, runtime_1.Security)({}),
|
1090
|
+
(0, runtime_1.Get)("/community"),
|
1091
|
+
(0, runtime_1.Tags)("Community"),
|
1092
|
+
__param(0, (0, runtime_1.Queries)()),
|
1093
|
+
__param(1, (0, runtime_1.Inject)())
|
1072
1094
|
], LemmyHttp.prototype, "getCommunity", null);
|
1073
1095
|
__decorate([
|
1074
|
-
(0,
|
1075
|
-
(0,
|
1076
|
-
(0,
|
1077
|
-
__param(0, (0,
|
1078
|
-
__param(1, (0,
|
1096
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1097
|
+
(0, runtime_1.Put)("/community"),
|
1098
|
+
(0, runtime_1.Tags)("Community"),
|
1099
|
+
__param(0, (0, runtime_1.Body)()),
|
1100
|
+
__param(1, (0, runtime_1.Inject)())
|
1079
1101
|
], LemmyHttp.prototype, "editCommunity", null);
|
1080
1102
|
__decorate([
|
1081
|
-
(0,
|
1082
|
-
(0,
|
1083
|
-
(0,
|
1084
|
-
(0,
|
1085
|
-
__param(0, (0,
|
1086
|
-
__param(1, (0,
|
1103
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1104
|
+
(0, runtime_1.Security)({}),
|
1105
|
+
(0, runtime_1.Get)("/community/list"),
|
1106
|
+
(0, runtime_1.Tags)("Community"),
|
1107
|
+
__param(0, (0, runtime_1.Queries)()),
|
1108
|
+
__param(1, (0, runtime_1.Inject)())
|
1087
1109
|
], LemmyHttp.prototype, "listCommunities", null);
|
1088
1110
|
__decorate([
|
1089
|
-
(0,
|
1090
|
-
(0,
|
1091
|
-
(0,
|
1092
|
-
__param(0, (0,
|
1093
|
-
__param(1, (0,
|
1094
|
-
__param(1, (0,
|
1111
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1112
|
+
(0, runtime_1.Post)("/community/follow"),
|
1113
|
+
(0, runtime_1.Tags)("Community"),
|
1114
|
+
__param(0, (0, runtime_1.Body)()),
|
1115
|
+
__param(1, (0, runtime_1.Inject)()),
|
1116
|
+
__param(1, (0, runtime_1.Inject)())
|
1095
1117
|
], LemmyHttp.prototype, "followCommunity", null);
|
1096
1118
|
__decorate([
|
1097
|
-
(0,
|
1098
|
-
(0,
|
1099
|
-
(0,
|
1100
|
-
__param(0, (0,
|
1101
|
-
__param(1, (0,
|
1119
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1120
|
+
(0, runtime_1.Get)("/community/pending_follows/count"),
|
1121
|
+
(0, runtime_1.Tags)("Community"),
|
1122
|
+
__param(0, (0, runtime_1.Queries)()),
|
1123
|
+
__param(1, (0, runtime_1.Inject)())
|
1102
1124
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
1103
1125
|
__decorate([
|
1104
|
-
(0,
|
1105
|
-
(0,
|
1106
|
-
(0,
|
1107
|
-
__param(0, (0,
|
1108
|
-
__param(1, (0,
|
1126
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1127
|
+
(0, runtime_1.Get)("/community/pending_follows/list"),
|
1128
|
+
(0, runtime_1.Tags)("Community"),
|
1129
|
+
__param(0, (0, runtime_1.Queries)()),
|
1130
|
+
__param(1, (0, runtime_1.Inject)())
|
1109
1131
|
], LemmyHttp.prototype, "listCommunityPendingFollows", null);
|
1110
1132
|
__decorate([
|
1111
|
-
(0,
|
1112
|
-
(0,
|
1113
|
-
(0,
|
1114
|
-
__param(0, (0,
|
1115
|
-
__param(1, (0,
|
1133
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1134
|
+
(0, runtime_1.Post)("/community/pending_follows/approve"),
|
1135
|
+
(0, runtime_1.Tags)("Community"),
|
1136
|
+
__param(0, (0, runtime_1.Body)()),
|
1137
|
+
__param(1, (0, runtime_1.Inject)())
|
1116
1138
|
], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
|
1117
1139
|
__decorate([
|
1118
|
-
(0,
|
1119
|
-
(0,
|
1120
|
-
(0,
|
1121
|
-
__param(0, (0,
|
1122
|
-
__param(1, (0,
|
1140
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1141
|
+
(0, runtime_1.Post)("/account/block/community"),
|
1142
|
+
(0, runtime_1.Tags)("Account", "Community"),
|
1143
|
+
__param(0, (0, runtime_1.Body)()),
|
1144
|
+
__param(1, (0, runtime_1.Inject)())
|
1123
1145
|
], LemmyHttp.prototype, "blockCommunity", null);
|
1124
1146
|
__decorate([
|
1125
|
-
(0,
|
1126
|
-
(0,
|
1127
|
-
(0,
|
1128
|
-
__param(0, (0,
|
1129
|
-
__param(1, (0,
|
1147
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1148
|
+
(0, runtime_1.Post)("/community/delete"),
|
1149
|
+
(0, runtime_1.Tags)("Community"),
|
1150
|
+
__param(0, (0, runtime_1.Body)()),
|
1151
|
+
__param(1, (0, runtime_1.Inject)())
|
1130
1152
|
], LemmyHttp.prototype, "deleteCommunity", null);
|
1131
1153
|
__decorate([
|
1132
|
-
(0,
|
1133
|
-
(0,
|
1134
|
-
(0,
|
1135
|
-
__param(0, (0,
|
1136
|
-
__param(1, (0,
|
1154
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1155
|
+
(0, runtime_1.Put)("/community/hide"),
|
1156
|
+
(0, runtime_1.Tags)("Community", "Admin"),
|
1157
|
+
__param(0, (0, runtime_1.Body)()),
|
1158
|
+
__param(1, (0, runtime_1.Inject)())
|
1137
1159
|
], LemmyHttp.prototype, "hideCommunity", null);
|
1138
1160
|
__decorate([
|
1139
|
-
(0,
|
1140
|
-
(0,
|
1141
|
-
(0,
|
1142
|
-
__param(0, (0,
|
1143
|
-
__param(1, (0,
|
1161
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1162
|
+
(0, runtime_1.Post)("/community/remove"),
|
1163
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1164
|
+
__param(0, (0, runtime_1.Body)()),
|
1165
|
+
__param(1, (0, runtime_1.Inject)())
|
1144
1166
|
], LemmyHttp.prototype, "removeCommunity", null);
|
1145
1167
|
__decorate([
|
1146
|
-
(0,
|
1147
|
-
(0,
|
1148
|
-
(0,
|
1149
|
-
__param(0, (0,
|
1150
|
-
__param(1, (0,
|
1168
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1169
|
+
(0, runtime_1.Post)("/community/transfer"),
|
1170
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1171
|
+
__param(0, (0, runtime_1.Body)()),
|
1172
|
+
__param(1, (0, runtime_1.Inject)())
|
1151
1173
|
], LemmyHttp.prototype, "transferCommunity", null);
|
1152
1174
|
__decorate([
|
1153
|
-
(0,
|
1154
|
-
(0,
|
1155
|
-
(0,
|
1156
|
-
__param(0, (0,
|
1157
|
-
__param(1, (0,
|
1175
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1176
|
+
(0, runtime_1.Post)("/community/ban_user"),
|
1177
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1178
|
+
__param(0, (0, runtime_1.Body)()),
|
1179
|
+
__param(1, (0, runtime_1.Inject)())
|
1158
1180
|
], LemmyHttp.prototype, "banFromCommunity", null);
|
1159
1181
|
__decorate([
|
1160
|
-
(0,
|
1161
|
-
(0,
|
1162
|
-
(0,
|
1163
|
-
__param(0, (0,
|
1164
|
-
__param(1, (0,
|
1182
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1183
|
+
(0, runtime_1.Post)("/community/mod"),
|
1184
|
+
(0, runtime_1.Tags)("Community", "Moderator"),
|
1185
|
+
__param(0, (0, runtime_1.Body)()),
|
1186
|
+
__param(1, (0, runtime_1.Inject)())
|
1165
1187
|
], LemmyHttp.prototype, "addModToCommunity", null);
|
1166
1188
|
__decorate([
|
1167
|
-
(0,
|
1168
|
-
(0,
|
1169
|
-
(0,
|
1170
|
-
(0,
|
1171
|
-
__param(0, (0,
|
1172
|
-
__param(1, (0,
|
1189
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1190
|
+
(0, runtime_1.Security)({}),
|
1191
|
+
(0, runtime_1.Get)("/community/random"),
|
1192
|
+
(0, runtime_1.Tags)("Community"),
|
1193
|
+
__param(0, (0, runtime_1.Queries)()),
|
1194
|
+
__param(1, (0, runtime_1.Inject)())
|
1173
1195
|
], LemmyHttp.prototype, "getRandomCommunity", null);
|
1174
1196
|
__decorate([
|
1175
|
-
(0,
|
1176
|
-
(0,
|
1177
|
-
(0,
|
1178
|
-
__param(0, (0,
|
1179
|
-
__param(1, (0,
|
1197
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1198
|
+
(0, runtime_1.Post)("/post"),
|
1199
|
+
(0, runtime_1.Tags)("Post"),
|
1200
|
+
__param(0, (0, runtime_1.Body)()),
|
1201
|
+
__param(1, (0, runtime_1.Inject)())
|
1180
1202
|
], LemmyHttp.prototype, "createPost", null);
|
1181
1203
|
__decorate([
|
1182
|
-
(0,
|
1183
|
-
(0,
|
1184
|
-
(0,
|
1185
|
-
(0,
|
1186
|
-
__param(0, (0,
|
1187
|
-
__param(1, (0,
|
1204
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1205
|
+
(0, runtime_1.Security)({}),
|
1206
|
+
(0, runtime_1.Get)("/post"),
|
1207
|
+
(0, runtime_1.Tags)("Post"),
|
1208
|
+
__param(0, (0, runtime_1.Queries)()),
|
1209
|
+
__param(1, (0, runtime_1.Inject)())
|
1188
1210
|
], LemmyHttp.prototype, "getPost", null);
|
1189
1211
|
__decorate([
|
1190
|
-
(0,
|
1191
|
-
(0,
|
1192
|
-
(0,
|
1193
|
-
__param(0, (0,
|
1194
|
-
__param(1, (0,
|
1212
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1213
|
+
(0, runtime_1.Put)("/post"),
|
1214
|
+
(0, runtime_1.Tags)("Post"),
|
1215
|
+
__param(0, (0, runtime_1.Body)()),
|
1216
|
+
__param(1, (0, runtime_1.Inject)())
|
1195
1217
|
], LemmyHttp.prototype, "editPost", null);
|
1196
1218
|
__decorate([
|
1197
|
-
(0,
|
1198
|
-
(0,
|
1199
|
-
(0,
|
1200
|
-
__param(0, (0,
|
1201
|
-
__param(1, (0,
|
1219
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1220
|
+
(0, runtime_1.Post)("/post/delete"),
|
1221
|
+
(0, runtime_1.Tags)("Post"),
|
1222
|
+
__param(0, (0, runtime_1.Body)()),
|
1223
|
+
__param(1, (0, runtime_1.Inject)())
|
1202
1224
|
], LemmyHttp.prototype, "deletePost", null);
|
1203
1225
|
__decorate([
|
1204
|
-
(0,
|
1205
|
-
(0,
|
1206
|
-
(0,
|
1207
|
-
__param(0, (0,
|
1208
|
-
__param(1, (0,
|
1226
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1227
|
+
(0, runtime_1.Post)("/post/remove"),
|
1228
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1229
|
+
__param(0, (0, runtime_1.Body)()),
|
1230
|
+
__param(1, (0, runtime_1.Inject)())
|
1209
1231
|
], LemmyHttp.prototype, "removePost", null);
|
1210
1232
|
__decorate([
|
1211
|
-
(0,
|
1212
|
-
(0,
|
1213
|
-
(0,
|
1214
|
-
__param(0, (0,
|
1215
|
-
__param(1, (0,
|
1233
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1234
|
+
(0, runtime_1.Post)("/post/mark_as_read"),
|
1235
|
+
(0, runtime_1.Tags)("Post"),
|
1236
|
+
__param(0, (0, runtime_1.Body)()),
|
1237
|
+
__param(1, (0, runtime_1.Inject)())
|
1216
1238
|
], LemmyHttp.prototype, "markPostAsRead", null);
|
1217
1239
|
__decorate([
|
1218
|
-
(0,
|
1219
|
-
(0,
|
1220
|
-
(0,
|
1221
|
-
__param(0, (0,
|
1222
|
-
__param(1, (0,
|
1240
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1241
|
+
(0, runtime_1.Post)("/post/mark_as_read/many"),
|
1242
|
+
(0, runtime_1.Tags)("Post"),
|
1243
|
+
__param(0, (0, runtime_1.Body)()),
|
1244
|
+
__param(1, (0, runtime_1.Inject)())
|
1223
1245
|
], LemmyHttp.prototype, "markManyPostAsRead", null);
|
1224
1246
|
__decorate([
|
1225
|
-
(0,
|
1226
|
-
(0,
|
1227
|
-
(0,
|
1228
|
-
__param(0, (0,
|
1229
|
-
__param(1, (0,
|
1247
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1248
|
+
(0, runtime_1.Post)("/post/hide"),
|
1249
|
+
(0, runtime_1.Tags)("Post"),
|
1250
|
+
__param(0, (0, runtime_1.Body)()),
|
1251
|
+
__param(1, (0, runtime_1.Inject)())
|
1230
1252
|
], LemmyHttp.prototype, "hidePost", null);
|
1231
1253
|
__decorate([
|
1232
|
-
(0,
|
1233
|
-
(0,
|
1234
|
-
(0,
|
1235
|
-
__param(0, (0,
|
1236
|
-
__param(1, (0,
|
1254
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1255
|
+
(0, runtime_1.Post)("/post/lock"),
|
1256
|
+
(0, runtime_1.Tags)("Post"),
|
1257
|
+
__param(0, (0, runtime_1.Body)()),
|
1258
|
+
__param(1, (0, runtime_1.Inject)())
|
1237
1259
|
], LemmyHttp.prototype, "lockPost", null);
|
1238
1260
|
__decorate([
|
1239
|
-
(0,
|
1240
|
-
(0,
|
1241
|
-
(0,
|
1242
|
-
__param(0, (0,
|
1243
|
-
__param(1, (0,
|
1261
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1262
|
+
(0, runtime_1.Post)("/post/feature"),
|
1263
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1264
|
+
__param(0, (0, runtime_1.Body)()),
|
1265
|
+
__param(1, (0, runtime_1.Inject)())
|
1244
1266
|
], LemmyHttp.prototype, "featurePost", null);
|
1245
1267
|
__decorate([
|
1246
|
-
(0,
|
1247
|
-
(0,
|
1248
|
-
(0,
|
1249
|
-
(0,
|
1250
|
-
__param(0, (0,
|
1251
|
-
__param(1, (0,
|
1268
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1269
|
+
(0, runtime_1.Security)({}),
|
1270
|
+
(0, runtime_1.Get)("/post/list"),
|
1271
|
+
(0, runtime_1.Tags)("Post"),
|
1272
|
+
__param(0, (0, runtime_1.Queries)()),
|
1273
|
+
__param(1, (0, runtime_1.Inject)())
|
1252
1274
|
], LemmyHttp.prototype, "getPosts", null);
|
1253
1275
|
__decorate([
|
1254
|
-
(0,
|
1255
|
-
(0,
|
1256
|
-
(0,
|
1257
|
-
__param(0, (0,
|
1258
|
-
__param(1, (0,
|
1276
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1277
|
+
(0, runtime_1.Post)("/post/like"),
|
1278
|
+
(0, runtime_1.Tags)("Post"),
|
1279
|
+
__param(0, (0, runtime_1.Body)()),
|
1280
|
+
__param(1, (0, runtime_1.Inject)())
|
1259
1281
|
], LemmyHttp.prototype, "likePost", null);
|
1260
1282
|
__decorate([
|
1261
|
-
(0,
|
1262
|
-
(0,
|
1263
|
-
(0,
|
1264
|
-
__param(0, (0,
|
1265
|
-
__param(1, (0,
|
1283
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1284
|
+
(0, runtime_1.Get)("/post/like/list"),
|
1285
|
+
(0, runtime_1.Tags)("Post", "Admin"),
|
1286
|
+
__param(0, (0, runtime_1.Queries)()),
|
1287
|
+
__param(1, (0, runtime_1.Inject)())
|
1266
1288
|
], LemmyHttp.prototype, "listPostLikes", null);
|
1267
1289
|
__decorate([
|
1268
|
-
(0,
|
1269
|
-
(0,
|
1270
|
-
(0,
|
1271
|
-
__param(0, (0,
|
1272
|
-
__param(1, (0,
|
1290
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1291
|
+
(0, runtime_1.Put)("/post/save"),
|
1292
|
+
(0, runtime_1.Tags)("Post"),
|
1293
|
+
__param(0, (0, runtime_1.Body)()),
|
1294
|
+
__param(1, (0, runtime_1.Inject)())
|
1273
1295
|
], LemmyHttp.prototype, "savePost", null);
|
1274
1296
|
__decorate([
|
1275
|
-
(0,
|
1276
|
-
(0,
|
1277
|
-
(0,
|
1278
|
-
__param(0, (0,
|
1279
|
-
__param(1, (0,
|
1297
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1298
|
+
(0, runtime_1.Post)("/post/report"),
|
1299
|
+
(0, runtime_1.Tags)("Post"),
|
1300
|
+
__param(0, (0, runtime_1.Body)()),
|
1301
|
+
__param(1, (0, runtime_1.Inject)())
|
1280
1302
|
], LemmyHttp.prototype, "createPostReport", null);
|
1281
1303
|
__decorate([
|
1282
|
-
(0,
|
1283
|
-
(0,
|
1284
|
-
(0,
|
1285
|
-
__param(0, (0,
|
1286
|
-
__param(1, (0,
|
1304
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1305
|
+
(0, runtime_1.Put)("/post/report/resolve"),
|
1306
|
+
(0, runtime_1.Tags)("Post", "Moderator"),
|
1307
|
+
__param(0, (0, runtime_1.Body)()),
|
1308
|
+
__param(1, (0, runtime_1.Inject)())
|
1287
1309
|
], LemmyHttp.prototype, "resolvePostReport", null);
|
1288
1310
|
__decorate([
|
1289
|
-
(0,
|
1290
|
-
(0,
|
1291
|
-
(0,
|
1292
|
-
__param(0, (0,
|
1293
|
-
__param(1, (0,
|
1311
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1312
|
+
(0, runtime_1.Get)("/post/site_metadata"),
|
1313
|
+
(0, runtime_1.Tags)("Miscellaneous", "Post"),
|
1314
|
+
__param(0, (0, runtime_1.Queries)()),
|
1315
|
+
__param(1, (0, runtime_1.Inject)())
|
1294
1316
|
], LemmyHttp.prototype, "getSiteMetadata", null);
|
1295
1317
|
__decorate([
|
1296
|
-
(0,
|
1297
|
-
(0,
|
1298
|
-
(0,
|
1299
|
-
__param(0, (0,
|
1300
|
-
__param(1, (0,
|
1318
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1319
|
+
(0, runtime_1.Post)("/comment"),
|
1320
|
+
(0, runtime_1.Tags)("Comment"),
|
1321
|
+
__param(0, (0, runtime_1.Body)()),
|
1322
|
+
__param(1, (0, runtime_1.Inject)())
|
1301
1323
|
], LemmyHttp.prototype, "createComment", null);
|
1302
1324
|
__decorate([
|
1303
|
-
(0,
|
1304
|
-
(0,
|
1305
|
-
(0,
|
1306
|
-
__param(0, (0,
|
1307
|
-
__param(1, (0,
|
1325
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1326
|
+
(0, runtime_1.Put)("/comment"),
|
1327
|
+
(0, runtime_1.Tags)("Comment"),
|
1328
|
+
__param(0, (0, runtime_1.Body)()),
|
1329
|
+
__param(1, (0, runtime_1.Inject)())
|
1308
1330
|
], LemmyHttp.prototype, "editComment", null);
|
1309
1331
|
__decorate([
|
1310
|
-
(0,
|
1311
|
-
(0,
|
1312
|
-
(0,
|
1313
|
-
__param(0, (0,
|
1314
|
-
__param(1, (0,
|
1332
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1333
|
+
(0, runtime_1.Post)("/comment/delete"),
|
1334
|
+
(0, runtime_1.Tags)("Comment"),
|
1335
|
+
__param(0, (0, runtime_1.Body)()),
|
1336
|
+
__param(1, (0, runtime_1.Inject)())
|
1315
1337
|
], LemmyHttp.prototype, "deleteComment", null);
|
1316
1338
|
__decorate([
|
1317
|
-
(0,
|
1318
|
-
(0,
|
1319
|
-
(0,
|
1320
|
-
__param(0, (0,
|
1321
|
-
__param(1, (0,
|
1339
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1340
|
+
(0, runtime_1.Post)("/comment/remove"),
|
1341
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1342
|
+
__param(0, (0, runtime_1.Body)()),
|
1343
|
+
__param(1, (0, runtime_1.Inject)())
|
1322
1344
|
], LemmyHttp.prototype, "removeComment", null);
|
1323
1345
|
__decorate([
|
1324
|
-
(0,
|
1325
|
-
(0,
|
1326
|
-
(0,
|
1327
|
-
__param(0, (0,
|
1328
|
-
__param(1, (0,
|
1346
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1347
|
+
(0, runtime_1.Post)("/comment/mark_as_read"),
|
1348
|
+
(0, runtime_1.Tags)("Comment"),
|
1349
|
+
__param(0, (0, runtime_1.Body)()),
|
1350
|
+
__param(1, (0, runtime_1.Inject)())
|
1329
1351
|
], LemmyHttp.prototype, "markCommentReplyAsRead", null);
|
1330
1352
|
__decorate([
|
1331
|
-
(0,
|
1332
|
-
(0,
|
1333
|
-
(0,
|
1334
|
-
__param(0, (0,
|
1335
|
-
__param(1, (0,
|
1353
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1354
|
+
(0, runtime_1.Post)("/comment/like"),
|
1355
|
+
(0, runtime_1.Tags)("Comment"),
|
1356
|
+
__param(0, (0, runtime_1.Body)()),
|
1357
|
+
__param(1, (0, runtime_1.Inject)())
|
1336
1358
|
], LemmyHttp.prototype, "likeComment", null);
|
1337
1359
|
__decorate([
|
1338
|
-
(0,
|
1339
|
-
(0,
|
1340
|
-
(0,
|
1341
|
-
__param(0, (0,
|
1342
|
-
__param(1, (0,
|
1360
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1361
|
+
(0, runtime_1.Get)("/comment/like/list"),
|
1362
|
+
(0, runtime_1.Tags)("Comment", "Admin"),
|
1363
|
+
__param(0, (0, runtime_1.Queries)()),
|
1364
|
+
__param(1, (0, runtime_1.Inject)())
|
1343
1365
|
], LemmyHttp.prototype, "listCommentLikes", null);
|
1344
1366
|
__decorate([
|
1345
|
-
(0,
|
1346
|
-
(0,
|
1347
|
-
(0,
|
1348
|
-
__param(0, (0,
|
1349
|
-
__param(1, (0,
|
1367
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1368
|
+
(0, runtime_1.Put)("/comment/save"),
|
1369
|
+
(0, runtime_1.Tags)("Comment"),
|
1370
|
+
__param(0, (0, runtime_1.Body)()),
|
1371
|
+
__param(1, (0, runtime_1.Inject)())
|
1350
1372
|
], LemmyHttp.prototype, "saveComment", null);
|
1351
1373
|
__decorate([
|
1352
|
-
(0,
|
1353
|
-
(0,
|
1354
|
-
(0,
|
1355
|
-
__param(0, (0,
|
1356
|
-
__param(1, (0,
|
1374
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1375
|
+
(0, runtime_1.Post)("/comment/distinguish"),
|
1376
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1377
|
+
__param(0, (0, runtime_1.Body)()),
|
1378
|
+
__param(1, (0, runtime_1.Inject)())
|
1357
1379
|
], LemmyHttp.prototype, "distinguishComment", null);
|
1358
1380
|
__decorate([
|
1359
|
-
(0,
|
1360
|
-
(0,
|
1361
|
-
(0,
|
1362
|
-
(0,
|
1363
|
-
__param(0, (0,
|
1364
|
-
__param(1, (0,
|
1381
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1382
|
+
(0, runtime_1.Security)({}),
|
1383
|
+
(0, runtime_1.Get)("/comment/list"),
|
1384
|
+
(0, runtime_1.Tags)("Comment"),
|
1385
|
+
__param(0, (0, runtime_1.Queries)()),
|
1386
|
+
__param(1, (0, runtime_1.Inject)())
|
1365
1387
|
], LemmyHttp.prototype, "getComments", null);
|
1366
1388
|
__decorate([
|
1367
|
-
(0,
|
1368
|
-
(0,
|
1369
|
-
(0,
|
1370
|
-
(0,
|
1371
|
-
__param(0, (0,
|
1372
|
-
__param(1, (0,
|
1389
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1390
|
+
(0, runtime_1.Security)({}),
|
1391
|
+
(0, runtime_1.Get)("/comment/list/slim"),
|
1392
|
+
(0, runtime_1.Tags)("Comment"),
|
1393
|
+
__param(0, (0, runtime_1.Queries)()),
|
1394
|
+
__param(1, (0, runtime_1.Inject)())
|
1373
1395
|
], LemmyHttp.prototype, "getCommentsSlim", null);
|
1374
1396
|
__decorate([
|
1375
|
-
(0,
|
1376
|
-
(0,
|
1377
|
-
(0,
|
1378
|
-
(0,
|
1379
|
-
__param(0, (0,
|
1380
|
-
__param(1, (0,
|
1397
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1398
|
+
(0, runtime_1.Security)({}),
|
1399
|
+
(0, runtime_1.Get)("/comment"),
|
1400
|
+
(0, runtime_1.Tags)("Comment"),
|
1401
|
+
__param(0, (0, runtime_1.Queries)()),
|
1402
|
+
__param(1, (0, runtime_1.Inject)())
|
1381
1403
|
], LemmyHttp.prototype, "getComment", null);
|
1382
1404
|
__decorate([
|
1383
|
-
(0,
|
1384
|
-
(0,
|
1385
|
-
(0,
|
1386
|
-
__param(0, (0,
|
1387
|
-
__param(1, (0,
|
1405
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1406
|
+
(0, runtime_1.Post)("/comment/report"),
|
1407
|
+
(0, runtime_1.Tags)("Comment"),
|
1408
|
+
__param(0, (0, runtime_1.Body)()),
|
1409
|
+
__param(1, (0, runtime_1.Inject)())
|
1388
1410
|
], LemmyHttp.prototype, "createCommentReport", null);
|
1389
1411
|
__decorate([
|
1390
|
-
(0,
|
1391
|
-
(0,
|
1392
|
-
(0,
|
1393
|
-
__param(0, (0,
|
1394
|
-
__param(1, (0,
|
1412
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1413
|
+
(0, runtime_1.Put)("/comment/report/resolve"),
|
1414
|
+
(0, runtime_1.Tags)("Comment", "Moderator"),
|
1415
|
+
__param(0, (0, runtime_1.Body)()),
|
1416
|
+
__param(1, (0, runtime_1.Inject)())
|
1395
1417
|
], LemmyHttp.prototype, "resolveCommentReport", null);
|
1396
1418
|
__decorate([
|
1397
|
-
(0,
|
1398
|
-
(0,
|
1399
|
-
(0,
|
1400
|
-
__param(0, (0,
|
1401
|
-
__param(1, (0,
|
1419
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1420
|
+
(0, runtime_1.Post)("/private_message"),
|
1421
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1422
|
+
__param(0, (0, runtime_1.Body)()),
|
1423
|
+
__param(1, (0, runtime_1.Inject)())
|
1402
1424
|
], LemmyHttp.prototype, "createPrivateMessage", null);
|
1403
1425
|
__decorate([
|
1404
|
-
(0,
|
1405
|
-
(0,
|
1406
|
-
(0,
|
1407
|
-
__param(0, (0,
|
1408
|
-
__param(1, (0,
|
1426
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1427
|
+
(0, runtime_1.Put)("/private_message"),
|
1428
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1429
|
+
__param(0, (0, runtime_1.Body)()),
|
1430
|
+
__param(1, (0, runtime_1.Inject)())
|
1409
1431
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
1410
1432
|
__decorate([
|
1411
|
-
(0,
|
1412
|
-
(0,
|
1413
|
-
(0,
|
1414
|
-
__param(0, (0,
|
1415
|
-
__param(1, (0,
|
1433
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1434
|
+
(0, runtime_1.Post)("/private_message/delete"),
|
1435
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1436
|
+
__param(0, (0, runtime_1.Body)()),
|
1437
|
+
__param(1, (0, runtime_1.Inject)())
|
1416
1438
|
], LemmyHttp.prototype, "deletePrivateMessage", null);
|
1417
1439
|
__decorate([
|
1418
|
-
(0,
|
1419
|
-
(0,
|
1420
|
-
(0,
|
1421
|
-
__param(0, (0,
|
1422
|
-
__param(1, (0,
|
1440
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1441
|
+
(0, runtime_1.Post)("/private_message/mark_as_read"),
|
1442
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1443
|
+
__param(0, (0, runtime_1.Body)()),
|
1444
|
+
__param(1, (0, runtime_1.Inject)())
|
1423
1445
|
], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
|
1424
1446
|
__decorate([
|
1425
|
-
(0,
|
1426
|
-
(0,
|
1427
|
-
(0,
|
1428
|
-
__param(0, (0,
|
1429
|
-
__param(1, (0,
|
1447
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1448
|
+
(0, runtime_1.Post)("/private_message/report"),
|
1449
|
+
(0, runtime_1.Tags)("PrivateMessage"),
|
1450
|
+
__param(0, (0, runtime_1.Body)()),
|
1451
|
+
__param(1, (0, runtime_1.Inject)())
|
1430
1452
|
], LemmyHttp.prototype, "createPrivateMessageReport", null);
|
1431
1453
|
__decorate([
|
1432
|
-
(0,
|
1433
|
-
(0,
|
1434
|
-
(0,
|
1435
|
-
__param(0, (0,
|
1436
|
-
__param(1, (0,
|
1454
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1455
|
+
(0, runtime_1.Put)("/private_message/report/resolve"),
|
1456
|
+
(0, runtime_1.Tags)("PrivateMessage", "Admin"),
|
1457
|
+
__param(0, (0, runtime_1.Body)()),
|
1458
|
+
__param(1, (0, runtime_1.Inject)())
|
1437
1459
|
], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
|
1438
1460
|
__decorate([
|
1439
|
-
(0,
|
1440
|
-
(0,
|
1441
|
-
__param(0, (0,
|
1442
|
-
__param(1, (0,
|
1461
|
+
(0, runtime_1.Post)("/account/auth/register"),
|
1462
|
+
(0, runtime_1.Tags)("Account"),
|
1463
|
+
__param(0, (0, runtime_1.Body)()),
|
1464
|
+
__param(1, (0, runtime_1.Inject)())
|
1443
1465
|
], LemmyHttp.prototype, "register", null);
|
1444
1466
|
__decorate([
|
1445
|
-
(0,
|
1446
|
-
(0,
|
1447
|
-
__param(0, (0,
|
1448
|
-
__param(1, (0,
|
1467
|
+
(0, runtime_1.Post)("/account/auth/login"),
|
1468
|
+
(0, runtime_1.Tags)("Account"),
|
1469
|
+
__param(0, (0, runtime_1.Body)()),
|
1470
|
+
__param(1, (0, runtime_1.Inject)())
|
1449
1471
|
], LemmyHttp.prototype, "login", null);
|
1450
1472
|
__decorate([
|
1451
|
-
(0,
|
1452
|
-
(0,
|
1453
|
-
(0,
|
1454
|
-
__param(0, (0,
|
1473
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1474
|
+
(0, runtime_1.Post)("/account/auth/logout"),
|
1475
|
+
(0, runtime_1.Tags)("Account"),
|
1476
|
+
__param(0, (0, runtime_1.Inject)())
|
1455
1477
|
], LemmyHttp.prototype, "logout", null);
|
1456
1478
|
__decorate([
|
1457
|
-
(0,
|
1458
|
-
(0,
|
1459
|
-
(0,
|
1460
|
-
(0,
|
1461
|
-
__param(0, (0,
|
1462
|
-
__param(1, (0,
|
1479
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1480
|
+
(0, runtime_1.Security)({}),
|
1481
|
+
(0, runtime_1.Get)("/person"),
|
1482
|
+
(0, runtime_1.Tags)("Person"),
|
1483
|
+
__param(0, (0, runtime_1.Queries)()),
|
1484
|
+
__param(1, (0, runtime_1.Inject)())
|
1463
1485
|
], LemmyHttp.prototype, "getPersonDetails", null);
|
1464
1486
|
__decorate([
|
1465
|
-
(0,
|
1466
|
-
(0,
|
1467
|
-
(0,
|
1468
|
-
(0,
|
1469
|
-
__param(0, (0,
|
1470
|
-
__param(1, (0,
|
1487
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1488
|
+
(0, runtime_1.Security)({}),
|
1489
|
+
(0, runtime_1.Get)("/person/content"),
|
1490
|
+
(0, runtime_1.Tags)("Person"),
|
1491
|
+
__param(0, (0, runtime_1.Queries)()),
|
1492
|
+
__param(1, (0, runtime_1.Inject)())
|
1471
1493
|
], LemmyHttp.prototype, "listPersonContent", null);
|
1472
1494
|
__decorate([
|
1473
|
-
(0,
|
1474
|
-
(0,
|
1475
|
-
(0,
|
1476
|
-
__param(0, (0,
|
1477
|
-
__param(1, (0,
|
1495
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1496
|
+
(0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
|
1497
|
+
(0, runtime_1.Tags)("Account", "Person"),
|
1498
|
+
__param(0, (0, runtime_1.Body)()),
|
1499
|
+
__param(1, (0, runtime_1.Inject)())
|
1478
1500
|
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
1479
1501
|
__decorate([
|
1480
|
-
(0,
|
1481
|
-
(0,
|
1482
|
-
(0,
|
1483
|
-
__param(0, (0,
|
1484
|
-
__param(1, (0,
|
1502
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1503
|
+
(0, runtime_1.Post)("/account/mention/post/mark_as_read"),
|
1504
|
+
(0, runtime_1.Tags)("Account", "Post"),
|
1505
|
+
__param(0, (0, runtime_1.Body)()),
|
1506
|
+
__param(1, (0, runtime_1.Inject)())
|
1485
1507
|
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1486
1508
|
__decorate([
|
1487
|
-
(0,
|
1488
|
-
(0,
|
1489
|
-
(0,
|
1490
|
-
__param(0, (0,
|
1491
|
-
__param(1, (0,
|
1509
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1510
|
+
(0, runtime_1.Post)("/admin/ban"),
|
1511
|
+
(0, runtime_1.Tags)("Admin"),
|
1512
|
+
__param(0, (0, runtime_1.Body)()),
|
1513
|
+
__param(1, (0, runtime_1.Inject)())
|
1492
1514
|
], LemmyHttp.prototype, "banPerson", null);
|
1493
1515
|
__decorate([
|
1494
|
-
(0,
|
1495
|
-
(0,
|
1496
|
-
(0,
|
1497
|
-
__param(0, (0,
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
(0,
|
1502
|
-
(0,
|
1503
|
-
|
1504
|
-
__param(
|
1516
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1517
|
+
(0, runtime_1.Get)("/admin/banned"),
|
1518
|
+
(0, runtime_1.Tags)("Admin", "Miscellaneous"),
|
1519
|
+
__param(0, (0, runtime_1.Queries)()),
|
1520
|
+
__param(1, (0, runtime_1.Inject)())
|
1521
|
+
], LemmyHttp.prototype, "listBannedPersons", null);
|
1522
|
+
__decorate([
|
1523
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1524
|
+
(0, runtime_1.Post)("/account/block/person"),
|
1525
|
+
(0, runtime_1.Tags)("Account"),
|
1526
|
+
__param(0, (0, runtime_1.Body)()),
|
1527
|
+
__param(1, (0, runtime_1.Inject)())
|
1505
1528
|
], LemmyHttp.prototype, "blockPerson", null);
|
1506
1529
|
__decorate([
|
1507
|
-
(0,
|
1508
|
-
(0,
|
1509
|
-
__param(0, (0,
|
1530
|
+
(0, runtime_1.Get)("/account/auth/get_captcha"),
|
1531
|
+
(0, runtime_1.Tags)("Account"),
|
1532
|
+
__param(0, (0, runtime_1.Inject)())
|
1510
1533
|
], LemmyHttp.prototype, "getCaptcha", null);
|
1511
1534
|
__decorate([
|
1512
|
-
(0,
|
1513
|
-
(0,
|
1514
|
-
(0,
|
1515
|
-
__param(0, (0,
|
1516
|
-
__param(1, (0,
|
1535
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1536
|
+
(0, runtime_1.Post)("/account/delete"),
|
1537
|
+
(0, runtime_1.Tags)("Account"),
|
1538
|
+
__param(0, (0, runtime_1.Body)()),
|
1539
|
+
__param(1, (0, runtime_1.Inject)())
|
1517
1540
|
], LemmyHttp.prototype, "deleteAccount", null);
|
1518
1541
|
__decorate([
|
1519
|
-
(0,
|
1520
|
-
(0,
|
1521
|
-
(0,
|
1522
|
-
__param(0, (0,
|
1523
|
-
__param(1, (0,
|
1542
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1543
|
+
(0, runtime_1.Post)("/account/auth/password_reset"),
|
1544
|
+
(0, runtime_1.Tags)("Account"),
|
1545
|
+
__param(0, (0, runtime_1.Body)()),
|
1546
|
+
__param(1, (0, runtime_1.Inject)())
|
1524
1547
|
], LemmyHttp.prototype, "passwordReset", null);
|
1525
1548
|
__decorate([
|
1526
|
-
(0,
|
1527
|
-
(0,
|
1528
|
-
(0,
|
1529
|
-
__param(0, (0,
|
1530
|
-
__param(1, (0,
|
1549
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1550
|
+
(0, runtime_1.Post)("/account/auth/password_change"),
|
1551
|
+
(0, runtime_1.Tags)("Account"),
|
1552
|
+
__param(0, (0, runtime_1.Body)()),
|
1553
|
+
__param(1, (0, runtime_1.Inject)())
|
1531
1554
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
1532
1555
|
__decorate([
|
1533
|
-
(0,
|
1534
|
-
(0,
|
1535
|
-
(0,
|
1536
|
-
__param(0, (0,
|
1556
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1557
|
+
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
1558
|
+
(0, runtime_1.Tags)("Account"),
|
1559
|
+
__param(0, (0, runtime_1.Inject)())
|
1537
1560
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1538
1561
|
__decorate([
|
1539
|
-
(0,
|
1540
|
-
(0,
|
1541
|
-
(0,
|
1542
|
-
__param(0, (0,
|
1543
|
-
__param(1, (0,
|
1562
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1563
|
+
(0, runtime_1.Put)("/account/settings/save"),
|
1564
|
+
(0, runtime_1.Tags)("Account"),
|
1565
|
+
__param(0, (0, runtime_1.Body)()),
|
1566
|
+
__param(1, (0, runtime_1.Inject)())
|
1544
1567
|
], LemmyHttp.prototype, "saveUserSettings", null);
|
1545
1568
|
__decorate([
|
1546
|
-
(0,
|
1547
|
-
(0,
|
1548
|
-
(0,
|
1549
|
-
__param(0, (0,
|
1550
|
-
__param(1, (0,
|
1569
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1570
|
+
(0, runtime_1.Put)("/account/auth/change_password"),
|
1571
|
+
(0, runtime_1.Tags)("Account"),
|
1572
|
+
__param(0, (0, runtime_1.Body)()),
|
1573
|
+
__param(1, (0, runtime_1.Inject)())
|
1551
1574
|
], LemmyHttp.prototype, "changePassword", null);
|
1552
1575
|
__decorate([
|
1553
|
-
(0,
|
1554
|
-
(0,
|
1555
|
-
(0,
|
1556
|
-
__param(0, (0,
|
1557
|
-
__param(1, (0,
|
1576
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1577
|
+
(0, runtime_1.Get)("/account/report_count"),
|
1578
|
+
(0, runtime_1.Tags)("Account"),
|
1579
|
+
__param(0, (0, runtime_1.Queries)()),
|
1580
|
+
__param(1, (0, runtime_1.Inject)())
|
1558
1581
|
], LemmyHttp.prototype, "getReportCount", null);
|
1559
1582
|
__decorate([
|
1560
|
-
(0,
|
1561
|
-
(0,
|
1562
|
-
(0,
|
1563
|
-
__param(0, (0,
|
1583
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1584
|
+
(0, runtime_1.Get)("/account/unread_count"),
|
1585
|
+
(0, runtime_1.Tags)("Account"),
|
1586
|
+
__param(0, (0, runtime_1.Inject)())
|
1564
1587
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
1565
1588
|
__decorate([
|
1566
|
-
(0,
|
1567
|
-
(0,
|
1568
|
-
(0,
|
1569
|
-
__param(0, (0,
|
1570
|
-
__param(1, (0,
|
1589
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1590
|
+
(0, runtime_1.Get)("/account/inbox"),
|
1591
|
+
(0, runtime_1.Tags)("Account"),
|
1592
|
+
__param(0, (0, runtime_1.Queries)()),
|
1593
|
+
__param(1, (0, runtime_1.Inject)())
|
1571
1594
|
], LemmyHttp.prototype, "listInbox", null);
|
1572
1595
|
__decorate([
|
1573
|
-
(0,
|
1574
|
-
(0,
|
1575
|
-
__param(0, (0,
|
1576
|
-
__param(1, (0,
|
1596
|
+
(0, runtime_1.Post)("/account/auth/verify_email"),
|
1597
|
+
(0, runtime_1.Tags)("Account"),
|
1598
|
+
__param(0, (0, runtime_1.Body)()),
|
1599
|
+
__param(1, (0, runtime_1.Inject)())
|
1577
1600
|
], LemmyHttp.prototype, "verifyEmail", null);
|
1578
1601
|
__decorate([
|
1579
|
-
(0,
|
1580
|
-
(0,
|
1581
|
-
(0,
|
1582
|
-
__param(
|
1583
|
-
|
1602
|
+
(0, runtime_1.Post)("/account/auth/resend_verification_email"),
|
1603
|
+
(0, runtime_1.Tags)("Account"),
|
1604
|
+
__param(0, (0, runtime_1.Body)()),
|
1605
|
+
__param(1, (0, runtime_1.Inject)())
|
1606
|
+
], LemmyHttp.prototype, "resendVerificationEmail", null);
|
1607
|
+
__decorate([
|
1608
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1609
|
+
(0, runtime_1.Get)("/account/saved"),
|
1610
|
+
(0, runtime_1.Tags)("Account"),
|
1611
|
+
__param(0, (0, runtime_1.Queries)()),
|
1612
|
+
__param(1, (0, runtime_1.Inject)())
|
1584
1613
|
], LemmyHttp.prototype, "listPersonSaved", null);
|
1585
1614
|
__decorate([
|
1586
|
-
(0,
|
1587
|
-
(0,
|
1588
|
-
(0,
|
1589
|
-
__param(0, (0,
|
1590
|
-
__param(1, (0,
|
1615
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1616
|
+
(0, runtime_1.Post)("/admin/add"),
|
1617
|
+
(0, runtime_1.Tags)("Admin"),
|
1618
|
+
__param(0, (0, runtime_1.Body)()),
|
1619
|
+
__param(1, (0, runtime_1.Inject)())
|
1591
1620
|
], LemmyHttp.prototype, "addAdmin", null);
|
1592
1621
|
__decorate([
|
1593
|
-
(0,
|
1594
|
-
(0,
|
1595
|
-
(0,
|
1596
|
-
__param(0, (0,
|
1622
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1623
|
+
(0, runtime_1.Get)("/admin/registration_application/count"),
|
1624
|
+
(0, runtime_1.Tags)("Admin"),
|
1625
|
+
__param(0, (0, runtime_1.Inject)())
|
1597
1626
|
], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
|
1598
1627
|
__decorate([
|
1599
|
-
(0,
|
1600
|
-
(0,
|
1601
|
-
(0,
|
1602
|
-
__param(0, (0,
|
1603
|
-
__param(1, (0,
|
1628
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1629
|
+
(0, runtime_1.Get)("/admin/registration_application/list"),
|
1630
|
+
(0, runtime_1.Tags)("Admin"),
|
1631
|
+
__param(0, (0, runtime_1.Queries)()),
|
1632
|
+
__param(1, (0, runtime_1.Inject)())
|
1604
1633
|
], LemmyHttp.prototype, "listRegistrationApplications", null);
|
1605
1634
|
__decorate([
|
1606
|
-
(0,
|
1607
|
-
(0,
|
1608
|
-
(0,
|
1609
|
-
__param(0, (0,
|
1610
|
-
__param(1, (0,
|
1635
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1636
|
+
(0, runtime_1.Put)("/admin/registration_application/approve"),
|
1637
|
+
(0, runtime_1.Tags)("Admin"),
|
1638
|
+
__param(0, (0, runtime_1.Body)()),
|
1639
|
+
__param(1, (0, runtime_1.Inject)())
|
1611
1640
|
], LemmyHttp.prototype, "approveRegistrationApplication", null);
|
1612
1641
|
__decorate([
|
1613
|
-
(0,
|
1614
|
-
(0,
|
1615
|
-
(0,
|
1616
|
-
__param(0, (0,
|
1617
|
-
__param(1, (0,
|
1642
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1643
|
+
(0, runtime_1.Get)("/admin/registration_application"),
|
1644
|
+
(0, runtime_1.Tags)("Admin"),
|
1645
|
+
__param(0, (0, runtime_1.Queries)()),
|
1646
|
+
__param(1, (0, runtime_1.Inject)())
|
1618
1647
|
], LemmyHttp.prototype, "getRegistrationApplication", null);
|
1619
1648
|
__decorate([
|
1620
|
-
(0,
|
1621
|
-
(0,
|
1622
|
-
(0,
|
1623
|
-
__param(0, (0,
|
1624
|
-
__param(1, (0,
|
1649
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1650
|
+
(0, runtime_1.Post)("/admin/purge/person"),
|
1651
|
+
(0, runtime_1.Tags)("Admin"),
|
1652
|
+
__param(0, (0, runtime_1.Body)()),
|
1653
|
+
__param(1, (0, runtime_1.Inject)())
|
1625
1654
|
], LemmyHttp.prototype, "purgePerson", null);
|
1626
1655
|
__decorate([
|
1627
|
-
(0,
|
1628
|
-
(0,
|
1629
|
-
(0,
|
1630
|
-
__param(0, (0,
|
1631
|
-
__param(1, (0,
|
1656
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1657
|
+
(0, runtime_1.Post)("/admin/purge/community"),
|
1658
|
+
(0, runtime_1.Tags)("Admin"),
|
1659
|
+
__param(0, (0, runtime_1.Body)()),
|
1660
|
+
__param(1, (0, runtime_1.Inject)())
|
1632
1661
|
], LemmyHttp.prototype, "purgeCommunity", null);
|
1633
1662
|
__decorate([
|
1634
|
-
(0,
|
1635
|
-
(0,
|
1636
|
-
(0,
|
1637
|
-
__param(0, (0,
|
1638
|
-
__param(1, (0,
|
1663
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1664
|
+
(0, runtime_1.Post)("/admin/purge/post"),
|
1665
|
+
(0, runtime_1.Tags)("Admin"),
|
1666
|
+
__param(0, (0, runtime_1.Body)()),
|
1667
|
+
__param(1, (0, runtime_1.Inject)())
|
1639
1668
|
], LemmyHttp.prototype, "purgePost", null);
|
1640
1669
|
__decorate([
|
1641
|
-
(0,
|
1642
|
-
(0,
|
1643
|
-
(0,
|
1644
|
-
__param(0, (0,
|
1645
|
-
__param(1, (0,
|
1670
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1671
|
+
(0, runtime_1.Post)("/admin/purge/comment"),
|
1672
|
+
(0, runtime_1.Tags)("Admin"),
|
1673
|
+
__param(0, (0, runtime_1.Body)()),
|
1674
|
+
__param(1, (0, runtime_1.Inject)())
|
1646
1675
|
], LemmyHttp.prototype, "purgeComment", null);
|
1647
1676
|
__decorate([
|
1648
|
-
(0,
|
1649
|
-
(0,
|
1650
|
-
(0,
|
1651
|
-
__param(0, (0,
|
1652
|
-
__param(1, (0,
|
1677
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1678
|
+
(0, runtime_1.Post)("/custom_emoji"),
|
1679
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1680
|
+
__param(0, (0, runtime_1.Body)()),
|
1681
|
+
__param(1, (0, runtime_1.Inject)())
|
1653
1682
|
], LemmyHttp.prototype, "createCustomEmoji", null);
|
1654
1683
|
__decorate([
|
1655
|
-
(0,
|
1656
|
-
(0,
|
1657
|
-
(0,
|
1658
|
-
__param(0, (0,
|
1659
|
-
__param(1, (0,
|
1684
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1685
|
+
(0, runtime_1.Put)("/custom_emoji"),
|
1686
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1687
|
+
__param(0, (0, runtime_1.Body)()),
|
1688
|
+
__param(1, (0, runtime_1.Inject)())
|
1660
1689
|
], LemmyHttp.prototype, "editCustomEmoji", null);
|
1661
1690
|
__decorate([
|
1662
|
-
(0,
|
1663
|
-
(0,
|
1664
|
-
(0,
|
1665
|
-
__param(0, (0,
|
1666
|
-
__param(1, (0,
|
1691
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1692
|
+
(0, runtime_1.Post)("/custom_emoji/delete"),
|
1693
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1694
|
+
__param(0, (0, runtime_1.Body)()),
|
1695
|
+
__param(1, (0, runtime_1.Inject)())
|
1667
1696
|
], LemmyHttp.prototype, "deleteCustomEmoji", null);
|
1668
1697
|
__decorate([
|
1669
|
-
(0,
|
1670
|
-
(0,
|
1671
|
-
(0,
|
1672
|
-
(0,
|
1673
|
-
__param(0, (0,
|
1674
|
-
__param(1, (0,
|
1698
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1699
|
+
(0, runtime_1.Security)({}),
|
1700
|
+
(0, runtime_1.Get)("/custom_emoji/list"),
|
1701
|
+
(0, runtime_1.Tags)("CustomEmoji"),
|
1702
|
+
__param(0, (0, runtime_1.Queries)()),
|
1703
|
+
__param(1, (0, runtime_1.Inject)())
|
1675
1704
|
], LemmyHttp.prototype, "listCustomEmojis", null);
|
1676
1705
|
__decorate([
|
1677
|
-
(0,
|
1678
|
-
(0,
|
1679
|
-
(0,
|
1680
|
-
__param(0, (0,
|
1681
|
-
__param(1, (0,
|
1706
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1707
|
+
(0, runtime_1.Post)("/admin/tagline"),
|
1708
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1709
|
+
__param(0, (0, runtime_1.Body)()),
|
1710
|
+
__param(1, (0, runtime_1.Inject)())
|
1682
1711
|
], LemmyHttp.prototype, "createTagline", null);
|
1683
1712
|
__decorate([
|
1684
|
-
(0,
|
1685
|
-
(0,
|
1686
|
-
(0,
|
1687
|
-
__param(0, (0,
|
1688
|
-
__param(1, (0,
|
1713
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1714
|
+
(0, runtime_1.Put)("/admin/tagline"),
|
1715
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1716
|
+
__param(0, (0, runtime_1.Body)()),
|
1717
|
+
__param(1, (0, runtime_1.Inject)())
|
1689
1718
|
], LemmyHttp.prototype, "editTagline", null);
|
1690
1719
|
__decorate([
|
1691
|
-
(0,
|
1692
|
-
(0,
|
1693
|
-
(0,
|
1694
|
-
__param(0, (0,
|
1695
|
-
__param(1, (0,
|
1720
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1721
|
+
(0, runtime_1.Post)("/admin/tagline/delete"),
|
1722
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1723
|
+
__param(0, (0, runtime_1.Body)()),
|
1724
|
+
__param(1, (0, runtime_1.Inject)())
|
1696
1725
|
], LemmyHttp.prototype, "deleteTagline", null);
|
1697
1726
|
__decorate([
|
1698
|
-
(0,
|
1699
|
-
(0,
|
1700
|
-
(0,
|
1701
|
-
(0,
|
1702
|
-
__param(0, (0,
|
1703
|
-
__param(1, (0,
|
1727
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1728
|
+
(0, runtime_1.Security)({}),
|
1729
|
+
(0, runtime_1.Get)("/admin/tagline/list"),
|
1730
|
+
(0, runtime_1.Tags)("Admin", "Tagline"),
|
1731
|
+
__param(0, (0, runtime_1.Queries)()),
|
1732
|
+
__param(1, (0, runtime_1.Inject)())
|
1704
1733
|
], LemmyHttp.prototype, "listTaglines", null);
|
1705
1734
|
__decorate([
|
1706
|
-
(0,
|
1707
|
-
(0,
|
1708
|
-
(0,
|
1709
|
-
__param(0, (0,
|
1710
|
-
__param(1, (0,
|
1735
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1736
|
+
(0, runtime_1.Post)("/community/tag"),
|
1737
|
+
(0, runtime_1.Tags)("Community"),
|
1738
|
+
__param(0, (0, runtime_1.Body)()),
|
1739
|
+
__param(1, (0, runtime_1.Inject)())
|
1711
1740
|
], LemmyHttp.prototype, "createCommunityTag", null);
|
1712
1741
|
__decorate([
|
1713
|
-
(0,
|
1714
|
-
(0,
|
1715
|
-
(0,
|
1716
|
-
__param(0, (0,
|
1717
|
-
__param(1, (0,
|
1742
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1743
|
+
(0, runtime_1.Put)("/community/tag"),
|
1744
|
+
(0, runtime_1.Tags)("Community"),
|
1745
|
+
__param(0, (0, runtime_1.Body)()),
|
1746
|
+
__param(1, (0, runtime_1.Inject)())
|
1718
1747
|
], LemmyHttp.prototype, "updateCommunityTag", null);
|
1719
1748
|
__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)())
|
1749
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1750
|
+
(0, runtime_1.Delete)("/community/tag"),
|
1751
|
+
(0, runtime_1.Tags)("Community"),
|
1752
|
+
__param(0, (0, runtime_1.Body)()),
|
1753
|
+
__param(1, (0, runtime_1.Inject)())
|
1733
1754
|
], LemmyHttp.prototype, "deleteCommunityTag", null);
|
1734
1755
|
__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)())
|
1756
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1757
|
+
(0, runtime_1.Post)("/oauth_provider"),
|
1758
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1759
|
+
__param(0, (0, runtime_1.Body)()),
|
1760
|
+
__param(1, (0, runtime_1.Inject)())
|
1747
1761
|
], LemmyHttp.prototype, "createOAuthProvider", null);
|
1748
1762
|
__decorate([
|
1749
|
-
(0,
|
1750
|
-
(0,
|
1751
|
-
(0,
|
1752
|
-
__param(0, (0,
|
1753
|
-
__param(1, (0,
|
1763
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1764
|
+
(0, runtime_1.Put)("/oauth_provider"),
|
1765
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1766
|
+
__param(0, (0, runtime_1.Body)()),
|
1767
|
+
__param(1, (0, runtime_1.Inject)())
|
1754
1768
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
1755
1769
|
__decorate([
|
1756
|
-
(0,
|
1757
|
-
(0,
|
1758
|
-
(0,
|
1759
|
-
__param(0, (0,
|
1760
|
-
__param(1, (0,
|
1770
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1771
|
+
(0, runtime_1.Post)("/oauth_provider/delete"),
|
1772
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1773
|
+
__param(0, (0, runtime_1.Body)()),
|
1774
|
+
__param(1, (0, runtime_1.Inject)())
|
1761
1775
|
], LemmyHttp.prototype, "deleteOAuthProvider", null);
|
1762
1776
|
__decorate([
|
1763
|
-
(0,
|
1764
|
-
(0,
|
1765
|
-
(0,
|
1766
|
-
__param(0, (0,
|
1767
|
-
__param(1, (0,
|
1777
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1778
|
+
(0, runtime_1.Post)("/oauth/authenticate"),
|
1779
|
+
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
1780
|
+
__param(0, (0, runtime_1.Body)()),
|
1781
|
+
__param(1, (0, runtime_1.Inject)())
|
1768
1782
|
], LemmyHttp.prototype, "authenticateWithOAuth", null);
|
1769
1783
|
__decorate([
|
1770
|
-
(0,
|
1771
|
-
(0,
|
1772
|
-
__param(0, (0,
|
1784
|
+
(0, runtime_1.Get)("/federated_instances"),
|
1785
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
1786
|
+
__param(0, (0, runtime_1.Inject)())
|
1773
1787
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
1774
1788
|
__decorate([
|
1775
|
-
(0,
|
1776
|
-
(0,
|
1777
|
-
(0,
|
1778
|
-
__param(0, (0,
|
1779
|
-
__param(1, (0,
|
1789
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1790
|
+
(0, runtime_1.Get)("/report/list"),
|
1791
|
+
(0, runtime_1.Tags)("Admin"),
|
1792
|
+
__param(0, (0, runtime_1.Queries)()),
|
1793
|
+
__param(1, (0, runtime_1.Inject)())
|
1780
1794
|
], LemmyHttp.prototype, "listReports", null);
|
1781
1795
|
__decorate([
|
1782
|
-
(0,
|
1783
|
-
(0,
|
1784
|
-
(0,
|
1785
|
-
__param(0, (0,
|
1786
|
-
__param(1, (0,
|
1796
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1797
|
+
(0, runtime_1.Post)("/account/block/instance"),
|
1798
|
+
(0, runtime_1.Tags)("Account"),
|
1799
|
+
__param(0, (0, runtime_1.Body)()),
|
1800
|
+
__param(1, (0, runtime_1.Inject)())
|
1787
1801
|
], LemmyHttp.prototype, "userBlockInstance", null);
|
1788
1802
|
__decorate([
|
1789
|
-
(0,
|
1790
|
-
(0,
|
1791
|
-
(0,
|
1792
|
-
__param(0, (0,
|
1793
|
-
__param(1, (0,
|
1803
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1804
|
+
(0, runtime_1.Post)("/admin/instance/block"),
|
1805
|
+
(0, runtime_1.Tags)("Admin"),
|
1806
|
+
__param(0, (0, runtime_1.Body)()),
|
1807
|
+
__param(1, (0, runtime_1.Inject)())
|
1794
1808
|
], LemmyHttp.prototype, "adminBlockInstance", null);
|
1795
1809
|
__decorate([
|
1796
|
-
(0,
|
1797
|
-
(0,
|
1798
|
-
(0,
|
1799
|
-
__param(0, (0,
|
1800
|
-
__param(1, (0,
|
1810
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1811
|
+
(0, runtime_1.Post)("/admin/instance/allow"),
|
1812
|
+
(0, runtime_1.Tags)("Admin"),
|
1813
|
+
__param(0, (0, runtime_1.Body)()),
|
1814
|
+
__param(1, (0, runtime_1.Inject)())
|
1801
1815
|
], LemmyHttp.prototype, "adminAllowInstance", null);
|
1802
1816
|
__decorate([
|
1803
|
-
(0,
|
1804
|
-
(0,
|
1805
|
-
(0,
|
1806
|
-
__param(0, (0,
|
1807
|
-
__param(1, (0,
|
1817
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1818
|
+
(0, runtime_1.Post)("/account/avatar"),
|
1819
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1820
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1821
|
+
__param(1, (0, runtime_1.Inject)())
|
1808
1822
|
], LemmyHttp.prototype, "uploadUserAvatar", null);
|
1809
1823
|
__decorate([
|
1810
|
-
(0,
|
1811
|
-
(0,
|
1812
|
-
(0,
|
1813
|
-
__param(0, (0,
|
1824
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1825
|
+
(0, runtime_1.Delete)("/account/avatar"),
|
1826
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1827
|
+
__param(0, (0, runtime_1.Inject)())
|
1814
1828
|
], LemmyHttp.prototype, "deleteUserAvatar", null);
|
1815
1829
|
__decorate([
|
1816
|
-
(0,
|
1817
|
-
(0,
|
1818
|
-
(0,
|
1819
|
-
__param(0, (0,
|
1820
|
-
__param(1, (0,
|
1830
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1831
|
+
(0, runtime_1.Post)("/account/banner"),
|
1832
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1833
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1834
|
+
__param(1, (0, runtime_1.Inject)())
|
1821
1835
|
], LemmyHttp.prototype, "uploadUserBanner", null);
|
1822
1836
|
__decorate([
|
1823
|
-
(0,
|
1824
|
-
(0,
|
1825
|
-
(0,
|
1826
|
-
__param(0, (0,
|
1837
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1838
|
+
(0, runtime_1.Delete)("/account/banner"),
|
1839
|
+
(0, runtime_1.Tags)("Account", "Media"),
|
1840
|
+
__param(0, (0, runtime_1.Inject)())
|
1827
1841
|
], LemmyHttp.prototype, "deleteUserBanner", null);
|
1828
1842
|
__decorate([
|
1829
|
-
(0,
|
1830
|
-
(0,
|
1831
|
-
(0,
|
1832
|
-
__param(0, (0,
|
1833
|
-
__param(1, (0,
|
1843
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1844
|
+
(0, runtime_1.Post)("/community/icon"),
|
1845
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1846
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1847
|
+
__param(1, (0, runtime_1.Inject)())
|
1834
1848
|
], LemmyHttp.prototype, "uploadCommunityIcon", null);
|
1835
1849
|
__decorate([
|
1836
|
-
(0,
|
1837
|
-
(0,
|
1838
|
-
(0,
|
1839
|
-
__param(0, (0,
|
1850
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1851
|
+
(0, runtime_1.Delete)("/community/icon"),
|
1852
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1853
|
+
__param(0, (0, runtime_1.Inject)())
|
1840
1854
|
], LemmyHttp.prototype, "deleteCommunityIcon", null);
|
1841
1855
|
__decorate([
|
1842
|
-
(0,
|
1843
|
-
(0,
|
1844
|
-
(0,
|
1845
|
-
__param(0, (0,
|
1846
|
-
__param(1, (0,
|
1856
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1857
|
+
(0, runtime_1.Post)("/community/banner"),
|
1858
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1859
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1860
|
+
__param(1, (0, runtime_1.Inject)())
|
1847
1861
|
], LemmyHttp.prototype, "uploadCommunityBanner", null);
|
1848
1862
|
__decorate([
|
1849
|
-
(0,
|
1850
|
-
(0,
|
1851
|
-
(0,
|
1852
|
-
__param(0, (0,
|
1863
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1864
|
+
(0, runtime_1.Delete)("/community/banner"),
|
1865
|
+
(0, runtime_1.Tags)("Community", "Media"),
|
1866
|
+
__param(0, (0, runtime_1.Inject)())
|
1853
1867
|
], LemmyHttp.prototype, "deleteCommunityBanner", null);
|
1854
1868
|
__decorate([
|
1855
|
-
(0,
|
1856
|
-
(0,
|
1857
|
-
(0,
|
1858
|
-
__param(0, (0,
|
1859
|
-
__param(1, (0,
|
1869
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1870
|
+
(0, runtime_1.Post)("/site/icon"),
|
1871
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1872
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1873
|
+
__param(1, (0, runtime_1.Inject)())
|
1860
1874
|
], LemmyHttp.prototype, "uploadSiteIcon", null);
|
1861
1875
|
__decorate([
|
1862
|
-
(0,
|
1863
|
-
(0,
|
1864
|
-
(0,
|
1865
|
-
__param(0, (0,
|
1876
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1877
|
+
(0, runtime_1.Delete)("/site/icon"),
|
1878
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1879
|
+
__param(0, (0, runtime_1.Inject)())
|
1866
1880
|
], LemmyHttp.prototype, "deleteSiteIcon", null);
|
1867
1881
|
__decorate([
|
1868
|
-
(0,
|
1869
|
-
(0,
|
1870
|
-
(0,
|
1871
|
-
__param(0, (0,
|
1872
|
-
__param(1, (0,
|
1882
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1883
|
+
(0, runtime_1.Post)("/site/banner"),
|
1884
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1885
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1886
|
+
__param(1, (0, runtime_1.Inject)())
|
1873
1887
|
], LemmyHttp.prototype, "uploadSiteBanner", null);
|
1874
1888
|
__decorate([
|
1875
|
-
(0,
|
1876
|
-
(0,
|
1877
|
-
(0,
|
1878
|
-
__param(0, (0,
|
1889
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1890
|
+
(0, runtime_1.Delete)("/site/banner"),
|
1891
|
+
(0, runtime_1.Tags)("Site", "Media"),
|
1892
|
+
__param(0, (0, runtime_1.Inject)())
|
1879
1893
|
], LemmyHttp.prototype, "deleteSiteBanner", null);
|
1880
1894
|
__decorate([
|
1881
|
-
(0,
|
1882
|
-
(0,
|
1883
|
-
(0,
|
1884
|
-
__param(0, (0,
|
1885
|
-
__param(1, (0,
|
1895
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1896
|
+
(0, runtime_1.Post)("/image"),
|
1897
|
+
(0, runtime_1.Tags)("Media"),
|
1898
|
+
__param(0, (0, runtime_1.UploadedFile)()),
|
1899
|
+
__param(1, (0, runtime_1.Inject)())
|
1886
1900
|
], LemmyHttp.prototype, "uploadImage", null);
|
1887
1901
|
__decorate([
|
1888
|
-
(0,
|
1889
|
-
(0,
|
1890
|
-
(0,
|
1891
|
-
__param(0, (0, tsoa_1.Queries)()),
|
1892
|
-
__param(1, (0, tsoa_1.Inject)())
|
1893
|
-
], LemmyHttp.prototype, "deleteImage", null);
|
1894
|
-
__decorate([
|
1895
|
-
(0, tsoa_1.Get)("image/health"),
|
1896
|
-
(0, tsoa_1.Tags)("Media"),
|
1897
|
-
__param(0, (0, tsoa_1.Inject)())
|
1902
|
+
(0, runtime_1.Get)("/image/health"),
|
1903
|
+
(0, runtime_1.Tags)("Media"),
|
1904
|
+
__param(0, (0, runtime_1.Inject)())
|
1898
1905
|
], LemmyHttp.prototype, "imageHealth", null);
|
1906
|
+
__decorate([
|
1907
|
+
__param(0, (0, runtime_1.Inject)())
|
1908
|
+
], LemmyHttp.prototype, "donation_dialog_shown", null);
|
1899
1909
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
1900
|
-
(0,
|
1910
|
+
(0, runtime_1.Route)("api/v4")
|
1901
1911
|
], LemmyHttp);
|
1902
1912
|
function encodeGetParams(p) {
|
1903
1913
|
return Object.entries(p)
|