lemmy-js-client 1.0.0-action-structs.1 → 1.0.0-media-fixes.0

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