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