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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +122 -58
  3. package/dist/http.js +426 -216
  4. package/dist/index.d.ts +71 -40
  5. package/dist/index.js +3 -0
  6. package/dist/other_types.d.ts +25 -7
  7. package/dist/types/AdminAdd.d.ts +12 -0
  8. package/dist/types/AdminAddId.d.ts +1 -0
  9. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  10. package/dist/types/AdminAllowInstance.d.ts +2 -2
  11. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  12. package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +6 -6
  13. package/dist/types/AdminBanId.d.ts +1 -0
  14. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  15. package/dist/types/AdminBlockInstance.d.ts +3 -3
  16. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  17. package/dist/types/AdminListUsers.d.ts +7 -0
  18. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  19. package/dist/types/AdminPurgeComment.d.ts +2 -2
  20. package/dist/types/AdminPurgeCommunity.d.ts +2 -2
  21. package/dist/types/AdminPurgePerson.d.ts +2 -2
  22. package/dist/types/AdminPurgePost.d.ts +2 -2
  23. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +5 -5
  24. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  25. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  26. package/dist/types/AllLemmyErrors.d.ts +1 -0
  27. package/dist/types/AllLemmyErrors.js +117 -0
  28. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  29. package/dist/types/BanFromCommunity.d.ts +2 -2
  30. package/dist/types/BanPerson.d.ts +2 -2
  31. package/dist/types/ChangePassword.d.ts +4 -0
  32. package/dist/types/Comment.d.ts +6 -2
  33. package/dist/types/CommentActions.d.ts +6 -10
  34. package/dist/types/CommentActions.js +1 -0
  35. package/dist/types/CommentReport.d.ts +2 -2
  36. package/dist/types/CommentReportView.d.ts +5 -1
  37. package/dist/types/CommentResponse.d.ts +0 -2
  38. package/dist/types/CommentSlimView.d.ts +2 -6
  39. package/dist/types/CommentSortType.d.ts +1 -1
  40. package/dist/types/CommentView.d.ts +4 -5
  41. package/dist/types/Community.d.ts +2 -2
  42. package/dist/types/CommunityActions.d.ts +11 -17
  43. package/dist/types/CommunityFollowerState.d.ts +1 -1
  44. package/dist/types/CommunityIdQuery.d.ts +8 -0
  45. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  46. package/dist/types/CommunityReport.d.ts +2 -2
  47. package/dist/types/CommunityReportView.d.ts +6 -0
  48. package/dist/types/CommunitySortType.d.ts +1 -1
  49. package/dist/types/CommunityView.d.ts +0 -2
  50. package/dist/types/CommunityVisibility.d.ts +1 -1
  51. package/dist/types/CreateCommentLike.d.ts +2 -2
  52. package/dist/types/CreateCommunityTag.d.ts +3 -1
  53. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  54. package/dist/types/CreateCustomEmoji.js +0 -1
  55. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  56. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  57. package/dist/types/CreatePost.d.ts +1 -1
  58. package/dist/types/CreatePostLike.d.ts +2 -2
  59. package/dist/types/CreateSite.d.ts +17 -14
  60. package/dist/types/CustomEmoji.d.ts +2 -2
  61. package/dist/types/EditCustomEmoji.d.ts +7 -5
  62. package/dist/types/EditPost.d.ts +1 -1
  63. package/dist/types/EditSite.d.ts +30 -20
  64. package/dist/types/ExportDataResponse.d.ts +13 -0
  65. package/dist/types/FederatedInstanceView.d.ts +12 -0
  66. package/dist/types/FederationAllowList.d.ts +4 -0
  67. package/dist/types/FederationBlockList.d.ts +3 -5
  68. package/dist/types/FederationBlockList.js +1 -0
  69. package/dist/types/FederationMode.d.ts +1 -1
  70. package/dist/types/FederationQueueState.d.ts +18 -0
  71. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  72. package/dist/types/GetComments.d.ts +0 -2
  73. package/dist/types/GetFederatedInstances.d.ts +9 -0
  74. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  75. package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
  76. package/dist/types/GetMultiCommunity.d.ts +5 -0
  77. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  78. package/dist/types/GetPosts.d.ts +2 -2
  79. package/dist/types/HideCommunity.d.ts +1 -1
  80. package/dist/types/Instance.d.ts +4 -3
  81. package/dist/types/InstanceActions.d.ts +8 -8
  82. package/dist/types/InstanceActions.js +1 -0
  83. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  84. package/dist/types/LemmyErrorType.d.ts +28 -146
  85. package/dist/types/LikeType.d.ts +4 -0
  86. package/dist/types/LinkMetadata.d.ts +4 -0
  87. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  88. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  89. package/dist/types/ListMultiCommunities.d.ts +5 -0
  90. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  91. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  92. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  93. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  94. package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
  95. package/dist/types/ListPersonLiked.d.ts +13 -0
  96. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  97. package/dist/types/ListPersonRead.d.ts +9 -0
  98. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  99. package/dist/types/ListingType.d.ts +1 -1
  100. package/dist/types/LocalImage.d.ts +8 -3
  101. package/dist/types/LocalImageView.d.ts +2 -0
  102. package/dist/types/LocalSite.d.ts +9 -10
  103. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  104. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  105. package/dist/types/LocalUser.d.ts +13 -14
  106. package/dist/types/LocalUserView.d.ts +2 -2
  107. package/dist/types/LockComment.d.ts +9 -0
  108. package/dist/types/LockPost.d.ts +1 -0
  109. package/dist/types/Login.d.ts +7 -0
  110. package/dist/types/LoginToken.d.ts +1 -1
  111. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  112. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  113. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
  114. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  115. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  116. package/dist/types/ModBanFromCommunity.d.ts +3 -3
  117. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  118. package/dist/types/ModEditPost.d.ts +10 -0
  119. package/dist/types/ModEditPost.js +2 -0
  120. package/dist/types/ModFeaturePost.d.ts +1 -1
  121. package/dist/types/ModLockComment.d.ts +14 -0
  122. package/dist/types/ModLockComment.js +2 -0
  123. package/dist/types/ModLockCommentId.d.ts +1 -0
  124. package/dist/types/ModLockCommentId.js +3 -0
  125. package/dist/types/ModLockCommentView.d.ts +16 -0
  126. package/dist/types/ModLockCommentView.js +2 -0
  127. package/dist/types/ModLockPost.d.ts +2 -1
  128. package/dist/types/ModRemoveComment.d.ts +2 -2
  129. package/dist/types/ModRemovePost.d.ts +2 -2
  130. package/dist/types/ModTransferCommunity.d.ts +1 -1
  131. package/dist/types/ModlogActionType.d.ts +1 -1
  132. package/dist/types/ModlogCombinedView.d.ts +29 -26
  133. package/dist/types/MultiCommunity.d.ts +17 -0
  134. package/dist/types/MultiCommunity.js +2 -0
  135. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  136. package/dist/types/MultiCommunityEntry.js +2 -0
  137. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  138. package/dist/types/MultiCommunityFollow.js +2 -0
  139. package/dist/types/MultiCommunityId.d.ts +1 -0
  140. package/dist/types/MultiCommunityId.js +3 -0
  141. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  142. package/dist/types/MultiCommunityResponse.js +2 -0
  143. package/dist/types/MultiCommunityView.d.ts +8 -0
  144. package/dist/types/MultiCommunityView.js +2 -0
  145. package/dist/types/MyUserInfo.d.ts +2 -1
  146. package/dist/types/NotePerson.d.ts +10 -0
  147. package/dist/types/NotePerson.js +2 -0
  148. package/dist/types/Notification.d.ts +36 -0
  149. package/dist/types/Notification.js +2 -0
  150. package/dist/types/NotificationData.d.ts +40 -0
  151. package/dist/types/NotificationData.js +2 -0
  152. package/dist/types/NotificationDataType.d.ts +4 -0
  153. package/dist/types/NotificationDataType.js +3 -0
  154. package/dist/types/NotificationId.d.ts +1 -0
  155. package/dist/types/NotificationId.js +3 -0
  156. package/dist/types/NotificationType.d.ts +4 -0
  157. package/dist/types/NotificationType.js +3 -0
  158. package/dist/types/NotificationView.d.ts +6 -0
  159. package/dist/types/NotificationView.js +2 -0
  160. package/dist/types/OAuthAccount.d.ts +2 -2
  161. package/dist/types/OAuthProvider.d.ts +2 -2
  162. package/dist/types/OpenGraphData.d.ts +4 -0
  163. package/dist/types/PendingFollowerView.d.ts +9 -0
  164. package/dist/types/PendingFollowerView.js +2 -0
  165. package/dist/types/Person.d.ts +2 -2
  166. package/dist/types/PersonActions.d.ts +21 -4
  167. package/dist/types/PersonActions.js +1 -0
  168. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  169. package/dist/types/PersonContentType.d.ts +1 -1
  170. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  171. package/dist/types/PersonLikedCombinedView.js +2 -0
  172. package/dist/types/PersonResponse.d.ts +7 -0
  173. package/dist/types/PersonResponse.js +2 -0
  174. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  175. package/dist/types/PersonView.d.ts +4 -4
  176. package/dist/types/Post.d.ts +9 -7
  177. package/dist/types/PostActions.d.ts +15 -17
  178. package/dist/types/PostFeatureType.d.ts +1 -1
  179. package/dist/types/PostListingMode.d.ts +1 -1
  180. package/dist/types/PostNotificationsMode.d.ts +4 -0
  181. package/dist/types/PostNotificationsMode.js +3 -0
  182. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  183. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  184. package/dist/types/PostReport.d.ts +2 -2
  185. package/dist/types/PostReportView.d.ts +5 -1
  186. package/dist/types/PostSortType.d.ts +1 -1
  187. package/dist/types/PostView.d.ts +4 -5
  188. package/dist/types/PrivateMessage.d.ts +2 -3
  189. package/dist/types/PrivateMessageReport.d.ts +2 -2
  190. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  191. package/dist/types/PurgeComment.d.ts +1 -1
  192. package/dist/types/PurgeCommunity.d.ts +1 -1
  193. package/dist/types/PurgePerson.d.ts +1 -1
  194. package/dist/types/PurgePost.d.ts +1 -1
  195. package/dist/types/ReadableFederationState.d.ts +3 -3
  196. package/dist/types/Register.d.ts +4 -0
  197. package/dist/types/RegistrationApplication.d.ts +1 -1
  198. package/dist/types/RegistrationMode.d.ts +1 -1
  199. package/dist/types/RemoveComment.d.ts +1 -1
  200. package/dist/types/RemoveCommunity.d.ts +1 -1
  201. package/dist/types/RemovePost.d.ts +1 -1
  202. package/dist/types/ReportCombinedView.d.ts +4 -4
  203. package/dist/types/ReportType.d.ts +1 -1
  204. package/dist/types/SaveUserSettings.d.ts +11 -6
  205. package/dist/types/Search.d.ts +5 -1
  206. package/dist/types/SearchCombinedView.d.ts +8 -5
  207. package/dist/types/SearchSortType.d.ts +1 -1
  208. package/dist/types/SearchType.d.ts +1 -1
  209. package/dist/types/Site.d.ts +4 -3
  210. package/dist/types/SiteResponse.d.ts +0 -4
  211. package/dist/types/Tag.d.ts +8 -16
  212. package/dist/types/Tagline.d.ts +2 -2
  213. package/dist/types/TagsView.d.ts +1 -1
  214. package/dist/types/UntranslatedError.d.ts +14 -0
  215. package/dist/types/UntranslatedError.js +3 -0
  216. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  217. package/dist/types/UpdateCommunityNotifications.js +2 -0
  218. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  219. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  220. package/dist/types/UpdateMultiCommunity.js +2 -0
  221. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  222. package/dist/types/UpdatePostNotifications.js +2 -0
  223. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  224. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  225. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  226. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  227. package/dist/types/UserSettingsBackup.d.ts +29 -0
  228. package/dist/types/UserSettingsBackup.js +2 -0
  229. package/dist/types/VoteShow.d.ts +4 -0
  230. package/dist/types/VoteShow.js +3 -0
  231. package/dist/types/VoteView.d.ts +5 -2
  232. package/package.json +7 -6
  233. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  234. package/dist/types/BanPersonResponse.d.ts +0 -8
  235. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  236. package/dist/types/BlockPersonResponse.d.ts +0 -8
  237. package/dist/types/CommentReply.d.ts +0 -13
  238. package/dist/types/CommentReplyId.d.ts +0 -4
  239. package/dist/types/CommentReplyView.d.ts +0 -32
  240. package/dist/types/FederatedInstances.d.ts +0 -9
  241. package/dist/types/FederationError.d.ts +0 -10
  242. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  243. package/dist/types/InboxCombinedView.d.ts +0 -13
  244. package/dist/types/InboxDataType.d.ts +0 -4
  245. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  246. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  247. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  248. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  249. package/dist/types/ModAdd.d.ts +0 -12
  250. package/dist/types/ModAddCommunityId.d.ts +0 -1
  251. package/dist/types/ModAddId.d.ts +0 -1
  252. package/dist/types/ModBanId.d.ts +0 -1
  253. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  254. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  255. package/dist/types/PersonCommentMention.d.ts +0 -13
  256. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  257. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  258. package/dist/types/PersonPostMention.d.ts +0 -13
  259. package/dist/types/PersonPostMentionId.d.ts +0 -4
  260. package/dist/types/PersonPostMentionView.d.ts +0 -32
  261. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  262. /package/dist/types/{BanFromCommunityResponse.js → AdminAdd.js} +0 -0
  263. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  264. /package/dist/types/{BanPersonResponse.js → AdminAddView.js} +0 -0
  265. /package/dist/types/{BannedPersonsResponse.js → AdminBan.js} +0 -0
  266. /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
  267. /package/dist/types/{BlockCommunityResponse.js → AdminBanView.js} +0 -0
  268. /package/dist/types/{BlockPersonResponse.js → AdminListUsers.js} +0 -0
  269. /package/dist/types/{CommentReply.js → AdminListUsersResponse.js} +0 -0
  270. /package/dist/types/{CommentReplyView.js → AdminRemoveCommunity.js} +0 -0
  271. /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
  272. /package/dist/types/{FederatedInstances.js → AdminRemoveCommunityView.js} +0 -0
  273. /package/dist/types/{GetCommunityPendingFollowsCount.js → CommunityIdQuery.js} +0 -0
  274. /package/dist/types/{ModAddCommunityId.js → CommunityNotificationsMode.js} +0 -0
  275. /package/dist/types/{ModAddId.js → CreateMultiCommunity.js} +0 -0
  276. /package/dist/types/{InboxCombinedView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  277. /package/dist/types/{ListBannedPersons.js → ExportDataResponse.js} +0 -0
  278. /package/dist/types/{ListInbox.js → FederatedInstanceView.js} +0 -0
  279. /package/dist/types/{ModBanId.js → FederationAllowList.js} +0 -0
  280. /package/dist/types/{ListInboxResponse.js → FederationQueueState.js} +0 -0
  281. /package/dist/types/{MarkCommentReplyAsRead.js → FollowMultiCommunity.js} +0 -0
  282. /package/dist/types/{MarkPersonCommentMentionAsRead.js → GetFederatedInstances.js} +0 -0
  283. /package/dist/types/{ModRemoveCommunityId.js → GetFederatedInstancesKind.js} +0 -0
  284. /package/dist/types/{MarkPersonPostMentionAsRead.js → GetMultiCommunity.js} +0 -0
  285. /package/dist/types/{MarkPrivateMessageAsRead.js → GetMultiCommunityResponse.js} +0 -0
  286. /package/dist/types/{PersonCommentMentionId.js → LikeType.js} +0 -0
  287. /package/dist/types/{ModAdd.js → ListMultiCommunities.js} +0 -0
  288. /package/dist/types/{ModAddCommunity.js → ListMultiCommunitiesResponse.js} +0 -0
  289. /package/dist/types/{ModAddCommunityView.js → ListNotifications.js} +0 -0
  290. /package/dist/types/{ModAddView.js → ListNotificationsResponse.js} +0 -0
  291. /package/dist/types/{ModBan.js → ListPersonHidden.js} +0 -0
  292. /package/dist/types/{ModBanView.js → ListPersonHiddenResponse.js} +0 -0
  293. /package/dist/types/{ModRemoveCommunity.js → ListPersonLiked.js} +0 -0
  294. /package/dist/types/{ModRemoveCommunityView.js → ListPersonLikedResponse.js} +0 -0
  295. /package/dist/types/{PersonCommentMention.js → ListPersonRead.js} +0 -0
  296. /package/dist/types/{PersonCommentMentionView.js → ListPersonReadResponse.js} +0 -0
  297. /package/dist/types/{PersonPostMention.js → LockComment.js} +0 -0
  298. /package/dist/types/{PersonPostMentionView.js → MarkNotificationAsRead.js} +0 -0
  299. /package/dist/types/{ResolveObjectResponse.js → ModAddToCommunity.js} +0 -0
  300. /package/dist/types/{PersonPostMentionId.js → ModAddToCommunityId.js} +0 -0
  301. /package/dist/types/{UserBlockInstanceParams.js → ModAddToCommunityView.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,29 +1,27 @@
1
1
  import { Controller } from "@tsoa/runtime";
2
- import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, 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, GetFederatedInstancesI } from "./other_types";
3
3
  import { AddAdmin } from "./types/AddAdmin";
4
4
  import { AddAdminResponse } from "./types/AddAdminResponse";
5
5
  import { AddModToCommunity } from "./types/AddModToCommunity";
6
6
  import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
7
7
  import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
8
8
  import { BanFromCommunity } from "./types/BanFromCommunity";
9
- import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
10
9
  import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
11
10
  import { BanPerson } from "./types/BanPerson";
12
- import { BanPersonResponse } from "./types/BanPersonResponse";
13
- import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
14
11
  import { BlockCommunity } from "./types/BlockCommunity";
15
- import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
16
12
  import { BlockPerson } from "./types/BlockPerson";
17
- import { BlockPersonResponse } from "./types/BlockPersonResponse";
18
13
  import { ChangePassword } from "./types/ChangePassword";
19
14
  import { CommentReportResponse } from "./types/CommentReportResponse";
20
15
  import { CommentResponse } from "./types/CommentResponse";
16
+ import { CommunityReportResponse } from "./types/CommunityReportResponse";
21
17
  import { CommunityResponse } from "./types/CommunityResponse";
22
18
  import { CreateComment } from "./types/CreateComment";
23
19
  import { CreateCommentLike } from "./types/CreateCommentLike";
24
20
  import { CreateCommentReport } from "./types/CreateCommentReport";
25
21
  import { CreateCommunity } from "./types/CreateCommunity";
22
+ import { CreateCommunityReport } from "./types/CreateCommunityReport";
26
23
  import { CreateCommunityTag } from "./types/CreateCommunityTag";
24
+ import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
27
25
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
28
26
  import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
29
27
  import { CreatePost } from "./types/CreatePost";
@@ -68,11 +66,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
68
66
  import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
69
67
  import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
70
68
  import { LockPost } from "./types/LockPost";
69
+ import { LockComment } from "./types/LockComment";
71
70
  import { Login } from "./types/Login";
72
71
  import { LoginResponse } from "./types/LoginResponse";
73
- import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
74
72
  import { MarkPostAsRead } from "./types/MarkPostAsRead";
75
- import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
76
73
  import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
77
74
  import { PasswordReset } from "./types/PasswordReset";
78
75
  import { PostReportResponse } from "./types/PostReportResponse";
@@ -89,7 +86,7 @@ import { RemoveComment } from "./types/RemoveComment";
89
86
  import { RemoveCommunity } from "./types/RemoveCommunity";
90
87
  import { RemovePost } from "./types/RemovePost";
91
88
  import { ResolveCommentReport } from "./types/ResolveCommentReport";
92
- import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
89
+ import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
93
90
  import { ResolvePostReport } from "./types/ResolvePostReport";
94
91
  import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
95
92
  import { SaveComment } from "./types/SaveComment";
@@ -98,14 +95,12 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
98
95
  import { SearchResponse } from "./types/SearchResponse";
99
96
  import { SiteResponse } from "./types/SiteResponse";
100
97
  import { TransferCommunity } from "./types/TransferCommunity";
101
- import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
102
98
  import { VerifyEmail } from "./types/VerifyEmail";
103
99
  import { HideCommunity } from "./types/HideCommunity";
104
100
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
105
101
  import { UpdateTotp } from "./types/UpdateTotp";
106
102
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
107
103
  import { SuccessResponse } from "./types/SuccessResponse";
108
- import { LoginToken } from "./types/LoginToken";
109
104
  import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
110
105
  import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
111
106
  import { HidePost } from "./types/HidePost";
@@ -122,18 +117,36 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
122
117
  import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
123
118
  import { ListReportsResponse } from "./types/ListReportsResponse";
124
119
  import { MyUserInfo } from "./types/MyUserInfo";
125
- import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
126
120
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
127
121
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
128
122
  import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
129
123
  import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
130
124
  import { UploadImageResponse } from "./types/UploadImageResponse";
131
- import { ListInboxResponse } from "./types/ListInboxResponse";
132
- import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
133
- import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
134
125
  import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
135
126
  import { Tag } from "./types/Tag";
136
127
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
128
+ import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
129
+ import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
130
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
131
+ import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
132
+ import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
133
+ import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
134
+ import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
135
+ import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
136
+ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
137
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
138
+ import { ListLoginsResponse } from "./types/ListLoginsResponse";
139
+ import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
140
+ import { NotePerson } from "./types/NotePerson";
141
+ import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
142
+ import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
143
+ import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
144
+ import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
145
+ import { ModEditPost } from "./types/ModEditPost";
146
+ import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
147
+ import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
148
+ import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
149
+ import { PersonResponse } from "./types/PersonResponse";
137
150
  type RequestOptions = Pick<RequestInit, "signal">;
138
151
  /**
139
152
  * Helps build lemmy HTTP requests.
@@ -192,19 +205,27 @@ export declare class LemmyHttp extends Controller {
192
205
  /**
193
206
  * @summary List login tokens for your user
194
207
  */
195
- listLogins(options?: RequestOptions): Promise<LoginToken[]>;
208
+ listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
196
209
  /**
197
210
  * @summary Returns an error message if your auth token is invalid
198
211
  */
199
212
  validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
200
213
  /**
201
- * @summary List all the media for your user
214
+ * @summary List all the media for your account.
202
215
  */
203
216
  listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
217
+ /**
218
+ * @summary Delete media for your account.
219
+ */
220
+ deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
221
+ /**
222
+ * @summary Delete any media. (Admin only)
223
+ */
224
+ deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
204
225
  /**
205
226
  * @summary List all the media known to your instance.
206
227
  */
207
- listAllMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
228
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
208
229
  /**
209
230
  * @summary Enable / Disable TOTP / two-factor authentication.
210
231
  *
@@ -218,13 +239,13 @@ export declare class LemmyHttp extends Controller {
218
239
  */
219
240
  getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
220
241
  /**
221
- * @summary Search lemmy.
242
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
222
243
  */
223
244
  search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
224
245
  /**
225
246
  * @summary Fetch a non-local / federated object.
226
247
  */
227
- resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<ResolveObjectResponse>;
248
+ resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
228
249
  /**
229
250
  * @summary Create a new community.
230
251
  */
@@ -248,7 +269,7 @@ export declare class LemmyHttp extends Controller {
248
269
  /**
249
270
  * @summary Get a community's pending follows count.
250
271
  */
251
- getCommunityPendingFollowsCount(form: GetCommunityPendingFollowsCountI, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
272
+ getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
252
273
  /**
253
274
  * @summary Get a community's pending followers.
254
275
  */
@@ -260,7 +281,7 @@ export declare class LemmyHttp extends Controller {
260
281
  /**
261
282
  * @summary Block a community.
262
283
  */
263
- blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
284
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
264
285
  /**
265
286
  * @summary Delete a community.
266
287
  */
@@ -280,7 +301,7 @@ export declare class LemmyHttp extends Controller {
280
301
  /**
281
302
  * @summary Ban a user from a community.
282
303
  */
283
- banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
304
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
284
305
  /**
285
306
  * @summary Add a moderator to your community.
286
307
  */
@@ -289,6 +310,14 @@ export declare class LemmyHttp extends Controller {
289
310
  * @summary Get a random community.
290
311
  */
291
312
  getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
313
+ /**
314
+ * @summary Create a report for a community.
315
+ */
316
+ createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
317
+ /**
318
+ * @summary Resolve a report for a private message.
319
+ */
320
+ resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
292
321
  /**
293
322
  * @summary Create a post.
294
323
  */
@@ -301,6 +330,10 @@ export declare class LemmyHttp extends Controller {
301
330
  * @summary Edit a post.
302
331
  */
303
332
  editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
333
+ /**
334
+ * @summary Mods can change nsfw flag and tags for a post
335
+ */
336
+ modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
304
337
  /**
305
338
  * @summary Delete a post.
306
339
  */
@@ -312,7 +345,7 @@ export declare class LemmyHttp extends Controller {
312
345
  /**
313
346
  * @summary Mark a post as read.
314
347
  */
315
- markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
348
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
316
349
  /**
317
350
  * @summary Mark multiple posts as read.
318
351
  */
@@ -320,7 +353,7 @@ export declare class LemmyHttp extends Controller {
320
353
  /**
321
354
  * @summary Hide a post from list views.
322
355
  */
323
- hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
356
+ hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
324
357
  /**
325
358
  * @summary A moderator can lock a post ( IE disable new comments ).
326
359
  */
@@ -374,11 +407,11 @@ export declare class LemmyHttp extends Controller {
374
407
  */
375
408
  removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
376
409
  /**
377
- * @summary Mark a comment as read.
410
+ * @summary A moderator can lock a comment (IE disable replies).
378
411
  */
379
- markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
412
+ lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
380
413
  /**
381
- * @summary Like / vote on a comment.
414
+ * @Summary Like / vote on a comment.
382
415
  */
383
416
  likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
384
417
  /**
@@ -425,10 +458,6 @@ export declare class LemmyHttp extends Controller {
425
458
  * @summary Delete a private message.
426
459
  */
427
460
  deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
428
- /**
429
- * @summary Mark a private message as read.
430
- */
431
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
432
461
  /**
433
462
  * @summary Create a report for a private message.
434
463
  */
@@ -458,25 +487,21 @@ export declare class LemmyHttp extends Controller {
458
487
  */
459
488
  listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
460
489
  /**
461
- * @summary Mark a person mention as read.
490
+ * @summary Make a note for a person.
462
491
  */
463
- markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
464
- /**
465
- * @summary Mark a person post body mention as read.
466
- */
467
- markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
492
+ notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
468
493
  /**
469
494
  * @summary Ban a person from your site.
470
495
  */
471
- banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
496
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
472
497
  /**
473
- * @summary Get a list of banned users.
498
+ * @summary Get a list of users.
474
499
  */
475
- listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
500
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
476
501
  /**
477
502
  * @summary Block a person.
478
503
  */
479
- blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
504
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
480
505
  /**
481
506
  * @summary Fetch a Captcha.
482
507
  */
@@ -497,6 +522,10 @@ export declare class LemmyHttp extends Controller {
497
522
  * @summary Mark all replies as read.
498
523
  */
499
524
  markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
525
+ /**
526
+ * @summary Mark a notification as read.
527
+ */
528
+ markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
500
529
  /**
501
530
  * @summary Save your user settings.
502
531
  */
@@ -516,7 +545,7 @@ export declare class LemmyHttp extends Controller {
516
545
  /**
517
546
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
518
547
  */
519
- listInbox(form: ListInboxI, options?: RequestOptions): Promise<ListInboxResponse>;
548
+ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
520
549
  /**
521
550
  * @summary Verify your email
522
551
  */
@@ -529,6 +558,18 @@ export declare class LemmyHttp extends Controller {
529
558
  * @summary List your saved content.
530
559
  */
531
560
  listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
561
+ /**
562
+ * @summary List your read content.
563
+ */
564
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
565
+ /**
566
+ * @summary List your hidden content.
567
+ */
568
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
569
+ /**
570
+ * @summary List your liked content.
571
+ */
572
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
532
573
  /**
533
574
  * @summary Add an admin to your site.
534
575
  */
@@ -602,7 +643,7 @@ export declare class LemmyHttp extends Controller {
602
643
  */
603
644
  createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
604
645
  /**
605
- * @summary Update a community post tag.
646
+ * @summary Edit a community post tag.
606
647
  */
607
648
  updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
608
649
  /**
@@ -628,15 +669,19 @@ export declare class LemmyHttp extends Controller {
628
669
  /**
629
670
  * @summary Fetch federated instances.
630
671
  */
631
- getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
672
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
632
673
  /**
633
674
  * @summary List user reports.
634
675
  */
635
676
  listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
636
677
  /**
637
- * @summary Block an instance as user.
678
+ * @summary Block an instance's communities as a user.
679
+ */
680
+ userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
681
+ /**
682
+ * @summary Block an instance's persons as a user.
638
683
  */
639
- userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
684
+ userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
640
685
  /**
641
686
  * @summary Globally block an instance as admin.
642
687
  */
@@ -664,19 +709,19 @@ export declare class LemmyHttp extends Controller {
664
709
  /**
665
710
  * @summary Upload new community icon.
666
711
  */
667
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
712
+ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
668
713
  /**
669
714
  * @summary Delete the community icon.
670
715
  */
671
- deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
716
+ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
672
717
  /**
673
718
  * @summary Upload new community banner.
674
719
  */
675
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
720
+ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
676
721
  /**
677
722
  * @summary Delete the community banner.
678
723
  */
679
- deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
724
+ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
680
725
  /**
681
726
  * @summary Upload new site icon.
682
727
  */
@@ -697,20 +742,29 @@ export declare class LemmyHttp extends Controller {
697
742
  * @summary Upload an image to the server.
698
743
  */
699
744
  uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
700
- /**
701
- * @summary Delete a pictrs image
702
- */
703
- deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
704
745
  /**
705
746
  * @summary Health check for image functionality
706
747
  */
707
748
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
708
749
  /**
709
750
  * Mark donation dialog as shown, so it isn't displayed anymore.
710
- *
711
- * `HTTP.POST /user/donation_dialog_shown`
712
751
  */
713
- donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
752
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
753
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
754
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
755
+ getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
756
+ createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
757
+ deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
758
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
759
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
760
+ /**
761
+ * @summary Change notification settings for a community
762
+ */
763
+ updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
764
+ /**
765
+ * @summary Change notification settings for a post
766
+ */
767
+ updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
714
768
  /**
715
769
  * Set the headers (can be used to set the auth header)
716
770
  */
@@ -718,4 +772,14 @@ export declare class LemmyHttp extends Controller {
718
772
  [key: string]: string;
719
773
  }): void;
720
774
  }
775
+ /**
776
+ * A Lemmy error type.
777
+ *
778
+ * The name is the i18n translatable error code.
779
+ * The msg is either an empty string, or extra non-translatable info.
780
+ */
781
+ export declare class LemmyError extends Error {
782
+ status: number;
783
+ constructor(name: string, status: number, msg?: string);
784
+ }
721
785
  export {};