lemmy-js-client 1.0.0-site-person-ban.1 → 1.0.0-vote-view.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 (201) hide show
  1. package/dist/http.d.ts +98 -26
  2. package/dist/http.js +1078 -894
  3. package/dist/index.d.ts +30 -4
  4. package/dist/other_types.d.ts +20 -2
  5. package/dist/types/AdminAllowInstance.d.ts +1 -1
  6. package/dist/types/AdminBlockInstance.d.ts +2 -2
  7. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminListUsers.d.ts +7 -0
  9. package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
  10. package/dist/types/AdminPurgeComment.d.ts +1 -1
  11. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  12. package/dist/types/AdminPurgePerson.d.ts +1 -1
  13. package/dist/types/AdminPurgePost.d.ts +1 -1
  14. package/dist/types/BanFromCommunity.d.ts +1 -1
  15. package/dist/types/BanPerson.d.ts +1 -1
  16. package/dist/types/Comment.d.ts +7 -2
  17. package/dist/types/CommentActions.d.ts +2 -6
  18. package/dist/types/CommentActions.js +1 -0
  19. package/dist/types/CommentReply.d.ts +1 -1
  20. package/dist/types/CommentReplyView.d.ts +5 -2
  21. package/dist/types/CommentReport.d.ts +2 -2
  22. package/dist/types/CommentReportView.d.ts +0 -1
  23. package/dist/types/CommentSlimView.d.ts +3 -3
  24. package/dist/types/CommentView.d.ts +5 -2
  25. package/dist/types/Community.d.ts +2 -2
  26. package/dist/types/CommunityActions.d.ts +5 -13
  27. package/dist/types/CommunityIdQuery.d.ts +8 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityView.d.ts +2 -0
  30. package/dist/types/CreateCommunityTag.d.ts +8 -0
  31. package/dist/types/CreateCommunityTag.js +2 -0
  32. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  33. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  34. package/dist/types/CreateOrDeleteMultiCommunityEntry.js +2 -0
  35. package/dist/types/CreatePost.d.ts +1 -1
  36. package/dist/types/CreateSite.d.ts +17 -14
  37. package/dist/types/CustomEmoji.d.ts +2 -2
  38. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  39. package/dist/types/DeleteCommunityTag.js +2 -0
  40. package/dist/types/EditPost.d.ts +2 -2
  41. package/dist/types/EditSite.d.ts +26 -21
  42. package/dist/types/ExportDataResponse.d.ts +13 -0
  43. package/dist/types/ExportDataResponse.js +2 -0
  44. package/dist/types/FederationBlockList.d.ts +3 -3
  45. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  46. package/dist/types/FollowMultiCommunity.js +2 -0
  47. package/dist/types/GetComments.d.ts +3 -3
  48. package/dist/types/GetCommentsResponse.d.ts +3 -0
  49. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  50. package/dist/types/GetModlog.d.ts +1 -0
  51. package/dist/types/GetModlogResponse.d.ts +1 -0
  52. package/dist/types/GetMultiCommunity.d.ts +4 -0
  53. package/dist/types/GetMultiCommunity.js +2 -0
  54. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  55. package/dist/types/GetMultiCommunityResponse.js +2 -0
  56. package/dist/types/GetPosts.d.ts +5 -11
  57. package/dist/types/GetPostsResponse.d.ts +3 -2
  58. package/dist/types/GetSiteResponse.d.ts +2 -0
  59. package/dist/types/InboxCombined.d.ts +16 -0
  60. package/dist/types/InboxCombined.js +2 -0
  61. package/dist/types/InboxCombinedId.d.ts +4 -0
  62. package/dist/types/InboxCombinedId.js +3 -0
  63. package/dist/types/InboxCombinedViewInternal.d.ts +43 -0
  64. package/dist/types/InboxCombinedViewInternal.js +2 -0
  65. package/dist/types/Instance.d.ts +4 -3
  66. package/dist/types/InstanceActions.d.ts +3 -7
  67. package/dist/types/InstanceActions.js +1 -0
  68. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  69. package/dist/types/LemmyErrorType.d.ts +99 -24
  70. package/dist/types/LikeType.d.ts +4 -0
  71. package/dist/types/LikeType.js +3 -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/ListInbox.d.ts +1 -0
  81. package/dist/types/ListInboxResponse.d.ts +1 -0
  82. package/dist/types/ListMedia.d.ts +3 -1
  83. package/dist/types/ListMedia.js +0 -1
  84. package/dist/types/ListMediaResponse.d.ts +6 -0
  85. package/dist/types/ListMultiCommunities.d.ts +5 -0
  86. package/dist/types/ListMultiCommunities.js +2 -0
  87. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  88. package/dist/types/ListMultiCommunitiesResponse.js +2 -0
  89. package/dist/types/ListPersonContent.d.ts +1 -0
  90. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  91. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  92. package/dist/types/ListPersonHidden.js +2 -0
  93. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  94. package/dist/types/ListPersonHiddenResponse.js +2 -0
  95. package/dist/types/ListPersonLiked.d.ts +13 -0
  96. package/dist/types/ListPersonLiked.js +2 -0
  97. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  98. package/dist/types/ListPersonLikedResponse.js +2 -0
  99. package/dist/types/ListPersonRead.d.ts +9 -0
  100. package/dist/types/ListPersonRead.js +2 -0
  101. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  102. package/dist/types/ListPersonReadResponse.js +2 -0
  103. package/dist/types/ListPersonSaved.d.ts +1 -0
  104. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  105. package/dist/types/ListPostLikes.d.ts +3 -1
  106. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  107. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  108. package/dist/types/ListRegistrationApplications.js +0 -1
  109. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  110. package/dist/types/ListReports.d.ts +1 -0
  111. package/dist/types/ListReportsResponse.d.ts +1 -0
  112. package/dist/types/ListTaglines.d.ts +3 -1
  113. package/dist/types/ListTaglines.js +0 -1
  114. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  115. package/dist/types/ListingType.d.ts +1 -1
  116. package/dist/types/LocalImage.d.ts +8 -3
  117. package/dist/types/LocalImageView.d.ts +2 -0
  118. package/dist/types/LocalSite.d.ts +10 -11
  119. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  120. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  121. package/dist/types/LocalUser.d.ts +4 -2
  122. package/dist/types/LocalUserView.d.ts +1 -2
  123. package/dist/types/LockPost.d.ts +1 -0
  124. package/dist/types/Login.d.ts +3 -0
  125. package/dist/types/LoginToken.d.ts +1 -1
  126. package/dist/types/ModAdd.d.ts +1 -1
  127. package/dist/types/ModAddCommunity.d.ts +1 -1
  128. package/dist/types/ModBan.d.ts +2 -2
  129. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  130. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  131. package/dist/types/ModFeaturePost.d.ts +1 -1
  132. package/dist/types/ModLockPost.d.ts +2 -1
  133. package/dist/types/ModRemoveComment.d.ts +1 -1
  134. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  135. package/dist/types/ModRemovePost.d.ts +1 -1
  136. package/dist/types/ModTransferCommunity.d.ts +1 -1
  137. package/dist/types/MultiCommunity.d.ts +17 -0
  138. package/dist/types/MultiCommunity.js +2 -0
  139. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  140. package/dist/types/MultiCommunityFollow.js +2 -0
  141. package/dist/types/MultiCommunityId.d.ts +1 -0
  142. package/dist/types/MultiCommunityId.js +3 -0
  143. package/dist/types/MultiCommunityView.d.ts +6 -0
  144. package/dist/types/MultiCommunityView.js +2 -0
  145. package/dist/types/MyUserInfo.d.ts +1 -0
  146. package/dist/types/NotePerson.d.ts +10 -0
  147. package/dist/types/NotePerson.js +2 -0
  148. package/dist/types/OAuthAccount.d.ts +2 -2
  149. package/dist/types/OAuthProvider.d.ts +2 -2
  150. package/dist/types/Person.d.ts +2 -2
  151. package/dist/types/PersonActions.d.ts +21 -4
  152. package/dist/types/PersonActions.js +1 -0
  153. package/dist/types/PersonCommentMention.d.ts +1 -1
  154. package/dist/types/PersonCommentMentionView.d.ts +3 -2
  155. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  156. package/dist/types/PersonLikedCombinedView.js +2 -0
  157. package/dist/types/PersonPostMention.d.ts +1 -1
  158. package/dist/types/PersonPostMentionView.d.ts +5 -2
  159. package/dist/types/PersonView.d.ts +3 -3
  160. package/dist/types/PluginMetadata.d.ts +5 -0
  161. package/dist/types/PluginMetadata.js +3 -0
  162. package/dist/types/Post.d.ts +9 -4
  163. package/dist/types/PostActions.d.ts +5 -9
  164. package/dist/types/PostActions.js +1 -0
  165. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  166. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  167. package/dist/types/PostReport.d.ts +2 -2
  168. package/dist/types/PostReportView.d.ts +0 -1
  169. package/dist/types/PostView.d.ts +5 -2
  170. package/dist/types/PrivateMessage.d.ts +2 -2
  171. package/dist/types/PrivateMessageReport.d.ts +2 -2
  172. package/dist/types/ReadableFederationState.d.ts +2 -2
  173. package/dist/types/RegistrationApplication.d.ts +1 -1
  174. package/dist/types/SaveUserSettings.d.ts +7 -1
  175. package/dist/types/Search.d.ts +6 -1
  176. package/dist/types/SearchCombinedView.d.ts +4 -1
  177. package/dist/types/SearchResponse.d.ts +1 -0
  178. package/dist/types/SearchType.d.ts +1 -1
  179. package/dist/types/Site.d.ts +4 -3
  180. package/dist/types/SiteResponse.d.ts +0 -4
  181. package/dist/types/Tag.d.ts +10 -8
  182. package/dist/types/Tagline.d.ts +4 -3
  183. package/dist/types/Tagline.js +0 -1
  184. package/dist/types/TagsView.d.ts +5 -0
  185. package/dist/types/TagsView.js +2 -0
  186. package/dist/types/UpdateCommunityTag.d.ts +8 -0
  187. package/dist/types/UpdateCommunityTag.js +2 -0
  188. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  189. package/dist/types/UpdateMultiCommunity.js +2 -0
  190. package/dist/types/UserSettingsBackup.d.ts +26 -0
  191. package/dist/types/UserSettingsBackup.js +2 -0
  192. package/dist/types/VoteShow.d.ts +4 -0
  193. package/dist/types/VoteShow.js +3 -0
  194. package/dist/types/VoteView.d.ts +1 -0
  195. package/package.json +7 -4
  196. package/dist/types/PostPaginationCursor.d.ts +0 -7
  197. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  198. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  199. /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
  200. /package/dist/types/{ResolveObjectResponse.js → CommunityIdQuery.js} +0 -0
  201. /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
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, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, 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,14 @@ 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";
26
28
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
27
29
  import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
