lemmy-js-client 0.20.0-alpha.16 → 0.20.0-alpha.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. package/dist/http.d.ts +135 -110
  2. package/dist/http.js +251 -239
  3. package/dist/index.d.ts +13 -0
  4. package/dist/types/AddAdmin.d.ts +5 -2
  5. package/dist/types/AddAdminResponse.d.ts +5 -2
  6. package/dist/types/AddModToCommunity.d.ts +5 -2
  7. package/dist/types/AddModToCommunityResponse.d.ts +5 -2
  8. package/dist/types/AdminPurgeComment.d.ts +5 -2
  9. package/dist/types/AdminPurgeCommentView.d.ts +5 -2
  10. package/dist/types/AdminPurgeCommunity.d.ts +5 -2
  11. package/dist/types/AdminPurgeCommunityView.d.ts +5 -2
  12. package/dist/types/AdminPurgePerson.d.ts +5 -2
  13. package/dist/types/AdminPurgePersonView.d.ts +5 -2
  14. package/dist/types/AdminPurgePost.d.ts +5 -2
  15. package/dist/types/AdminPurgePostView.d.ts +5 -2
  16. package/dist/types/ApproveCommunityPendingFollower.d.ts +7 -0
  17. package/dist/types/ApproveCommunityPendingFollower.js +2 -0
  18. package/dist/types/ApproveRegistrationApplication.d.ts +5 -2
  19. package/dist/types/AuthenticateWithOauth.d.ts +13 -3
  20. package/dist/types/AuthenticateWithOauth.js +0 -1
  21. package/dist/types/BanFromCommunity.d.ts +14 -2
  22. package/dist/types/BanFromCommunityResponse.d.ts +5 -2
  23. package/dist/types/BanPerson.d.ts +14 -2
  24. package/dist/types/BanPersonResponse.d.ts +5 -2
  25. package/dist/types/BannedPersonsResponse.d.ts +5 -2
  26. package/dist/types/BlockCommunity.d.ts +5 -2
  27. package/dist/types/BlockCommunityResponse.d.ts +5 -2
  28. package/dist/types/BlockInstance.d.ts +5 -2
  29. package/dist/types/BlockInstanceResponse.d.ts +2 -2
  30. package/dist/types/BlockPerson.d.ts +5 -2
  31. package/dist/types/BlockPersonResponse.d.ts +5 -2
  32. package/dist/types/CaptchaResponse.d.ts +14 -2
  33. package/dist/types/ChangePassword.d.ts +9 -5
  34. package/dist/types/ChangePassword.js +0 -1
  35. package/dist/types/Comment.d.ts +26 -3
  36. package/dist/types/CommentAggregates.d.ts +8 -2
  37. package/dist/types/CommentId.d.ts +3 -0
  38. package/dist/types/CommentReply.d.ts +5 -2
  39. package/dist/types/CommentReplyId.d.ts +3 -0
  40. package/dist/types/CommentReplyResponse.d.ts +5 -2
  41. package/dist/types/CommentReplyView.d.ts +5 -2
  42. package/dist/types/CommentReport.d.ts +5 -2
  43. package/dist/types/CommentReportId.d.ts +3 -0
  44. package/dist/types/CommentReportResponse.d.ts +5 -2
  45. package/dist/types/CommentReportView.d.ts +5 -2
  46. package/dist/types/CommentResponse.d.ts +5 -2
  47. package/dist/types/CommentSortType.d.ts +3 -0
  48. package/dist/types/CommentView.d.ts +5 -2
  49. package/dist/types/Community.d.ts +47 -6
  50. package/dist/types/CommunityAggregates.d.ts +17 -2
  51. package/dist/types/CommunityFollowerState.d.ts +1 -0
  52. package/dist/types/CommunityFollowerState.js +3 -0
  53. package/dist/types/CommunityFollowerView.d.ts +5 -2
  54. package/dist/types/CommunityId.d.ts +3 -0
  55. package/dist/types/CommunityModeratorView.d.ts +5 -2
  56. package/dist/types/CommunityResponse.d.ts +5 -2
  57. package/dist/types/CommunitySortType.d.ts +4 -0
  58. package/dist/types/CommunitySortType.js +3 -0
  59. package/dist/types/CommunityView.d.ts +5 -2
  60. package/dist/types/CommunityVisibility.d.ts +4 -1
  61. package/dist/types/CreateComment.d.ts +5 -2
  62. package/dist/types/CreateCommentLike.d.ts +8 -2
  63. package/dist/types/CreateCommentReport.d.ts +5 -2
  64. package/dist/types/CreateCommunity.d.ts +30 -2
  65. package/dist/types/CreateCustomEmoji.d.ts +5 -2
  66. package/dist/types/CreateOAuthProvider.d.ts +5 -2
  67. package/dist/types/CreatePost.d.ts +20 -2
  68. package/dist/types/CreatePostLike.d.ts +8 -2
  69. package/dist/types/CreatePostReport.d.ts +5 -2
  70. package/dist/types/CreatePrivateMessage.d.ts +5 -2
  71. package/dist/types/CreatePrivateMessageReport.d.ts +5 -2
  72. package/dist/types/CreateSite.d.ts +10 -3
  73. package/dist/types/CreateTagline.d.ts +5 -2
  74. package/dist/types/CustomEmoji.d.ts +7 -3
  75. package/dist/types/CustomEmojiId.d.ts +3 -0
  76. package/dist/types/CustomEmojiKeyword.d.ts +5 -2
  77. package/dist/types/CustomEmojiResponse.d.ts +5 -2
  78. package/dist/types/CustomEmojiView.d.ts +5 -2
  79. package/dist/types/DbUrl.d.ts +1 -0
  80. package/dist/types/DbUrl.js +3 -0
  81. package/dist/types/DeleteAccount.d.ts +7 -3
  82. package/dist/types/DeleteAccount.js +0 -1
  83. package/dist/types/DeleteComment.d.ts +5 -2
  84. package/dist/types/DeleteCommunity.d.ts +5 -2
  85. package/dist/types/DeleteCustomEmoji.d.ts +5 -2
  86. package/dist/types/DeleteOAuthProvider.d.ts +5 -2
  87. package/dist/types/DeletePost.d.ts +5 -2
  88. package/dist/types/DeletePrivateMessage.d.ts +5 -2
  89. package/dist/types/DeleteTagline.d.ts +5 -2
  90. package/dist/types/DistinguishComment.d.ts +5 -2
  91. package/dist/types/EditComment.d.ts +5 -2
  92. package/dist/types/EditCommunity.d.ts +27 -2
  93. package/dist/types/EditCustomEmoji.d.ts +5 -2
  94. package/dist/types/EditOAuthProvider.d.ts +5 -2
  95. package/dist/types/EditPost.d.ts +17 -2
  96. package/dist/types/EditPrivateMessage.d.ts +5 -2
  97. package/dist/types/EditSite.d.ts +132 -4
  98. package/dist/types/FeaturePost.d.ts +5 -2
  99. package/dist/types/FederatedInstances.d.ts +5 -2
  100. package/dist/types/FederationError.d.ts +10 -0
  101. package/dist/types/FederationError.js +3 -0
  102. package/dist/types/FederationMode.d.ts +4 -0
  103. package/dist/types/FederationMode.js +3 -0
  104. package/dist/types/FollowCommunity.d.ts +5 -2
  105. package/dist/types/GenerateTotpSecretResponse.d.ts +4 -3
  106. package/dist/types/GenerateTotpSecretResponse.js +0 -1
  107. package/dist/types/GetCaptchaResponse.d.ts +8 -2
  108. package/dist/types/GetComment.d.ts +5 -2
  109. package/dist/types/GetComments.d.ts +5 -2
  110. package/dist/types/GetCommentsResponse.d.ts +5 -2
  111. package/dist/types/GetCommunity.d.ts +8 -2
  112. package/dist/types/GetCommunityPendingFollowsCount.d.ts +4 -0
  113. package/dist/types/GetCommunityPendingFollowsCount.js +2 -0
  114. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +3 -0
  115. package/dist/types/GetCommunityPendingFollowsCountResponse.js +3 -0
  116. package/dist/types/GetCommunityResponse.d.ts +5 -2
  117. package/dist/types/GetFederatedInstancesResponse.d.ts +8 -2
  118. package/dist/types/GetModlog.d.ts +5 -2
  119. package/dist/types/GetModlogResponse.d.ts +5 -2
  120. package/dist/types/GetPersonDetails.d.ts +10 -2
  121. package/dist/types/GetPersonDetailsResponse.d.ts +5 -2
  122. package/dist/types/GetPersonMentions.d.ts +5 -2
  123. package/dist/types/GetPersonMentionsResponse.d.ts +5 -2
  124. package/dist/types/GetPost.d.ts +5 -2
  125. package/dist/types/GetPostResponse.d.ts +8 -2
  126. package/dist/types/GetPosts.d.ts +18 -2
  127. package/dist/types/GetPostsResponse.d.ts +8 -2
  128. package/dist/types/GetPrivateMessages.d.ts +5 -2
  129. package/dist/types/GetRandomCommunity.d.ts +7 -0
  130. package/dist/types/GetRandomCommunity.js +2 -0
  131. package/dist/types/GetRegistrationApplication.d.ts +5 -2
  132. package/dist/types/GetReplies.d.ts +5 -2
  133. package/dist/types/GetRepliesResponse.d.ts +5 -2
  134. package/dist/types/GetReportCount.d.ts +5 -2
  135. package/dist/types/GetReportCountResponse.d.ts +5 -2
  136. package/dist/types/GetSiteMetadata.d.ts +5 -2
  137. package/dist/types/GetSiteMetadataResponse.d.ts +5 -2
  138. package/dist/types/GetSiteResponse.d.ts +19 -2
  139. package/dist/types/GetUnreadCountResponse.d.ts +5 -2
  140. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +5 -2
  141. package/dist/types/HideCommunity.d.ts +5 -2
  142. package/dist/types/HidePost.d.ts +5 -2
  143. package/dist/types/ImageDetails.d.ts +4 -3
  144. package/dist/types/ImageDetails.js +0 -1
  145. package/dist/types/Instance.d.ts +5 -2
  146. package/dist/types/InstanceId.d.ts +3 -0
  147. package/dist/types/InstanceWithFederationState.d.ts +7 -3
  148. package/dist/types/Language.d.ts +5 -2
  149. package/dist/types/LanguageId.d.ts +3 -0
  150. package/dist/types/LemmyErrorType.d.ts +13 -66
  151. package/dist/types/LemmyErrorType.js +0 -1
  152. package/dist/types/LinkMetadata.d.ts +9 -5
  153. package/dist/types/LinkMetadata.js +0 -1
  154. package/dist/types/ListCommentLikes.d.ts +5 -2
  155. package/dist/types/ListCommentLikesResponse.d.ts +5 -2
  156. package/dist/types/ListCommentReports.d.ts +11 -2
  157. package/dist/types/ListCommentReportsResponse.d.ts +5 -2
  158. package/dist/types/ListCommunities.d.ts +7 -4
  159. package/dist/types/ListCommunitiesResponse.d.ts +5 -2
  160. package/dist/types/ListCommunityPendingFollows.d.ts +9 -0
  161. package/dist/types/ListCommunityPendingFollows.js +3 -0
  162. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +4 -0
  163. package/dist/types/ListCommunityPendingFollowsResponse.js +2 -0
  164. package/dist/types/ListCustomEmojis.d.ts +5 -2
  165. package/dist/types/ListCustomEmojisResponse.d.ts +5 -2
  166. package/dist/types/ListLoginsResponse.d.ts +2 -2
  167. package/dist/types/ListMedia.d.ts +5 -2
  168. package/dist/types/ListMediaResponse.d.ts +2 -2
  169. package/dist/types/ListPostLikes.d.ts +5 -2
  170. package/dist/types/ListPostLikesResponse.d.ts +5 -2
  171. package/dist/types/ListPostReports.d.ts +11 -2
  172. package/dist/types/ListPostReportsResponse.d.ts +5 -2
  173. package/dist/types/ListPrivateMessageReports.d.ts +8 -2
  174. package/dist/types/ListPrivateMessageReportsResponse.d.ts +5 -2
  175. package/dist/types/ListRegistrationApplications.d.ts +8 -2
  176. package/dist/types/ListRegistrationApplicationsResponse.d.ts +5 -2
  177. package/dist/types/ListTaglines.d.ts +5 -2
  178. package/dist/types/ListTaglinesResponse.d.ts +5 -2
  179. package/dist/types/ListingType.d.ts +3 -0
  180. package/dist/types/LocalImage.d.ts +2 -2
  181. package/dist/types/LocalImageView.d.ts +5 -2
  182. package/dist/types/LocalSite.d.ts +83 -3
  183. package/dist/types/LocalSiteId.d.ts +3 -0
  184. package/dist/types/LocalSiteRateLimit.d.ts +5 -2
  185. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  186. package/dist/types/LocalUser.d.ts +50 -3
  187. package/dist/types/LocalUserId.d.ts +3 -0
  188. package/dist/types/LocalUserView.d.ts +5 -2
  189. package/dist/types/LocalUserVoteDisplayMode.d.ts +5 -2
  190. package/dist/types/LockPost.d.ts +5 -2
  191. package/dist/types/Login.d.ts +11 -4
  192. package/dist/types/Login.js +0 -1
  193. package/dist/types/LoginResponse.d.ts +17 -3
  194. package/dist/types/LoginResponse.js +0 -1
  195. package/dist/types/LoginToken.d.ts +12 -2
  196. package/dist/types/MarkCommentReplyAsRead.d.ts +5 -2
  197. package/dist/types/MarkPersonMentionAsRead.d.ts +5 -2
  198. package/dist/types/MarkPostAsRead.d.ts +5 -2
  199. package/dist/types/MarkPrivateMessageAsRead.d.ts +5 -2
  200. package/dist/types/ModAdd.d.ts +5 -2
  201. package/dist/types/ModAddCommunity.d.ts +5 -2
  202. package/dist/types/ModAddCommunityView.d.ts +5 -2
  203. package/dist/types/ModAddView.d.ts +5 -2
  204. package/dist/types/ModBan.d.ts +5 -2
  205. package/dist/types/ModBanFromCommunity.d.ts +5 -2
  206. package/dist/types/ModBanFromCommunityView.d.ts +5 -2
  207. package/dist/types/ModBanView.d.ts +5 -2
  208. package/dist/types/ModFeaturePost.d.ts +5 -2
  209. package/dist/types/ModFeaturePostView.d.ts +5 -2
  210. package/dist/types/ModHideCommunity.d.ts +5 -2
  211. package/dist/types/ModHideCommunityView.d.ts +5 -2
  212. package/dist/types/ModLockPost.d.ts +5 -2
  213. package/dist/types/ModLockPostView.d.ts +5 -2
  214. package/dist/types/ModRemoveComment.d.ts +5 -2
  215. package/dist/types/ModRemoveCommentView.d.ts +5 -2
  216. package/dist/types/ModRemoveCommunity.d.ts +5 -2
  217. package/dist/types/ModRemoveCommunityView.d.ts +5 -2
  218. package/dist/types/ModRemovePost.d.ts +5 -2
  219. package/dist/types/ModRemovePostView.d.ts +5 -2
  220. package/dist/types/ModTransferCommunity.d.ts +5 -2
  221. package/dist/types/ModTransferCommunityView.d.ts +5 -2
  222. package/dist/types/ModlogActionType.d.ts +3 -0
  223. package/dist/types/ModlogListParams.d.ts +5 -2
  224. package/dist/types/MyUserInfo.d.ts +5 -2
  225. package/dist/types/OAuthAccount.d.ts +5 -2
  226. package/dist/types/OAuthProvider.d.ts +44 -2
  227. package/dist/types/OAuthProviderId.d.ts +3 -0
  228. package/dist/types/OpenGraphData.d.ts +8 -4
  229. package/dist/types/OpenGraphData.js +0 -1
  230. package/dist/types/PaginationCursor.d.ts +6 -0
  231. package/dist/types/PasswordChangeAfterReset.d.ts +9 -5
  232. package/dist/types/PasswordChangeAfterReset.js +0 -1
  233. package/dist/types/PasswordReset.d.ts +7 -3
  234. package/dist/types/PasswordReset.js +0 -1
  235. package/dist/types/PendingFollow.d.ts +9 -0
  236. package/dist/types/PendingFollow.js +2 -0
  237. package/dist/types/Person.d.ts +42 -5
  238. package/dist/types/PersonAggregates.d.ts +5 -2
  239. package/dist/types/PersonId.d.ts +3 -0
  240. package/dist/types/PersonMention.d.ts +5 -2
  241. package/dist/types/PersonMentionId.d.ts +3 -0
  242. package/dist/types/PersonMentionResponse.d.ts +5 -2
  243. package/dist/types/PersonMentionView.d.ts +5 -2
  244. package/dist/types/PersonView.d.ts +5 -2
  245. package/dist/types/Post.d.ts +58 -6
  246. package/dist/types/PostAggregates.d.ts +8 -2
  247. package/dist/types/PostFeatureType.d.ts +3 -0
  248. package/dist/types/PostId.d.ts +3 -0
  249. package/dist/types/PostListingMode.d.ts +3 -0
  250. package/dist/types/PostReport.d.ts +16 -3
  251. package/dist/types/PostReportId.d.ts +3 -0
  252. package/dist/types/PostReportResponse.d.ts +5 -2
  253. package/dist/types/PostReportView.d.ts +5 -2
  254. package/dist/types/PostResponse.d.ts +2 -2
  255. package/dist/types/PostSortType.d.ts +3 -0
  256. package/dist/types/PostView.d.ts +5 -2
  257. package/dist/types/PrivateMessage.d.ts +7 -3
  258. package/dist/types/PrivateMessageId.d.ts +3 -0
  259. package/dist/types/PrivateMessageReport.d.ts +8 -2
  260. package/dist/types/PrivateMessageReportId.d.ts +3 -0
  261. package/dist/types/PrivateMessageReportResponse.d.ts +5 -2
  262. package/dist/types/PrivateMessageReportView.d.ts +5 -2
  263. package/dist/types/PrivateMessageResponse.d.ts +5 -2
  264. package/dist/types/PrivateMessageView.d.ts +5 -2
  265. package/dist/types/PrivateMessagesResponse.d.ts +5 -2
  266. package/dist/types/PurgeComment.d.ts +5 -2
  267. package/dist/types/PurgeCommunity.d.ts +5 -2
  268. package/dist/types/PurgePerson.d.ts +5 -2
  269. package/dist/types/PurgePost.d.ts +5 -2
  270. package/dist/types/ReadableFederationState.d.ts +15 -3
  271. package/dist/types/Register.d.ts +24 -5
  272. package/dist/types/Register.js +0 -1
  273. package/dist/types/RegistrationApplication.d.ts +5 -2
  274. package/dist/types/RegistrationApplicationId.d.ts +3 -0
  275. package/dist/types/RegistrationApplicationResponse.d.ts +5 -2
  276. package/dist/types/RegistrationApplicationView.d.ts +5 -2
  277. package/dist/types/RegistrationMode.d.ts +3 -0
  278. package/dist/types/RemoveComment.d.ts +5 -2
  279. package/dist/types/RemoveCommunity.d.ts +5 -2
  280. package/dist/types/RemovePost.d.ts +5 -2
  281. package/dist/types/ResolveCommentReport.d.ts +5 -2
  282. package/dist/types/ResolveObject.d.ts +8 -2
  283. package/dist/types/ResolveObjectResponse.d.ts +5 -2
  284. package/dist/types/ResolvePostReport.d.ts +5 -2
  285. package/dist/types/ResolvePrivateMessageReport.d.ts +5 -2
  286. package/dist/types/SaveComment.d.ts +5 -2
  287. package/dist/types/SavePost.d.ts +5 -2
  288. package/dist/types/SaveUserSettings.d.ts +86 -3
  289. package/dist/types/Search.d.ts +5 -2
  290. package/dist/types/SearchResponse.d.ts +5 -2
  291. package/dist/types/SearchType.d.ts +3 -0
  292. package/dist/types/SensitiveString.d.ts +1 -0
  293. package/dist/types/SensitiveString.js +3 -0
  294. package/dist/types/Site.d.ts +35 -6
  295. package/dist/types/SiteAggregates.d.ts +17 -2
  296. package/dist/types/SiteId.d.ts +3 -0
  297. package/dist/types/SiteResponse.d.ts +9 -2
  298. package/dist/types/SiteView.d.ts +5 -2
  299. package/dist/types/SubscribedType.d.ts +4 -1
  300. package/dist/types/SuccessResponse.d.ts +5 -2
  301. package/dist/types/Tagline.d.ts +5 -2
  302. package/dist/types/TaglineId.d.ts +3 -0
  303. package/dist/types/TaglineResponse.d.ts +2 -2
  304. package/dist/types/TransferCommunity.d.ts +5 -2
  305. package/dist/types/UpdateTagline.d.ts +5 -2
  306. package/dist/types/UpdateTotp.d.ts +2 -2
  307. package/dist/types/UpdateTotpResponse.d.ts +2 -2
  308. package/dist/types/VerifyEmail.d.ts +5 -2
  309. package/dist/types/VoteView.d.ts +5 -2
  310. package/package.json +3 -3
