lemmy-js-client 1.0.0-remove-page-limit.0 → 1.0.0-remove-page-limit.1

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