28
30
  import { CreatePost } from "./types/CreatePost";
@@ -35,6 +37,7 @@ import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
35
37
  import { DeleteAccount } from "./types/DeleteAccount";
36
38
  import { DeleteComment } from "./types/DeleteComment";
37
39
  import { DeleteCommunity } from "./types/DeleteCommunity";
40
+ import { DeleteCommunityTag } from "./types/DeleteCommunityTag";
38
41
  import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
39
42
  import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
40
43
  import { DeletePost } from "./types/DeletePost";
@@ -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";
@@ -96,13 +99,13 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
96
99
  import { SearchResponse } from "./types/SearchResponse";
97
100
  import { SiteResponse } from "./types/SiteResponse";
98
101
  import { TransferCommunity } from "./types/TransferCommunity";
102
+ import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
99
103
  import { VerifyEmail } from "./types/VerifyEmail";
100
104
  import { HideCommunity } from "./types/HideCommunity";
101
105
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
102
106
  import { UpdateTotp } from "./types/UpdateTotp";
103
107
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
104
108
  import { SuccessResponse } from "./types/SuccessResponse";
105
- import { LoginToken } from "./types/LoginToken";
106
109
  import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
107
110
  import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
108
111
  import { HidePost } from "./types/HidePost";
@@ -129,7 +132,20 @@ import { ListInboxResponse } from "./types/ListInboxResponse";
129
132
  import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
