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