lemmy-js-client 0.20.0-alpha.17 → 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 +128 -111
  2. package/dist/http.js +245 -241
  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
@@ -148,6 +148,13 @@ import { ListTaglines } from "./types/ListTaglines";
148
148
  import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
149
149
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
150
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">;
151
158
  /**
152
159
  * Helps build lemmy HTTP requests.
153
160
  */
@@ -169,25 +176,25 @@ export declare class LemmyHttp {
169
176
  *
170
177
  * `HTTP.GET /site`
171
178
  */
172
- getSite(): Promise<GetSiteResponse>;
179
+ getSite(options?: RequestOptions): Promise<GetSiteResponse>;
173
180
  /**
174
181
  * Create your site.
175
182
  *
176
183
  * `HTTP.POST /site`
177
184
  */
178
- createSite(form: CreateSite): Promise<SiteResponse>;
185
+ createSite(form: CreateSite, options?: RequestOptions): Promise<SiteResponse>;
179
186
  /**
180
187
  * Edit your site.
181
188
  *
182
189
  * `HTTP.PUT /site`
183
190
  */
184
- editSite(form: EditSite): Promise<SiteResponse>;
191
+ editSite(form: EditSite, options?: RequestOptions): Promise<SiteResponse>;
185
192
  /**
186
193
  * Leave the Site admins.
187
194
  *
188
195
  * `HTTP.POST /user/leave_admin`
189
196
  */
190
- leaveAdmin(): Promise<GetSiteResponse>;
197
+ leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse>;
191
198
  /**
192
199
  * Generate a TOTP / two-factor secret.
193
200
  *
@@ -195,44 +202,44 @@ export declare class LemmyHttp {
195
202
  *
196
203
  * `HTTP.POST /user/totp/generate`
197
204
  */
198
- generateTotpSecret(): Promise<GenerateTotpSecretResponse>;
205
+ generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse>;
199
206
  /**
200
207
  * Export a backup of your user settings, including your saved content,
201
208
  * followed communities, and blocks.
202
209
  *
203
210
  * `HTTP.GET /user/export_settings`
204
211
  */
205
- exportSettings(): Promise<string>;
212
+ exportSettings(options?: RequestOptions): Promise<string>;
206
213
  /**
207
214
  * Import a backup of your user settings.
208
215
  *
209
216
  * `HTTP.POST /user/import_settings`
210
217
  */
211
- importSettings(form: any): Promise<SuccessResponse>;
218
+ importSettings(form: any, options?: RequestOptions): Promise<SuccessResponse>;
212
219
  /**
213
220
  * List login tokens for your user
214
221
  *
215
222
  * `HTTP.GET /user/list_logins`
216
223
  */
217
- listLogins(): Promise<LoginToken[]>;
224
+ listLogins(options?: RequestOptions): Promise<LoginToken[]>;
218
225
  /**
219
226
  * Returns an error message if your auth token is invalid
220
227
  *
221
228
  * `HTTP.GET /user/validate_auth`
222
229
  */
223
- validateAuth(): Promise<SuccessResponse>;
230
+ validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
224
231
  /**
225
232
  * List all the media for your user
226
233
  *
227
234
  * `HTTP.GET /account/list_media`
228
235
  */
229
- listMedia(form?: ListMedia): Promise<ListMediaResponse>;
236
+ listMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
230
237
  /**
231
238
  * List all the media known to your instance.
232
239
  *
233
240
  * `HTTP.GET /admin/list_all_media`
234
241
  */
235
- listAllMedia(form?: ListMedia): Promise<ListMediaResponse>;
242
+ listAllMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
236
243
  /**
237
244
  * Enable / Disable TOTP / two-factor authentication.
238
245
  *
@@ -242,597 +249,606 @@ export declare class LemmyHttp {
242
249
  *
243
250
  * `HTTP.POST /user/totp/update`
244
251
  */
245
- updateTotp(form: UpdateTotp): Promise<UpdateTotpResponse>;
252
+ updateTotp(form: UpdateTotp, options?: RequestOptions): Promise<UpdateTotpResponse>;
246
253
  /**
247
254
  * Get the modlog.
248
255
  *
249
256
  * `HTTP.GET /modlog`
250
257
  */
251
- getModlog(form?: GetModlog): Promise<GetModlogResponse>;
258
+ getModlog(form?: GetModlog, options?: RequestOptions): Promise<GetModlogResponse>;
252
259
  /**
253
260
  * Search lemmy.
254
261
  *
255
262
  * `HTTP.GET /search`
256
263
  */
257
- search(form: Search): Promise<SearchResponse>;
264
+ search(form: Search, options?: RequestOptions): Promise<SearchResponse>;
258
265
  /**
259
266
  * Fetch a non-local / federated object.
260
267
  *
261
268
  * `HTTP.GET /resolve_object`
262
269
  */
263
- resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
270
+ resolveObject(form: ResolveObject, options?: RequestOptions): Promise<ResolveObjectResponse>;
264
271
  /**
265
272
  * Create a new community.
266
273
  *
267
274
  * `HTTP.POST /community`
268
275
  */
269
- createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
276
+ createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<CommunityResponse>;
270
277
  /**
271
278
  * Get / fetch a community.
272
279
  *
273
280
  * `HTTP.GET /community`
274
281
  */
275
- getCommunity(form?: GetCommunity): Promise<GetCommunityResponse>;
282
+ getCommunity(form?: GetCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
276
283
  /**
277
284
  * Edit a community.
278
285
  *
279
286
  * `HTTP.PUT /community`
280
287
  */
281
- editCommunity(form: EditCommunity): Promise<CommunityResponse>;
288
+ editCommunity(form: EditCommunity, options?: RequestOptions): Promise<CommunityResponse>;
282
289
  /**
283
290
  * List communities, with various filters.
284
291
  *
285
292
  * `HTTP.GET /community/list`
286
293
  */
287
- listCommunities(form?: ListCommunities): Promise<ListCommunitiesResponse>;
294
+ listCommunities(form?: ListCommunities, options?: RequestOptions): Promise<ListCommunitiesResponse>;
288
295
  /**
289
296
  * Follow / subscribe to a community.
290
297
  *
291
298
  * `HTTP.POST /community/follow`
292
299
  */
293
- 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>;
294
304
  /**
295
305
  * Block a community.
296
306
  *
297
307
  * `HTTP.POST /community/block`
298
308
  */
299
- blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
309
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
300
310
  /**
301
311
  * Delete a community.
302
312
  *
303
313
  * `HTTP.POST /community/delete`
304
314
  */
305
- deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
315
+ deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<CommunityResponse>;
306
316
  /**
307
317
  * Hide a community from public / "All" view. Admins only.
308
318
  *
309
319
  * `HTTP.PUT /community/hide`
310
320
  */
311
- hideCommunity(form: HideCommunity): Promise<SuccessResponse>;
321
+ hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<SuccessResponse>;
312
322
  /**
313
323
  * A moderator remove for a community.
314
324
  *
315
325
  * `HTTP.POST /community/remove`
316
326
  */
317
- removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
327
+ removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<CommunityResponse>;
318
328
  /**
319
329
  * Transfer your community to an existing moderator.
320
330
  *
321
331
  * `HTTP.POST /community/transfer`
322
332
  */
323
- transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
333
+ transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
324
334
  /**
325
335
  * Ban a user from a community.
326
336
  *
327
337
  * `HTTP.POST /community/ban_user`
328
338
  */
329
- banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
339
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
330
340
  /**
331
341
  * Add a moderator to your community.
332
342
  *
333
343
  * `HTTP.POST /community/mod`
334
344
  */
335
- 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>;
336
352
  /**
337
353
  * Create a post.
338
354
  *
339
355
  * `HTTP.POST /post`
340
356
  */
341
- createPost(form: CreatePost): Promise<PostResponse>;
357
+ createPost(form: CreatePost, options?: RequestOptions): Promise<PostResponse>;
342
358
  /**
343
359
  * Get / fetch a post.
344
360
  *
345
361
  * `HTTP.GET /post`
346
362
  */
347
- getPost(form?: GetPost): Promise<GetPostResponse>;
363
+ getPost(form?: GetPost, options?: RequestOptions): Promise<GetPostResponse>;
348
364
  /**
349
365
  * Edit a post.
350
366
  *
351
367
  * `HTTP.PUT /post`
352
368
  */
353
- editPost(form: EditPost): Promise<PostResponse>;
369
+ editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
354
370
  /**
355
371
  * Delete a post.
356
372
  *
357
373
  * `HTTP.POST /post/delete`
358
374
  */
359
- deletePost(form: DeletePost): Promise<PostResponse>;
375
+ deletePost(form: DeletePost, options?: RequestOptions): Promise<PostResponse>;
360
376
  /**
361
377
  * A moderator remove for a post.
362
378
  *
363
379
  * `HTTP.POST /post/remove`
364
380
  */
365
- removePost(form: RemovePost): Promise<PostResponse>;
381
+ removePost(form: RemovePost, options?: RequestOptions): Promise<PostResponse>;
366
382
  /**
367
383
  * Mark a post as read.
368
384
  *
369
385
  * `HTTP.POST /post/mark_as_read`
370
386
  */
371
- markPostAsRead(form: MarkPostAsRead): Promise<SuccessResponse>;
387
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
372
388
  /**
373
389
  * Hide a post from list views.
374
390
  *
375
391
  * `HTTP.POST /post/hide`
376
392
  */
377
- hidePost(form: HidePost): Promise<SuccessResponse>;
393
+ hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
378
394
  /**
379
395
  * A moderator can lock a post ( IE disable new comments ).
380
396
  *
381
397
  * `HTTP.POST /post/lock`
382
398
  */
383
- lockPost(form: LockPost): Promise<PostResponse>;
399
+ lockPost(form: LockPost, options?: RequestOptions): Promise<PostResponse>;
384
400
  /**
385
401
  * A moderator can feature a community post ( IE stick it to the top of a community ).
386
402
  *
387
403
  * `HTTP.POST /post/feature`
388
404
  */
389
- featurePost(form: FeaturePost): Promise<PostResponse>;
405
+ featurePost(form: FeaturePost, options?: RequestOptions): Promise<PostResponse>;
390
406
  /**
391
407
  * Get / fetch posts, with various filters.
392
408
  *
393
409
  * `HTTP.GET /post/list`
394
410
  */
395
- getPosts(form?: GetPosts): Promise<GetPostsResponse>;
411
+ getPosts(form?: GetPosts, options?: RequestOptions): Promise<GetPostsResponse>;
396
412
  /**
397
413
  * Like / vote on a post.
398
414
  *
399
415
  * `HTTP.POST /post/like`
400
416
  */
401
- likePost(form: CreatePostLike): Promise<PostResponse>;
417
+ likePost(form: CreatePostLike, options?: RequestOptions): Promise<PostResponse>;
402
418
  /**
403
419
  * List a post's likes. Admin-only.
404
420
  *
405
421
  * `HTTP.GET /post/like/list`
406
422
  */
407
- listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
423
+ listPostLikes(form: ListPostLikes, options?: RequestOptions): Promise<ListPostLikesResponse>;
408
424
  /**
409
425
  * Save a post.
410
426
  *
411
427
  * `HTTP.PUT /post/save`
412
428
  */
413
- savePost(form: SavePost): Promise<PostResponse>;
429
+ savePost(form: SavePost, options?: RequestOptions): Promise<PostResponse>;
414
430
  /**
415
431
  * Report a post.
416
432
  *
417
433
  * `HTTP.POST /post/report`
418
434
  */
419
- createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
435
+ createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<PostReportResponse>;
420
436
  /**
421
437
  * Resolve a post report. Only a mod can do this.
422
438
  *
423
439
  * `HTTP.PUT /post/report/resolve`
424
440
  */
425
- resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
441
+ resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse>;
426
442
  /**
427
443
  * List post reports.
428
444
  *
429
445
  * `HTTP.GET /post/report/list`
430
446
  */
431
- listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
447
+ listPostReports(form: ListPostReports, options?: RequestOptions): Promise<ListPostReportsResponse>;
432
448
  /**
433
449
  * Fetch metadata for any given site.
434
450
  *
435
451
  * `HTTP.GET /post/site_metadata`
436
452
  */
437
- getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
453
+ getSiteMetadata(form: GetSiteMetadata, options?: RequestOptions): Promise<GetSiteMetadataResponse>;
438
454
  /**
439
455
  * Create a comment.
440
456
  *
441
457
  * `HTTP.POST /comment`
442
458
  */
443
- createComment(form: CreateComment): Promise<CommentResponse>;
459
+ createComment(form: CreateComment, options?: RequestOptions): Promise<CommentResponse>;
444
460
  /**
445
461
  * Edit a comment.
446
462
  *
447
463
  * `HTTP.PUT /comment`
448
464
  */
449
- editComment(form: EditComment): Promise<CommentResponse>;
465
+ editComment(form: EditComment, options?: RequestOptions): Promise<CommentResponse>;
450
466
  /**
451
467
  * Delete a comment.
452
468
  *
453
469
  * `HTTP.POST /comment/delete`
454
470
  */
455
- deleteComment(form: DeleteComment): Promise<CommentResponse>;
471
+ deleteComment(form: DeleteComment, options?: RequestOptions): Promise<CommentResponse>;
456
472
  /**
457
473
  * A moderator remove for a comment.
458
474
  *
459
475
  * `HTTP.POST /comment/remove`
460
476
  */
461
- removeComment(form: RemoveComment): Promise<CommentResponse>;
477
+ removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
462
478
  /**
463
479
  * Mark a comment as read.
464
480
  *
465
481
  * `HTTP.POST /comment/mark_as_read`
466
482
  */
467
- markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<CommentReplyResponse>;
483
+ markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<CommentReplyResponse>;
468
484
  /**
469
485
  * Like / vote on a comment.
470
486
  *
471
487
  * `HTTP.POST /comment/like`
472
488
  */
473
- likeComment(form: CreateCommentLike): Promise<CommentResponse>;
489
+ likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
474
490
  /**
475
491
  * List a comment's likes. Admin-only.
476
492
  *
477
493
  * `HTTP.GET /comment/like/list`
478
494
  */
479
- listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
495
+ listCommentLikes(form: ListCommentLikes, options?: RequestOptions): Promise<ListCommentLikesResponse>;
480
496
  /**
481
497
  * Save a comment.
482
498
  *
483
499
  * `HTTP.PUT /comment/save`
484
500
  */
485
- saveComment(form: SaveComment): Promise<CommentResponse>;
501
+ saveComment(form: SaveComment, options?: RequestOptions): Promise<CommentResponse>;
486
502
  /**
487
503
  * Distinguishes a comment (speak as moderator)
488
504
  *
489
505
  * `HTTP.POST /comment/distinguish`
490
506
  */
491
- distinguishComment(form: DistinguishComment): Promise<CommentResponse>;
507
+ distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<CommentResponse>;
492
508
  /**
493
509
  * Get / fetch comments.
494
510
  *
495
511
  * `HTTP.GET /comment/list`
496
512
  */
497
- getComments(form?: GetComments): Promise<GetCommentsResponse>;
513
+ getComments(form?: GetComments, options?: RequestOptions): Promise<GetCommentsResponse>;
498
514
  /**
499
515
  * Get / fetch comment.
500
516
  *
501
517
  * `HTTP.GET /comment`
502
518
  */
503
- getComment(form: GetComment): Promise<CommentResponse>;
519
+ getComment(form: GetComment, options?: RequestOptions): Promise<CommentResponse>;
504
520
  /**
505
521
  * Report a comment.
506
522
  *
507
523
  * `HTTP.POST /comment/report`
508
524
  */
509
- createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
525
+ createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
510
526
  /**
511
527
  * Resolve a comment report. Only a mod can do this.
512
528
  *
513
529
  * `HTTP.PUT /comment/report/resolve`
514
530
  */
515
- resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
531
+ resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
516
532
  /**
517
533
  * List comment reports.
518
534
  *
519
535
  * `HTTP.GET /comment/report/list`
520
536
  */
521
- listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
537
+ listCommentReports(form: ListCommentReports, options?: RequestOptions): Promise<ListCommentReportsResponse>;
522
538
  /**
523
539
  * Get / fetch private messages.
524
540
  *
525
541
  * `HTTP.GET /private_message/list`
526
542
  */
527
- getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
543
+ getPrivateMessages(form: GetPrivateMessages, options?: RequestOptions): Promise<PrivateMessagesResponse>;
528
544
  /**
529
545
  * Create a private message.
530
546
  *
531
547
  * `HTTP.POST /private_message`
532
548
  */
533
- createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
549
+ createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
534
550
  /**
535
551
  * Edit a private message.
536
552
  *
537
553
  * `HTTP.PUT /private_message`
538
554
  */
539
- editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
555
+ editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
540
556
  /**
541
557
  * Delete a private message.
542
558
  *
543
559
  * `HTTP.POST /private_message/delete`
544
560
  */
545
- deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
561
+ deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
546
562
  /**
547
563
  * Mark a private message as read.
548
564
  *
549
565
  * `HTTP.POST /private_message/mark_as_read`
550
566
  */
551
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
567
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
552
568
  /**
553
569
  * Create a report for a private message.
554
570
  *
555
571
  * `HTTP.POST /private_message/report`
556
572
  */
557
- createPrivateMessageReport(form: CreatePrivateMessageReport): Promise<PrivateMessageReportResponse>;
573
+ createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
558
574
  /**
559
575
  * Resolve a report for a private message.
560
576
  *
561
577
  * `HTTP.PUT /private_message/report/resolve`
562
578
  */
563
- resolvePrivateMessageReport(form: ResolvePrivateMessageReport): Promise<PrivateMessageReportResponse>;
579
+ resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
564
580
  /**
565
581
  * List private message reports.
566
582
  *
567
583
  * `HTTP.GET /private_message/report/list`
568
584
  */
569
- listPrivateMessageReports(form: ListPrivateMessageReports): Promise<ListPrivateMessageReportsResponse>;
585
+ listPrivateMessageReports(form: ListPrivateMessageReports, options?: RequestOptions): Promise<ListPrivateMessageReportsResponse>;
570
586
  /**
571
587
  * Register a new user.
572
588
  *
573
589
  * `HTTP.POST /user/register`
574
590
  */
575
- register(form: Register): Promise<LoginResponse>;
591
+ register(form: Register, options?: RequestOptions): Promise<LoginResponse>;
576
592
  /**
577
593
  * Log into lemmy.
578
594
  *
579
595
  * `HTTP.POST /user/login`
580
596
  */
581
- login(form: Login): Promise<LoginResponse>;
597
+ login(form: Login, options?: RequestOptions): Promise<LoginResponse>;
582
598
  /**
583
599
  * Invalidate the currently used auth token.
584
600
  *
585
601
  * `HTTP.POST /user/logout`
586
602
  */
587
- logout(): Promise<SuccessResponse>;
603
+ logout(options?: RequestOptions): Promise<SuccessResponse>;
588
604
  /**
589
605
  * Get the details for a person.
590
606
  *
591
607
  * `HTTP.GET /user`
592
608
  */
593
- getPersonDetails(form?: GetPersonDetails): Promise<GetPersonDetailsResponse>;
609
+ getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
594
610
  /**
595
611
  * Get mentions for your user.
596
612
  *
597
613
  * `HTTP.GET /user/mention`
598
614
  */
599
- getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
615
+ getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
600
616
  /**
601
617
  * Mark a person mention as read.
602
618
  *
603
619
  * `HTTP.POST /user/mention/mark_as_read`
604
620
  */
605
- markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
621
+ markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
606
622
  /**
607
623
  * Get comment replies.
608
624
  *
609
625
  * `HTTP.GET /user/replies`
610
626
  */
611
- getReplies(form: GetReplies): Promise<GetRepliesResponse>;
627
+ getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
612
628
  /**
613
629
  * Ban a person from your site.
614
630
  *
615
631
  * `HTTP.POST /user/ban`
616
632
  */
617
- banPerson(form: BanPerson): Promise<BanPersonResponse>;
633
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
618
634
  /**
619
635
  * Get a list of banned users
620
636
  *
621
637
  * `HTTP.GET /user/banned`
622
638
  */
623
- getBannedPersons(): Promise<BannedPersonsResponse>;
639
+ getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
624
640
  /**
625
641
  * Block a person.
626
642
  *
627
643
  * `HTTP.POST /user/block`
628
644
  */
629
- blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
645
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
630
646
  /**
631
647
  * Fetch a Captcha.
632
648
  *
633
649
  * `HTTP.GET /user/get_captcha`
634
650
  */
635
- getCaptcha(): Promise<GetCaptchaResponse>;
651
+ getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse>;
636
652
  /**
637
653
  * Delete your account.
638
654
  *
639
655
  * `HTTP.POST /user/delete_account`
640
656
  */
641
- deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
657
+ deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse>;
642
658
  /**
643
659
  * Reset your password.
644
660
  *
645
661
  * `HTTP.POST /user/password_reset`
646
662
  */
647
- passwordReset(form: PasswordReset): Promise<SuccessResponse>;
663
+ passwordReset(form: PasswordReset, options?: RequestOptions): Promise<SuccessResponse>;
648
664
  /**
649
665
  * Change your password from an email / token based reset.
650
666
  *
651
667
  * `HTTP.POST /user/password_change`
652
668
  */
653
- passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<SuccessResponse>;
669
+ passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
654
670
  /**
655
671
  * Mark all replies as read.
656
672
  *
657
673
  * `HTTP.POST /user/mark_all_as_read`
658
674
  */
659
- markAllAsRead(): Promise<GetRepliesResponse>;
675
+ markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
660
676
  /**
661
677
  * Save your user settings.
662
678
  *
663
679
  * `HTTP.PUT /user/save_user_settings`
664
680
  */
665
- saveUserSettings(form: SaveUserSettings): Promise<SuccessResponse>;
681
+ saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse>;
666
682
  /**
667
683
  * Change your user password.
668
684
  *
669
685
  * `HTTP.PUT /user/change_password`
670
686
  */
671
- changePassword(form: ChangePassword): Promise<LoginResponse>;
687
+ changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
672
688
  /**
673
689
  * Get counts for your reports
674
690
  *
675
691
  * `HTTP.GET /user/report_count`
676
692
  */
677
- getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
693
+ getReportCount(form: GetReportCount, options?: RequestOptions): Promise<GetReportCountResponse>;
678
694
  /**
679
695
  * Get your unread counts
680
696
  *
681
697
  * `HTTP.GET /user/unread_count`
682
698
  */
683
- getUnreadCount(): Promise<GetUnreadCountResponse>;
699
+ getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
684
700
  /**
685
701
  * Verify your email
686
702
  *
687
703
  * `HTTP.POST /user/verify_email`
688
704
  */
689
- verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
705
+ verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
690
706
  /**
691
707
  * Add an admin to your site.
692
708
  *
693
709
  * `HTTP.POST /admin/add`
694
710
  */
695
- addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
711
+ addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
696
712
  /**
697
713
  * Get the unread registration applications count.
698
714
  *
699
715
  * `HTTP.GET /admin/registration_application/count`
700
716
  */
701
- getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
717
+ getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
702
718
  /**
703
719
  * List the registration applications.
704
720
  *
705
721
  * `HTTP.GET /admin/registration_application/list`
706
722
  */
707
- listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
723
+ listRegistrationApplications(form: ListRegistrationApplications, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
708
724
  /**
709
725
  * Approve a registration application
710
726
  *
711
727
  * `HTTP.PUT /admin/registration_application/approve`
712
728
  */
713
- approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
729
+ approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
714
730
  /**
715
731
  * Get the application a user submitted when they first registered their account
716
732
  *
717
733
  * `HTTP.GET /admin/registration_application`
718
734
  */
719
- getRegistrationApplication(form: GetRegistrationApplication): Promise<RegistrationApplicationResponse>;
735
+ getRegistrationApplication(form: GetRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
720
736
  /**
721
737
  * Purge / Delete a person from the database.
722
738
  *
723
739
  * `HTTP.POST /admin/purge/person`
724
740
  */
725
- purgePerson(form: PurgePerson): Promise<SuccessResponse>;
741
+ purgePerson(form: PurgePerson, options?: RequestOptions): Promise<SuccessResponse>;
726
742
  /**
727
743
  * Purge / Delete a community from the database.
728
744
  *
729
745
  * `HTTP.POST /admin/purge/community`
730
746
  */
731
- purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
747
+ purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<SuccessResponse>;
732
748
  /**
733
749
  * Purge / Delete a post from the database.
734
750
  *
735
751
  * `HTTP.POST /admin/purge/post`
736
752
  */
737
- purgePost(form: PurgePost): Promise<SuccessResponse>;
753
+ purgePost(form: PurgePost, options?: RequestOptions): Promise<SuccessResponse>;
738
754
  /**
739
755
  * Purge / Delete a comment from the database.
740
756
  *
741
757
  * `HTTP.POST /admin/purge/comment`
742
758
  */
743
- purgeComment(form: PurgeComment): Promise<SuccessResponse>;
759
+ purgeComment(form: PurgeComment, options?: RequestOptions): Promise<SuccessResponse>;
744
760
  /**
745
761
  * Create a new custom emoji
746
762
  *
747
763
  * `HTTP.POST /custom_emoji`
748
764
  */
749
- createCustomEmoji(form: CreateCustomEmoji): Promise<CustomEmojiResponse>;
765
+ createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
750
766
  /**
751
767
  * Edit an existing custom emoji
752
768
  *
753
769
  * `HTTP.PUT /custom_emoji`
754
770
  */
755
- editCustomEmoji(form: EditCustomEmoji): Promise<CustomEmojiResponse>;
771
+ editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
756
772
  /**
757
773
  * Delete a custom emoji
758
774
  *
759
775
  * `HTTP.Post /custom_emoji/delete`
760
776
  */
761
- deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
777
+ deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<SuccessResponse>;
762
778
  /**
763
779
  * List custom emojis
764
780
  *
765
781
  * `HTTP.GET /custom_emoji/list`
766
782
  */
767
- listCustomEmojis(form: ListCustomEmojis): Promise<ListCustomEmojisResponse>;
783
+ listCustomEmojis(form: ListCustomEmojis, options?: RequestOptions): Promise<ListCustomEmojisResponse>;
768
784
  /**
769
785
  * Create a new tagline
770
786
  *
771
787
  * `HTTP.POST /admin/tagline`
772
788
  */
773
- createTagline(form: CreateTagline): Promise<TaglineResponse>;
789
+ createTagline(form: CreateTagline, options?: RequestOptions): Promise<TaglineResponse>;
774
790
  /**
775
791
  * Edit an existing tagline
776
792
  *
777
793
  * `HTTP.PUT /admin/tagline`
778
794
  */
779
- editTagline(form: UpdateTagline): Promise<TaglineResponse>;
795
+ editTagline(form: UpdateTagline, options?: RequestOptions): Promise<TaglineResponse>;
780
796
  /**
781
797
  * Delete a tagline
782
798
  *
783
799
  * `HTTP.Post /admin/tagline/delete`
784
800
  */
785
- deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
801
+ deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<SuccessResponse>;
786
802
  /**
787
803
  * List taglines
788
804
  *
789
805
  * `HTTP.GET /admin/tagline/list`
790
806
  */
791
- listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
807
+ listTaglines(form: ListTaglines, options?: RequestOptions): Promise<ListTaglinesResponse>;
792
808
  /**
793
809
  * Create a new oauth provider method
794
810
  *
795
811
  * `HTTP.POST /oauth_provider`
796
812
  */
797
- createOAuthProvider(form: CreateOAuthProvider): Promise<OAuthProvider>;
813
+ createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
798
814
  /**
799
815
  * Edit an existing oauth provider method
800
816
  *
801
817
  * `HTTP.PUT /oauth_provider`
802
818
  */
803
- editOAuthProvider(form: EditOAuthProvider): Promise<OAuthProvider>;
819
+ editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
804
820
  /**
805
821
  * Delete an oauth provider method
806
822
  *
807
823
  * `HTTP.Post /oauth_provider/delete`
808
824
  */
809
- deleteOAuthProvider(form: DeleteOAuthProvider): Promise<SuccessResponse>;
825
+ deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<SuccessResponse>;
810
826
  /**
811
827
  * Authenticate with OAuth
812
828
  *
813
829
  * `HTTP.Post /oauth/authenticate`
814
830
  */
815
- authenticateWithOAuth(form: AuthenticateWithOauth): Promise<LoginResponse>;
831
+ authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<LoginResponse>;
816
832
  /**
817
833
  * Fetch federated instances.
818
834
  *
819
835
  * `HTTP.Get /federated_instances`
820
836
  */
821
- getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
837
+ getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
822
838
  /**
823
839
  * Block an instance.
824
840
  *
825
841
  * `HTTP.Post /site/block`
826
842
  */
827
- blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
843
+ blockInstance(form: BlockInstance, options?: RequestOptions): Promise<BlockInstanceResponse>;
828
844
  /**
829
845
  * Upload an image to the server.
830
846
  */
831
- uploadImage({ image }: UploadImage): Promise<UploadImageResponse>;
847
+ uploadImage({ image }: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
832
848
  /**
833
849
  * Delete a pictrs image
834
850
  */
835
- deleteImage({ token, filename }: DeleteImage): Promise<boolean>;
851
+ deleteImage({ token, filename }: DeleteImage, options?: RequestOptions): Promise<boolean>;
836
852
  /**
837
853
  * Set the headers (can be used to set the auth header)
838
854
  */
@@ -840,3 +856,4 @@ export declare class LemmyHttp {
840
856
  [key: string]: string;
841
857
  }): void;
842
858
  }
859
+ export {};