130
133
  import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
131
134
  import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
135
+ import { Tag } from "./types/Tag";
132
136
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
137
+ import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
138
+ import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
139
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
140
+ import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
141
+ import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
142
+ import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
143
+ import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
144
+ import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
145
+ import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
146
+ import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
147
+ import { ListLoginsResponse } from "./types/ListLoginsResponse";
148
+ import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
133
149
  type RequestOptions = Pick<RequestInit, "signal">;
134
150
  /**
135
151
  * Helps build lemmy HTTP requests.
@@ -188,19 +204,27 @@ export declare class LemmyHttp extends Controller {
188
204
  /**
189
205
  * @summary List login tokens for your user
190
206
  */
191
- listLogins(options?: RequestOptions): Promise<LoginToken[]>;
207
+ listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
192
208
  /**
193
209
  * @summary Returns an error message if your auth token is invalid
194
210
  */
195
211
  validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
196
212
  /**
197
- * @summary List all the media for your user
213
+ * @summary List all the media for your account.
198
214
  */
199
215
  listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
216
+ /**
217
+ * @summary Delete media for your account.
218
+ */
219
+ deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
220
+ /**
221
+ * @summary Delete any media. (Admin only)
222
+ */
223
+ deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
200
224
  /**
201
225
  * @summary List all the media known to your instance.
202
226
  */
