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