lemmy-js-client 0.20.0-instance-blocks.5 → 0.20.0-modlog-combined.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/dist/http.d.ts +164 -60
  2. package/dist/http.js +261 -114
  3. package/dist/index.d.ts +39 -8
  4. package/dist/other_types.d.ts +1 -18
  5. package/dist/other_types.js +1 -1
  6. package/dist/types/AdminAllowInstance.d.ts +3 -2
  7. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  8. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  9. package/dist/types/AdminBlockInstance.d.ts +3 -2
  10. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  11. package/dist/types/AdminBlockInstanceId.js +3 -0
  12. package/dist/types/AdminPurgeComment.d.ts +2 -1
  13. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  14. package/dist/types/AdminPurgeCommentId.js +3 -0
  15. package/dist/types/AdminPurgeCommunity.d.ts +2 -1
  16. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  17. package/dist/types/AdminPurgeCommunityId.js +3 -0
  18. package/dist/types/AdminPurgePerson.d.ts +2 -1
  19. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  20. package/dist/types/AdminPurgePersonId.js +3 -0
  21. package/dist/types/AdminPurgePost.d.ts +2 -1
  22. package/dist/types/AdminPurgePostId.d.ts +1 -0
  23. package/dist/types/AdminPurgePostId.js +3 -0
  24. package/dist/types/AuthenticateWithOauth.d.ts +1 -0
  25. package/dist/types/CommentAggregates.d.ts +2 -0
  26. package/dist/types/CreateOAuthProvider.d.ts +1 -0
  27. package/dist/types/CreatePost.d.ts +2 -0
  28. package/dist/types/CreateSite.d.ts +0 -2
  29. package/dist/types/DeleteImageParams.d.ts +4 -0
  30. package/dist/types/DeleteImageParams.js +3 -0
  31. package/dist/types/EditCommunity.d.ts +0 -8
  32. package/dist/types/EditOAuthProvider.d.ts +1 -0
  33. package/dist/types/EditPost.d.ts +2 -0
  34. package/dist/types/EditSite.d.ts +0 -8
  35. package/dist/types/GetComments.d.ts +0 -1
  36. package/dist/types/GetModlog.d.ts +4 -3
  37. package/dist/types/GetModlogResponse.d.ts +2 -34
  38. package/dist/types/GetPersonDetails.d.ts +0 -7
  39. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  40. package/dist/types/GetPosts.d.ts +2 -0
  41. package/dist/types/GetReportCountResponse.d.ts +1 -5
  42. package/dist/types/GetReportCountResponse.js +1 -0
  43. package/dist/types/GetSiteResponse.d.ts +1 -10
  44. package/dist/types/ImageGetParams.d.ts +4 -0
  45. package/dist/types/ImageGetParams.js +3 -0
  46. package/dist/types/ImageProxyParams.d.ts +5 -0
  47. package/dist/types/ImageProxyParams.js +3 -0
  48. package/dist/types/LemmyErrorType.d.ts +6 -2
  49. package/dist/types/ListPersonContent.d.ts +18 -0
  50. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  51. package/dist/types/ListPersonSaved.d.ts +10 -0
  52. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  53. package/dist/types/{ListCommentReports.d.ts → ListReports.d.ts} +5 -6
  54. package/dist/types/ListReportsResponse.d.ts +7 -0
  55. package/dist/types/ModAdd.d.ts +2 -1
  56. package/dist/types/ModAddCommunity.d.ts +2 -1
  57. package/dist/types/ModAddCommunityId.d.ts +1 -0
  58. package/dist/types/ModAddCommunityId.js +3 -0
  59. package/dist/types/ModAddId.d.ts +1 -0
  60. package/dist/types/ModAddId.js +3 -0
  61. package/dist/types/ModBan.d.ts +2 -1
  62. package/dist/types/ModBanFromCommunity.d.ts +2 -1
  63. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  64. package/dist/types/ModBanFromCommunityId.js +3 -0
  65. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  66. package/dist/types/ModBanId.d.ts +1 -0
  67. package/dist/types/ModBanId.js +3 -0
  68. package/dist/types/ModBanView.d.ts +1 -1
  69. package/dist/types/ModFeaturePost.d.ts +2 -1
  70. package/dist/types/ModFeaturePostId.d.ts +1 -0
  71. package/dist/types/ModFeaturePostId.js +3 -0
  72. package/dist/types/ModFeaturePostView.d.ts +1 -0
  73. package/dist/types/ModHideCommunity.d.ts +2 -1
  74. package/dist/types/ModHideCommunityId.d.ts +1 -0
  75. package/dist/types/ModHideCommunityId.js +3 -0
  76. package/dist/types/ModLockPost.d.ts +2 -1
  77. package/dist/types/ModLockPostId.d.ts +1 -0
  78. package/dist/types/ModLockPostId.js +3 -0
  79. package/dist/types/ModLockPostView.d.ts +1 -0
  80. package/dist/types/ModRemoveComment.d.ts +2 -1
  81. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  82. package/dist/types/ModRemoveCommentId.js +3 -0
  83. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  84. package/dist/types/ModRemoveCommunity.d.ts +2 -1
  85. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  86. package/dist/types/ModRemoveCommunityId.js +3 -0
  87. package/dist/types/ModRemovePost.d.ts +2 -1
  88. package/dist/types/ModRemovePostId.d.ts +1 -0
  89. package/dist/types/ModRemovePostId.js +3 -0
  90. package/dist/types/ModRemovePostView.d.ts +1 -0
  91. package/dist/types/ModTransferCommunity.d.ts +2 -1
  92. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  93. package/dist/types/ModTransferCommunityId.js +3 -0
  94. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  95. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  96. package/dist/types/ModlogCombinedView.d.ts +52 -0
  97. package/dist/types/ModlogCombinedView.js +2 -0
  98. package/dist/types/OAuthProvider.d.ts +4 -0
  99. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  100. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  101. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  102. package/dist/types/PersonContentCombinedView.js +2 -0
  103. package/dist/types/PersonContentType.d.ts +4 -0
  104. package/dist/types/PersonContentType.js +3 -0
  105. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  106. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  107. package/dist/types/PostAggregates.d.ts +2 -0
  108. package/dist/types/PostTags.d.ts +7 -0
  109. package/dist/types/PostTags.js +2 -0
  110. package/dist/types/PostView.d.ts +2 -0
  111. package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
  112. package/dist/types/ReportCombinedPaginationCursor.js +3 -0
  113. package/dist/types/ReportCombinedView.d.ts +10 -0
  114. package/dist/types/ReportCombinedView.js +2 -0
  115. package/dist/types/SaveUserSettings.d.ts +0 -8
  116. package/dist/types/Search.d.ts +0 -1
  117. package/dist/types/SiteResponse.d.ts +1 -1
  118. package/dist/types/Tag.d.ts +27 -0
  119. package/dist/types/Tag.js +2 -0
  120. package/dist/types/TagId.d.ts +4 -0
  121. package/dist/types/TagId.js +3 -0
  122. package/dist/types/UploadImageResponse.d.ts +5 -0
  123. package/dist/types/UploadImageResponse.js +3 -0
  124. package/package.json +3 -3
  125. package/dist/types/ListCommentReportsResponse.d.ts +0 -7
  126. package/dist/types/ListPostReports.d.ts +0 -18
  127. package/dist/types/ListPostReportsResponse.d.ts +0 -7
  128. package/dist/types/ListPrivateMessageReports.d.ts +0 -11
  129. package/dist/types/ListPrivateMessageReportsResponse.d.ts +0 -7
  130. package/dist/types/ModlogListParams.d.ts +0 -17
  131. /package/dist/types/{ListPrivateMessageReports.js → AdminAllowInstanceId.js} +0 -0
  132. /package/dist/types/{ListCommentReports.js → ListPersonContent.js} +0 -0
  133. /package/dist/types/{ListCommentReportsResponse.js → ListPersonContentResponse.js} +0 -0
  134. /package/dist/types/{ListPostReports.js → ListPersonSaved.js} +0 -0
  135. /package/dist/types/{ListPostReportsResponse.js → ListPersonSavedResponse.js} +0 -0
  136. /package/dist/types/{ListPrivateMessageReportsResponse.js → ListReports.js} +0 -0
  137. /package/dist/types/{ModlogListParams.js → ListReportsResponse.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -5,6 +5,7 @@ import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
5
5
  import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
6
6
  import { BanFromCommunity } from "./types/BanFromCommunity";
7
7
  import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
8
+ import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
8
9
  import { BanPerson } from "./types/BanPerson";
9
10
  import { BanPersonResponse } from "./types/BanPersonResponse";
10
11
  import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
@@ -75,14 +76,8 @@ import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
75
76
  import { GetSiteResponse } from "./types/GetSiteResponse";
76
77
  import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
77
78
  import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
78
- import { ListCommentReports } from "./types/ListCommentReports";
79
- import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
80
79
  import { ListCommunities } from "./types/ListCommunities";
81
80
  import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
82
- import { ListPostReports } from "./types/ListPostReports";
83
- import { ListPostReportsResponse } from "./types/ListPostReportsResponse";
84
- import { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
85
- import { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
86
81
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
87
82
  import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
88
83
  import { LockPost } from "./types/LockPost";
@@ -122,7 +117,7 @@ import { SearchResponse } from "./types/SearchResponse";
122
117
  import { SiteResponse } from "./types/SiteResponse";
123
118
  import { TransferCommunity } from "./types/TransferCommunity";
124
119
  import { VerifyEmail } from "./types/VerifyEmail";
125
- import { DeleteImage, UploadImage, UploadImageResponse } from "./other_types";
120
+ import { UploadImage } from "./other_types";
126
121
  import { HideCommunity } from "./types/HideCommunity";
127
122
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
128
123
  import { UpdateTotp } from "./types/UpdateTotp";
@@ -152,9 +147,18 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
152
147
  import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
153
148
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
154
149
  import { CommunityId } from "./types/CommunityId";
150
+ import { ListReports } from "./types/ListReports";
151
+ import { ListReportsResponse } from "./types/ListReportsResponse";
152
+ import { MyUserInfo } from "./types/MyUserInfo";
155
153
  import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
156
154
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
157
155
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
156
+ import { ListPersonContent } from "./types/ListPersonContent";
157
+ import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
158
+ import { ListPersonSaved } from "./types/ListPersonSaved";
159
+ import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
160
+ import { DeleteImageParams } from "./types/DeleteImageParams";
161
+ import { UploadImageResponse } from "./types/UploadImageResponse";
158
162
  type RequestOptions = Pick<RequestInit, "signal">;
159
163
  /**
160
164
  * Helps build lemmy HTTP requests.
@@ -193,40 +197,46 @@ export declare class LemmyHttp {
193
197
  /**
194
198
  * Leave the Site admins.
195
199
  *
196
- * `HTTP.POST /user/leave_admin`
200
+ * `HTTP.POST /admin/leave`
197
201
  */
198
202
  leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse>;
199
203
  /**
200
204
  * Generate a TOTP / two-factor secret.
201
205
  *
202
- * Afterwards you need to call `/user/totp/update` with a valid token to enable it.
206
+ * Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
203
207
  *
204
- * `HTTP.POST /user/totp/generate`
208
+ * `HTTP.POST /account/auth/totp/generate`
205
209
  */
206
210
  generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse>;
211
+ /**
212
+ * Get data of current user.
213
+ *
214
+ * `HTTP.GET /account`
215
+ */
216
+ getMyUser(options?: RequestOptions): Promise<MyUserInfo>;
207
217
  /**
208
218
  * Export a backup of your user settings, including your saved content,
209
219
  * followed communities, and blocks.
210
220
  *
211
- * `HTTP.GET /user/export_settings`
221
+ * `HTTP.GET /account/settings/export`
212
222
  */
213
223
  exportSettings(options?: RequestOptions): Promise<string>;
214
224
  /**
215
225
  * Import a backup of your user settings.
216
226
  *
217
- * `HTTP.POST /user/import_settings`
227
+ * `HTTP.POST /account/settings/import`
218
228
  */
219
229
  importSettings(form: any, options?: RequestOptions): Promise<SuccessResponse>;
220
230
  /**
221
231
  * List login tokens for your user
222
232
  *
223
- * `HTTP.GET /user/list_logins`
233
+ * `HTTP.GET /account/list_logins`
224
234
  */
225
235
  listLogins(options?: RequestOptions): Promise<LoginToken[]>;
226
236
  /**
227
237
  * Returns an error message if your auth token is invalid
228
238
  *
229
- * `HTTP.GET /user/validate_auth`
239
+ * `HTTP.GET /account/validate_auth`
230
240
  */
231
241
  validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
232
242
  /**
@@ -244,11 +254,11 @@ export declare class LemmyHttp {
244
254
  /**
245
255
  * Enable / Disable TOTP / two-factor authentication.
246
256
  *
247
- * To enable, you need to first call `/user/totp/generate` and then pass a valid token to this.
257
+ * To enable, you need to first call `/account/auth/totp/generate` and then pass a valid token to this.
248
258
  *
249
259
  * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
250
260
  *
251
- * `HTTP.POST /user/totp/update`
261
+ * `HTTP.POST /account/auth/totp/update`
252
262
  */
253
263
  updateTotp(form: UpdateTotp, options?: RequestOptions): Promise<UpdateTotpResponse>;
254
264
  /**
@@ -305,7 +315,7 @@ export declare class LemmyHttp {
305
315
  /**
306
316
  * Block a community.
307
317
  *
308
- * `HTTP.POST /community/block`
318
+ * `HTTP.POST /account/block/community`
309
319
  */
310
320
  blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
311
321
  /**
@@ -386,6 +396,12 @@ export declare class LemmyHttp {
386
396
  * `HTTP.POST /post/mark_as_read`
387
397
  */
388
398
  markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
399
+ /**
400
+ * Mark multiple posts as read.
401
+ *
402
+ * `HTTP.POST /post/mark_as_read/many`
403
+ */
404
+ markManyPostAsRead(form: MarkManyPostsAsRead, options?: RequestOptions): Promise<SuccessResponse>;
389
405
  /**
390
406
  * Hide a post from list views.
391
407
  *
@@ -440,12 +456,6 @@ export declare class LemmyHttp {
440
456
  * `HTTP.PUT /post/report/resolve`
441
457
  */
442
458
  resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse>;
443
- /**
444
- * List post reports.
445
- *
446
- * `HTTP.GET /post/report/list`
447
- */
448
- listPostReports(form: ListPostReports, options?: RequestOptions): Promise<ListPostReportsResponse>;
449
459
  /**
450
460
  * Fetch metadata for any given site.
451
461
  *
@@ -530,12 +540,6 @@ export declare class LemmyHttp {
530
540
  * `HTTP.PUT /comment/report/resolve`
531
541
  */
532
542
  resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
533
- /**
534
- * List comment reports.
535
- *
536
- * `HTTP.GET /comment/report/list`
537
- */
538
- listCommentReports(form: ListCommentReports, options?: RequestOptions): Promise<ListCommentReportsResponse>;
539
543
  /**
540
544
  * Get / fetch private messages.
541
545
  *
@@ -578,132 +582,144 @@ export declare class LemmyHttp {
578
582
  * `HTTP.PUT /private_message/report/resolve`
579
583
  */
580
584
  resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
581
- /**
582
- * List private message reports.
583
- *
584
- * `HTTP.GET /private_message/report/list`
585
- */
586
- listPrivateMessageReports(form: ListPrivateMessageReports, options?: RequestOptions): Promise<ListPrivateMessageReportsResponse>;
587
585
  /**
588
586
  * Register a new user.
589
587
  *
590
- * `HTTP.POST /user/register`
588
+ * `HTTP.POST /account/auth/register`
591
589
  */
592
590
  register(form: Register, options?: RequestOptions): Promise<LoginResponse>;
593
591
  /**
594
592
  * Log into lemmy.
595
593
  *
596
- * `HTTP.POST /user/login`
594
+ * `HTTP.POST /account/auth/login`
597
595
  */
598
596
  login(form: Login, options?: RequestOptions): Promise<LoginResponse>;
599
597
  /**
600
598
  * Invalidate the currently used auth token.
601
599
  *
602
- * `HTTP.POST /user/logout`
600
+ * `HTTP.POST /account/auth/logout`
603
601
  */
604
602
  logout(options?: RequestOptions): Promise<SuccessResponse>;
605
603
  /**
606
604
  * Get the details for a person.
607
605
  *
608
- * `HTTP.GET /user`
606
+ * `HTTP.GET /person`
609
607
  */
610
608
  getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
609
+ /**
610
+ * List the content for a person.
611
+ *
612
+ * `HTTP.GET /person/content`
613
+ */
614
+ listPersonContent(form?: ListPersonContent, options?: RequestOptions): Promise<ListPersonContentResponse>;
611
615
  /**
612
616
  * Get mentions for your user.
613
617
  *
614
- * `HTTP.GET /user/mention`
618
+ * `HTTP.GET /account/mention`
615
619
  */
616
620
  getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
617
621
  /**
618
622
  * Mark a person mention as read.
619
623
  *
620
- * `HTTP.POST /user/mention/mark_as_read`
624
+ * `HTTP.POST /account/mention/mark_as_read`
621
625
  */
622
626
  markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
627
+ /**
628
+ * Mark a person mention as read.
629
+ *
630
+ * `HTTP.POST /account/mention/mark_as_read`
631
+ */
632
+ markPersonAllMentionAsRead(options?: RequestOptions): Promise<PersonMentionResponse>;
623
633
  /**
624
634
  * Get comment replies.
625
635
  *
626
- * `HTTP.GET /user/replies`
636
+ * `HTTP.GET /account/replies`
627
637
  */
628
638
  getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
629
639
  /**
630
640
  * Ban a person from your site.
631
641
  *
632
- * `HTTP.POST /user/ban`
642
+ * `HTTP.POST /admin/ban`
633
643
  */
634
644
  banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
635
645
  /**
636
646
  * Get a list of banned users
637
647
  *
638
- * `HTTP.GET /user/banned`
648
+ * `HTTP.GET /admin/banned`
639
649
  */
640
650
  getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
641
651
  /**
642
652
  * Block a person.
643
653
  *
644
- * `HTTP.POST /user/block`
654
+ * `HTTP.POST /account/block/person`
645
655
  */
646
656
  blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
647
657
  /**
648
658
  * Fetch a Captcha.
649
659
  *
650
- * `HTTP.GET /user/get_captcha`
660
+ * `HTTP.GET /account/auth/get_captcha`
651
661
  */
652
662
  getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse>;
653
663
  /**
654
664
  * Delete your account.
655
665
  *
656
- * `HTTP.POST /user/delete_account`
666
+ * `HTTP.POST /account/delete`
657
667
  */
658
668
  deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse>;
659
669
  /**
660
670
  * Reset your password.
661
671
  *
662
- * `HTTP.POST /user/password_reset`
672
+ * `HTTP.POST /account/auth/password_reset`
663
673
  */
664
674
  passwordReset(form: PasswordReset, options?: RequestOptions): Promise<SuccessResponse>;
665
675
  /**
666
676
  * Change your password from an email / token based reset.
667
677
  *
668
- * `HTTP.POST /user/password_change`
678
+ * `HTTP.POST /account/auth/password_change`
669
679
  */
670
680
  passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
671
681
  /**
672
682
  * Mark all replies as read.
673
683
  *
674
- * `HTTP.POST /user/mark_all_as_read`
684
+ * `HTTP.POST /account/mention/mark_as_read/all`
675
685
  */
676
686
  markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
677
687
  /**
678
688
  * Save your user settings.
679
689
  *
680
- * `HTTP.PUT /user/save_user_settings`
690
+ * `HTTP.PUT /account/settings/save`
681
691
  */
682
692
  saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse>;
683
693
  /**
684
694
  * Change your user password.
685
695
  *
686
- * `HTTP.PUT /user/change_password`
696
+ * `HTTP.PUT /account/auth/change_password`
687
697
  */
688
698
  changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
689
699
  /**
690
700
  * Get counts for your reports
691
701
  *
692
- * `HTTP.GET /user/report_count`
702
+ * `HTTP.GET /account/report_count`
693
703
  */
694
704
  getReportCount(form: GetReportCount, options?: RequestOptions): Promise<GetReportCountResponse>;
695
705
  /**
696
706
  * Get your unread counts
697
707
  *
698
- * `HTTP.GET /user/unread_count`
708
+ * `HTTP.GET /account/unread_count`
699
709
  */
700
710
  getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
701
711
  /**
702
712
  * Verify your email
703
713
  *
704
- * `HTTP.POST /user/verify_email`
714
+ * `HTTP.POST /account/auth/verify_email`
705
715
  */
706
716
  verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
717
+ /**
718
+ * List your saved content.
719
+ *
720
+ * `HTTP.GET /account/auth/saved`
721
+ */
722
+ listPersonSaved(form: ListPersonSaved, options?: RequestOptions): Promise<ListPersonSavedResponse>;
707
723
  /**
708
724
  * Add an admin to your site.
709
725
  *
@@ -836,32 +852,120 @@ export declare class LemmyHttp {
836
852
  * `HTTP.Get /federated_instances`
837
853
  */
838
854
  getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
855
+ /**
856
+ * List user reports.
857
+ *
858
+ * `HTTP.GET /report/list`
859
+ */
860
+ listReports(form: ListReports, options?: RequestOptions): Promise<ListReportsResponse>;
839
861
  /**
840
862
  * Block an instance as user.
841
863
  *
842
- * `HTTP.Post /site/block`
864
+ * `HTTP.Post /account/block/instance`
843
865
  */
844
866
  userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
845
867
  /**
846
868
  * Globally block an instance as admin.
847
869
  *
848
- * `HTTP.Post /admin/block_instance`
870
+ * `HTTP.Post /admin/instance/block`
849
871
  */
850
872
  adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
851
873
  /**
852
874
  * Globally allow an instance as admin.
853
875
  *
854
- * `HTTP.Post /admin/allow_instance`
876
+ * `HTTP.Post /admin/instance/allow`
855
877
  */
856
878
  adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
879
+ /**
880
+ * Upload new user avatar.
881
+ *
882
+ * `HTTP.Post /account/avatar`
883
+ */
884
+ uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
885
+ /**
886
+ * Delete the user avatar.
887
+ *
888
+ * `HTTP.Delete /account/avatar`
889
+ */
890
+ deleteUserAvatar(options?: RequestOptions): Promise<SuccessResponse>;
891
+ /**
892
+ * Upload new user banner.
893
+ *
894
+ * `HTTP.Post /account/banner`
895
+ */
896
+ uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
897
+ /**
898
+ * Delete the user banner.
899
+ *
900
+ * `HTTP.Delete /account/banner`
901
+ */
902
+ deleteUserBanner(options?: RequestOptions): Promise<SuccessResponse>;
903
+ /**
904
+ * Upload new community icon.
905
+ *
906
+ * `HTTP.Post /community/icon`
907
+ */
908
+ uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
909
+ /**
910
+ * Delete the community icon.
911
+ *
912
+ * `HTTP.Delete /community/icon`
913
+ */
914
+ deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
915
+ /**
916
+ * Upload new community banner.
917
+ *
918
+ * `HTTP.Post /community/banner`
919
+ */
920
+ uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
921
+ /**
922
+ * Delete the community banner.
923
+ *
924
+ * `HTTP.Delete /community/banner`
925
+ */
926
+ deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
927
+ /**
928
+ * Upload new site icon.
929
+ *
930
+ * `HTTP.Post /site/icon`
931
+ */
932
+ uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
933
+ /**
934
+ * Delete the site icon.
935
+ *
936
+ * `HTTP.Delete /site/icon`
937
+ */
938
+ deleteSiteIcon(options?: RequestOptions): Promise<SuccessResponse>;
939
+ /**
940
+ * Upload new site banner.
941
+ *
942
+ * `HTTP.Post /site/banner`
943
+ */
944
+ uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
945
+ /**
946
+ * Delete the site banner.
947
+ *
948
+ * `HTTP.Delete /site/banner`
949
+ */
950
+ deleteSiteBanner(options?: RequestOptions): Promise<SuccessResponse>;
857
951
  /**
858
952
  * Upload an image to the server.
953
+ *
954
+ * `HTTP.Post /image`
859
955
  */
860
- uploadImage({ image }: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
956
+ uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
861
957
  /**
862
958
  * Delete a pictrs image
959
+ *
960
+ * `HTTP.Delete /image`
961
+ */
962
+ deleteImage(form: DeleteImageParams, options?: RequestOptions): Promise<SuccessResponse>;
963
+ /**
964
+ * Health check for image functionality
965
+ *
966
+ * `HTTP.Get /image/health`
863
967
  */
864
- deleteImage({ token, filename }: DeleteImage, options?: RequestOptions): Promise<boolean>;
968
+ imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
865
969
  /**
866
970
  * Set the headers (can be used to set the auth header)
867
971
  */