lemmy-js-client 1.0.0-media-fixes.1 → 1.0.0-remove-page-limit.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +6 -10
- package/dist/http.js +139 -152
- package/dist/index.d.ts +0 -1
- package/dist/types/BannedPersonsResponse.d.ts +1 -0
- package/dist/types/GetComments.d.ts +3 -1
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetPosts.d.ts +3 -9
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/LemmyErrorType.d.ts +82 -18
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/SaveUserSettings.d.ts +1 -0
- package/dist/types/Search.d.ts +1 -0
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/PostPaginationCursor.js +0 -3
package/dist/http.js
CHANGED
@@ -57,25 +57,25 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
57
57
|
/**
|
58
58
|
* @summary Gets the site, and your user data.
|
59
59
|
*/
|
60
|
-
|
60
|
+
getSite(options) {
|
61
61
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
|
62
62
|
}
|
63
63
|
/**
|
64
64
|
* @summary Create your site.
|
65
65
|
*/
|
66
|
-
|
66
|
+
createSite(form, options) {
|
67
67
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
|
68
68
|
}
|
69
69
|
/**
|
70
70
|
* @summary Edit your site.
|
71
71
|
*/
|
72
|
-
|
72
|
+
editSite(form, options) {
|
73
73
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
|
74
74
|
}
|
75
75
|
/**
|
76
76
|
* @summary Leave the Site admins.
|
77
77
|
*/
|
78
|
-
|
78
|
+
leaveAdmin(options) {
|
79
79
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
|
80
80
|
}
|
81
81
|
/**
|
@@ -84,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
84
84
|
* Generate a TOTP / two-factor secret.
|
85
85
|
* Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
|
86
86
|
*/
|
87
|
-
|
87
|
+
generateTotpSecret(options) {
|
88
88
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
|
89
89
|
}
|
90
90
|
/**
|
91
91
|
* @summary Get data of current user.
|
92
92
|
*/
|
93
|
-
|
93
|
+
getMyUser(options) {
|
94
94
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
|
95
95
|
}
|
96
96
|
/**
|
@@ -99,50 +99,38 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
99
99
|
* Export a backup of your user settings, including your saved content,
|
100
100
|
* followed communities, and blocks.
|
101
101
|
*/
|
102
|
-
|
102
|
+
exportSettings(options) {
|
103
103
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
|
104
104
|
}
|
105
105
|
/**
|
106
106
|
* @summary Import a backup of your user settings.
|
107
107
|
*/
|
108
|
-
|
108
|
+
importSettings(form, options) {
|
109
109
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
|
110
110
|
}
|
111
111
|
/**
|
112
112
|
* @summary List login tokens for your user
|
113
113
|
*/
|
114
|
-
|
114
|
+
listLogins(options) {
|
115
115
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
|
116
116
|
}
|
117
117
|
/**
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
119
119
|
*/
|
120
|
-
|
120
|
+
validateAuth(options) {
|
121
121
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
|
122
122
|
}
|
123
123
|
/**
|
124
|
-
* @summary List all the media for your
|
124
|
+
* @summary List all the media for your user
|
125
125
|
*/
|
126
|
-
|
127
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
128
|
-
}
|
129
|
-
/**
|
130
|
-
* @summary Delete media for your account.
|
131
|
-
*/
|
132
|
-
async deleteMedia(form, options) {
|
133
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
|
134
|
-
}
|
135
|
-
/**
|
136
|
-
* @summary Delete any media. (Admin only)
|
137
|
-
*/
|
138
|
-
async deleteMediaAdmin(form, options) {
|
139
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
126
|
+
listMedia(form = {}, options) {
|
127
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
|
140
128
|
}
|
141
129
|
/**
|
142
130
|
* @summary List all the media known to your instance.
|
143
131
|
*/
|
144
|
-
|
145
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/
|
132
|
+
listAllMedia(form = {}, options) {
|
133
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
|
146
134
|
}
|
147
135
|
/**
|
148
136
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
@@ -151,583 +139,583 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
151
139
|
*
|
152
140
|
* Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
|
153
141
|
*/
|
154
|
-
|
142
|
+
updateTotp(form, options) {
|
155
143
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
|
156
144
|
}
|
157
145
|
/**
|
158
146
|
* @summary Get the modlog.
|
159
147
|
*/
|
160
|
-
|
148
|
+
getModlog(form = {}, options) {
|
161
149
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
162
150
|
}
|
163
151
|
/**
|
164
152
|
* @summary Search lemmy.
|
165
153
|
*/
|
166
|
-
|
154
|
+
search(form, options) {
|
167
155
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
168
156
|
}
|
169
157
|
/**
|
170
158
|
* @summary Fetch a non-local / federated object.
|
171
159
|
*/
|
172
|
-
|
160
|
+
resolveObject(form, options) {
|
173
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
|
174
162
|
}
|
175
163
|
/**
|
176
164
|
* @summary Create a new community.
|
177
165
|
*/
|
178
|
-
|
166
|
+
createCommunity(form, options) {
|
179
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
|
180
168
|
}
|
181
169
|
/**
|
182
170
|
* @summary Get / fetch a community.
|
183
171
|
*/
|
184
|
-
|
172
|
+
getCommunity(form = {}, options) {
|
185
173
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
|
186
174
|
}
|
187
175
|
/**
|
188
176
|
* @summary Edit a community.
|
189
177
|
*/
|
190
|
-
|
178
|
+
editCommunity(form, options) {
|
191
179
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
|
192
180
|
}
|
193
181
|
/**
|
194
182
|
* @summary List communities, with various filters.
|
195
183
|
*/
|
196
|
-
|
184
|
+
listCommunities(form = {}, options) {
|
197
185
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
|
198
186
|
}
|
199
187
|
/**
|
200
188
|
* @summary Follow / subscribe to a community.
|
201
189
|
*/
|
202
|
-
|
190
|
+
followCommunity(form, options) {
|
203
191
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
|
204
192
|
}
|
205
193
|
/**
|
206
194
|
* @summary Get a community's pending follows count.
|
207
195
|
*/
|
208
|
-
|
196
|
+
getCommunityPendingFollowsCount(form, options) {
|
209
197
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
|
210
198
|
}
|
211
199
|
/**
|
212
200
|
* @summary Get a community's pending followers.
|
213
201
|
*/
|
214
|
-
|
202
|
+
listCommunityPendingFollows(form, options) {
|
215
203
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
|
216
204
|
}
|
217
205
|
/**
|
218
206
|
* @summary Approve a community pending follow request.
|
219
207
|
*/
|
220
|
-
|
208
|
+
approveCommunityPendingFollow(form, options) {
|
221
209
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
|
222
210
|
}
|
223
211
|
/**
|
224
212
|
* @summary Block a community.
|
225
213
|
*/
|
226
|
-
|
214
|
+
blockCommunity(form, options) {
|
227
215
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
|
228
216
|
}
|
229
217
|
/**
|
230
218
|
* @summary Delete a community.
|
231
219
|
*/
|
232
|
-
|
220
|
+
deleteCommunity(form, options) {
|
233
221
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
|
234
222
|
}
|
235
223
|
/**
|
236
224
|
* @summary Hide a community from public / "All" view. Admins only.
|
237
225
|
*/
|
238
|
-
|
226
|
+
hideCommunity(form, options) {
|
239
227
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
|
240
228
|
}
|
241
229
|
/**
|
242
230
|
* @summary A moderator remove for a community.
|
243
231
|
*/
|
244
|
-
|
232
|
+
removeCommunity(form, options) {
|
245
233
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
|
246
234
|
}
|
247
235
|
/**
|
248
236
|
* @summary Transfer your community to an existing moderator.
|
249
237
|
*/
|
250
|
-
|
238
|
+
transferCommunity(form, options) {
|
251
239
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
|
252
240
|
}
|
253
241
|
/**
|
254
242
|
* @summary Ban a user from a community.
|
255
243
|
*/
|
256
|
-
|
244
|
+
banFromCommunity(form, options) {
|
257
245
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
|
258
246
|
}
|
259
247
|
/**
|
260
248
|
* @summary Add a moderator to your community.
|
261
249
|
*/
|
262
|
-
|
250
|
+
addModToCommunity(form, options) {
|
263
251
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
|
264
252
|
}
|
265
253
|
/**
|
266
254
|
* @summary Get a random community.
|
267
255
|
*/
|
268
|
-
|
256
|
+
getRandomCommunity(form, options) {
|
269
257
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
|
270
258
|
}
|
271
259
|
/**
|
272
260
|
* @summary Create a post.
|
273
261
|
*/
|
274
|
-
|
262
|
+
createPost(form, options) {
|
275
263
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
|
276
264
|
}
|
277
265
|
/**
|
278
266
|
* @summary Get / fetch a post.
|
279
267
|
*/
|
280
|
-
|
268
|
+
getPost(form = {}, options) {
|
281
269
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
|
282
270
|
}
|
283
271
|
/**
|
284
272
|
* @summary Edit a post.
|
285
273
|
*/
|
286
|
-
|
274
|
+
editPost(form, options) {
|
287
275
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
288
276
|
}
|
289
277
|
/**
|
290
278
|
* @summary Delete a post.
|
291
279
|
*/
|
292
|
-
|
280
|
+
deletePost(form, options) {
|
293
281
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
|
294
282
|
}
|
295
283
|
/**
|
296
284
|
* @summary A moderator remove for a post.
|
297
285
|
*/
|
298
|
-
|
286
|
+
removePost(form, options) {
|
299
287
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
|
300
288
|
}
|
301
289
|
/**
|
302
290
|
* @summary Mark a post as read.
|
303
291
|
*/
|
304
|
-
|
292
|
+
markPostAsRead(form, options) {
|
305
293
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
|
306
294
|
}
|
307
295
|
/**
|
308
296
|
* @summary Mark multiple posts as read.
|
309
297
|
*/
|
310
|
-
|
298
|
+
markManyPostAsRead(form, options) {
|
311
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
|
312
300
|
}
|
313
301
|
/**
|
314
302
|
* @summary Hide a post from list views.
|
315
303
|
*/
|
316
|
-
|
304
|
+
hidePost(form, options) {
|
317
305
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
|
318
306
|
}
|
319
307
|
/**
|
320
308
|
* @summary A moderator can lock a post ( IE disable new comments ).
|
321
309
|
*/
|
322
|
-
|
310
|
+
lockPost(form, options) {
|
323
311
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
|
324
312
|
}
|
325
313
|
/**
|
326
314
|
* @summary A moderator can feature a community post ( IE stick it to the top of a community ).
|
327
315
|
*/
|
328
|
-
|
316
|
+
featurePost(form, options) {
|
329
317
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
|
330
318
|
}
|
331
319
|
/**
|
332
320
|
* @summary Get / fetch posts, with various filters.
|
333
321
|
*/
|
334
|
-
|
322
|
+
getPosts(form = {}, options) {
|
335
323
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
|
336
324
|
}
|
337
325
|
/**
|
338
326
|
* @summary Like / vote on a post.
|
339
327
|
*/
|
340
|
-
|
328
|
+
likePost(form, options) {
|
341
329
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
|
342
330
|
}
|
343
331
|
/**
|
344
332
|
* @summary List a post's likes. Admin-only.
|
345
333
|
*/
|
346
|
-
|
334
|
+
listPostLikes(form, options) {
|
347
335
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
|
348
336
|
}
|
349
337
|
/**
|
350
338
|
* @summary Save a post.
|
351
339
|
*/
|
352
|
-
|
340
|
+
savePost(form, options) {
|
353
341
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
|
354
342
|
}
|
355
343
|
/**
|
356
344
|
* @summary Report a post.
|
357
345
|
*/
|
358
|
-
|
346
|
+
createPostReport(form, options) {
|
359
347
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
|
360
348
|
}
|
361
349
|
/**
|
362
350
|
* @summary Resolve a post report. Only a mod can do this.
|
363
351
|
*/
|
364
|
-
|
352
|
+
resolvePostReport(form, options) {
|
365
353
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
|
366
354
|
}
|
367
355
|
/**
|
368
356
|
* @summary Fetch metadata for any given site.
|
369
357
|
*/
|
370
|
-
|
358
|
+
getSiteMetadata(form, options) {
|
371
359
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
|
372
360
|
}
|
373
361
|
/**
|
374
362
|
* @summary Create a comment.
|
375
363
|
*/
|
376
|
-
|
364
|
+
createComment(form, options) {
|
377
365
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
|
378
366
|
}
|
379
367
|
/**
|
380
368
|
* @summary Edit a comment.
|
381
369
|
*/
|
382
|
-
|
370
|
+
editComment(form, options) {
|
383
371
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
|
384
372
|
}
|
385
373
|
/**
|
386
374
|
* @summary Delete a comment.
|
387
375
|
*/
|
388
|
-
|
376
|
+
deleteComment(form, options) {
|
389
377
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
|
390
378
|
}
|
391
379
|
/**
|
392
380
|
* @summary A moderator remove for a comment.
|
393
381
|
*/
|
394
|
-
|
382
|
+
removeComment(form, options) {
|
395
383
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
396
384
|
}
|
397
385
|
/**
|
398
386
|
* @summary Mark a comment as read.
|
399
387
|
*/
|
400
|
-
|
388
|
+
markCommentReplyAsRead(form, options) {
|
401
389
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
402
390
|
}
|
403
391
|
/**
|
404
392
|
* @summary Like / vote on a comment.
|
405
393
|
*/
|
406
|
-
|
394
|
+
likeComment(form, options) {
|
407
395
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
|
408
396
|
}
|
409
397
|
/**
|
410
398
|
* @summary List a comment's likes. Admin-only.
|
411
399
|
*/
|
412
|
-
|
400
|
+
listCommentLikes(form, options) {
|
413
401
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
|
414
402
|
}
|
415
403
|
/**
|
416
404
|
* @summary Save a comment.
|
417
405
|
*/
|
418
|
-
|
406
|
+
saveComment(form, options) {
|
419
407
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
|
420
408
|
}
|
421
409
|
/**
|
422
410
|
* @summary Distinguishes a comment (speak as moderator)
|
423
411
|
*/
|
424
|
-
|
412
|
+
distinguishComment(form, options) {
|
425
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
|
426
414
|
}
|
427
415
|
/**
|
428
416
|
* @summary Get / fetch comments.
|
429
417
|
*/
|
430
|
-
|
418
|
+
getComments(form = {}, options) {
|
431
419
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
|
432
420
|
}
|
433
421
|
/**
|
434
422
|
* @summary Get / fetch comments, but without the post or community.
|
435
423
|
*/
|
436
|
-
|
424
|
+
getCommentsSlim(form = {}, options) {
|
437
425
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
|
438
426
|
}
|
439
427
|
/**
|
440
428
|
* @summary Get / fetch comment.
|
441
429
|
*/
|
442
|
-
|
430
|
+
getComment(form, options) {
|
443
431
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
|
444
432
|
}
|
445
433
|
/**
|
446
434
|
* @summary Report a comment.
|
447
435
|
*/
|
448
|
-
|
436
|
+
createCommentReport(form, options) {
|
449
437
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
|
450
438
|
}
|
451
439
|
/**
|
452
440
|
* @summary Resolve a comment report. Only a mod can do this.
|
453
441
|
*/
|
454
|
-
|
442
|
+
resolveCommentReport(form, options) {
|
455
443
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
|
456
444
|
}
|
457
445
|
/**
|
458
446
|
* @summary Create a private message.
|
459
447
|
*/
|
460
|
-
|
448
|
+
createPrivateMessage(form, options) {
|
461
449
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
|
462
450
|
}
|
463
451
|
/**
|
464
452
|
* @summary Edit a private message.
|
465
453
|
*/
|
466
|
-
|
454
|
+
editPrivateMessage(form, options) {
|
467
455
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
|
468
456
|
}
|
469
457
|
/**
|
470
458
|
* @summary Delete a private message.
|
471
459
|
*/
|
472
|
-
|
460
|
+
deletePrivateMessage(form, options) {
|
473
461
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
|
474
462
|
}
|
475
463
|
/**
|
476
464
|
* @summary Mark a private message as read.
|
477
465
|
*/
|
478
|
-
|
466
|
+
markPrivateMessageAsRead(form, options) {
|
479
467
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
|
480
468
|
}
|
481
469
|
/**
|
482
470
|
* @summary Create a report for a private message.
|
483
471
|
*/
|
484
|
-
|
472
|
+
createPrivateMessageReport(form, options) {
|
485
473
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
|
486
474
|
}
|
487
475
|
/**
|
488
476
|
* @summary Resolve a report for a private message.
|
489
477
|
*/
|
490
|
-
|
478
|
+
resolvePrivateMessageReport(form, options) {
|
491
479
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
|
492
480
|
}
|
493
481
|
/**
|
494
482
|
* @summary Register a new user.
|
495
483
|
*/
|
496
|
-
|
484
|
+
register(form, options) {
|
497
485
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
|
498
486
|
}
|
499
487
|
/**
|
500
488
|
* @summary Log into lemmy.
|
501
489
|
*/
|
502
|
-
|
490
|
+
login(form, options) {
|
503
491
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
|
504
492
|
}
|
505
493
|
/**
|
506
494
|
* @summary Invalidate the currently used auth token.
|
507
495
|
*/
|
508
|
-
|
496
|
+
logout(options) {
|
509
497
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
|
510
498
|
}
|
511
499
|
/**
|
512
500
|
* @summary Get the details for a person.
|
513
501
|
*/
|
514
|
-
|
502
|
+
getPersonDetails(form = {}, options) {
|
515
503
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
|
516
504
|
}
|
517
505
|
/**
|
518
506
|
* @summary List the content for a person.
|
519
507
|
*/
|
520
|
-
|
508
|
+
listPersonContent(form = {}, options) {
|
521
509
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
522
510
|
}
|
523
511
|
/**
|
524
512
|
* @summary Mark a person mention as read.
|
525
513
|
*/
|
526
|
-
|
514
|
+
markCommentMentionAsRead(form, options) {
|
527
515
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
528
516
|
}
|
529
517
|
/**
|
530
518
|
* @summary Mark a person post body mention as read.
|
531
519
|
*/
|
532
|
-
|
520
|
+
markPostMentionAsRead(form, options) {
|
533
521
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
534
522
|
}
|
535
523
|
/**
|
536
524
|
* @summary Ban a person from your site.
|
537
525
|
*/
|
538
|
-
|
526
|
+
banPerson(form, options) {
|
539
527
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
|
540
528
|
}
|
541
529
|
/**
|
542
530
|
* @summary Get a list of banned users.
|
543
531
|
*/
|
544
|
-
|
532
|
+
listBannedPersons(form = {}, options) {
|
545
533
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", form, options);
|
546
534
|
}
|
547
535
|
/**
|
548
536
|
* @summary Block a person.
|
549
537
|
*/
|
550
|
-
|
538
|
+
blockPerson(form, options) {
|
551
539
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
|
552
540
|
}
|
553
541
|
/**
|
554
542
|
* @summary Fetch a Captcha.
|
555
543
|
*/
|
556
|
-
|
544
|
+
getCaptcha(options) {
|
557
545
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
|
558
546
|
}
|
559
547
|
/**
|
560
548
|
* @summary Delete your account.
|
561
549
|
*/
|
562
|
-
|
550
|
+
deleteAccount(form, options) {
|
563
551
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
|
564
552
|
}
|
565
553
|
/**
|
566
554
|
* @summary Reset your password.
|
567
555
|
*/
|
568
|
-
|
556
|
+
passwordReset(form, options) {
|
569
557
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
|
570
558
|
}
|
571
559
|
/**
|
572
560
|
* @summary Change your password from an email / token based reset.
|
573
561
|
*/
|
574
|
-
|
562
|
+
passwordChangeAfterReset(form, options) {
|
575
563
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
576
564
|
}
|
577
565
|
/**
|
578
566
|
* @summary Mark all replies as read.
|
579
567
|
*/
|
580
|
-
|
568
|
+
markAllNotificationsAsRead(options) {
|
581
569
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
582
570
|
}
|
583
571
|
/**
|
584
572
|
* @summary Save your user settings.
|
585
573
|
*/
|
586
|
-
|
574
|
+
saveUserSettings(form, options) {
|
587
575
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
|
588
576
|
}
|
589
577
|
/**
|
590
578
|
* @summary Change your user password.
|
591
579
|
*/
|
592
|
-
|
580
|
+
changePassword(form, options) {
|
593
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
|
594
582
|
}
|
595
583
|
/**
|
596
584
|
* @summary Get counts for your reports.
|
597
585
|
*/
|
598
|
-
|
586
|
+
getReportCount(form, options) {
|
599
587
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
|
600
588
|
}
|
601
589
|
/**
|
602
590
|
* @summary Get your unread counts.
|
603
591
|
*/
|
604
|
-
|
592
|
+
getUnreadCount(options) {
|
605
593
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
|
606
594
|
}
|
607
595
|
/**
|
608
596
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
609
597
|
*/
|
610
|
-
|
598
|
+
listInbox(form, options) {
|
611
599
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
|
612
600
|
}
|
613
601
|
/**
|
614
602
|
* @summary Verify your email
|
615
603
|
*/
|
616
|
-
|
604
|
+
verifyEmail(form, options) {
|
617
605
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
618
606
|
}
|
619
607
|
/**
|
620
608
|
* @summary Resend a verification email.
|
621
609
|
*/
|
622
|
-
|
610
|
+
resendVerificationEmail(form, options) {
|
623
611
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
624
612
|
}
|
625
613
|
/**
|
626
614
|
* @summary List your saved content.
|
627
615
|
*/
|
628
|
-
|
616
|
+
listPersonSaved(form, options) {
|
629
617
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
|
630
618
|
}
|
631
619
|
/**
|
632
620
|
* @summary Add an admin to your site.
|
633
621
|
*/
|
634
|
-
|
622
|
+
addAdmin(form, options) {
|
635
623
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
|
636
624
|
}
|
637
625
|
/**
|
638
626
|
* @summary Get the unread registration applications count.
|
639
627
|
*/
|
640
|
-
|
628
|
+
getUnreadRegistrationApplicationCount(options) {
|
641
629
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
|
642
630
|
}
|
643
631
|
/**
|
644
632
|
* @summary List the registration applications.
|
645
633
|
*/
|
646
|
-
|
634
|
+
listRegistrationApplications(form, options) {
|
647
635
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
|
648
636
|
}
|
649
637
|
/**
|
650
638
|
* @summary Approve a registration application
|
651
639
|
*/
|
652
|
-
|
640
|
+
approveRegistrationApplication(form, options) {
|
653
641
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
|
654
642
|
}
|
655
643
|
/**
|
656
644
|
* @summary Get the application a user submitted when they first registered their account
|
657
645
|
*/
|
658
|
-
|
646
|
+
getRegistrationApplication(form, options) {
|
659
647
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
|
660
648
|
}
|
661
649
|
/**
|
662
650
|
* @summary Purge / Delete a person from the database.
|
663
651
|
*/
|
664
|
-
|
652
|
+
purgePerson(form, options) {
|
665
653
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
|
666
654
|
}
|
667
655
|
/**
|
668
656
|
* @summary Purge / Delete a community from the database.
|
669
657
|
*/
|
670
|
-
|
658
|
+
purgeCommunity(form, options) {
|
671
659
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
|
672
660
|
}
|
673
661
|
/**
|
674
662
|
* @summary Purge / Delete a post from the database.
|
675
663
|
*/
|
676
|
-
|
664
|
+
purgePost(form, options) {
|
677
665
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
|
678
666
|
}
|
679
667
|
/**
|
680
668
|
* @summary Purge / Delete a comment from the database.
|
681
669
|
*/
|
682
|
-
|
670
|
+
purgeComment(form, options) {
|
683
671
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
|
684
672
|
}
|
685
673
|
/**
|
686
674
|
* @summary Create a new custom emoji.
|
687
675
|
*/
|
688
|
-
|
676
|
+
createCustomEmoji(form, options) {
|
689
677
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
|
690
678
|
}
|
691
679
|
/**
|
692
680
|
* @summary Edit an existing custom emoji.
|
693
681
|
*/
|
694
|
-
|
682
|
+
editCustomEmoji(form, options) {
|
695
683
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
|
696
684
|
}
|
697
685
|
/**
|
698
686
|
* @summary Delete a custom emoji.
|
699
687
|
*/
|
700
|
-
|
688
|
+
deleteCustomEmoji(form, options) {
|
701
689
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
|
702
690
|
}
|
703
691
|
/**
|
704
692
|
* @summary List custom emojis
|
705
693
|
*/
|
706
|
-
|
694
|
+
listCustomEmojis(form, options) {
|
707
695
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
|
708
696
|
}
|
709
697
|
/**
|
710
698
|
* @summary Create a new tagline
|
711
699
|
*/
|
712
|
-
|
700
|
+
createTagline(form, options) {
|
713
701
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
|
714
702
|
}
|
715
703
|
/**
|
716
704
|
* @summary Edit an existing tagline
|
717
705
|
*/
|
718
|
-
|
706
|
+
editTagline(form, options) {
|
719
707
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
|
720
708
|
}
|
721
709
|
/**
|
722
710
|
* @summary Delete a tagline
|
723
711
|
*/
|
724
|
-
|
712
|
+
deleteTagline(form, options) {
|
725
713
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
|
726
714
|
}
|
727
715
|
/**
|
728
716
|
* @summary List taglines.
|
729
717
|
*/
|
730
|
-
|
718
|
+
listTaglines(form, options) {
|
731
719
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
|
732
720
|
}
|
733
721
|
/**
|
@@ -751,55 +739,55 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
751
739
|
/**
|
752
740
|
* @summary Create a new oauth provider method
|
753
741
|
*/
|
754
|
-
|
742
|
+
createOAuthProvider(form, options) {
|
755
743
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
|
756
744
|
}
|
757
745
|
/**
|
758
746
|
* @summary Edit an existing oauth provider method
|
759
747
|
*/
|
760
|
-
|
748
|
+
editOAuthProvider(form, options) {
|
761
749
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
|
762
750
|
}
|
763
751
|
/**
|
764
752
|
* @summary Delete an oauth provider method
|
765
753
|
*/
|
766
|
-
|
754
|
+
deleteOAuthProvider(form, options) {
|
767
755
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
|
768
756
|
}
|
769
757
|
/**
|
770
758
|
* @summary Authenticate with OAuth
|
771
759
|
*/
|
772
|
-
|
760
|
+
authenticateWithOAuth(form, options) {
|
773
761
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
|
774
762
|
}
|
775
763
|
/**
|
776
764
|
* @summary Fetch federated instances.
|
777
765
|
*/
|
778
|
-
|
766
|
+
getFederatedInstances(options) {
|
779
767
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
|
780
768
|
}
|
781
769
|
/**
|
782
770
|
* @summary List user reports.
|
783
771
|
*/
|
784
|
-
|
772
|
+
listReports(form, options) {
|
785
773
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
|
786
774
|
}
|
787
775
|
/**
|
788
776
|
* @summary Block an instance as user.
|
789
777
|
*/
|
790
|
-
|
778
|
+
userBlockInstance(form, options) {
|
791
779
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
|
792
780
|
}
|
793
781
|
/**
|
794
782
|
* @summary Globally block an instance as admin.
|
795
783
|
*/
|
796
|
-
|
784
|
+
adminBlockInstance(form, options) {
|
797
785
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
|
798
786
|
}
|
799
787
|
/**
|
800
788
|
* @summary Globally allow an instance as admin.
|
801
789
|
*/
|
802
|
-
|
790
|
+
adminAllowInstance(form, options) {
|
803
791
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
|
804
792
|
}
|
805
793
|
/**
|
@@ -880,6 +868,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
880
868
|
async uploadImage(image, options) {
|
881
869
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
|
882
870
|
}
|
871
|
+
/**
|
872
|
+
* @summary Delete a pictrs image
|
873
|
+
*/
|
874
|
+
async deleteImage(form, options) {
|
875
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
|
876
|
+
}
|
883
877
|
/**
|
884
878
|
* @summary Health check for image functionality
|
885
879
|
*/
|
@@ -1020,32 +1014,18 @@ __decorate([
|
|
1020
1014
|
], LemmyHttp.prototype, "validateAuth", null);
|
1021
1015
|
__decorate([
|
1022
1016
|
(0, runtime_1.Security)("bearerAuth"),
|
1023
|
-
(0, runtime_1.Get)("/account/
|
1017
|
+
(0, runtime_1.Get)("/account/list_media"),
|
1024
1018
|
(0, runtime_1.Tags)("Account", "Media"),
|
1025
1019
|
__param(0, (0, runtime_1.Queries)()),
|
1026
1020
|
__param(1, (0, runtime_1.Inject)())
|
1027
1021
|
], LemmyHttp.prototype, "listMedia", null);
|
1028
1022
|
__decorate([
|
1029
1023
|
(0, runtime_1.Security)("bearerAuth"),
|
1030
|
-
(0, runtime_1.
|
1031
|
-
(0, runtime_1.Tags)("Account", "Media"),
|
1032
|
-
__param(0, (0, runtime_1.Queries)()),
|
1033
|
-
__param(1, (0, runtime_1.Inject)())
|
1034
|
-
], LemmyHttp.prototype, "deleteMedia", null);
|
1035
|
-
__decorate([
|
1036
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1037
|
-
(0, runtime_1.Delete)("/image"),
|
1038
|
-
(0, runtime_1.Tags)("Admin", "Media"),
|
1039
|
-
__param(0, (0, runtime_1.Queries)()),
|
1040
|
-
__param(1, (0, runtime_1.Inject)())
|
1041
|
-
], LemmyHttp.prototype, "deleteMediaAdmin", null);
|
1042
|
-
__decorate([
|
1043
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1044
|
-
(0, runtime_1.Get)("/image/list"),
|
1024
|
+
(0, runtime_1.Get)("/admin/list_all_media"),
|
1045
1025
|
(0, runtime_1.Tags)("Admin", "Media"),
|
1046
1026
|
__param(0, (0, runtime_1.Queries)()),
|
1047
1027
|
__param(1, (0, runtime_1.Inject)())
|
1048
|
-
], LemmyHttp.prototype, "
|
1028
|
+
], LemmyHttp.prototype, "listAllMedia", null);
|
1049
1029
|
__decorate([
|
1050
1030
|
(0, runtime_1.Security)("bearerAuth"),
|
1051
1031
|
(0, runtime_1.Post)("/account/auth/totp/update"),
|
@@ -1747,7 +1727,7 @@ __decorate([
|
|
1747
1727
|
], LemmyHttp.prototype, "updateCommunityTag", null);
|
1748
1728
|
__decorate([
|
1749
1729
|
(0, runtime_1.Security)("bearerAuth"),
|
1750
|
-
(0, runtime_1.
|
1730
|
+
(0, runtime_1.Delete)("/community/tag"),
|
1751
1731
|
(0, runtime_1.Tags)("Community"),
|
1752
1732
|
__param(0, (0, runtime_1.Body)()),
|
1753
1733
|
__param(1, (0, runtime_1.Inject)())
|
@@ -1899,7 +1879,14 @@ __decorate([
|
|
1899
1879
|
__param(1, (0, runtime_1.Inject)())
|
1900
1880
|
], LemmyHttp.prototype, "uploadImage", null);
|
1901
1881
|
__decorate([
|
1902
|
-
(0, runtime_1.
|
1882
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1883
|
+
(0, runtime_1.Delete)("/image"),
|
1884
|
+
(0, runtime_1.Tags)("Media"),
|
1885
|
+
__param(0, (0, runtime_1.Queries)()),
|
1886
|
+
__param(1, (0, runtime_1.Inject)())
|
1887
|
+
], LemmyHttp.prototype, "deleteImage", null);
|
1888
|
+
__decorate([
|
1889
|
+
(0, runtime_1.Get)("image/health"),
|
1903
1890
|
(0, runtime_1.Tags)("Media"),
|
1904
1891
|
__param(0, (0, runtime_1.Inject)())
|
1905
1892
|
], LemmyHttp.prototype, "imageHealth", null);
|