lemmy-js-client 1.0.0-rename-timestamp-to-at.4 → 1.0.0-rename-person-banned.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +54 -28
  3. package/dist/http.js +164 -56
  4. package/dist/index.d.ts +48 -30
  5. package/dist/other_types.d.ts +8 -2
  6. package/dist/types/{ModAdd.d.ts → AdminAdd.d.ts} +4 -4
  7. package/dist/types/AdminAddId.d.ts +1 -0
  8. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  9. package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +3 -3
  10. package/dist/types/AdminBanId.d.ts +1 -0
  11. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  12. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +3 -3
  13. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  14. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  15. package/dist/types/Comment.d.ts +4 -0
  16. package/dist/types/CommentReportView.d.ts +3 -1
  17. package/dist/types/CommentResponse.d.ts +0 -2
  18. package/dist/types/CommentSlimView.d.ts +2 -6
  19. package/dist/types/CommentView.d.ts +4 -5
  20. package/dist/types/CommunityActions.d.ts +2 -0
  21. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  22. package/dist/types/CommunityReportView.d.ts +4 -0
  23. package/dist/types/CommunityView.d.ts +0 -2
  24. package/dist/types/CreateCommunityTag.d.ts +3 -1
  25. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  26. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  27. package/dist/types/CreateSite.d.ts +16 -12
  28. package/dist/types/EditSite.d.ts +26 -12
  29. package/dist/types/ExportDataResponse.d.ts +13 -0
  30. package/dist/types/FederationError.d.ts +4 -2
  31. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  32. package/dist/types/GetMultiCommunity.d.ts +4 -0
  33. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  34. package/dist/types/GetPosts.d.ts +2 -0
  35. package/dist/types/InstanceActions.d.ts +6 -2
  36. package/dist/types/LemmyErrorType.d.ts +16 -134
  37. package/dist/types/LinkMetadata.d.ts +4 -0
  38. package/dist/types/ListMultiCommunities.d.ts +5 -0
  39. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  40. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  41. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  42. package/dist/types/ListingType.d.ts +1 -1
  43. package/dist/types/LocalImage.d.ts +1 -1
  44. package/dist/types/LocalSite.d.ts +5 -0
  45. package/dist/types/LocalSiteRateLimit.d.ts +14 -14
  46. package/dist/types/LocalUser.d.ts +2 -0
  47. package/dist/types/LocalUserView.d.ts +2 -2
  48. package/dist/types/LockComment.d.ts +6 -0
  49. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  50. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
  51. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  52. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  53. package/dist/types/ModEditPost.d.ts +10 -0
  54. package/dist/types/ModLockComment.d.ts +14 -0
  55. package/dist/types/ModLockCommentId.d.ts +1 -0
  56. package/dist/types/ModLockCommentView.d.ts +14 -0
  57. package/dist/types/ModlogActionType.d.ts +1 -1
  58. package/dist/types/ModlogCombinedView.d.ts +16 -13
  59. package/dist/types/MultiCommunity.d.ts +17 -0
  60. package/dist/types/MultiCommunity.js +2 -0
  61. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  62. package/dist/types/MultiCommunityFollow.js +2 -0
  63. package/dist/types/MultiCommunityId.d.ts +1 -0
  64. package/dist/types/MultiCommunityView.d.ts +6 -0
  65. package/dist/types/MultiCommunityView.js +2 -0
  66. package/dist/types/MyUserInfo.d.ts +2 -1
  67. package/dist/types/NotePerson.d.ts +10 -0
  68. package/dist/types/NotePerson.js +2 -0
  69. package/dist/types/Notification.d.ts +16 -0
  70. package/dist/types/Notification.js +2 -0
  71. package/dist/types/NotificationData.d.ts +10 -0
  72. package/dist/types/NotificationData.js +2 -0
  73. package/dist/types/NotificationDataType.d.ts +4 -0
  74. package/dist/types/NotificationDataType.js +3 -0
  75. package/dist/types/NotificationId.d.ts +1 -0
  76. package/dist/types/NotificationId.js +3 -0
  77. package/dist/types/NotificationTypes.d.ts +4 -0
  78. package/dist/types/NotificationTypes.js +3 -0
  79. package/dist/types/NotificationView.d.ts +6 -0
  80. package/dist/types/NotificationView.js +2 -0
  81. package/dist/types/OpenGraphData.d.ts +4 -0
  82. package/dist/types/PersonActions.d.ts +20 -0
  83. package/dist/types/PersonView.d.ts +4 -4
  84. package/dist/types/PostActions.d.ts +2 -0
  85. package/dist/types/PostActions.js +0 -1
  86. package/dist/types/PostNotificationsMode.d.ts +4 -0
  87. package/dist/types/PostNotificationsMode.js +3 -0
  88. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  89. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  90. package/dist/types/PostReportView.d.ts +3 -1
  91. package/dist/types/PostView.d.ts +4 -5
  92. package/dist/types/PrivateMessage.d.ts +0 -1
  93. package/dist/types/PrivateMessageReportView.d.ts +2 -0
  94. package/dist/types/SaveUserSettings.d.ts +8 -0
  95. package/dist/types/Search.d.ts +1 -1
  96. package/dist/types/SearchCombinedView.d.ts +4 -1
  97. package/dist/types/SearchType.d.ts +1 -1
  98. package/dist/types/Tag.d.ts +6 -14
  99. package/dist/types/TagsView.d.ts +1 -1
  100. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  101. package/dist/types/UpdateCommunityNotifications.js +2 -0
  102. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  103. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  104. package/dist/types/UpdateMultiCommunity.js +2 -0
  105. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  106. package/dist/types/UpdatePostNotifications.js +2 -0
  107. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  108. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  109. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  110. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  111. package/dist/types/UserSettingsBackup.d.ts +27 -0
  112. package/dist/types/UserSettingsBackup.js +2 -0
  113. package/dist/types/VoteView.d.ts +1 -0
  114. package/package.json +6 -5
  115. package/dist/types/CommentReply.d.ts +0 -13
  116. package/dist/types/CommentReplyId.d.ts +0 -4
  117. package/dist/types/CommentReplyView.d.ts +0 -32
  118. package/dist/types/InboxCombinedView.d.ts +0 -13
  119. package/dist/types/InboxDataType.d.ts +0 -4
  120. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  121. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  122. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  123. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  124. package/dist/types/ModAddCommunityId.d.ts +0 -1
  125. package/dist/types/ModAddId.d.ts +0 -1
  126. package/dist/types/ModBanId.d.ts +0 -1
  127. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  128. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  129. package/dist/types/PersonCommentMention.d.ts +0 -13
  130. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  131. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  132. package/dist/types/PersonPostMention.d.ts +0 -13
  133. package/dist/types/PersonPostMentionId.d.ts +0 -4
  134. package/dist/types/PersonPostMentionView.d.ts +0 -32
  135. /package/dist/types/{CommentReply.js → AdminAdd.js} +0 -0
  136. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  137. /package/dist/types/{CommentReplyView.js → AdminAddView.js} +0 -0
  138. /package/dist/types/{InboxCombinedView.js → AdminBan.js} +0 -0
  139. /package/dist/types/{InboxDataType.js → AdminBanId.js} +0 -0
  140. /package/dist/types/{ListInbox.js → AdminBanView.js} +0 -0
  141. /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunity.js} +0 -0
  142. /package/dist/types/{ModAddCommunityId.js → AdminRemoveCommunityId.js} +0 -0
  143. /package/dist/types/{MarkCommentReplyAsRead.js → AdminRemoveCommunityView.js} +0 -0
  144. /package/dist/types/{ModAddId.js → CommunityNotificationsMode.js} +0 -0
  145. /package/dist/types/{ModBanId.js → CreateMultiCommunity.js} +0 -0
  146. /package/dist/types/{MarkPersonCommentMentionAsRead.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  147. /package/dist/types/{MarkPersonPostMentionAsRead.js → ExportDataResponse.js} +0 -0
  148. /package/dist/types/{MarkPrivateMessageAsRead.js → FollowMultiCommunity.js} +0 -0
  149. /package/dist/types/{ModAdd.js → GetMultiCommunity.js} +0 -0
  150. /package/dist/types/{ModAddCommunity.js → GetMultiCommunityResponse.js} +0 -0
  151. /package/dist/types/{ModAddCommunityView.js → ListMultiCommunities.js} +0 -0
  152. /package/dist/types/{ModAddView.js → ListMultiCommunitiesResponse.js} +0 -0
  153. /package/dist/types/{ModBan.js → ListNotifications.js} +0 -0
  154. /package/dist/types/{ModBanView.js → ListNotificationsResponse.js} +0 -0
  155. /package/dist/types/{ModRemoveCommunity.js → LockComment.js} +0 -0
  156. /package/dist/types/{ModRemoveCommunityView.js → MarkNotificationAsRead.js} +0 -0
  157. /package/dist/types/{PersonCommentMention.js → ModAddToCommunity.js} +0 -0
  158. /package/dist/types/{ModRemoveCommunityId.js → ModAddToCommunityId.js} +0 -0
  159. /package/dist/types/{PersonCommentMentionView.js → ModAddToCommunityView.js} +0 -0
  160. /package/dist/types/{PersonPostMention.js → ModEditPost.js} +0 -0
  161. /package/dist/types/{PersonPostMentionView.js → ModLockComment.js} +0 -0
  162. /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
  163. /package/dist/types/{UserBlockInstanceParams.js → ModLockCommentView.js} +0 -0
  164. /package/dist/types/{PersonPostMentionId.js → MultiCommunityId.js} +0 -0
package/README.md CHANGED
@@ -52,6 +52,12 @@ Use `pnpm add` to develop and test changes locally:
52
52
 
53
53
  `pnpm add path/to/lemmy-js-client`
54
54
 
55
+ Alternatively, use `yalc publish` and `yalc add lemmy-js-client`
56
+
57
+ ## Generating typescript types from lemmy structs
58
+
59
+ Run `./scripts/copy_generated_types_from_lemmy.sh`
60
+
55
61
  ## OpenAPI
56
62
 
57
63
  To generate OpenAPI docs, run `pnpm tsoa`
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  import { AddModToCommunity } from "./types/AddModToCommunity";
@@ -25,6 +25,7 @@ import { CreateCommentReport } from "./types/CreateCommentReport";
25
25
  import { CreateCommunity } from "./types/CreateCommunity";
26
26
  import { CreateCommunityReport } from "./types/CreateCommunityReport";
27
27
  import { CreateCommunityTag } from "./types/CreateCommunityTag";
28
+ import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
28
29
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
29
30
  import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
30
31
  import { CreatePost } from "./types/CreatePost";
@@ -69,11 +70,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
69
70
  import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
70
71
  import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
71
72
  import { LockPost } from "./types/LockPost";
73
+ import { LockComment } from "./types/LockComment";
72
74
  import { Login } from "./types/Login";
73
75
  import { LoginResponse } from "./types/LoginResponse";
74
- import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
75
76
  import { MarkPostAsRead } from "./types/MarkPostAsRead";
76
- import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
77
77
  import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
78
78
  import { PasswordReset } from "./types/PasswordReset";
79
79
  import { PostReportResponse } from "./types/PostReportResponse";
@@ -99,7 +99,6 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
99
99
  import { SearchResponse } from "./types/SearchResponse";
100
100
  import { SiteResponse } from "./types/SiteResponse";
101
101
  import { TransferCommunity } from "./types/TransferCommunity";
102
- import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
103
102
  import { VerifyEmail } from "./types/VerifyEmail";
104
103
  import { HideCommunity } from "./types/HideCommunity";
105
104
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
@@ -122,24 +121,34 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
122
121
  import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
123
122
  import { ListReportsResponse } from "./types/ListReportsResponse";
124
123
  import { MyUserInfo } from "./types/MyUserInfo";
125
- import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
126
124
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
127
125
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
128
126
  import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
129
127
  import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
130
128
  import { UploadImageResponse } from "./types/UploadImageResponse";
131
- import { ListInboxResponse } from "./types/ListInboxResponse";
132
- import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
133
- import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
134
129
  import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
135
130
  import { Tag } from "./types/Tag";
136
131
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
137
132
  import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
138
133
  import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
139
134
  import { CommunityIdQuery } from "./types/CommunityIdQuery";
135
+ import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
136
+ import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
137
+ import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
140
138
  import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
139
+ import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
140
+ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
141
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
141
142
  import { ListLoginsResponse } from "./types/ListLoginsResponse";
142
143
  import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
144
+ import { NotePerson } from "./types/NotePerson";
145
+ import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
146
+ import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
147
+ import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
148
+ import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
149
+ import { ModEditPost } from "./types/ModEditPost";
150
+ import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
151
+ import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
143
152
  type RequestOptions = Pick<RequestInit, "signal">;
144
153
  /**
145
154
  * Helps build lemmy HTTP requests.
@@ -323,6 +332,10 @@ export declare class LemmyHttp extends Controller {
323
332
  * @summary Edit a post.
324
333
  */
325
334
  editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
335
+ /**
336
+ * @summary Mods can change nsfw flag and tags for a post
337
+ */
338
+ modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
326
339
  /**
327
340
  * @summary Delete a post.
328
341
  */
@@ -396,11 +409,11 @@ export declare class LemmyHttp extends Controller {
396
409
  */
397
410
  removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
398
411
  /**
399
- * @summary Mark a comment as read.
412
+ * @summary A moderator can lock a comment (IE disable replies).
400
413
  */
401
- markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
414
+ lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
402
415
  /**
403
- * @summary Like / vote on a comment.
416
+ * @Summary Like / vote on a comment.
404
417
  */
405
418
  likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
406
419
  /**
@@ -447,10 +460,6 @@ export declare class LemmyHttp extends Controller {
447
460
  * @summary Delete a private message.
448
461
  */
449
462
  deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
450
- /**
451
- * @summary Mark a private message as read.
452
- */
453
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
454
463
  /**
455
464
  * @summary Create a report for a private message.
456
465
  */
@@ -480,13 +489,9 @@ export declare class LemmyHttp extends Controller {
480
489
  */
481
490
  listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
482
491
  /**
483
- * @summary Mark a person mention as read.
492
+ * @summary Make a note for a person.
484
493
  */
485
- markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
486
- /**
487
- * @summary Mark a person post body mention as read.
488
- */
489
- markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
494
+ notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
490
495
  /**
491
496
  * @summary Ban a person from your site.
492
497
  */
@@ -519,6 +524,10 @@ export declare class LemmyHttp extends Controller {
519
524
  * @summary Mark all replies as read.
520
525
  */
521
526
  markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
527
+ /**
528
+ * @summary Mark a comment as read.
529
+ */
530
+ markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
522
531
  /**
523
532
  * @summary Save your user settings.
524
533
  */
@@ -538,7 +547,7 @@ export declare class LemmyHttp extends Controller {
538
547
  /**
539
548
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
540
549
  */
541
- listInbox(form: ListInboxI, options?: RequestOptions): Promise<ListInboxResponse>;
550
+ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
542
551
  /**
543
552
  * @summary Verify your email
544
553
  */
@@ -636,7 +645,7 @@ export declare class LemmyHttp extends Controller {
636
645
  */
637
646
  createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
638
647
  /**
639
- * @summary Update a community post tag.
648
+ * @summary Edit a community post tag.
640
649
  */
641
650
  updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
642
651
  /**
@@ -668,9 +677,13 @@ export declare class LemmyHttp extends Controller {
668
677
  */
669
678
  listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
670
679
  /**
671
- * @summary Block an instance as user.
680
+ * @summary Block an instance's communities as a user.
672
681
  */
673
- userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
682
+ userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
683
+ /**
684
+ * @summary Block an instance's persons as a user.
685
+ */
686
+ userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
674
687
  /**
675
688
  * @summary Globally block an instance as admin.
676
689
  */
@@ -737,10 +750,23 @@ export declare class LemmyHttp extends Controller {
737
750
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
738
751
  /**
739
752
  * Mark donation dialog as shown, so it isn't displayed anymore.
740
- *
741
- * `HTTP.POST /user/donation_dialog_shown`
742
753
  */
743
- donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
754
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
755
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
756
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
757
+ getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
758
+ createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
759
+ deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
760
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
761
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
762
+ /**
763
+ * @summary Change notification settings for a community
764
+ */
765
+ updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
766
+ /**
767
+ * @summary Change notification settings for a post
768
+ */
769
+ updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
744
770
  /**
745
771
  * Set the headers (can be used to set the auth header)
746
772
  */
package/dist/http.js CHANGED
@@ -298,6 +298,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
298
298
  async editPost(form, options) {
299
299
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
300
300
  }
301
+ /**
302
+ * @summary Mods can change nsfw flag and tags for a post
303
+ */
304
+ async modEditPost(form, options) {
305
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/mod_update", form, options);
306
+ }
301
307
  /**
302
308
  * @summary Delete a post.
303
309
  */
@@ -407,13 +413,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
407
413
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
408
414
  }
409
415
  /**
410
- * @summary Mark a comment as read.
416
+ * @summary A moderator can lock a comment (IE disable replies).
411
417
  */
412
- async markCommentReplyAsRead(form, options) {
413
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
418
+ async lockComment(form, options) {
419
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/lock", form, options);
414
420
  }
415
421
  /**
416
- * @summary Like / vote on a comment.
422
+ * @Summary Like / vote on a comment.
417
423
  */
418
424
  async likeComment(form, options) {
419
425
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
@@ -484,12 +490,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
484
490
  async deletePrivateMessage(form, options) {
485
491
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
486
492
  }
487
- /**
488
- * @summary Mark a private message as read.
489
- */
490
- async markPrivateMessageAsRead(form, options) {
491
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
492
- }
493
493
  /**
494
494
  * @summary Create a report for a private message.
495
495
  */
@@ -533,16 +533,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
533
533
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
534
534
  }
535
535
  /**
536
- * @summary Mark a person mention as read.
536
+ * @summary Make a note for a person.
537
537
  */
538
- async markCommentMentionAsRead(form, options) {
539
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
540
- }
541
- /**
542
- * @summary Mark a person post body mention as read.
543
- */
544
- async markPostMentionAsRead(form, options) {
545
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
538
+ async notePerson(form, options) {
539
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
546
540
  }
547
541
  /**
548
542
  * @summary Ban a person from your site.
@@ -592,6 +586,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
592
586
  async markAllNotificationsAsRead(options) {
593
587
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
594
588
  }
589
+ /**
590
+ * @summary Mark a comment as read.
591
+ */
592
+ async markNotificationAsRead(form, options) {
593
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
594
+ }
595
595
  /**
596
596
  * @summary Save your user settings.
597
597
  */
@@ -619,8 +619,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
619
619
  /**
620
620
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
621
621
  */
622
- async listInbox(form, options) {
623
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
622
+ async listNotifications(form, options) {
623
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
624
624
  }
625
625
  /**
626
626
  * @summary Verify your email
@@ -767,10 +767,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
767
767
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
768
768
  }
769
769
  /**
770
- * @summary Update a community post tag.
770
+ * @summary Edit a community post tag.
771
771
  */
772
772
  updateCommunityTag(form, options) {
773
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/tag", form, options);
773
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
774
774
  }
775
775
  /**
776
776
  * @summary Delete a post tag in a community.
@@ -815,10 +815,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
815
815
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
816
816
  }
817
817
  /**
818
- * @summary Block an instance as user.
818
+ * @summary Block an instance's communities as a user.
819
+ */
820
+ async userBlockInstanceCommunities(form, options) {
821
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
822
+ }
823
+ /**
824
+ * @summary Block an instance's persons as a user.
819
825
  */
820
- async userBlockInstance(form, options) {
821
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
826
+ async userBlockInstancePersons(form, options) {
827
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
822
828
  }
823
829
  /**
824
830
  * @summary Globally block an instance as admin.
@@ -918,11 +924,42 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
918
924
  }
919
925
  /**
920
926
  * Mark donation dialog as shown, so it isn't displayed anymore.
921
- *
922
- * `HTTP.POST /user/donation_dialog_shown`
923
927
  */
924
- donation_dialog_shown(options) {
925
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
928
+ donationDialogShown(options) {
929
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/donation_dialog_shown", {}, options);
930
+ }
931
+ createMultiCommunity(form, options) {
932
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
933
+ }
934
+ updateMultiCommunity(form, options) {
935
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
936
+ }
937
+ getMultiCommunity(form, options) {
938
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
939
+ }
940
+ createMultiCommunityEntry(form, options) {
941
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
942
+ }
943
+ deleteMultiCommunityEntry(form, options) {
944
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
945
+ }
946
+ listMultiCommunities(form, options) {
947
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
948
+ }
949
+ followMultiCommunity(form, options) {
950
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
951
+ }
952
+ /**
953
+ * @summary Change notification settings for a community
954
+ */
955
+ updateCommunityNotifications(form, options) {
956
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/notifications", form, options);
957
+ }
958
+ /**
959
+ * @summary Change notification settings for a post
960
+ */
961
+ updatePostNotifications(form, options) {
962
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/notifications", form, options);
926
963
  }
927
964
  /**
928
965
  * Set the headers (can be used to set the auth header)
@@ -981,6 +1018,7 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
981
1018
  throw new LemmyError(response.statusText);
982
1019
  }
983
1020
  if (!response.ok) {
1021
+ console.error(`Request error while calling ${type_} ${endpoint} with ${form}`);
984
1022
  let err = new LemmyError(json.error ?? response.statusText, json.message);
985
1023
  throw err;
986
1024
  }
@@ -1263,6 +1301,13 @@ __decorate([
1263
1301
  __param(0, (0, runtime_1.Body)()),
1264
1302
  __param(1, (0, runtime_1.Inject)())
1265
1303
  ], LemmyHttp.prototype, "editPost", null);
1304
+ __decorate([
1305
+ (0, runtime_1.Security)("bearerAuth"),
1306
+ (0, runtime_1.Put)("/post/mod_update"),
1307
+ (0, runtime_1.Tags)("Post"),
1308
+ __param(0, (0, runtime_1.Body)()),
1309
+ __param(1, (0, runtime_1.Inject)())
1310
+ ], LemmyHttp.prototype, "modEditPost", null);
1266
1311
  __decorate([
1267
1312
  (0, runtime_1.Security)("bearerAuth"),
1268
1313
  (0, runtime_1.Post)("/post/delete"),
@@ -1392,11 +1437,11 @@ __decorate([
1392
1437
  ], LemmyHttp.prototype, "removeComment", null);
1393
1438
  __decorate([
1394
1439
  (0, runtime_1.Security)("bearerAuth"),
1395
- (0, runtime_1.Post)("/comment/mark_as_read"),
1396
- (0, runtime_1.Tags)("Comment"),
1440
+ (0, runtime_1.Post)("/comment/lock"),
1441
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1397
1442
  __param(0, (0, runtime_1.Body)()),
1398
1443
  __param(1, (0, runtime_1.Inject)())
1399
- ], LemmyHttp.prototype, "markCommentReplyAsRead", null);
1444
+ ], LemmyHttp.prototype, "lockComment", null);
1400
1445
  __decorate([
1401
1446
  (0, runtime_1.Security)("bearerAuth"),
1402
1447
  (0, runtime_1.Post)("/comment/like"),
@@ -1484,13 +1529,6 @@ __decorate([
1484
1529
  __param(0, (0, runtime_1.Body)()),
1485
1530
  __param(1, (0, runtime_1.Inject)())
1486
1531
  ], LemmyHttp.prototype, "deletePrivateMessage", null);
1487
- __decorate([
1488
- (0, runtime_1.Security)("bearerAuth"),
1489
- (0, runtime_1.Post)("/private_message/mark_as_read"),
1490
- (0, runtime_1.Tags)("PrivateMessage"),
1491
- __param(0, (0, runtime_1.Body)()),
1492
- __param(1, (0, runtime_1.Inject)())
1493
- ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
1494
1532
  __decorate([
1495
1533
  (0, runtime_1.Security)("bearerAuth"),
1496
1534
  (0, runtime_1.Post)("/private_message/report"),
@@ -1541,18 +1579,11 @@ __decorate([
1541
1579
  ], LemmyHttp.prototype, "listPersonContent", null);
1542
1580
  __decorate([
1543
1581
  (0, runtime_1.Security)("bearerAuth"),
1544
- (0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
1545
- (0, runtime_1.Tags)("Account", "Person"),
1546
- __param(0, (0, runtime_1.Body)()),
1547
- __param(1, (0, runtime_1.Inject)())
1548
- ], LemmyHttp.prototype, "markCommentMentionAsRead", null);
1549
- __decorate([
1550
- (0, runtime_1.Security)("bearerAuth"),
1551
- (0, runtime_1.Post)("/account/mention/post/mark_as_read"),
1552
- (0, runtime_1.Tags)("Account", "Post"),
1582
+ (0, runtime_1.Post)("/person/note"),
1583
+ (0, runtime_1.Tags)("Person"),
1553
1584
  __param(0, (0, runtime_1.Body)()),
1554
1585
  __param(1, (0, runtime_1.Inject)())
1555
- ], LemmyHttp.prototype, "markPostMentionAsRead", null);
1586
+ ], LemmyHttp.prototype, "notePerson", null);
1556
1587
  __decorate([
1557
1588
  (0, runtime_1.Security)("bearerAuth"),
1558
1589
  (0, runtime_1.Post)("/admin/ban"),
@@ -1606,6 +1637,13 @@ __decorate([
1606
1637
  (0, runtime_1.Tags)("Account"),
1607
1638
  __param(0, (0, runtime_1.Inject)())
1608
1639
  ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1640
+ __decorate([
1641
+ (0, runtime_1.Security)("bearerAuth"),
1642
+ (0, runtime_1.Post)("/account/mark_as_read"),
1643
+ (0, runtime_1.Tags)("Account"),
1644
+ __param(0, (0, runtime_1.Body)()),
1645
+ __param(1, (0, runtime_1.Inject)())
1646
+ ], LemmyHttp.prototype, "markNotificationAsRead", null);
1609
1647
  __decorate([
1610
1648
  (0, runtime_1.Security)("bearerAuth"),
1611
1649
  (0, runtime_1.Put)("/account/settings/save"),
@@ -1635,11 +1673,11 @@ __decorate([
1635
1673
  ], LemmyHttp.prototype, "getUnreadCount", null);
1636
1674
  __decorate([
1637
1675
  (0, runtime_1.Security)("bearerAuth"),
1638
- (0, runtime_1.Get)("/account/inbox"),
1676
+ (0, runtime_1.Get)("/account/notifications"),
1639
1677
  (0, runtime_1.Tags)("Account"),
1640
1678
  __param(0, (0, runtime_1.Queries)()),
1641
1679
  __param(1, (0, runtime_1.Inject)())
1642
- ], LemmyHttp.prototype, "listInbox", null);
1680
+ ], LemmyHttp.prototype, "listNotifications", null);
1643
1681
  __decorate([
1644
1682
  (0, runtime_1.Post)("/account/auth/verify_email"),
1645
1683
  (0, runtime_1.Tags)("Account"),
@@ -1863,11 +1901,18 @@ __decorate([
1863
1901
  ], LemmyHttp.prototype, "listReports", null);
1864
1902
  __decorate([
1865
1903
  (0, runtime_1.Security)("bearerAuth"),
1866
- (0, runtime_1.Post)("/account/block/instance"),
1867
- (0, runtime_1.Tags)("Account"),
1904
+ (0, runtime_1.Post)("/account/block/instance/communities"),
1905
+ (0, runtime_1.Tags)("Account", "Community"),
1868
1906
  __param(0, (0, runtime_1.Body)()),
1869
1907
  __param(1, (0, runtime_1.Inject)())
1870
- ], LemmyHttp.prototype, "userBlockInstance", null);
1908
+ ], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
1909
+ __decorate([
1910
+ (0, runtime_1.Security)("bearerAuth"),
1911
+ (0, runtime_1.Post)("/account/block/instance/persons"),
1912
+ (0, runtime_1.Tags)("Account", "Person"),
1913
+ __param(0, (0, runtime_1.Body)()),
1914
+ __param(1, (0, runtime_1.Inject)())
1915
+ ], LemmyHttp.prototype, "userBlockInstancePersons", null);
1871
1916
  __decorate([
1872
1917
  (0, runtime_1.Security)("bearerAuth"),
1873
1918
  (0, runtime_1.Post)("/admin/instance/block"),
@@ -1977,8 +2022,71 @@ __decorate([
1977
2022
  __param(0, (0, runtime_1.Inject)())
1978
2023
  ], LemmyHttp.prototype, "imageHealth", null);
1979
2024
  __decorate([
2025
+ (0, runtime_1.Security)("bearerAuth"),
2026
+ (0, runtime_1.Post)("/account/donation_dialog_shown"),
2027
+ (0, runtime_1.Tags)("Account"),
1980
2028
  __param(0, (0, runtime_1.Inject)())
1981
- ], LemmyHttp.prototype, "donation_dialog_shown", null);
2029
+ ], LemmyHttp.prototype, "donationDialogShown", null);
2030
+ __decorate([
2031
+ (0, runtime_1.Security)("bearerAuth"),
2032
+ (0, runtime_1.Post)("/multi_community"),
2033
+ (0, runtime_1.Tags)("Multicommunity"),
2034
+ __param(0, (0, runtime_1.Body)()),
2035
+ __param(1, (0, runtime_1.Inject)())
2036
+ ], LemmyHttp.prototype, "createMultiCommunity", null);
2037
+ __decorate([
2038
+ (0, runtime_1.Security)("bearerAuth"),
2039
+ (0, runtime_1.Put)("/multi_community"),
2040
+ (0, runtime_1.Tags)("Multicommunity"),
2041
+ __param(0, (0, runtime_1.Body)()),
2042
+ __param(1, (0, runtime_1.Inject)())
2043
+ ], LemmyHttp.prototype, "updateMultiCommunity", null);
2044
+ __decorate([
2045
+ (0, runtime_1.Get)("/multi_community"),
2046
+ (0, runtime_1.Tags)("Multicommunity"),
2047
+ __param(0, (0, runtime_1.Queries)()),
2048
+ __param(1, (0, runtime_1.Inject)())
2049
+ ], LemmyHttp.prototype, "getMultiCommunity", null);
2050
+ __decorate([
2051
+ (0, runtime_1.Security)("bearerAuth"),
2052
+ (0, runtime_1.Post)("/multi_community/entry"),
2053
+ (0, runtime_1.Tags)("Multicommunity"),
2054
+ __param(0, (0, runtime_1.Body)()),
2055
+ __param(1, (0, runtime_1.Inject)())
2056
+ ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2057
+ __decorate([
2058
+ (0, runtime_1.Security)("bearerAuth"),
2059
+ (0, runtime_1.Delete)("/multi_community/entry"),
2060
+ (0, runtime_1.Tags)("Multicommunity"),
2061
+ __param(0, (0, runtime_1.Body)()),
2062
+ __param(1, (0, runtime_1.Inject)())
2063
+ ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
2064
+ __decorate([
2065
+ (0, runtime_1.Get)("/multi_community/list"),
2066
+ (0, runtime_1.Tags)("Multicommunity"),
2067
+ __param(0, (0, runtime_1.Queries)()),
2068
+ __param(1, (0, runtime_1.Inject)())
2069
+ ], LemmyHttp.prototype, "listMultiCommunities", null);
2070
+ __decorate([
2071
+ (0, runtime_1.Post)("/multi_community/follow"),
2072
+ (0, runtime_1.Tags)("Multicommunity"),
2073
+ __param(0, (0, runtime_1.Body)()),
2074
+ __param(1, (0, runtime_1.Inject)())
2075
+ ], LemmyHttp.prototype, "followMultiCommunity", null);
2076
+ __decorate([
2077
+ (0, runtime_1.Security)("bearerAuth"),
2078
+ (0, runtime_1.Put)("/community/notifications"),
2079
+ (0, runtime_1.Tags)("Community"),
2080
+ __param(0, (0, runtime_1.Body)()),
2081
+ __param(1, (0, runtime_1.Inject)())
2082
+ ], LemmyHttp.prototype, "updateCommunityNotifications", null);
2083
+ __decorate([
2084
+ (0, runtime_1.Security)("bearerAuth"),
2085
+ (0, runtime_1.Put)("/post/notifications"),
2086
+ (0, runtime_1.Tags)("Post"),
2087
+ __param(0, (0, runtime_1.Body)()),
2088
+ __param(1, (0, runtime_1.Inject)())
2089
+ ], LemmyHttp.prototype, "updatePostNotifications", null);
1982
2090
  exports.LemmyHttp = LemmyHttp = __decorate([
1983
2091
  (0, runtime_1.Route)("api/v4")
1984
2092
  ], LemmyHttp);