lemmy-js-client 0.11.4-rc.9 → 0.12.3-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/http.js CHANGED
@@ -56,11 +56,14 @@ var HttpType;
56
56
  HttpType["Post"] = "POST";
57
57
  HttpType["Put"] = "PUT";
58
58
  })(HttpType || (HttpType = {}));
59
+ /**
60
+ * Helps build lemmy HTTP requests.
61
+ */
59
62
  var LemmyHttp = /** @class */ (function () {
60
63
  /**
61
- * Generates a new instance of LemmyHttp
64
+ * Generates a new instance of LemmyHttp.
62
65
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
63
- * @param headers optional headers. Should contain x-real-ip and x-forwarded-for
66
+ * @param headers optional headers. Should contain `x-real-ip` and `x-forwarded-for` .
64
67
  */
65
68
  function LemmyHttp(baseUrl, headers) {
66
69
  this.headers = {};
@@ -69,6 +72,9 @@ var LemmyHttp = /** @class */ (function () {
69
72
  this.headers = headers;
70
73
  }
71
74
  }
75
+ /**
76
+ * Gets the site, and your user data.
77
+ */
72
78
  LemmyHttp.prototype.getSite = function (form) {
73
79
  return __awaiter(this, void 0, void 0, function () {
74
80
  return __generator(this, function (_a) {
@@ -76,6 +82,9 @@ var LemmyHttp = /** @class */ (function () {
76
82
  });
77
83
  });
78
84
  };
85
+ /**
86
+ * Create your site.
87
+ */
79
88
  LemmyHttp.prototype.createSite = function (form) {
80
89
  return __awaiter(this, void 0, void 0, function () {
81
90
  return __generator(this, function (_a) {
@@ -83,6 +92,9 @@ var LemmyHttp = /** @class */ (function () {
83
92
  });
84
93
  });
85
94
  };
95
+ /**
96
+ * Edit your site.
97
+ */
86
98
  LemmyHttp.prototype.editSite = function (form) {
87
99
  return __awaiter(this, void 0, void 0, function () {
88
100
  return __generator(this, function (_a) {
@@ -90,6 +102,9 @@ var LemmyHttp = /** @class */ (function () {
90
102
  });
91
103
  });
92
104
  };
105
+ /**
106
+ * Transfer your site to another user.
107
+ */
93
108
  LemmyHttp.prototype.transferSite = function (form) {
94
109
  return __awaiter(this, void 0, void 0, function () {
95
110
  return __generator(this, function (_a) {
@@ -97,6 +112,9 @@ var LemmyHttp = /** @class */ (function () {
97
112
  });
98
113
  });
99
114
  };
115
+ /**
116
+ * Get your site configuration.
117
+ */
100
118
  LemmyHttp.prototype.getSiteConfig = function (form) {
101
119
  return __awaiter(this, void 0, void 0, function () {
102
120
  return __generator(this, function (_a) {
@@ -104,6 +122,9 @@ var LemmyHttp = /** @class */ (function () {
104
122
  });
105
123
  });
106
124
  };
125
+ /**
126
+ * Save your site config.
127
+ */
107
128
  LemmyHttp.prototype.saveSiteConfig = function (form) {
108
129
  return __awaiter(this, void 0, void 0, function () {
109
130
  return __generator(this, function (_a) {
@@ -111,6 +132,9 @@ var LemmyHttp = /** @class */ (function () {
111
132
  });
112
133
  });
113
134
  };
135
+ /**
136
+ * Get the modlog.
137
+ */
114
138
  LemmyHttp.prototype.getModlog = function (form) {
115
139
  return __awaiter(this, void 0, void 0, function () {
116
140
  return __generator(this, function (_a) {
@@ -118,6 +142,9 @@ var LemmyHttp = /** @class */ (function () {
118
142
  });
119
143
  });
120
144
  };
145
+ /**
146
+ * Search lemmy.
147
+ */
121
148
  LemmyHttp.prototype.search = function (form) {
122
149
  return __awaiter(this, void 0, void 0, function () {
123
150
  return __generator(this, function (_a) {
@@ -125,6 +152,19 @@ var LemmyHttp = /** @class */ (function () {
125
152
  });
126
153
  });
127
154
  };
155
+ /**
156
+ * Fetch a non-local / federated object.
157
+ */
158
+ LemmyHttp.prototype.resolveObject = function (form) {
159
+ return __awaiter(this, void 0, void 0, function () {
160
+ return __generator(this, function (_a) {
161
+ return [2 /*return*/, this.wrapper(HttpType.Get, '/resolve_object', form)];
162
+ });
163
+ });
164
+ };
165
+ /**
166
+ * Create a new community.
167
+ */
128
168
  LemmyHttp.prototype.createCommunity = function (form) {
129
169
  return __awaiter(this, void 0, void 0, function () {
130
170
  return __generator(this, function (_a) {
@@ -132,6 +172,9 @@ var LemmyHttp = /** @class */ (function () {
132
172
  });
133
173
  });
134
174
  };
175
+ /**
176
+ * Get / fetch a community.
177
+ */
135
178
  LemmyHttp.prototype.getCommunity = function (form) {
136
179
  return __awaiter(this, void 0, void 0, function () {
137
180
  return __generator(this, function (_a) {
@@ -139,6 +182,9 @@ var LemmyHttp = /** @class */ (function () {
139
182
  });
140
183
  });
141
184
  };
185
+ /**
186
+ * Edit a community.
187
+ */
142
188
  LemmyHttp.prototype.editCommunity = function (form) {
143
189
  return __awaiter(this, void 0, void 0, function () {
144
190
  return __generator(this, function (_a) {
@@ -146,6 +192,9 @@ var LemmyHttp = /** @class */ (function () {
146
192
  });
147
193
  });
148
194
  };
195
+ /**
196
+ * List communities, with various filters.
197
+ */
149
198
  LemmyHttp.prototype.listCommunities = function (form) {
150
199
  return __awaiter(this, void 0, void 0, function () {
151
200
  return __generator(this, function (_a) {
@@ -153,6 +202,9 @@ var LemmyHttp = /** @class */ (function () {
153
202
  });
154
203
  });
155
204
  };
205
+ /**
206
+ * Follow / subscribe to a community.
207
+ */
156
208
  LemmyHttp.prototype.followCommunity = function (form) {
157
209
  return __awaiter(this, void 0, void 0, function () {
158
210
  return __generator(this, function (_a) {
@@ -160,6 +212,9 @@ var LemmyHttp = /** @class */ (function () {
160
212
  });
161
213
  });
162
214
  };
215
+ /**
216
+ * Block a community.
217
+ */
163
218
  LemmyHttp.prototype.blockCommunity = function (form) {
164
219
  return __awaiter(this, void 0, void 0, function () {
165
220
  return __generator(this, function (_a) {
@@ -167,6 +222,9 @@ var LemmyHttp = /** @class */ (function () {
167
222
  });
168
223
  });
169
224
  };
225
+ /**
226
+ * Delete a community.
227
+ */
170
228
  LemmyHttp.prototype.deleteCommunity = function (form) {
171
229
  return __awaiter(this, void 0, void 0, function () {
172
230
  return __generator(this, function (_a) {
@@ -174,6 +232,9 @@ var LemmyHttp = /** @class */ (function () {
174
232
  });
175
233
  });
176
234
  };
235
+ /**
236
+ * A moderator remove for a community.
237
+ */
177
238
  LemmyHttp.prototype.removeCommunity = function (form) {
178
239
  return __awaiter(this, void 0, void 0, function () {
179
240
  return __generator(this, function (_a) {
@@ -181,6 +242,9 @@ var LemmyHttp = /** @class */ (function () {
181
242
  });
182
243
  });
183
244
  };
245
+ /**
246
+ * Transfer your community to an existing moderator.
247
+ */
184
248
  LemmyHttp.prototype.transferCommunity = function (form) {
185
249
  return __awaiter(this, void 0, void 0, function () {
186
250
  return __generator(this, function (_a) {
@@ -188,6 +252,9 @@ var LemmyHttp = /** @class */ (function () {
188
252
  });
189
253
  });
190
254
  };
255
+ /**
256
+ * Ban a user from a community.
257
+ */
191
258
  LemmyHttp.prototype.banFromCommunity = function (form) {
192
259
  return __awaiter(this, void 0, void 0, function () {
193
260
  return __generator(this, function (_a) {
@@ -195,6 +262,9 @@ var LemmyHttp = /** @class */ (function () {
195
262
  });
196
263
  });
197
264
  };
265
+ /**
266
+ * Add a moderator to your community.
267
+ */
198
268
  LemmyHttp.prototype.addModToCommunity = function (form) {
199
269
  return __awaiter(this, void 0, void 0, function () {
200
270
  return __generator(this, function (_a) {
@@ -202,6 +272,9 @@ var LemmyHttp = /** @class */ (function () {
202
272
  });
203
273
  });
204
274
  };
275
+ /**
276
+ * Create a post.
277
+ */
205
278
  LemmyHttp.prototype.createPost = function (form) {
206
279
  return __awaiter(this, void 0, void 0, function () {
207
280
  return __generator(this, function (_a) {
@@ -209,6 +282,9 @@ var LemmyHttp = /** @class */ (function () {
209
282
  });
210
283
  });
211
284
  };
285
+ /**
286
+ * Get / fetch a post.
287
+ */
212
288
  LemmyHttp.prototype.getPost = function (form) {
213
289
  return __awaiter(this, void 0, void 0, function () {
214
290
  return __generator(this, function (_a) {
@@ -216,6 +292,9 @@ var LemmyHttp = /** @class */ (function () {
216
292
  });
217
293
  });
218
294
  };
295
+ /**
296
+ * Edit a post.
297
+ */
219
298
  LemmyHttp.prototype.editPost = function (form) {
220
299
  return __awaiter(this, void 0, void 0, function () {
221
300
  return __generator(this, function (_a) {
@@ -223,6 +302,9 @@ var LemmyHttp = /** @class */ (function () {
223
302
  });
224
303
  });
225
304
  };
305
+ /**
306
+ * Delete a post.
307
+ */
226
308
  LemmyHttp.prototype.deletePost = function (form) {
227
309
  return __awaiter(this, void 0, void 0, function () {
228
310
  return __generator(this, function (_a) {
@@ -230,6 +312,9 @@ var LemmyHttp = /** @class */ (function () {
230
312
  });
231
313
  });
232
314
  };
315
+ /**
316
+ * A moderator remove for a post.
317
+ */
233
318
  LemmyHttp.prototype.removePost = function (form) {
234
319
  return __awaiter(this, void 0, void 0, function () {
235
320
  return __generator(this, function (_a) {
@@ -237,6 +322,9 @@ var LemmyHttp = /** @class */ (function () {
237
322
  });
238
323
  });
239
324
  };
325
+ /**
326
+ * A moderator can lock a post ( IE disable new comments ).
327
+ */
240
328
  LemmyHttp.prototype.lockPost = function (form) {
241
329
  return __awaiter(this, void 0, void 0, function () {
242
330
  return __generator(this, function (_a) {
@@ -244,6 +332,9 @@ var LemmyHttp = /** @class */ (function () {
244
332
  });
245
333
  });
246
334
  };
335
+ /**
336
+ * A moderator can sticky a post ( IE stick it to the top of a community ).
337
+ */
247
338
  LemmyHttp.prototype.stickyPost = function (form) {
248
339
  return __awaiter(this, void 0, void 0, function () {
249
340
  return __generator(this, function (_a) {
@@ -251,6 +342,9 @@ var LemmyHttp = /** @class */ (function () {
251
342
  });
252
343
  });
253
344
  };
345
+ /**
346
+ * Get / fetch posts, with various filters.
347
+ */
254
348
  LemmyHttp.prototype.getPosts = function (form) {
255
349
  return __awaiter(this, void 0, void 0, function () {
256
350
  return __generator(this, function (_a) {
@@ -258,6 +352,9 @@ var LemmyHttp = /** @class */ (function () {
258
352
  });
259
353
  });
260
354
  };
355
+ /**
356
+ * Like / vote on a post.
357
+ */
261
358
  LemmyHttp.prototype.likePost = function (form) {
262
359
  return __awaiter(this, void 0, void 0, function () {
263
360
  return __generator(this, function (_a) {
@@ -265,6 +362,9 @@ var LemmyHttp = /** @class */ (function () {
265
362
  });
266
363
  });
267
364
  };
365
+ /**
366
+ * Save a post.
367
+ */
268
368
  LemmyHttp.prototype.savePost = function (form) {
269
369
  return __awaiter(this, void 0, void 0, function () {
270
370
  return __generator(this, function (_a) {
@@ -272,6 +372,49 @@ var LemmyHttp = /** @class */ (function () {
272
372
  });
273
373
  });
274
374
  };
375
+ /**
376
+ * Report a post.
377
+ */
378
+ LemmyHttp.prototype.createPostReport = function (form) {
379
+ return __awaiter(this, void 0, void 0, function () {
380
+ return __generator(this, function (_a) {
381
+ return [2 /*return*/, this.wrapper(HttpType.Post, '/post/report', form)];
382
+ });
383
+ });
384
+ };
385
+ /**
386
+ * Resolve a post report. Only a mod can do this.
387
+ */
388
+ LemmyHttp.prototype.resolvePostReport = function (form) {
389
+ return __awaiter(this, void 0, void 0, function () {
390
+ return __generator(this, function (_a) {
391
+ return [2 /*return*/, this.wrapper(HttpType.Put, '/post/report/resolve', form)];
392
+ });
393
+ });
394
+ };
395
+ /**
396
+ * List post reports.
397
+ */
398
+ LemmyHttp.prototype.listPostReports = function (form) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ return __generator(this, function (_a) {
401
+ return [2 /*return*/, this.wrapper(HttpType.Get, '/post/report/list', form)];
402
+ });
403
+ });
404
+ };
405
+ /**
406
+ * Fetch metadata for any given site.
407
+ */
408
+ LemmyHttp.prototype.getSiteMetadata = function (form) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ return __generator(this, function (_a) {
411
+ return [2 /*return*/, this.wrapper(HttpType.Get, '/post/site_metadata', form)];
412
+ });
413
+ });
414
+ };
415
+ /**
416
+ * Create a comment.
417
+ */
275
418
  LemmyHttp.prototype.createComment = function (form) {
276
419
  return __awaiter(this, void 0, void 0, function () {
277
420
  return __generator(this, function (_a) {
@@ -279,6 +422,9 @@ var LemmyHttp = /** @class */ (function () {
279
422
  });
280
423
  });
281
424
  };
425
+ /**
426
+ * Edit a comment.
427
+ */
282
428
  LemmyHttp.prototype.editComment = function (form) {
283
429
  return __awaiter(this, void 0, void 0, function () {
284
430
  return __generator(this, function (_a) {
@@ -286,6 +432,9 @@ var LemmyHttp = /** @class */ (function () {
286
432
  });
287
433
  });
288
434
  };
435
+ /**
436
+ * Delete a comment.
437
+ */
289
438
  LemmyHttp.prototype.deleteComment = function (form) {
290
439
  return __awaiter(this, void 0, void 0, function () {
291
440
  return __generator(this, function (_a) {
@@ -293,6 +442,9 @@ var LemmyHttp = /** @class */ (function () {
293
442
  });
294
443
  });
295
444
  };
445
+ /**
446
+ * A moderator remove for a comment.
447
+ */
296
448
  LemmyHttp.prototype.removeComment = function (form) {
297
449
  return __awaiter(this, void 0, void 0, function () {
298
450
  return __generator(this, function (_a) {
@@ -300,6 +452,9 @@ var LemmyHttp = /** @class */ (function () {
300
452
  });
301
453
  });
302
454
  };
455
+ /**
456
+ * Mark a comment as read.
457
+ */
303
458
  LemmyHttp.prototype.markCommentAsRead = function (form) {
304
459
  return __awaiter(this, void 0, void 0, function () {
305
460
  return __generator(this, function (_a) {
@@ -307,6 +462,9 @@ var LemmyHttp = /** @class */ (function () {
307
462
  });
308
463
  });
309
464
  };
465
+ /**
466
+ * Like / vote on a comment.
467
+ */
310
468
  LemmyHttp.prototype.likeComment = function (form) {
311
469
  return __awaiter(this, void 0, void 0, function () {
312
470
  return __generator(this, function (_a) {
@@ -314,6 +472,9 @@ var LemmyHttp = /** @class */ (function () {
314
472
  });
315
473
  });
316
474
  };
475
+ /**
476
+ * Save a comment.
477
+ */
317
478
  LemmyHttp.prototype.saveComment = function (form) {
318
479
  return __awaiter(this, void 0, void 0, function () {
319
480
  return __generator(this, function (_a) {
@@ -321,6 +482,9 @@ var LemmyHttp = /** @class */ (function () {
321
482
  });
322
483
  });
323
484
  };
485
+ /**
486
+ * Get / fetch comments.
487
+ */
324
488
  LemmyHttp.prototype.getComments = function (form) {
325
489
  return __awaiter(this, void 0, void 0, function () {
326
490
  return __generator(this, function (_a) {
@@ -328,6 +492,39 @@ var LemmyHttp = /** @class */ (function () {
328
492
  });
329
493
  });
330
494
  };
495
+ /**
496
+ * Report a comment.
497
+ */
498
+ LemmyHttp.prototype.createCommentReport = function (form) {
499
+ return __awaiter(this, void 0, void 0, function () {
500
+ return __generator(this, function (_a) {
501
+ return [2 /*return*/, this.wrapper(HttpType.Post, '/comment/report', form)];
502
+ });
503
+ });
504
+ };
505
+ /**
506
+ * Resolve a comment report. Only a mod can do this.
507
+ */
508
+ LemmyHttp.prototype.resolveCommentReport = function (form) {
509
+ return __awaiter(this, void 0, void 0, function () {
510
+ return __generator(this, function (_a) {
511
+ return [2 /*return*/, this.wrapper(HttpType.Put, '/comment/report/resolve', form)];
512
+ });
513
+ });
514
+ };
515
+ /**
516
+ * List comment reports.
517
+ */
518
+ LemmyHttp.prototype.listCommentReports = function (form) {
519
+ return __awaiter(this, void 0, void 0, function () {
520
+ return __generator(this, function (_a) {
521
+ return [2 /*return*/, this.wrapper(HttpType.Get, '/comment/report/list', form)];
522
+ });
523
+ });
524
+ };
525
+ /**
526
+ * Get / fetch private messages.
527
+ */
331
528
  LemmyHttp.prototype.getPrivateMessages = function (form) {
332
529
  return __awaiter(this, void 0, void 0, function () {
333
530
  return __generator(this, function (_a) {
@@ -335,6 +532,9 @@ var LemmyHttp = /** @class */ (function () {
335
532
  });
336
533
  });
337
534
  };
535
+ /**
536
+ * Create a private message.
537
+ */
338
538
  LemmyHttp.prototype.createPrivateMessage = function (form) {
339
539
  return __awaiter(this, void 0, void 0, function () {
340
540
  return __generator(this, function (_a) {
@@ -342,6 +542,9 @@ var LemmyHttp = /** @class */ (function () {
342
542
  });
343
543
  });
344
544
  };
545
+ /**
546
+ * Edit a private message.
547
+ */
345
548
  LemmyHttp.prototype.editPrivateMessage = function (form) {
346
549
  return __awaiter(this, void 0, void 0, function () {
347
550
  return __generator(this, function (_a) {
@@ -349,6 +552,9 @@ var LemmyHttp = /** @class */ (function () {
349
552
  });
350
553
  });
351
554
  };
555
+ /**
556
+ * Delete a private message.
557
+ */
352
558
  LemmyHttp.prototype.deletePrivateMessage = function (form) {
353
559
  return __awaiter(this, void 0, void 0, function () {
354
560
  return __generator(this, function (_a) {
@@ -356,6 +562,9 @@ var LemmyHttp = /** @class */ (function () {
356
562
  });
357
563
  });
358
564
  };
565
+ /**
566
+ * Mark a private message as read.
567
+ */
359
568
  LemmyHttp.prototype.markPrivateMessageAsRead = function (form) {
360
569
  return __awaiter(this, void 0, void 0, function () {
361
570
  return __generator(this, function (_a) {
@@ -363,6 +572,9 @@ var LemmyHttp = /** @class */ (function () {
363
572
  });
364
573
  });
365
574
  };
575
+ /**
576
+ * Register a new user.
577
+ */
366
578
  LemmyHttp.prototype.register = function (form) {
367
579
  return __awaiter(this, void 0, void 0, function () {
368
580
  return __generator(this, function (_a) {
@@ -370,6 +582,9 @@ var LemmyHttp = /** @class */ (function () {
370
582
  });
371
583
  });
372
584
  };
585
+ /**
586
+ * Log into lemmy.
587
+ */
373
588
  LemmyHttp.prototype.login = function (form) {
374
589
  return __awaiter(this, void 0, void 0, function () {
375
590
  return __generator(this, function (_a) {
@@ -377,6 +592,9 @@ var LemmyHttp = /** @class */ (function () {
377
592
  });
378
593
  });
379
594
  };
595
+ /**
596
+ * Get the details for a person.
597
+ */
380
598
  LemmyHttp.prototype.getPersonDetails = function (form) {
381
599
  return __awaiter(this, void 0, void 0, function () {
382
600
  return __generator(this, function (_a) {
@@ -384,6 +602,9 @@ var LemmyHttp = /** @class */ (function () {
384
602
  });
385
603
  });
386
604
  };
605
+ /**
606
+ * Get mentions for your user.
607
+ */
387
608
  LemmyHttp.prototype.getPersonMentions = function (form) {
388
609
  return __awaiter(this, void 0, void 0, function () {
389
610
  return __generator(this, function (_a) {
@@ -391,6 +612,9 @@ var LemmyHttp = /** @class */ (function () {
391
612
  });
392
613
  });
393
614
  };
615
+ /**
616
+ * Mark a person mention as read.
617
+ */
394
618
  LemmyHttp.prototype.markPersonMentionAsRead = function (form) {
395
619
  return __awaiter(this, void 0, void 0, function () {
396
620
  return __generator(this, function (_a) {
@@ -398,6 +622,9 @@ var LemmyHttp = /** @class */ (function () {
398
622
  });
399
623
  });
400
624
  };
625
+ /**
626
+ * Get comment replies.
627
+ */
401
628
  LemmyHttp.prototype.getReplies = function (form) {
402
629
  return __awaiter(this, void 0, void 0, function () {
403
630
  return __generator(this, function (_a) {
@@ -405,6 +632,9 @@ var LemmyHttp = /** @class */ (function () {
405
632
  });
406
633
  });
407
634
  };
635
+ /**
636
+ * Ban a person from your site.
637
+ */
408
638
  LemmyHttp.prototype.banPerson = function (form) {
409
639
  return __awaiter(this, void 0, void 0, function () {
410
640
  return __generator(this, function (_a) {
@@ -412,6 +642,9 @@ var LemmyHttp = /** @class */ (function () {
412
642
  });
413
643
  });
414
644
  };
645
+ /**
646
+ * Block a person.
647
+ */
415
648
  LemmyHttp.prototype.blockPerson = function (form) {
416
649
  return __awaiter(this, void 0, void 0, function () {
417
650
  return __generator(this, function (_a) {
@@ -419,6 +652,9 @@ var LemmyHttp = /** @class */ (function () {
419
652
  });
420
653
  });
421
654
  };
655
+ /**
656
+ * Fetch a Captcha.
657
+ */
422
658
  LemmyHttp.prototype.getCaptcha = function () {
423
659
  return __awaiter(this, void 0, void 0, function () {
424
660
  return __generator(this, function (_a) {
@@ -426,6 +662,9 @@ var LemmyHttp = /** @class */ (function () {
426
662
  });
427
663
  });
428
664
  };
665
+ /**
666
+ * Delete your account.
667
+ */
429
668
  LemmyHttp.prototype.deleteAccount = function (form) {
430
669
  return __awaiter(this, void 0, void 0, function () {
431
670
  return __generator(this, function (_a) {
@@ -433,6 +672,9 @@ var LemmyHttp = /** @class */ (function () {
433
672
  });
434
673
  });
435
674
  };
675
+ /**
676
+ * Reset your password.
677
+ */
436
678
  LemmyHttp.prototype.passwordReset = function (form) {
437
679
  return __awaiter(this, void 0, void 0, function () {
438
680
  return __generator(this, function (_a) {
@@ -440,6 +682,9 @@ var LemmyHttp = /** @class */ (function () {
440
682
  });
441
683
  });
442
684
  };
685
+ /**
686
+ * Change your password from an email / token based reset.
687
+ */
443
688
  LemmyHttp.prototype.passwordChange = function (form) {
444
689
  return __awaiter(this, void 0, void 0, function () {
445
690
  return __generator(this, function (_a) {
@@ -447,6 +692,9 @@ var LemmyHttp = /** @class */ (function () {
447
692
  });
448
693
  });
449
694
  };
695
+ /**
696
+ * Mark all replies as read.
697
+ */
450
698
  LemmyHttp.prototype.markAllAsRead = function (form) {
451
699
  return __awaiter(this, void 0, void 0, function () {
452
700
  return __generator(this, function (_a) {
@@ -454,6 +702,9 @@ var LemmyHttp = /** @class */ (function () {
454
702
  });
455
703
  });
456
704
  };
705
+ /**
706
+ * Save your user settings.
707
+ */
457
708
  LemmyHttp.prototype.saveUserSettings = function (form) {
458
709
  return __awaiter(this, void 0, void 0, function () {
459
710
  return __generator(this, function (_a) {
@@ -461,6 +712,9 @@ var LemmyHttp = /** @class */ (function () {
461
712
  });
462
713
  });
463
714
  };
715
+ /**
716
+ * Change your user password.
717
+ */
464
718
  LemmyHttp.prototype.changePassword = function (form) {
465
719
  return __awaiter(this, void 0, void 0, function () {
466
720
  return __generator(this, function (_a) {
@@ -468,6 +722,19 @@ var LemmyHttp = /** @class */ (function () {
468
722
  });
469
723
  });
470
724
  };
725
+ /**
726
+ * Get counts for your reports
727
+ */
728
+ LemmyHttp.prototype.getReportCount = function (form) {
729
+ return __awaiter(this, void 0, void 0, function () {
730
+ return __generator(this, function (_a) {
731
+ return [2 /*return*/, this.wrapper(HttpType.Get, '/user/report_count', form)];
732
+ });
733
+ });
734
+ };
735
+ /**
736
+ * Add an admin to your site.
737
+ */
471
738
  LemmyHttp.prototype.addAdmin = function (form) {
472
739
  return __awaiter(this, void 0, void 0, function () {
473
740
  return __generator(this, function (_a) {