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