package/dist/http.d.ts CHANGED
@@ -146,6 +146,15 @@ import { UpdateTagline } from "./types/UpdateTagline";
146
146
  import { DeleteTagline } from "./types/DeleteTagline";
147
147
  import { ListTaglines } from "./types/ListTaglines";
148
148
  import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
149
+ import { ListCustomEmojis } from "./types/ListCustomEmojis";
150
+ import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
151
+ import { GetRandomCommunity } from "./types/GetRandomCommunity";
152
+ import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
153
+ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
154
+ import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
155
+ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
156
+ import { CommunityId } from "./types/CommunityId";
157
+ type RequestOptions = Pick<RequestInit, "signal">;
149
158
  /**
150
159
  * Helps build lemmy HTTP requests.
151
160
  */
@@ -167,25 +176,25 @@ export declare class LemmyHttp {
167
176
  *
168
177
  * `HTTP.GET /site`
169
178
  */
170
- getSite(): Promise<GetSiteResponse>;
179
+ getSite(options?: RequestOptions): Promise<GetSiteResponse>;
171
180
  /**
172
181
  * Create your site.
173
182
  *
174
183
  * `HTTP.POST /site`
175
184
  */
176
- createSite(form: CreateSite): Promise<SiteResponse>;
185
+ createSite(form: CreateSite, options?: RequestOptions): Promise<SiteResponse>;
177
186
  /**
178
187
  * Edit your site.
179
188
  *
180
189
  * `HTTP.PUT /site`
181
190
  */
182
- editSite(form: EditSite): Promise<SiteResponse>;
191
+ editSite(form: EditSite, options?: RequestOptions): Promise<SiteResponse>;
183
192
  /**
184
193
  * Leave the Site admins.
185
194
  *
186
195
  * `HTTP.POST /user/leave_admin`
187
196
  */
188
- leaveAdmin(): Promise<GetSiteResponse>;
197
+ leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse>;
189
198
  /**
190
199
  * Generate a TOTP / two-factor secret.
191
200
  *
@@ -193,44 +202,44 @@ export declare class LemmyHttp {
193
202
  *
194
203
  * `HTTP.POST /user/totp/generate`
195
204
  */
196
- generateTotpSecret(): Promise<GenerateTotpSecretResponse>;
205
+ generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse>;
197
206
  /**
198
207
  * Export a backup of your user settings, including your saved content,
199
208
  * followed communities, and blocks.
200
209
  *
201
210
  * `HTTP.GET /user/export_settings`
202
211
  */
203
- exportSettings(): Promise<string>;
212
+ exportSettings(options?: RequestOptions): Promise<string>;
204
213
  /**
205
214
  * Import a backup of your user settings.
206
215
  *
207
216
  * `HTTP.POST /user/import_settings`
208
217
  */
209
- importSettings(form: any): Promise<SuccessResponse>;
218
+ importSettings(form: any, options?: RequestOptions): Promise<SuccessResponse>;
210
219
  /**
211
220
  * List login tokens for your user
212
221
  *
213
222
  * `HTTP.GET /user/list_logins`
214
223
  */
215
- listLogins(): Promise<LoginToken[]>;
224
+ listLogins(options?: RequestOptions): Promise<LoginToken[]>;
216
225
  /**
217
226
  * Returns an error message if your auth token is invalid
218
227
  *
219
228
  * `HTTP.GET /user/validate_auth`
220
229
  */
221
- validateAuth(): Promise<SuccessResponse>;
230
+ validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
222
231
  /**
223
232
  * List all the media for your user
224
233
  *
225
234
  * `HTTP.GET /account/list_media`
226
235
  */
227
- listMedia(form?: ListMedia): Promise<ListMediaResponse>;
236
+ listMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
228
237
  /**
229
238
  * List all the media known to your instance.
230
239
  *
231
240
  * `HTTP.GET /admin/list_all_media`
232
241
  */
233
- listAllMedia(form?: ListMedia): Promise<ListMediaResponse>;
242
+ listAllMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
234
243
  /**
235
244
  * Enable / Disable TOTP / two-factor authentication.
236
245
  *
@@ -240,591 +249,606 @@ export declare class LemmyHttp {
240
249
  *
241
250
  * `HTTP.POST /user/totp/update`
242
251
  */
243
- updateTotp(form: UpdateTotp): Promise<UpdateTotpResponse>;
252
+ updateTotp(form: UpdateTotp, options?: RequestOptions): Promise<UpdateTotpResponse>;
244
253
  /**
245
254
  * Get the modlog.
246
255
  *
247
256
  * `HTTP.GET /modlog`
248
257
  */
249
- getModlog(form?: GetModlog): Promise<GetModlogResponse>;
258
+ getModlog(form?: GetModlog, options?: RequestOptions): Promise<GetModlogResponse>;
250
259
  /**
251
260
  * Search lemmy.
252
261
  *
253
262
  * `HTTP.GET /search`
254
263
  */
255
- search(form: Search): Promise<SearchResponse>;
264
+ search(form: Search, options?: RequestOptions): Promise<SearchResponse>;
256
265
  /**
257
266
  * Fetch a non-local / federated object.
258
267
  *
259
268
  * `HTTP.GET /resolve_object`
260
269
  */
261
- resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
270
+ resolveObject(form: ResolveObject, options?: RequestOptions): Promise<ResolveObjectResponse>;
262
271
  /**
263
272
  * Create a new community.
264
273
  *
265
274
  * `HTTP.POST /community`
266
275
  */
267
- createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
276
+ createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<CommunityResponse>;
268
277
  /**
269
278
  * Get / fetch a community.
270
279
  *
271
280
  * `HTTP.GET /community`
272
281
  */
273
- getCommunity(form?: GetCommunity): Promise<GetCommunityResponse>;
282
+ getCommunity(form?: GetCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
274
283
  /**
275
284
  * Edit a community.
276
285
  *
277
286
  * `HTTP.PUT /community`
278
287
  */
279
- editCommunity(form: EditCommunity): Promise<CommunityResponse>;
288
+ editCommunity(form: EditCommunity, options?: RequestOptions): Promise<CommunityResponse>;
280
289
  /**
281
290
  * List communities, with various filters.
282
291
  *
283
292
  * `HTTP.GET /community/list`
284
293
  */
285
- listCommunities(form?: ListCommunities): Promise<ListCommunitiesResponse>;
294
+ listCommunities(form?: ListCommunities, options?: RequestOptions): Promise<ListCommunitiesResponse>;
286
295
  /**
287
296
  * Follow / subscribe to a community.
288
297
  *
289
298
  * `HTTP.POST /community/follow`
290
299
  */
291
- followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
300
+ followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse>;
301
+ getCommunityPendingFollowsCount(community_id: CommunityId, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
302
+ listCommunityPendingFollows(form: ListCommunityPendingFollows, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
303
+ approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise<SuccessResponse>;
292
304
  /**
293
305
  * Block a community.
294
306
  *
295
307
  * `HTTP.POST /community/block`
296
308
  */
297
- blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
309
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
298
310
  /**
299
311
  * Delete a community.
300
312
  *
301
313
  * `HTTP.POST /community/delete`
302
314
  */
303
- deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
315
+ deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<CommunityResponse>;
304
316
  /**
305
317
  * Hide a community from public / "All" view. Admins only.
306
318
  *
307
319
  * `HTTP.PUT /community/hide`
308
320
  */
309
- hideCommunity(form: HideCommunity): Promise<SuccessResponse>;
321
+ hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<SuccessResponse>;
310
322
  /**
311
323
  * A moderator remove for a community.
312
324
  *
313
325
  * `HTTP.POST /community/remove`
314
326
  */
315
- removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
327
+ removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<CommunityResponse>;
316
328
  /**
317
329
  * Transfer your community to an existing moderator.
318
330
  *
319
331
  * `HTTP.POST /community/transfer`
320
332
  */
321
- transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
333
+ transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
322
334
  /**
323
335
  * Ban a user from a community.
324
336
  *
325
337
  * `HTTP.POST /community/ban_user`
326
338
  */
327
- banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
339
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
328
340
  /**
329
341
  * Add a moderator to your community.
330
342
  *
331
343
  * `HTTP.POST /community/mod`
332
344
  */
333
- addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
345
+ addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise<AddModToCommunityResponse>;
346
+ /**
347
+ * Get a random community.
348
+ *
349
+ * `HTTP.GET /community/random`
350
+ */
351
+ getRandomCommunity(form: GetRandomCommunity, options?: RequestOptions): Promise<CommunityResponse>;
334
352
  /**
335
353
  * Create a post.
336
354
  *
337
355
  * `HTTP.POST /post`
338
356
  */
339
- createPost(form: CreatePost): Promise<PostResponse>;
357
+ createPost(form: CreatePost, options?: RequestOptions): Promise<PostResponse>;
340
358
  /**
341
359
  * Get / fetch a post.
342
360
  *
343
361
  * `HTTP.GET /post`
344
362
  */
345
- getPost(form?: GetPost): Promise<GetPostResponse>;
363
+ getPost(form?: GetPost, options?: RequestOptions): Promise<GetPostResponse>;
346
364
  /**
347
365
  * Edit a post.
348
366
  *
349
367
  * `HTTP.PUT /post`
350
368
  */
351
- editPost(form: EditPost): Promise<PostResponse>;
369
+ editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
352
370
  /**
353
371
  * Delete a post.
354
372
  *
355
373
  * `HTTP.POST /post/delete`
356
374
  */
357
- deletePost(form: DeletePost): Promise<PostResponse>;
375
+ deletePost(form: DeletePost, options?: RequestOptions): Promise<PostResponse>;
358
376
  /**
359
377
  * A moderator remove for a post.
360
378
  *
361
379
  * `HTTP.POST /post/remove`
362
380
  */
363
- removePost(form: RemovePost): Promise<PostResponse>;
381
+ removePost(form: RemovePost, options?: RequestOptions): Promise<PostResponse>;
364
382
  /**
365
383
  * Mark a post as read.
366
384
  *
367
385
  * `HTTP.POST /post/mark_as_read`
368
386
  */
369
- markPostAsRead(form: MarkPostAsRead): Promise<SuccessResponse>;
387
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
370
388
  /**
371
389
  * Hide a post from list views.
372
390
  *
373
391
  * `HTTP.POST /post/hide`
374
392
  */
375
- hidePost(form: HidePost): Promise<SuccessResponse>;
393
+ hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
376
394
  /**
377
395
  * A moderator can lock a post ( IE disable new comments ).
378
396
  *
379
397
  * `HTTP.POST /post/lock`
380
398
  */
381
- lockPost(form: LockPost): Promise<PostResponse>;
399
+ lockPost(form: LockPost, options?: RequestOptions): Promise<PostResponse>;
382
400
  /**
383
401
  * A moderator can feature a community post ( IE stick it to the top of a community ).
384
402
  *
385
403
  * `HTTP.POST /post/feature`
386
404
  */
387
- featurePost(form: FeaturePost): Promise<PostResponse>;
405
+ featurePost(form: FeaturePost, options?: RequestOptions): Promise<PostResponse>;
388
406
  /**
389
407
  * Get / fetch posts, with various filters.
390
408
  *
391
409
  * `HTTP.GET /post/list`
392
410
  */
393
- getPosts(form?: GetPosts): Promise<GetPostsResponse>;
411
+ getPosts(form?: GetPosts, options?: RequestOptions): Promise<GetPostsResponse>;
394
412
  /**
395
413
  * Like / vote on a post.
396
414
  *
397
415
  * `HTTP.POST /post/like`
398
416
  */
399
- likePost(form: CreatePostLike): Promise<PostResponse>;
417
+ likePost(form: CreatePostLike, options?: RequestOptions): Promise<PostResponse>;
400
418
  /**
401
419
  * List a post's likes. Admin-only.
402
420
  *
403
421
  * `HTTP.GET /post/like/list`
404
422
  */
405
- listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
423
+ listPostLikes(form: ListPostLikes, options?: RequestOptions): Promise<ListPostLikesResponse>;
406
424
  /**
407
425
  * Save a post.
408
426
  *
409
427
  * `HTTP.PUT /post/save`
410
428
  */
411
- savePost(form: SavePost): Promise<PostResponse>;
429
+ savePost(form: SavePost, options?: RequestOptions): Promise<PostResponse>;
412
430
  /**
413
431
  * Report a post.
414
432
  *
415
433
  * `HTTP.POST /post/report`
416
434
  */
417
- createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
435
+ createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<PostReportResponse>;
418
436
  /**
419
437
  * Resolve a post report. Only a mod can do this.
420
438
  *
421
439
  * `HTTP.PUT /post/report/resolve`
422
440
  */
423
- resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
441
+ resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse>;
424
442
  /**
425
443
  * List post reports.
426
444
  *
427
445
  * `HTTP.GET /post/report/list`
428
446
  */
429
- listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
447
+ listPostReports(form: ListPostReports, options?: RequestOptions): Promise<ListPostReportsResponse>;
430
448
  /**
431
449
  * Fetch metadata for any given site.
432
450
  *
433
451
  * `HTTP.GET /post/site_metadata`
434
452
  */
435
- getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
453
+ getSiteMetadata(form: GetSiteMetadata, options?: RequestOptions): Promise<GetSiteMetadataResponse>;
436
454
  /**
437
455
  * Create a comment.
438
456
  *
439
457
  * `HTTP.POST /comment`
440
458
  */
441
- createComment(form: CreateComment): Promise<CommentResponse>;
459
+ createComment(form: CreateComment, options?: RequestOptions): Promise<CommentResponse>;
442
460
  /**
443
461
  * Edit a comment.
444
462
  *
445
463
  * `HTTP.PUT /comment`
446
464
  */
447
- editComment(form: EditComment): Promise<CommentResponse>;
465
+ editComment(form: EditComment, options?: RequestOptions): Promise<CommentResponse>;
448
466
  /**
449
467
  * Delete a comment.
450
468
  *
451
469
  * `HTTP.POST /comment/delete`
452
470
  */
453
- deleteComment(form: DeleteComment): Promise<CommentResponse>;
471
+ deleteComment(form: DeleteComment, options?: RequestOptions): Promise<CommentResponse>;
454
472
  /**
455
473
  * A moderator remove for a comment.
456
474
  *
457
475
  * `HTTP.POST /comment/remove`
458
476
  */
459
- removeComment(form: RemoveComment): Promise<CommentResponse>;
477
+ removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
460
478
  /**
461
479
  * Mark a comment as read.
462
480
  *
463
481
  * `HTTP.POST /comment/mark_as_read`
464
482
  */
465
- markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<CommentReplyResponse>;
483
+ markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<CommentReplyResponse>;
466
484
  /**
467
485
  * Like / vote on a comment.
468
486
  *
469
487
  * `HTTP.POST /comment/like`
470
488
  */
471
- likeComment(form: CreateCommentLike): Promise<CommentResponse>;
489
+ likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
472
490
  /**
473
491
  * List a comment's likes. Admin-only.
474
492
  *
475
493
  * `HTTP.GET /comment/like/list`
476
494
  */
477
- listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
495
+ listCommentLikes(form: ListCommentLikes, options?: RequestOptions): Promise<ListCommentLikesResponse>;
478
496
  /**
479
497
  * Save a comment.
480
498
  *
481
499
  * `HTTP.PUT /comment/save`
482
500
  */
483
- saveComment(form: SaveComment): Promise<CommentResponse>;
501
+ saveComment(form: SaveComment, options?: RequestOptions): Promise<CommentResponse>;
484
502
  /**
485
503
  * Distinguishes a comment (speak as moderator)
486
504
  *
487
505
  * `HTTP.POST /comment/distinguish`
488
506
  */
489
- distinguishComment(form: DistinguishComment): Promise<CommentResponse>;
507
+ distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<CommentResponse>;
490
508
  /**
491
509
  * Get / fetch comments.
492
510
  *
493
511
  * `HTTP.GET /comment/list`
494
512
  */
495
- getComments(form?: GetComments): Promise<GetCommentsResponse>;
513
+ getComments(form?: GetComments, options?: RequestOptions): Promise<GetCommentsResponse>;
496
514
  /**
497
515
  * Get / fetch comment.
498
516
  *
499
517
  * `HTTP.GET /comment`
500
518
  */
501
- getComment(form: GetComment): Promise<CommentResponse>;
519
+ getComment(form: GetComment, options?: RequestOptions): Promise<CommentResponse>;
502
520
  /**
503
521
  * Report a comment.
504
522
  *
505
523
  * `HTTP.POST /comment/report`
506
524
  */
507
- createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
525
+ createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
508
526
  /**
509
527
  * Resolve a comment report. Only a mod can do this.
510
528
  *
511
529
  * `HTTP.PUT /comment/report/resolve`
512
530
  */
513
- resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
531
+ resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
514
532
  /**
515
533
  * List comment reports.
516
534
  *
517
535
  * `HTTP.GET /comment/report/list`
518
536
  */
519
- listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
537
+ listCommentReports(form: ListCommentReports, options?: RequestOptions): Promise<ListCommentReportsResponse>;
520
538
  /**
521
539
  * Get / fetch private messages.
522
540
  *
523
541
  * `HTTP.GET /private_message/list`
524
542
  */
525
- getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
543
+ getPrivateMessages(form: GetPrivateMessages, options?: RequestOptions): Promise<PrivateMessagesResponse>;
526
544
  /**
527
545
  * Create a private message.
528
546
  *
529
547
  * `HTTP.POST /private_message`
530
548
  */
531
- createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
549
+ createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
532
550
  /**
533
551
  * Edit a private message.
534
552
  *
535
553
  * `HTTP.PUT /private_message`
536
554
  */
537
- editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
555
+ editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
538
556
  /**
539
557
  * Delete a private message.
540
558
  *
541
559
  * `HTTP.POST /private_message/delete`
542
560
  */
543
- deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
561
+ deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
544
562
  /**
545
563
  * Mark a private message as read.
546
564
  *
547
565
  * `HTTP.POST /private_message/mark_as_read`
548
566
  */
549
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
567
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
550
568
  /**
551
569
  * Create a report for a private message.
552
570
  *
553
571
  * `HTTP.POST /private_message/report`
554
572
  */
555
- createPrivateMessageReport(form: CreatePrivateMessageReport): Promise<PrivateMessageReportResponse>;
573
+ createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
556
574
  /**
557
575
  * Resolve a report for a private message.
558
576
  *
559
577
  * `HTTP.PUT /private_message/report/resolve`
560
578
  */
561
- resolvePrivateMessageReport(form: ResolvePrivateMessageReport): Promise<PrivateMessageReportResponse>;
579
+ resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
562
580
  /**
563
581
  * List private message reports.
564
582
  *
565
583
  * `HTTP.GET /private_message/report/list`
566
584
  */
567
- listPrivateMessageReports(form: ListPrivateMessageReports): Promise<ListPrivateMessageReportsResponse>;
585
+ listPrivateMessageReports(form: ListPrivateMessageReports, options?: RequestOptions): Promise<ListPrivateMessageReportsResponse>;
568
586
  /**
569
587
  * Register a new user.
570
588
  *
571
589
  * `HTTP.POST /user/register`
572
590
  */
573
- register(form: Register): Promise<LoginResponse>;
591
+ register(form: Register, options?: RequestOptions): Promise<LoginResponse>;
574
592
  /**
575
593
  * Log into lemmy.
576
594
  *
577
595
  * `HTTP.POST /user/login`
578
596
  */
579
- login(form: Login): Promise<LoginResponse>;
597
+ login(form: Login, options?: RequestOptions): Promise<LoginResponse>;
580
598
  /**
581
599
  * Invalidate the currently used auth token.
582
600
  *
583
601
  * `HTTP.POST /user/logout`
584
602
  */
585
- logout(): Promise<SuccessResponse>;
603
+ logout(options?: RequestOptions): Promise<SuccessResponse>;
586
604
  /**
587
605
  * Get the details for a person.
588
606
  *
589
607
  * `HTTP.GET /user`
590
608
  */
591
- getPersonDetails(form?: GetPersonDetails): Promise<GetPersonDetailsResponse>;
609
+ getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
592
610
  /**
593
611
  * Get mentions for your user.
594
612
  *
595
613
  * `HTTP.GET /user/mention`
596
614
  */
597
- getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
615
+ getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
598
616
  /**
599
617
  * Mark a person mention as read.
600
618
  *
601
619
  * `HTTP.POST /user/mention/mark_as_read`
602
620
  */
603
- markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
621
+ markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
604
622
  /**
605
623
  * Get comment replies.
606
624
  *
607
625
  * `HTTP.GET /user/replies`
608
626
  */
609
- getReplies(form: GetReplies): Promise<GetRepliesResponse>;
627
+ getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
610
628
  /**
611
629
  * Ban a person from your site.
612
630
  *
613
631
  * `HTTP.POST /user/ban`
614
632
  */
615
- banPerson(form: BanPerson): Promise<BanPersonResponse>;
633
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
616
634
  /**
617
635
  * Get a list of banned users
618
636
  *
619
637
  * `HTTP.GET /user/banned`
620
638
  */
621
- getBannedPersons(): Promise<BannedPersonsResponse>;
639
+ getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
622
640
  /**
623
641
  * Block a person.
624
642
  *
625
643
  * `HTTP.POST /user/block`
626
644
  */
627
- blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
645
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
628
646
  /**
629
647
  * Fetch a Captcha.
630
648
  *
631
649
  * `HTTP.GET /user/get_captcha`
632
650
  */
633
- getCaptcha(): Promise<GetCaptchaResponse>;
651
+ getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse>;
634
652
  /**
635
653
  * Delete your account.
636
654
  *
637
655
  * `HTTP.POST /user/delete_account`
638
656
  */
639
- deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
657
+ deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse>;
640
658
  /**
641
659
  * Reset your password.
642
660
  *
643
661
  * `HTTP.POST /user/password_reset`
644
662
  */
645
- passwordReset(form: PasswordReset): Promise<SuccessResponse>;
663
+ passwordReset(form: PasswordReset, options?: RequestOptions): Promise<SuccessResponse>;
646
664
  /**
647
665
  * Change your password from an email / token based reset.
648
666
  *
649
667
  * `HTTP.POST /user/password_change`
650
668
  */
651
- passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<SuccessResponse>;
669
+ passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
652
670
  /**
653
671
  * Mark all replies as read.
654
672
  *
655
673
  * `HTTP.POST /user/mark_all_as_read`
656
674
  */
657
- markAllAsRead(): Promise<GetRepliesResponse>;
675
+ markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
658
676
  /**
659
677
  * Save your user settings.
660
678
  *
661
679
  * `HTTP.PUT /user/save_user_settings`
662
680
  */
663
- saveUserSettings(form: SaveUserSettings): Promise<SuccessResponse>;
681
+ saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse>;
664
682
  /**
665
683
  * Change your user password.
666
684
  *
667
685
  * `HTTP.PUT /user/change_password`
668
686
  */
669
- changePassword(form: ChangePassword): Promise<LoginResponse>;
687
+ changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
670
688
  /**
671
689
  * Get counts for your reports
672
690
  *
673
691
  * `HTTP.GET /user/report_count`
674
692
  */
675
- getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
693
+ getReportCount(form: GetReportCount, options?: RequestOptions): Promise<GetReportCountResponse>;
676
694
  /**
677
695
  * Get your unread counts
678
696
  *
679
697
  * `HTTP.GET /user/unread_count`
680
698
  */
681
- getUnreadCount(): Promise<GetUnreadCountResponse>;
699
+ getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
682
700
  /**
683
701
  * Verify your email
684
702
  *
685
703
  * `HTTP.POST /user/verify_email`
686
704
  */
687
- verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
705
+ verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
688
706
  /**
689
707
  * Add an admin to your site.
690
708
  *
691
709
  * `HTTP.POST /admin/add`
692
710
  */
693
- addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
711
+ addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
694
712
  /**
695
713
  * Get the unread registration applications count.
696
714
  *
697
715
  * `HTTP.GET /admin/registration_application/count`
698
716
  */
699
- getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
717
+ getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
700
718
  /**
701
719
  * List the registration applications.
702
720
  *
703
721
  * `HTTP.GET /admin/registration_application/list`
704
722
  */
705
- listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
723
+ listRegistrationApplications(form: ListRegistrationApplications, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
706
724
  /**
707
725
  * Approve a registration application
708
726
  *
709
727
  * `HTTP.PUT /admin/registration_application/approve`
710
728
  */
711
- approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
729
+ approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
712
730
  /**
713
731
  * Get the application a user submitted when they first registered their account
714
732
  *
715
733
  * `HTTP.GET /admin/registration_application`
716
734
  */
717
- getRegistrationApplication(form: GetRegistrationApplication): Promise<RegistrationApplicationResponse>;
735
+ getRegistrationApplication(form: GetRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
718
736
  /**
719
737
  * Purge / Delete a person from the database.
720
738
  *
721
739
  * `HTTP.POST /admin/purge/person`
722
740
  */
723
- purgePerson(form: PurgePerson): Promise<SuccessResponse>;
741
+ purgePerson(form: PurgePerson, options?: RequestOptions): Promise<SuccessResponse>;
724
742
  /**
725
743
  * Purge / Delete a community from the database.
726
744
  *
727
745
  * `HTTP.POST /admin/purge/community`
728
746
  */
729
- purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
747
+ purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<SuccessResponse>;
730
748
  /**
731
749
  * Purge / Delete a post from the database.
732
750
  *
733
751
  * `HTTP.POST /admin/purge/post`
734
752
  */
735
- purgePost(form: PurgePost): Promise<SuccessResponse>;
753
+ purgePost(form: PurgePost, options?: RequestOptions): Promise<SuccessResponse>;
736
754
  /**
737
755
  * Purge / Delete a comment from the database.
738
756
  *
739
757
  * `HTTP.POST /admin/purge/comment`
740
758
  */
741
- purgeComment(form: PurgeComment): Promise<SuccessResponse>;
759
+ purgeComment(form: PurgeComment, options?: RequestOptions): Promise<SuccessResponse>;
742
760
  /**
743
761
  * Create a new custom emoji
744
762
  *
745
763
  * `HTTP.POST /custom_emoji`
746
764
  */
747
- createCustomEmoji(form: CreateCustomEmoji): Promise<CustomEmojiResponse>;
765
+ createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
748
766
  /**
749
767
  * Edit an existing custom emoji
750
768
  *
751
769
  * `HTTP.PUT /custom_emoji`
752
770
  */
753
- editCustomEmoji(form: EditCustomEmoji): Promise<CustomEmojiResponse>;
771
+ editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
754
772
  /**
755
773
  * Delete a custom emoji
756
774
  *
757
775
  * `HTTP.Post /custom_emoji/delete`
758
776
  */
759
- deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
777
+ deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<SuccessResponse>;
778
+ /**
779
+ * List custom emojis
780
+ *
781
+ * `HTTP.GET /custom_emoji/list`
782
+ */
783
+ listCustomEmojis(form: ListCustomEmojis, options?: RequestOptions): Promise<ListCustomEmojisResponse>;
760
784
  /**
761
785
  * Create a new tagline
762
786
  *
763
787
  * `HTTP.POST /admin/tagline`
764
788
  */
765
- createTagline(form: CreateTagline): Promise<TaglineResponse>;
789
+ createTagline(form: CreateTagline, options?: RequestOptions): Promise<TaglineResponse>;
766
790
  /**
767
791
  * Edit an existing tagline
768
792
  *
769
793
  * `HTTP.PUT /admin/tagline`
770
794
  */
771
- editTagline(form: UpdateTagline): Promise<TaglineResponse>;
795
+ editTagline(form: UpdateTagline, options?: RequestOptions): Promise<TaglineResponse>;
772
796
  /**
773
797
  * Delete a tagline
774
798
  *
775
799
  * `HTTP.Post /admin/tagline/delete`
776
800
  */
777
- deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
801
+ deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<SuccessResponse>;
778
802
  /**
779
803
  * List taglines
780
804
  *
781
805
  * `HTTP.GET /admin/tagline/list`
782
806
  */
783
- listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
807
+ listTaglines(form: ListTaglines, options?: RequestOptions): Promise<ListTaglinesResponse>;
784
808
  /**
785
809
  * Create a new oauth provider method
786
810
  *
787
811
  * `HTTP.POST /oauth_provider`
788
812
  */
789
- createOAuthProvider(form: CreateOAuthProvider): Promise<OAuthProvider>;
813
+ createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
790
814
  /**
791
815
  * Edit an existing oauth provider method
792
816
  *
793
817
  * `HTTP.PUT /oauth_provider`
794
818
  */
795
- editOAuthProvider(form: EditOAuthProvider): Promise<OAuthProvider>;
819
+ editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
796
820
  /**
797
821
  * Delete an oauth provider method
798
822
  *
799
823
  * `HTTP.Post /oauth_provider/delete`
800
824
  */
801
- deleteOAuthProvider(form: DeleteOAuthProvider): Promise<SuccessResponse>;
825
+ deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<SuccessResponse>;
802
826
  /**
803
827
  * Authenticate with OAuth
804
828
  *
805
829
  * `HTTP.Post /oauth/authenticate`
806
830
  */
807
- authenticateWithOAuth(form: AuthenticateWithOauth): Promise<LoginResponse>;
831
+ authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<LoginResponse>;
808
832
  /**
809
833
  * Fetch federated instances.
810
834
  *
811
835
  * `HTTP.Get /federated_instances`
812
836
  */
813
- getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
837
+ getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
814
838
  /**
815
839
  * Block an instance.
816
840
  *
817
841
  * `HTTP.Post /site/block`
818
842
  */
819
- blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
843
+ blockInstance(form: BlockInstance, options?: RequestOptions): Promise<BlockInstanceResponse>;
820
844
  /**
821
845
  * Upload an image to the server.
822
846
  */
823
- uploadImage({ image }: UploadImage): Promise<UploadImageResponse>;
847
+ uploadImage({ image }: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
824
848
  /**
825
849
  * Delete a pictrs image
826
850
  */
827
- deleteImage({ token, filename }: DeleteImage): Promise<boolean>;
851
+ deleteImage({ token, filename }: DeleteImage, options?: RequestOptions): Promise<boolean>;
828
852
  /**
829
853
  * Set the headers (can be used to set the auth header)
830
854
  */
@@ -832,3 +856,4 @@ export declare class LemmyHttp {
832
856
  [key: string]: string;
833
857
  }): void;
834
858
  }
859
+ export {};