lemmy-js-client 1.0.0-community-reports.0 → 1.0.0-community-sidebar-summary.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 (389) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +137 -103
  3. package/dist/http.js +282 -147
  4. package/dist/index.d.ts +59 -104
  5. package/dist/index.js +3 -0
  6. package/dist/other_types.d.ts +25 -10
  7. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  9. package/dist/types/AdminListUsers.d.ts +6 -0
  10. package/dist/types/{OAuthProvider.d.ts → AdminOAuthProvider.d.ts} +3 -3
  11. package/dist/types/AllLemmyErrors.d.ts +1 -0
  12. package/dist/types/AllLemmyErrors.js +116 -0
  13. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  14. package/dist/types/BanFromCommunity.d.ts +2 -2
  15. package/dist/types/BanPerson.d.ts +2 -2
  16. package/dist/types/ChangePassword.d.ts +4 -0
  17. package/dist/types/Comment.d.ts +6 -2
  18. package/dist/types/CommentActions.d.ts +6 -10
  19. package/dist/types/CommentActions.js +1 -0
  20. package/dist/types/CommentReport.d.ts +2 -2
  21. package/dist/types/CommentReportView.d.ts +5 -1
  22. package/dist/types/CommentResponse.d.ts +0 -2
  23. package/dist/types/CommentSlimView.d.ts +2 -6
  24. package/dist/types/CommentSortType.d.ts +1 -1
  25. package/dist/types/CommentView.d.ts +4 -5
  26. package/dist/types/Community.d.ts +4 -4
  27. package/dist/types/CommunityActions.d.ts +11 -17
  28. package/dist/types/CommunityFollowerState.d.ts +1 -1
  29. package/dist/types/CommunityIdQuery.d.ts +8 -0
  30. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  31. package/dist/types/CommunityReport.d.ts +2 -2
  32. package/dist/types/CommunityReportView.d.ts +6 -0
  33. package/dist/types/CommunitySortType.d.ts +1 -1
  34. package/dist/types/CommunityView.d.ts +0 -2
  35. package/dist/types/CommunityVisibility.d.ts +1 -1
  36. package/dist/types/CreateCommentLike.d.ts +2 -2
  37. package/dist/types/CreateCommunityTag.d.ts +3 -1
  38. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  39. package/dist/types/CreateCustomEmoji.js +0 -1
  40. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  41. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  42. package/dist/types/CreatePost.d.ts +1 -1
  43. package/dist/types/CreatePostLike.d.ts +2 -2
  44. package/dist/types/CreateSite.d.ts +16 -14
  45. package/dist/types/CustomEmoji.d.ts +2 -2
  46. package/dist/types/EditCustomEmoji.d.ts +7 -5
  47. package/dist/types/EditPost.d.ts +1 -1
  48. package/dist/types/EditSite.d.ts +26 -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 +0 -3
  58. package/dist/types/GetFederatedInstances.d.ts +8 -0
  59. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  60. package/dist/types/GetModlog.d.ts +2 -3
  61. package/dist/types/GetMultiCommunity.d.ts +5 -0
  62. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  63. package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
  64. package/dist/types/GetPosts.d.ts +3 -3
  65. package/dist/types/GetSiteResponse.d.ts +8 -2
  66. package/dist/types/HideCommunity.d.ts +1 -1
  67. package/dist/types/Instance.d.ts +4 -3
  68. package/dist/types/InstanceActions.d.ts +8 -8
  69. package/dist/types/InstanceActions.js +1 -0
  70. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  71. package/dist/types/LemmyErrorType.d.ts +30 -150
  72. package/dist/types/LikeType.d.ts +4 -0
  73. package/dist/types/LinkMetadata.d.ts +4 -0
  74. package/dist/types/ListCommentLikes.d.ts +0 -1
  75. package/dist/types/ListCommunities.d.ts +0 -1
  76. package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
  77. package/dist/types/ListMedia.d.ts +0 -1
  78. package/dist/types/ListMultiCommunities.d.ts +16 -0
  79. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -4
  80. package/dist/types/ListPersonContent.d.ts +0 -1
  81. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -3
  82. package/dist/types/ListPersonLiked.d.ts +12 -0
  83. package/dist/types/ListPersonRead.d.ts +8 -0
  84. package/dist/types/ListPersonSaved.d.ts +0 -1
  85. package/dist/types/ListPostLikes.d.ts +0 -1
  86. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  87. package/dist/types/ListReports.d.ts +0 -1
  88. package/dist/types/ListTaglines.d.ts +0 -1
  89. package/dist/types/ListingType.d.ts +1 -1
  90. package/dist/types/LocalImage.d.ts +8 -3
  91. package/dist/types/LocalImageView.d.ts +2 -0
  92. package/dist/types/LocalSite.d.ts +5 -10
  93. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  94. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  95. package/dist/types/LocalUser.d.ts +13 -14
  96. package/dist/types/LocalUserView.d.ts +2 -2
  97. package/dist/types/LockComment.d.ts +9 -0
  98. package/dist/types/LockPost.d.ts +1 -0
  99. package/dist/types/Login.d.ts +7 -0
  100. package/dist/types/LoginToken.d.ts +1 -1
  101. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  102. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  103. package/dist/types/ModEditPost.d.ts +10 -0
  104. package/dist/types/Modlog.d.ts +10 -0
  105. package/dist/types/ModlogId.d.ts +1 -0
  106. package/dist/types/ModlogKind.d.ts +4 -0
  107. package/dist/types/ModlogView.d.ts +15 -0
  108. package/dist/types/MultiCommunity.d.ts +20 -0
  109. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  110. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  111. package/dist/types/MultiCommunityId.d.ts +1 -0
  112. package/dist/types/MultiCommunityListingType.d.ts +4 -0
  113. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  114. package/dist/types/MultiCommunitySortType.d.ts +1 -0
  115. package/dist/types/MultiCommunityView.d.ts +8 -0
  116. package/dist/types/MyUserInfo.d.ts +4 -1
  117. package/dist/types/NotePerson.d.ts +10 -0
  118. package/dist/types/Notification.d.ts +18 -0
  119. package/dist/types/NotificationData.d.ts +13 -0
  120. package/dist/types/NotificationDataType.d.ts +4 -0
  121. package/dist/types/NotificationId.d.ts +1 -0
  122. package/dist/types/NotificationType.d.ts +4 -0
  123. package/dist/types/NotificationView.d.ts +6 -0
  124. package/dist/types/OAuthAccount.d.ts +2 -2
  125. package/dist/types/OpenGraphData.d.ts +4 -0
  126. package/dist/types/PagedResponse.d.ts +11 -0
  127. package/dist/types/PaginationCursor.d.ts +5 -1
  128. package/dist/types/PendingFollowerView.d.ts +9 -0
  129. package/dist/types/Person.d.ts +2 -2
  130. package/dist/types/PersonActions.d.ts +21 -4
  131. package/dist/types/PersonActions.js +1 -0
  132. package/dist/types/PersonContentType.d.ts +1 -1
  133. package/dist/types/PersonResponse.d.ts +7 -0
  134. package/dist/types/PersonView.d.ts +4 -4
  135. package/dist/types/PluginMetadata.d.ts +2 -2
  136. package/dist/types/Post.d.ts +9 -7
  137. package/dist/types/PostActions.d.ts +15 -17
  138. package/dist/types/{PersonSavedCombinedView.d.ts → PostCommentCombinedView.d.ts} +3 -3
  139. package/dist/types/PostFeatureType.d.ts +1 -1
  140. package/dist/types/PostListingMode.d.ts +1 -1
  141. package/dist/types/PostNotificationsMode.d.ts +4 -0
  142. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  143. package/dist/types/PostReport.d.ts +2 -2
  144. package/dist/types/PostReportView.d.ts +5 -1
  145. package/dist/types/PostSortType.d.ts +1 -1
  146. package/dist/types/PostView.d.ts +4 -5
  147. package/dist/types/PrivateMessage.d.ts +2 -3
  148. package/dist/types/PrivateMessageReport.d.ts +2 -2
  149. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  150. package/dist/types/PublicOAuthProvider.d.ts +27 -2
  151. package/dist/types/PurgeComment.d.ts +1 -1
  152. package/dist/types/PurgeCommunity.d.ts +1 -1
  153. package/dist/types/PurgePerson.d.ts +1 -1
  154. package/dist/types/PurgePost.d.ts +1 -1
  155. package/dist/types/ReadableFederationState.d.ts +3 -3
  156. package/dist/types/Register.d.ts +4 -0
  157. package/dist/types/RegistrationApplication.d.ts +2 -1
  158. package/dist/types/RegistrationMode.d.ts +1 -1
  159. package/dist/types/RemoveComment.d.ts +1 -1
  160. package/dist/types/RemoveCommunity.d.ts +1 -1
  161. package/dist/types/RemovePost.d.ts +1 -1
  162. package/dist/types/ReportCombinedView.d.ts +4 -4
  163. package/dist/types/ReportType.d.ts +1 -1
  164. package/dist/types/SaveUserSettings.d.ts +11 -6
  165. package/dist/types/Search.d.ts +9 -2
  166. package/dist/types/SearchCombinedView.d.ts +8 -5
  167. package/dist/types/SearchResponse.d.ts +11 -1
  168. package/dist/types/SearchSortType.d.ts +1 -1
  169. package/dist/types/SearchType.d.ts +1 -1
  170. package/dist/types/Site.d.ts +4 -3
  171. package/dist/types/SiteResponse.d.ts +0 -4
  172. package/dist/types/Tag.d.ts +8 -16
  173. package/dist/types/Tagline.d.ts +2 -2
  174. package/dist/types/TagsView.d.ts +1 -1
  175. package/dist/types/UnreadCountsResponse.d.ts +11 -0
  176. package/dist/types/UntranslatedError.d.ts +57 -0
  177. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  178. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  179. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  180. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  181. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  182. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  183. package/dist/types/UserSettingsBackup.d.ts +29 -0
  184. package/dist/types/VoteShow.d.ts +4 -0
  185. package/dist/types/VoteView.d.ts +5 -2
  186. package/package.json +8 -7
  187. package/dist/types/AdminAllowInstance.d.ts +0 -11
  188. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  189. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  190. package/dist/types/AdminBlockInstance.d.ts +0 -12
  191. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  192. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  193. package/dist/types/AdminPurgeComment.d.ts +0 -13
  194. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  195. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  196. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  197. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  198. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  199. package/dist/types/AdminPurgePerson.d.ts +0 -11
  200. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  201. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  202. package/dist/types/AdminPurgePost.d.ts +0 -13
  203. package/dist/types/AdminPurgePostId.d.ts +0 -1
  204. package/dist/types/AdminPurgePostView.d.ts +0 -11
  205. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  206. package/dist/types/BanPersonResponse.d.ts +0 -8
  207. package/dist/types/BannedPersonsResponse.d.ts +0 -13
  208. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  209. package/dist/types/BlockPersonResponse.d.ts +0 -8
  210. package/dist/types/CommentReply.d.ts +0 -13
  211. package/dist/types/CommentReplyId.d.ts +0 -4
  212. package/dist/types/CommentReplyView.d.ts +0 -32
  213. package/dist/types/FederatedInstances.d.ts +0 -9
  214. package/dist/types/FederationError.d.ts +0 -10
  215. package/dist/types/GetCommentsResponse.d.ts +0 -10
  216. package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
  217. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  218. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +0 -3
  219. package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
  220. package/dist/types/GetModlogResponse.d.ts +0 -13
  221. package/dist/types/GetPostsResponse.d.ts +0 -13
  222. package/dist/types/GetReportCount.d.ts +0 -7
  223. package/dist/types/GetReportCountResponse.d.ts +0 -6
  224. package/dist/types/GetUnreadCountResponse.d.ts +0 -6
  225. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +0 -6
  226. package/dist/types/InboxCombinedView.d.ts +0 -13
  227. package/dist/types/InboxDataType.d.ts +0 -4
  228. package/dist/types/ListCommentLikesResponse.d.ts +0 -13
  229. package/dist/types/ListCommunitiesResponse.d.ts +0 -13
  230. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
  231. package/dist/types/ListInboxResponse.d.ts +0 -13
  232. package/dist/types/ListMediaResponse.d.ts +0 -10
  233. package/dist/types/ListPersonContentResponse.d.ts +0 -13
  234. package/dist/types/ListPersonSavedResponse.d.ts +0 -13
  235. package/dist/types/ListPostLikesResponse.d.ts +0 -13
  236. package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
  237. package/dist/types/ListReportsResponse.d.ts +0 -13
  238. package/dist/types/ListTaglinesResponse.d.ts +0 -13
  239. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  240. package/dist/types/MarkCommentReplyAsRead.js +0 -2
  241. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  242. package/dist/types/MarkPersonCommentMentionAsRead.js +0 -2
  243. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  244. package/dist/types/MarkPersonPostMentionAsRead.js +0 -2
  245. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  246. package/dist/types/MarkPrivateMessageAsRead.js +0 -2
  247. package/dist/types/ModAdd.d.ts +0 -12
  248. package/dist/types/ModAdd.js +0 -2
  249. package/dist/types/ModAddCommunity.d.ts +0 -14
  250. package/dist/types/ModAddCommunity.js +0 -2
  251. package/dist/types/ModAddCommunityId.d.ts +0 -1
  252. package/dist/types/ModAddCommunityView.d.ts +0 -12
  253. package/dist/types/ModAddCommunityView.js +0 -2
  254. package/dist/types/ModAddId.d.ts +0 -1
  255. package/dist/types/ModAddView.d.ts +0 -10
  256. package/dist/types/ModAddView.js +0 -2
  257. package/dist/types/ModBan.d.ts +0 -16
  258. package/dist/types/ModBan.js +0 -2
  259. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  260. package/dist/types/ModBanFromCommunity.js +0 -2
  261. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  262. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  263. package/dist/types/ModBanFromCommunityView.js +0 -2
  264. package/dist/types/ModBanId.d.ts +0 -1
  265. package/dist/types/ModBanView.d.ts +0 -10
  266. package/dist/types/ModBanView.js +0 -2
  267. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
  268. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  269. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  270. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  271. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  272. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  273. package/dist/types/ModFeaturePost.d.ts +0 -14
  274. package/dist/types/ModFeaturePost.js +0 -2
  275. package/dist/types/ModFeaturePostId.d.ts +0 -1
  276. package/dist/types/ModFeaturePostId.js +0 -3
  277. package/dist/types/ModFeaturePostView.d.ts +0 -14
  278. package/dist/types/ModFeaturePostView.js +0 -2
  279. package/dist/types/ModLockPost.d.ts +0 -13
  280. package/dist/types/ModLockPost.js +0 -2
  281. package/dist/types/ModLockPostId.d.ts +0 -1
  282. package/dist/types/ModLockPostId.js +0 -3
  283. package/dist/types/ModLockPostView.d.ts +0 -14
  284. package/dist/types/ModLockPostView.js +0 -2
  285. package/dist/types/ModRemoveComment.d.ts +0 -14
  286. package/dist/types/ModRemoveComment.js +0 -2
  287. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  288. package/dist/types/ModRemoveCommentId.js +0 -3
  289. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  290. package/dist/types/ModRemoveCommentView.js +0 -2
  291. package/dist/types/ModRemoveCommunity.d.ts +0 -14
  292. package/dist/types/ModRemoveCommunity.js +0 -2
  293. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  294. package/dist/types/ModRemoveCommunityId.js +0 -3
  295. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  296. package/dist/types/ModRemoveCommunityView.js +0 -2
  297. package/dist/types/ModRemovePost.d.ts +0 -14
  298. package/dist/types/ModRemovePost.js +0 -2
  299. package/dist/types/ModRemovePostId.d.ts +0 -1
  300. package/dist/types/ModRemovePostId.js +0 -3
  301. package/dist/types/ModRemovePostView.d.ts +0 -14
  302. package/dist/types/ModRemovePostView.js +0 -2
  303. package/dist/types/ModTransferCommunity.d.ts +0 -13
  304. package/dist/types/ModTransferCommunity.js +0 -2
  305. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  306. package/dist/types/ModTransferCommunityId.js +0 -3
  307. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  308. package/dist/types/ModTransferCommunityView.js +0 -2
  309. package/dist/types/ModlogActionType.d.ts +0 -4
  310. package/dist/types/ModlogActionType.js +0 -3
  311. package/dist/types/ModlogCombinedView.d.ts +0 -52
  312. package/dist/types/ModlogCombinedView.js +0 -2
  313. package/dist/types/OAuthProvider.js +0 -2
  314. package/dist/types/PersonCommentMention.d.ts +0 -13
  315. package/dist/types/PersonCommentMention.js +0 -2
  316. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  317. package/dist/types/PersonCommentMentionId.js +0 -3
  318. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  319. package/dist/types/PersonCommentMentionView.js +0 -2
  320. package/dist/types/PersonContentCombinedView.d.ts +0 -7
  321. package/dist/types/PersonContentCombinedView.js +0 -2
  322. package/dist/types/PersonPostMention.d.ts +0 -13
  323. package/dist/types/PersonPostMention.js +0 -2
  324. package/dist/types/PersonPostMentionId.d.ts +0 -4
  325. package/dist/types/PersonPostMentionId.js +0 -3
  326. package/dist/types/PersonPostMentionView.d.ts +0 -32
  327. package/dist/types/PersonPostMentionView.js +0 -2
  328. package/dist/types/PersonSavedCombinedView.js +0 -2
  329. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  330. package/dist/types/ResolveObjectResponse.js +0 -2
  331. package/dist/types/UserBlockInstanceParams.js +0 -2
  332. /package/dist/types/{AdminAllowInstance.js → AdminListUsers.js} +0 -0
  333. /package/dist/types/{AdminAllowInstanceView.js → AdminOAuthProvider.js} +0 -0
  334. /package/dist/types/{AdminBlockInstance.js → CommunityIdQuery.js} +0 -0
  335. /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
  336. /package/dist/types/{AdminBlockInstanceId.js → CreateMultiCommunity.js} +0 -0
  337. /package/dist/types/{AdminBlockInstanceView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  338. /package/dist/types/{AdminPurgeComment.js → ExportDataResponse.js} +0 -0
  339. /package/dist/types/{AdminPurgeCommentView.js → FederatedInstanceView.js} +0 -0
  340. /package/dist/types/{AdminPurgeCommentId.js → FederationAllowList.js} +0 -0
  341. /package/dist/types/{AdminPurgeCommunity.js → FederationQueueState.js} +0 -0
  342. /package/dist/types/{AdminPurgeCommunityView.js → FollowMultiCommunity.js} +0 -0
  343. /package/dist/types/{AdminPurgePerson.js → GetFederatedInstances.js} +0 -0
  344. /package/dist/types/{AdminPurgeCommunityId.js → GetFederatedInstancesKind.js} +0 -0
  345. /package/dist/types/{AdminPurgePersonView.js → GetMultiCommunity.js} +0 -0
  346. /package/dist/types/{AdminPurgePost.js → GetMultiCommunityResponse.js} +0 -0
  347. /package/dist/types/{AdminPurgePersonId.js → LikeType.js} +0 -0
  348. /package/dist/types/{AdminPurgePostView.js → ListMultiCommunities.js} +0 -0
  349. /package/dist/types/{BanFromCommunityResponse.js → ListNotifications.js} +0 -0
  350. /package/dist/types/{BanPersonResponse.js → ListPersonHidden.js} +0 -0
  351. /package/dist/types/{BannedPersonsResponse.js → ListPersonLiked.js} +0 -0
  352. /package/dist/types/{BlockCommunityResponse.js → ListPersonRead.js} +0 -0
  353. /package/dist/types/{BlockPersonResponse.js → LockComment.js} +0 -0
  354. /package/dist/types/{CommentReply.js → MarkNotificationAsRead.js} +0 -0
  355. /package/dist/types/{CommentReplyView.js → ModEditPost.js} +0 -0
  356. /package/dist/types/{FederatedInstances.js → Modlog.js} +0 -0
  357. /package/dist/types/{AdminPurgePostId.js → ModlogId.js} +0 -0
  358. /package/dist/types/{CommentReplyId.js → ModlogKind.js} +0 -0
  359. /package/dist/types/{GetCommentsResponse.js → ModlogView.js} +0 -0
  360. /package/dist/types/{GetCommentsSlimResponse.js → MultiCommunity.js} +0 -0
  361. /package/dist/types/{GetCommunityPendingFollowsCount.js → MultiCommunityEntry.js} +0 -0
  362. /package/dist/types/{GetFederatedInstancesResponse.js → MultiCommunityFollow.js} +0 -0
  363. /package/dist/types/{FederationError.js → MultiCommunityId.js} +0 -0
  364. /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → MultiCommunityListingType.js} +0 -0
  365. /package/dist/types/{GetModlogResponse.js → MultiCommunityResponse.js} +0 -0
  366. /package/dist/types/{GetReportCountResponse.js → MultiCommunitySortType.js} +0 -0
  367. /package/dist/types/{GetPostsResponse.js → MultiCommunityView.js} +0 -0
  368. /package/dist/types/{GetReportCount.js → NotePerson.js} +0 -0
  369. /package/dist/types/{InboxCombinedView.js → Notification.js} +0 -0
  370. /package/dist/types/{ListBannedPersons.js → NotificationData.js} +0 -0
  371. /package/dist/types/{GetUnreadCountResponse.js → NotificationDataType.js} +0 -0
  372. /package/dist/types/{GetUnreadRegistrationApplicationCountResponse.js → NotificationId.js} +0 -0
  373. /package/dist/types/{InboxDataType.js → NotificationType.js} +0 -0
  374. /package/dist/types/{ListCommentLikesResponse.js → NotificationView.js} +0 -0
  375. /package/dist/types/{ListCommunitiesResponse.js → PagedResponse.js} +0 -0
  376. /package/dist/types/{ListCommunityPendingFollowsResponse.js → PendingFollowerView.js} +0 -0
  377. /package/dist/types/{ListInbox.js → PersonResponse.js} +0 -0
  378. /package/dist/types/{ListInboxResponse.js → PostCommentCombinedView.js} +0 -0
  379. /package/dist/types/{ModAddCommunityId.js → PostNotificationsMode.js} +0 -0
  380. /package/dist/types/{ListMediaResponse.js → PostOrCommentOrPrivateMessage.js} +0 -0
  381. /package/dist/types/{ModAddId.js → UnreadCountsResponse.js} +0 -0
  382. /package/dist/types/{ModBanFromCommunityId.js → UntranslatedError.js} +0 -0
  383. /package/dist/types/{ListPersonContentResponse.js → UpdateCommunityNotifications.js} +0 -0
  384. /package/dist/types/{ListPersonSavedResponse.js → UpdateMultiCommunity.js} +0 -0
  385. /package/dist/types/{ListPostLikesResponse.js → UpdatePostNotifications.js} +0 -0
  386. /package/dist/types/{ListRegistrationApplicationsResponse.js → UserBlockInstanceCommunitiesParams.js} +0 -0
  387. /package/dist/types/{ListReportsResponse.js → UserBlockInstancePersonsParams.js} +0 -0
  388. /package/dist/types/{ListTaglinesResponse.js → UserSettingsBackup.js} +0 -0
  389. /package/dist/types/{ModBanId.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,20 +1,15 @@
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, 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";
@@ -26,6 +21,7 @@ import { CreateCommentReport } from "./types/CreateCommentReport";
26
21
  import { CreateCommunity } from "./types/CreateCommunity";
27
22
  import { CreateCommunityReport } from "./types/CreateCommunityReport";
28
23
  import { CreateCommunityTag } from "./types/CreateCommunityTag";
24
+ import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
29
25
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
30
26
  import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
31
27
  import { CreatePost } from "./types/CreatePost";
@@ -51,30 +47,19 @@ import { EditOAuthProvider } from "./types/EditOAuthProvider";
51
47
  import { EditPost } from "./types/EditPost";
52
48
  import { EditPrivateMessage } from "./types/EditPrivateMessage";
53
49
  import { EditSite } from "./types/EditSite";
54
- import { OAuthProvider } from "./types/OAuthProvider";
55
50
  import { FeaturePost } from "./types/FeaturePost";
56
51
  import { FollowCommunity } from "./types/FollowCommunity";
57
52
  import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
58
- import { GetCommentsResponse } from "./types/GetCommentsResponse";
59
53
  import { GetCommunityResponse } from "./types/GetCommunityResponse";
60
- import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
61
- import { GetModlogResponse } from "./types/GetModlogResponse";
62
54
  import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
63
55
  import { GetPostResponse } from "./types/GetPostResponse";
64
- import { GetPostsResponse } from "./types/GetPostsResponse";
65
- import { GetReportCountResponse } from "./types/GetReportCountResponse";
66
56
  import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
67
57
  import { GetSiteResponse } from "./types/GetSiteResponse";
68
- import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
69
- import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
70
- import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
71
- import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
72
58
  import { LockPost } from "./types/LockPost";
59
+ import { LockComment } from "./types/LockComment";
73
60
  import { Login } from "./types/Login";
74
61
  import { LoginResponse } from "./types/LoginResponse";
75
- import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
76
62
  import { MarkPostAsRead } from "./types/MarkPostAsRead";
77
- import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
78
63
  import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
79
64
  import { PasswordReset } from "./types/PasswordReset";
80
65
  import { PostReportResponse } from "./types/PostReportResponse";
@@ -92,7 +77,6 @@ import { RemoveCommunity } from "./types/RemoveCommunity";
92
77
  import { RemovePost } from "./types/RemovePost";
93
78
  import { ResolveCommentReport } from "./types/ResolveCommentReport";
94
79
  import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
95
- import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
96
80
  import { ResolvePostReport } from "./types/ResolvePostReport";
97
81
  import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
98
82
  import { SaveComment } from "./types/SaveComment";
@@ -101,42 +85,61 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
101
85
  import { SearchResponse } from "./types/SearchResponse";
102
86
  import { SiteResponse } from "./types/SiteResponse";
103
87
  import { TransferCommunity } from "./types/TransferCommunity";
104
- import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
105
88
  import { VerifyEmail } from "./types/VerifyEmail";
106
89
  import { HideCommunity } from "./types/HideCommunity";
107
90
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
108
91
  import { UpdateTotp } from "./types/UpdateTotp";
109
92
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
110
93
  import { SuccessResponse } from "./types/SuccessResponse";
111
- import { LoginToken } from "./types/LoginToken";
112
- import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
113
- import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
114
94
  import { HidePost } from "./types/HidePost";
115
- import { ListMediaResponse } from "./types/ListMediaResponse";
116
95
  import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
117
96
  import { CreateTagline } from "./types/CreateTagline";
118
97
  import { TaglineResponse } from "./types/TaglineResponse";
119
98
  import { UpdateTagline } from "./types/UpdateTagline";
120
99
  import { DeleteTagline } from "./types/DeleteTagline";
121
- import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
122
100
  import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
123
101
  import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
124
- import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
125
- import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
126
- import { ListReportsResponse } from "./types/ListReportsResponse";
127
102
  import { MyUserInfo } from "./types/MyUserInfo";
128
- import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
129
103
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
130
104
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
131
- import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
132
- import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
133
105
  import { UploadImageResponse } from "./types/UploadImageResponse";
134
- import { ListInboxResponse } from "./types/ListInboxResponse";
135
- import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
136
- import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
137
- import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
138
106
  import { Tag } from "./types/Tag";
139
107
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
108
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
109
+ import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
110
+ import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
111
+ import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
112
+ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
113
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
114
+ import { ListLoginsResponse } from "./types/ListLoginsResponse";
115
+ import { NotePerson } from "./types/NotePerson";
116
+ import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
117
+ import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
118
+ import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
119
+ import { ModEditPost } from "./types/ModEditPost";
120
+ import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
121
+ import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
122
+ import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
123
+ import { PersonResponse } from "./types/PersonResponse";
124
+ import { LocalImageView } from "./types/LocalImageView";
125
+ import { PagedResponse } from "./types/PagedResponse";
126
+ import { ModlogView } from "./types/ModlogView";
127
+ import { CommunityView } from "./types/CommunityView";
128
+ import { PendingFollowerView } from "./types/PendingFollowerView";
129
+ import { PostView } from "./types/PostView";
130
+ import { VoteView } from "./types/VoteView";
131
+ import { CommentView } from "./types/CommentView";
132
+ import { CommentSlimView } from "./types/CommentSlimView";
133
+ import { LocalUserView } from "./types/LocalUserView";
134
+ import { NotificationView } from "./types/NotificationView";
135
+ import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
136
+ import { Tagline } from "./types/Tagline";
137
+ import { ReportCombinedView } from "./types/ReportCombinedView";
138
+ import { FederatedInstanceView } from "./types/FederatedInstanceView";
139
+ import { MultiCommunityView } from "./types/MultiCommunityView";
140
+ import { PostCommentCombinedView } from "./types/PostCommentCombinedView";
141
+ import { UnreadCountsResponse } from "./types/UnreadCountsResponse";
142
+ import { AdminOAuthProvider } from "./types/AdminOAuthProvider";
140
143
  type RequestOptions = Pick<RequestInit, "signal">;
141
144
  /**
142
145
  * Helps build lemmy HTTP requests.
@@ -195,7 +198,7 @@ export declare class LemmyHttp extends Controller {
195
198
  /**
196
199
  * @summary List login tokens for your user
197
200
  */
198
- listLogins(options?: RequestOptions): Promise<LoginToken[]>;
201
+ listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
199
202
  /**
200
203
  * @summary Returns an error message if your auth token is invalid
201
204
  */
@@ -203,7 +206,7 @@ export declare class LemmyHttp extends Controller {
203
206
  /**
204
207
  * @summary List all the media for your account.
205
208
  */
206
- listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
209
+ listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
207
210
  /**
208
211
  * @summary Delete media for your account.
209
212
  */
@@ -215,7 +218,7 @@ export declare class LemmyHttp extends Controller {
215
218
  /**
216
219
  * @summary List all the media known to your instance.
217
220
  */
218
- listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
221
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
219
222
  /**
220
223
  * @summary Enable / Disable TOTP / two-factor authentication.
221
224
  *
@@ -227,15 +230,15 @@ export declare class LemmyHttp extends Controller {
227
230
  /**
228
231
  * @summary Get the modlog.
229
232
  */
230
- getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
233
+ getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
231
234
  /**
232
- * @summary Search lemmy.
235
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
233
236
  */
234
237
  search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
235
238
  /**
236
239
  * @summary Fetch a non-local / federated object.
237
240
  */
238
- resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<ResolveObjectResponse>;
241
+ resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
239
242
  /**
240
243
  * @summary Create a new community.
241
244
  */
@@ -251,19 +254,20 @@ export declare class LemmyHttp extends Controller {
251
254
  /**
252
255
  * @summary List communities, with various filters.
253
256
  */
254
- listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<ListCommunitiesResponse>;
257
+ listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
255
258
  /**
256
259
  * @summary Follow / subscribe to a community.
257
260
  */
258
261
  followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse>;
259
262
  /**
260
- * @summary Get a community's pending follows count.
263
+ * @summary Returns the amount of unread items of various types. For normal users this means * the number of unread notifications, mods and admins get additional unread counts for
264
+ * reports, registration applications and pending follows to private communities.
261
265
  */
262
- getCommunityPendingFollowsCount(form: GetCommunityPendingFollowsCountI, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
266
+ getUnreadCounts(options?: RequestOptions): Promise<UnreadCountsResponse>;
263
267
  /**
264
268
  * @summary Get a community's pending followers.
265
269
  */
266
- listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
270
+ listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
267
271
  /**
268
272
  * @summary Approve a community pending follow request.
269
273
  */
@@ -271,7 +275,7 @@ export declare class LemmyHttp extends Controller {
271
275
  /**
272
276
  * @summary Block a community.
273
277
  */
274
- blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
278
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<CommunityResponse>;
275
279
  /**
276
280
  * @summary Delete a community.
277
281
  */
@@ -291,7 +295,7 @@ export declare class LemmyHttp extends Controller {
291
295
  /**
292
296
  * @summary Ban a user from a community.
293
297
  */
294
- banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
298
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
295
299
  /**
296
300
  * @summary Add a moderator to your community.
297
301
  */
@@ -320,6 +324,10 @@ export declare class LemmyHttp extends Controller {
320
324
  * @summary Edit a post.
321
325
  */
322
326
  editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
327
+ /**
328
+ * @summary Mods can change nsfw flag and tags for a post
329
+ */
330
+ modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
323
331
  /**
324
332
  * @summary Delete a post.
325
333
  */
@@ -331,7 +339,7 @@ export declare class LemmyHttp extends Controller {
331
339
  /**
332
340
  * @summary Mark a post as read.
333
341
  */
334
- markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
342
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
335
343
  /**
336
344
  * @summary Mark multiple posts as read.
337
345
  */
@@ -339,7 +347,7 @@ export declare class LemmyHttp extends Controller {
339
347
  /**
340
348
  * @summary Hide a post from list views.
341
349
  */
342
- hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
350
+ hidePost(form: HidePost, options?: RequestOptions): Promise<PostResponse>;
343
351
  /**
344
352
  * @summary A moderator can lock a post ( IE disable new comments ).
345
353
  */
@@ -351,7 +359,7 @@ export declare class LemmyHttp extends Controller {
351
359
  /**
352
360
  * @summary Get / fetch posts, with various filters.
353
361
  */
354
- getPosts(form?: GetPostsI, options?: RequestOptions): Promise<GetPostsResponse>;
362
+ getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
355
363
  /**
356
364
  * @summary Like / vote on a post.
357
365
  */
@@ -359,7 +367,7 @@ export declare class LemmyHttp extends Controller {
359
367
  /**
360
368
  * @summary List a post's likes. Admin-only.
361
369
  */
362
- listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<ListPostLikesResponse>;
370
+ listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
363
371
  /**
364
372
  * @summary Save a post.
365
373
  */
@@ -393,17 +401,17 @@ export declare class LemmyHttp extends Controller {
393
401
  */
394
402
  removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
395
403
  /**
396
- * @summary Mark a comment as read.
404
+ * @summary A moderator can lock a comment (IE disable replies).
397
405
  */
398
- markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
406
+ lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
399
407
  /**
400
- * @summary Like / vote on a comment.
408
+ * @Summary Like / vote on a comment.
401
409
  */
402
410
  likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
403
411
  /**
404
412
  * @summary List a comment's likes. Admin-only.
405
413
  */
406
- listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<ListCommentLikesResponse>;
414
+ listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
407
415
  /**
408
416
  * @summary Save a comment.
409
417
  */
@@ -415,11 +423,11 @@ export declare class LemmyHttp extends Controller {
415
423
  /**
416
424
  * @summary Get / fetch comments.
417
425
  */
418
- getComments(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsResponse>;
426
+ getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
419
427
  /**
420
428
  * @summary Get / fetch comments, but without the post or community.
421
429
  */
422
- getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsSlimResponse>;
430
+ getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
423
431
  /**
424
432
  * @summary Get / fetch comment.
425
433
  */
@@ -444,10 +452,6 @@ export declare class LemmyHttp extends Controller {
444
452
  * @summary Delete a private message.
445
453
  */
446
454
  deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
447
- /**
448
- * @summary Mark a private message as read.
449
- */
450
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
451
455
  /**
452
456
  * @summary Create a report for a private message.
453
457
  */
@@ -475,27 +479,23 @@ export declare class LemmyHttp extends Controller {
475
479
  /**
476
480
  * @summary List the content for a person.
477
481
  */
478
- listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
479
- /**
480
- * @summary Mark a person mention as read.
481
- */
482
- markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
482
+ listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
483
483
  /**
484
- * @summary Mark a person post body mention as read.
484
+ * @summary Make a note for a person.
485
485
  */
486
- markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
486
+ notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
487
487
  /**
488
488
  * @summary Ban a person from your site.
489
489
  */
490
- banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
490
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<PersonResponse>;
491
491
  /**
492
- * @summary Get a list of banned users.
492
+ * @summary Get a list of users.
493
493
  */
494
- listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
494
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
495
495
  /**
496
496
  * @summary Block a person.
497
497
  */
498
- blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
498
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<PersonResponse>;
499
499
  /**
500
500
  * @summary Fetch a Captcha.
501
501
  */
@@ -513,9 +513,13 @@ export declare class LemmyHttp extends Controller {
513
513
  */
514
514
  passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
515
515
  /**
516
- * @summary Mark all replies as read.
516
+ * @summary Mark all notifications as read.
517
517
  */
518
518
  markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
519
+ /**
520
+ * @summary Mark a notification as read.
521
+ */
522
+ markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
519
523
  /**
520
524
  * @summary Save your user settings.
521
525
  */
@@ -524,18 +528,10 @@ export declare class LemmyHttp extends Controller {
524
528
  * @summary Change your user password.
525
529
  */
526
530
  changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
527
- /**
528
- * @summary Get counts for your reports.
529
- */
530
- getReportCount(form: GetReportCountI, options?: RequestOptions): Promise<GetReportCountResponse>;
531
- /**
532
- * @summary Get your unread counts.
533
- */
534
- getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
535
531
  /**
536
532
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
537
533
  */
538
- listInbox(form: ListInboxI, options?: RequestOptions): Promise<ListInboxResponse>;
534
+ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
539
535
  /**
540
536
  * @summary Verify your email
541
537
  */
@@ -547,19 +543,27 @@ export declare class LemmyHttp extends Controller {
547
543
  /**
548
544
  * @summary List your saved content.
549
545
  */
550
- listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
546
+ listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
551
547
  /**
552
- * @summary Add an admin to your site.
548
+ * @summary List your read content.
553
549
  */
554
- addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
550
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
555
551
  /**
556
- * @summary Get the unread registration applications count.
552
+ * @summary List your hidden content.
557
553
  */
558
- getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
554
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
555
+ /**
556
+ * @summary List your liked content.
557
+ */
558
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PostCommentCombinedView>>;
559
+ /**
560
+ * @summary Add an admin to your site.
561
+ */
562
+ addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
559
563
  /**
560
564
  * @summary List the registration applications.
561
565
  */
562
- listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
566
+ listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
563
567
  /**
564
568
  * @summary Approve a registration application
565
569
  */
@@ -615,13 +619,13 @@ export declare class LemmyHttp extends Controller {
615
619
  /**
616
620
  * @summary List taglines.
617
621
  */
618
- listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
622
+ listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
619
623
  /**
620
624
  * @summary Create a community post tag.
621
625
  */
622
626
  createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
623
627
  /**
624
- * @summary Update a community post tag.
628
+ * @summary Edit a community post tag.
625
629
  */
626
630
  updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
627
631
  /**
@@ -631,11 +635,11 @@ export declare class LemmyHttp extends Controller {
631
635
  /**
632
636
  * @summary Create a new oauth provider method
633
637
  */
634
- createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
638
+ createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<AdminOAuthProvider>;
635
639
  /**
636
640
  * @summary Edit an existing oauth provider method
637
641
  */
638
- editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
642
+ editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<AdminOAuthProvider>;
639
643
  /**
640
644
  * @summary Delete an oauth provider method
641
645
  */
@@ -647,15 +651,19 @@ export declare class LemmyHttp extends Controller {
647
651
  /**
648
652
  * @summary Fetch federated instances.
649
653
  */
650
- getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
654
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
651
655
  /**
652
656
  * @summary List user reports.
653
657
  */
654
- listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
658
+ listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
659
+ /**
660
+ * @summary Block an instance's communities as a user.
661
+ */
662
+ userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
655
663
  /**
656
- * @summary Block an instance as user.
664
+ * @summary Block an instance's persons as a user.
657
665
  */
658
- userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
666
+ userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
659
667
  /**
660
668
  * @summary Globally block an instance as admin.
661
669
  */
@@ -683,19 +691,19 @@ export declare class LemmyHttp extends Controller {
683
691
  /**
684
692
  * @summary Upload new community icon.
685
693
  */
686
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
694
+ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
687
695
  /**
688
696
  * @summary Delete the community icon.
689
697
  */
690
- deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
698
+ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
691
699
  /**
692
700
  * @summary Upload new community banner.
693
701
  */
694
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
702
+ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
695
703
  /**
696
704
  * @summary Delete the community banner.
697
705
  */
698
- deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
706
+ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
699
707
  /**
700
708
  * @summary Upload new site icon.
701
709
  */
@@ -722,10 +730,23 @@ export declare class LemmyHttp extends Controller {
722
730
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
723
731
  /**
724
732
  * Mark donation dialog as shown, so it isn't displayed anymore.
725
- *
726
- * `HTTP.POST /user/donation_dialog_shown`
727
733
  */
728
- donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
734
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
735
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
736
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
737
+ getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
738
+ createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
739
+ deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
740
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
741
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
742
+ /**
743
+ * @summary Change notification settings for a community
744
+ */
745
+ updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
746
+ /**
747
+ * @summary Change notification settings for a post
748
+ */
749
+ updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
729
750
  /**
730
751
  * Set the headers (can be used to set the auth header)
731
752
  */
@@ -733,4 +754,17 @@ export declare class LemmyHttp extends Controller {
733
754
  [key: string]: string;
734
755
  }): void;
735
756
  }
757
+ /**
758
+ * A Lemmy error type.
759
+ *
760
+ * The name is the i18n translatable error code.
761
+ * The message is either an empty string, or extra non-translatable info.
762
+ */
763
+ export declare class LemmyError extends Error {
764
+ name: string;
765
+ status: number;
766
+ message: string;
767
+ cause: any;
768
+ constructor(name: string, status: number, message?: string, cause?: any);
769
+ }
736
770
  export {};