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

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