203
- listAllMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
227
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
204
228
  /**
205
229
  * @summary Enable / Disable TOTP / two-factor authentication.
206
230
  *
@@ -214,13 +238,13 @@ export declare class LemmyHttp extends Controller {
214
238
  */
215
239
  getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
216
240
  /**
217
- * @summary Search lemmy.
241
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
218
242
  */
219
243
  search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
220
244
  /**
221
245
  * @summary Fetch a non-local / federated object.
222
246
  */
223
- resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<ResolveObjectResponse>;
247
+ resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
224
248
  /**
225
249
  * @summary Create a new community.
226
250
  */
@@ -285,6 +309,14 @@ export declare class LemmyHttp extends Controller {
285
309
  * @summary Get a random community.
286
310
  */
287
311
  getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
312
+ /**
313
+ * @summary Create a report for a community.
314
+ */
315
+ createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
316
+ /**
317
+ * @summary Resolve a report for a private message.
318
+ */
319
+ resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
288
320
  /**
289
321
  * @summary Create a post.
290
322
  */
@@ -308,7 +340,7 @@ export declare class LemmyHttp extends Controller {
308
340
  /**
309
341
  * @summary Mark a post as read.
310
342
  */
311
- markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
343
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
312
344
  /**
313
345
  * @summary Mark multiple posts as read.
314
346
  */
@@ -424,7 +456,7 @@ export declare class LemmyHttp extends Controller {
424
456
  /**
425
457
  * @summary Mark a private message as read.
426
458
  */
427
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
459
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
428
460
  /**
429
461
  * @summary Create a report for a private message.
430
462
  */
@@ -466,9 +498,9 @@ export declare class LemmyHttp extends Controller {
466
498
  */
467
499
  banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
468
500
  /**
469
- * @summary Get a list of banned users.
501
+ * @summary Get a list of users.
470
502
  */
471
- listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
503
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
472
504
  /**
473
505
  * @summary Block a person.
474
506
  */
@@ -525,6 +557,18 @@ export declare class LemmyHttp extends Controller {
525
557
  * @summary List your saved content.
526
558
  */
527
559
  listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
560
+ /**
561
+ * @summary List your read content.
562
+ */
563
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
564
+ /**
565
+ * @summary List your hidden content.
566
+ */
567
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
568
+ /**
569
+ * @summary List your liked content.
570
+ */
571
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
528
572
  /**
529
573
  * @summary Add an admin to your site.
530
574
  */
@@ -593,6 +637,18 @@ export declare class LemmyHttp extends Controller {
593
637
  * @summary List taglines.
594
638
  */
595
639
  listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
640
+ /**
641
+ * @summary Create a community post tag.
642
+ */
643
+ createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
644
+ /**
645
+ * @summary Update a community post tag.
646
+ */
647
+ updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
648
+ /**
649
+ * @summary Delete a post tag in a community.
650
+ */
651
+ deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
596
652
  /**
597
653
  * @summary Create a new oauth provider method
598
654
  */
@@ -632,7 +688,7 @@ export declare class LemmyHttp extends Controller {
632
688
  /**
633
689
  * @summary Upload new user avatar.
634
690
  */
635
- uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
691
+ uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
636
692
  /**
637
693
  * @summary Delete the user avatar.
638
694
  */
@@ -640,7 +696,7 @@ export declare class LemmyHttp extends Controller {
640
696
  /**
641
697
  * @summary Upload new user banner.
642
698
  */
643
- uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
699
+ uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
644
700
  /**
645
701
  * @summary Delete the user banner.
646
702
  */
@@ -648,23 +704,23 @@ export declare class LemmyHttp extends Controller {
648
704
  /**
649
705
  * @summary Upload new community icon.
650
706
  */
651
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
707
+ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
652
708
  /**
653
709
  * @summary Delete the community icon.
654
710
  */
655
- deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
711
+ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
656
712
  /**
657
713
  * @summary Upload new community banner.
658
714
  */
659
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
715
+ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
660
716
  /**
661
717
  * @summary Delete the community banner.
662
718
  */
663
- deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
719
+ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
664
720
  /**
665
721
  * @summary Upload new site icon.
666
722
  */
667
- uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
723
+ uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
668
724
  /**
669
725
  * @summary Delete the site icon.
670
726
  */
@@ -672,7 +728,7 @@ export declare class LemmyHttp extends Controller {
672
728
  /**
673
729
  * @summary Upload new site banner.
674
730
  */
675
- uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
731
+ uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
676
732
  /**
677
733
  * @summary Delete the site banner.
678
734
  */
@@ -681,14 +737,21 @@ export declare class LemmyHttp extends Controller {
681
737
  * @summary Upload an image to the server.
682
738
  */
683
739
  uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
684
- /**
685
- * @summary Delete a pictrs image
686
- */
687
- deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
688
740
  /**
689
741
  * @summary Health check for image functionality
690
742
  */
691
743
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
744
+ /**
745
+ * Mark donation dialog as shown, so it isn't displayed anymore.
746
+ */
747
+ donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
748
+ createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
749
+ updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
750
+ getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
751
+ createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
752
+ deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
753
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
754
+ followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
692
755
  /**
693
756
  * Set the headers (can be used to set the auth header)
694
757
  */
@@ -696,4 +759,13 @@ export declare class LemmyHttp extends Controller {
696
759
  [key: string]: string;
697
760
  }): void;
698
761
  }
762
+ /**
763
+ * A Lemmy error type.
764
+ *
765
+ * The name is the i18n translatable error code.
766
+ * The msg is either an empty string, or extra non-translatable info.
767
+ */
768
+ export declare class LemmyError extends Error {
769
+ constructor(name: string, msg?: string);
770
+ }
699
771
  export {};