lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-comment-lock.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +125 -43
  3. package/dist/http.js +1135 -916
  4. package/dist/index.d.ts +65 -36
  5. package/dist/other_types.d.ts +23 -2
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +2 -2
  8. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  9. package/dist/types/AdminListUsers.d.ts +7 -0
  10. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  11. package/dist/types/AdminPurgeComment.d.ts +1 -1
  12. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  13. package/dist/types/AdminPurgePerson.d.ts +1 -1
  14. package/dist/types/AdminPurgePost.d.ts +1 -1
  15. package/dist/types/BanFromCommunity.d.ts +1 -1
  16. package/dist/types/BanPerson.d.ts +1 -1
  17. package/dist/types/Comment.d.ts +20 -2
  18. package/dist/types/CommentActions.d.ts +14 -0
  19. package/dist/types/CommentReport.d.ts +2 -2
  20. package/dist/types/CommentReportView.d.ts +10 -13
  21. package/dist/types/CommentResponse.d.ts +0 -2
  22. package/dist/types/CommentSlimView.d.ts +7 -13
  23. package/dist/types/CommentView.d.ts +11 -13
  24. package/dist/types/Community.d.ts +25 -6
  25. package/dist/types/CommunityActions.d.ts +29 -0
  26. package/dist/types/CommunityIdQuery.d.ts +8 -0
  27. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityReportResponse.d.ts +7 -0
  30. package/dist/types/CommunityReportView.d.ts +4 -4
  31. package/dist/types/CommunityView.d.ts +4 -6
  32. package/dist/types/CommunityVisibility.d.ts +1 -1
  33. package/dist/types/CreateCommunityReport.d.ts +8 -0
  34. package/dist/types/CreateCommunityTag.d.ts +10 -0
  35. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  36. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  37. package/dist/types/CreatePost.d.ts +1 -1
  38. package/dist/types/CreateSite.d.ts +18 -14
  39. package/dist/types/CustomEmoji.d.ts +2 -2
  40. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  41. package/dist/types/EditPost.d.ts +2 -2
  42. package/dist/types/EditSite.d.ts +26 -21
  43. package/dist/types/ExportDataResponse.d.ts +13 -0
  44. package/dist/types/FederationBlockList.d.ts +3 -3
  45. package/dist/types/FederationError.d.ts +3 -1
  46. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  47. package/dist/types/GetComments.d.ts +3 -3
  48. package/dist/types/GetCommentsResponse.d.ts +3 -0
  49. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  50. package/dist/types/GetModlog.d.ts +3 -2
  51. package/dist/types/GetModlogResponse.d.ts +6 -0
  52. package/dist/types/GetMultiCommunity.d.ts +4 -0
  53. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  54. package/dist/types/GetPosts.d.ts +3 -9
  55. package/dist/types/GetPostsResponse.d.ts +1 -0
  56. package/dist/types/GetSiteResponse.d.ts +4 -2
  57. package/dist/types/Instance.d.ts +13 -3
  58. package/dist/types/InstanceActions.d.ts +18 -0
  59. package/dist/types/InstanceWithFederationState.d.ts +11 -2
  60. package/dist/types/LemmyErrorType.d.ts +94 -29
  61. package/dist/types/LikeType.d.ts +4 -0
  62. package/dist/types/ListCommentLikes.d.ts +3 -1
  63. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  64. package/dist/types/ListCommunities.d.ts +3 -1
  65. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  66. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  67. package/dist/types/ListCommunityPendingFollows.js +0 -1
  68. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  69. package/dist/types/ListCustomEmojis.d.ts +0 -3
  70. package/dist/types/ListMedia.d.ts +3 -1
  71. package/dist/types/ListMedia.js +0 -1
  72. package/dist/types/ListMediaResponse.d.ts +6 -0
  73. package/dist/types/ListMultiCommunities.d.ts +5 -0
  74. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  75. package/dist/types/ListNotifications.d.ts +12 -0
  76. package/dist/types/ListNotificationsResponse.d.ts +13 -0
  77. package/dist/types/ListPersonContent.d.ts +3 -2
  78. package/dist/types/ListPersonContentResponse.d.ts +6 -0
  79. package/dist/types/ListPersonHidden.d.ts +9 -0
  80. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  81. package/dist/types/ListPersonLiked.d.ts +13 -0
  82. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  83. package/dist/types/ListPersonRead.d.ts +9 -0
  84. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  85. package/dist/types/ListPersonSaved.d.ts +3 -2
  86. package/dist/types/ListPersonSavedResponse.d.ts +8 -2
  87. package/dist/types/ListPostLikes.d.ts +3 -1
  88. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  89. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  90. package/dist/types/ListRegistrationApplications.js +0 -1
  91. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  92. package/dist/types/ListReports.d.ts +3 -2
  93. package/dist/types/ListReportsResponse.d.ts +6 -0
  94. package/dist/types/ListTaglines.d.ts +3 -1
  95. package/dist/types/ListTaglines.js +0 -1
  96. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  97. package/dist/types/ListingType.d.ts +1 -1
  98. package/dist/types/LocalImage.d.ts +8 -3
  99. package/dist/types/LocalImageView.d.ts +2 -0
  100. package/dist/types/LocalSite.d.ts +30 -11
  101. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  102. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  103. package/dist/types/LocalUser.d.ts +7 -1
  104. package/dist/types/LocalUserView.d.ts +1 -4
  105. package/dist/types/LockComment.d.ts +6 -0
  106. package/dist/types/LockComment.js +2 -0
  107. package/dist/types/LockPost.d.ts +1 -0
  108. package/dist/types/Login.d.ts +3 -0
  109. package/dist/types/LoginToken.d.ts +1 -1
  110. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  111. package/dist/types/MarkNotificationAsRead.js +2 -0
  112. package/dist/types/ModAdd.d.ts +1 -1
  113. package/dist/types/ModAddCommunity.d.ts +1 -1
  114. package/dist/types/ModBan.d.ts +4 -2
  115. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  116. package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
  117. package/dist/types/ModChangeCommunityVisibility.js +2 -0
  118. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  119. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  120. package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
  121. package/dist/types/ModEditPost.d.ts +10 -0
  122. package/dist/types/ModEditPost.js +2 -0
  123. package/dist/types/ModFeaturePost.d.ts +1 -1
  124. package/dist/types/ModLockComment.d.ts +14 -0
  125. package/dist/types/ModLockComment.js +2 -0
  126. package/dist/types/ModLockCommentId.d.ts +1 -0
  127. package/dist/types/ModLockCommentView.d.ts +14 -0
  128. package/dist/types/ModLockCommentView.js +2 -0
  129. package/dist/types/ModLockPost.d.ts +2 -1
  130. package/dist/types/ModRemoveComment.d.ts +1 -1
  131. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  132. package/dist/types/ModRemovePost.d.ts +1 -1
  133. package/dist/types/ModTransferCommunity.d.ts +1 -1
  134. package/dist/types/ModlogActionType.d.ts +1 -1
  135. package/dist/types/ModlogCombinedView.d.ts +7 -4
  136. package/dist/types/MultiCommunity.d.ts +17 -0
  137. package/dist/types/MultiCommunity.js +2 -0
  138. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  139. package/dist/types/MultiCommunityFollow.js +2 -0
  140. package/dist/types/MultiCommunityId.d.ts +1 -0
  141. package/dist/types/MultiCommunityView.d.ts +6 -0
  142. package/dist/types/MultiCommunityView.js +2 -0
  143. package/dist/types/MyUserInfo.d.ts +3 -1
  144. package/dist/types/NotePerson.d.ts +10 -0
  145. package/dist/types/NotePerson.js +2 -0
  146. package/dist/types/Notification.d.ts +16 -0
  147. package/dist/types/Notification.js +2 -0
  148. package/dist/types/NotificationData.d.ts +10 -0
  149. package/dist/types/NotificationData.js +2 -0
  150. package/dist/types/NotificationDataType.d.ts +4 -0
  151. package/dist/types/NotificationId.d.ts +1 -0
  152. package/dist/types/NotificationTypes.d.ts +4 -0
  153. package/dist/types/NotificationView.d.ts +6 -0
  154. package/dist/types/NotificationView.js +2 -0
  155. package/dist/types/OAuthAccount.d.ts +2 -2
  156. package/dist/types/OAuthProvider.d.ts +2 -2
  157. package/dist/types/PaginationCursor.d.ts +1 -4
  158. package/dist/types/PendingFollow.d.ts +2 -2
  159. package/dist/types/Person.d.ts +4 -10
  160. package/dist/types/PersonActions.d.ts +26 -0
  161. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  162. package/dist/types/PersonLikedCombinedView.js +2 -0
  163. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  164. package/dist/types/PersonSavedCombinedView.js +2 -0
  165. package/dist/types/PersonView.d.ts +3 -2
  166. package/dist/types/PluginMetadata.d.ts +5 -0
  167. package/dist/types/Post.d.ts +18 -3
  168. package/dist/types/PostActions.d.ts +33 -0
  169. package/dist/types/PostActions.js +2 -0
  170. package/dist/types/PostNotificationsMode.d.ts +4 -0
  171. package/dist/types/PostNotificationsMode.js +3 -0
  172. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  173. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  174. package/dist/types/PostReport.d.ts +2 -2
  175. package/dist/types/PostReportView.d.ts +10 -16
  176. package/dist/types/PostView.d.ts +11 -18
  177. package/dist/types/PrivateMessage.d.ts +2 -3
  178. package/dist/types/PrivateMessageReport.d.ts +2 -2
  179. package/dist/types/PrivateMessageReportView.d.ts +3 -1
  180. package/dist/types/ReadableFederationState.d.ts +2 -2
  181. package/dist/types/RegistrationApplication.d.ts +1 -1
  182. package/dist/types/ResolveCommunityReport.d.ts +8 -0
  183. package/dist/types/ResolveCommunityReport.js +2 -0
  184. package/dist/types/SaveUserSettings.d.ts +7 -1
  185. package/dist/types/Search.d.ts +8 -3
  186. package/dist/types/SearchCombinedView.d.ts +4 -1
  187. package/dist/types/SearchResponse.d.ts +6 -0
  188. package/dist/types/SearchType.d.ts +1 -1
  189. package/dist/types/Site.d.ts +4 -3
  190. package/dist/types/SiteResponse.d.ts +0 -4
  191. package/dist/types/SiteView.d.ts +2 -2
  192. package/dist/types/Tag.d.ts +7 -13
  193. package/dist/types/Tagline.d.ts +4 -3
  194. package/dist/types/Tagline.js +0 -1
  195. package/dist/types/TagsView.d.ts +5 -0
  196. package/dist/types/TagsView.js +2 -0
  197. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  198. package/dist/types/UpdateCommunityNotifications.js +2 -0
  199. package/dist/types/UpdateCommunityTag.d.ts +9 -0
  200. package/dist/types/UpdateCommunityTag.js +2 -0
  201. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  202. package/dist/types/UpdateMultiCommunity.js +2 -0
  203. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  204. package/dist/types/UpdatePostNotifications.js +2 -0
  205. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  206. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  207. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  208. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  209. package/dist/types/UserSettingsBackup.d.ts +31 -0
  210. package/dist/types/UserSettingsBackup.js +2 -0
  211. package/dist/types/VoteShow.d.ts +4 -0
  212. package/dist/types/VoteShow.js +3 -0
  213. package/dist/types/VoteView.d.ts +1 -0
  214. package/package.json +10 -6
  215. package/dist/types/BannedPersonsResponse.d.ts +0 -7
  216. package/dist/types/CommentAggregates.d.ts +0 -17
  217. package/dist/types/CommentReply.d.ts +0 -13
  218. package/dist/types/CommentReplyId.d.ts +0 -4
  219. package/dist/types/CommentReplyView.d.ts +0 -31
  220. package/dist/types/CommunityAggregates.d.ts +0 -30
  221. package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
  222. package/dist/types/InboxCombinedView.d.ts +0 -13
  223. package/dist/types/InboxDataType.d.ts +0 -4
  224. package/dist/types/ListInbox.d.ts +0 -11
  225. package/dist/types/ListInboxResponse.d.ts +0 -7
  226. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  227. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  228. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  229. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  230. package/dist/types/ModHideCommunity.d.ts +0 -14
  231. package/dist/types/ModHideCommunityId.d.ts +0 -1
  232. package/dist/types/ModHideCommunityView.d.ts +0 -11
  233. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  234. package/dist/types/PersonAggregates.d.ts +0 -10
  235. package/dist/types/PersonCommentMention.d.ts +0 -13
  236. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  237. package/dist/types/PersonCommentMentionView.d.ts +0 -31
  238. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  239. package/dist/types/PersonPostMention.d.ts +0 -13
  240. package/dist/types/PersonPostMentionId.d.ts +0 -4
  241. package/dist/types/PersonPostMentionView.d.ts +0 -36
  242. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  243. package/dist/types/PostAggregates.d.ts +0 -18
  244. package/dist/types/PostTags.d.ts +0 -7
  245. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  246. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  247. package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
  248. package/dist/types/SiteAggregates.d.ts +0 -27
  249. package/dist/types/SubscribedType.d.ts +0 -4
  250. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  251. /package/dist/types/{CommentAggregates.js → AdminListUsersResponse.js} +0 -0
  252. /package/dist/types/{CommentReplyId.js → CommentActions.js} +0 -0
  253. /package/dist/types/{CommentReply.js → CommunityActions.js} +0 -0
  254. /package/dist/types/{CommentReplyView.js → CommunityIdQuery.js} +0 -0
  255. /package/dist/types/{InboxCombinedPaginationCursor.js → CommunityNotificationsMode.js} +0 -0
  256. /package/dist/types/{CommunityAggregates.js → CommunityReportResponse.js} +0 -0
  257. /package/dist/types/{InboxCombinedView.js → CreateCommunityReport.js} +0 -0
  258. /package/dist/types/{ListInbox.js → CreateCommunityTag.js} +0 -0
  259. /package/dist/types/{InboxDataType.js → CreateMultiCommunity.js} +0 -0
  260. /package/dist/types/{ListInboxResponse.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  261. /package/dist/types/{MarkCommentReplyAsRead.js → DeleteCommunityTag.js} +0 -0
  262. /package/dist/types/{MarkPersonCommentMentionAsRead.js → ExportDataResponse.js} +0 -0
  263. /package/dist/types/{MarkPersonPostMentionAsRead.js → FollowMultiCommunity.js} +0 -0
  264. /package/dist/types/{ModHideCommunity.js → GetMultiCommunity.js} +0 -0
  265. /package/dist/types/{ModHideCommunityView.js → GetMultiCommunityResponse.js} +0 -0
  266. /package/dist/types/{LocalUserVoteDisplayMode.js → InstanceActions.js} +0 -0
  267. /package/dist/types/{ModHideCommunityId.js → LikeType.js} +0 -0
  268. /package/dist/types/{PersonAggregates.js → ListMultiCommunities.js} +0 -0
  269. /package/dist/types/{PersonCommentMention.js → ListMultiCommunitiesResponse.js} +0 -0
  270. /package/dist/types/{PersonCommentMentionView.js → ListNotifications.js} +0 -0
  271. /package/dist/types/{PersonPostMention.js → ListNotificationsResponse.js} +0 -0
  272. /package/dist/types/{PersonPostMentionView.js → ListPersonHidden.js} +0 -0
  273. /package/dist/types/{PostAggregates.js → ListPersonHiddenResponse.js} +0 -0
  274. /package/dist/types/{PostTags.js → ListPersonLiked.js} +0 -0
  275. /package/dist/types/{ResolveObjectResponse.js → ListPersonLikedResponse.js} +0 -0
  276. /package/dist/types/{SiteAggregates.js → ListPersonRead.js} +0 -0
  277. /package/dist/types/{UserBlockInstanceParams.js → ListPersonReadResponse.js} +0 -0
  278. /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
  279. /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
  280. /package/dist/types/{PersonContentCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
  281. /package/dist/types/{PersonPostMentionId.js → NotificationDataType.js} +0 -0
  282. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → NotificationId.js} +0 -0
  283. /package/dist/types/{ReportCombinedPaginationCursor.js → NotificationTypes.js} +0 -0
  284. /package/dist/types/{SearchCombinedPaginationCursor.js → PersonActions.js} +0 -0
  285. /package/dist/types/{SubscribedType.js → PluginMetadata.js} +0 -0
package/dist/http.js CHANGED
@@ -8,15 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __param = (this && this.__param) || function (paramIndex, decorator) {
9
9
  return function (target, key) { decorator(target, key, paramIndex); }
10
10
  };
11
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
- return new (P || (P = Promise))(function (resolve, reject) {
14
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
11
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
21
12
  if (kind === "m") throw new TypeError("Private method is not writable");
22
13
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -28,10 +19,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
28
19
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
29
20
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
30
21
  };
31
- var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
22
+ var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
32
23
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.LemmyHttp = void 0;
34
- const tsoa_1 = require("tsoa");
24
+ exports.LemmyError = exports.LemmyHttp = void 0;
25
+ const runtime_1 = require("@tsoa/runtime");
35
26
  const other_types_1 = require("./other_types");
36
27
  var HttpType;
37
28
  (function (HttpType) {
@@ -43,7 +34,7 @@ var HttpType;
43
34
  /**
44
35
  * Helps build lemmy HTTP requests.
45
36
  */
46
- let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
37
+ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
47
38
  /**
48
39
  * Generates a new instance of LemmyHttp.
49
40
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
@@ -56,35 +47,35 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
56
47
  _LemmyHttp_headers.set(this, {});
57
48
  _LemmyHttp_fetchFunction.set(this, fetch.bind(globalThis));
58
49
  __classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
59
- if (options === null || options === void 0 ? void 0 : options.headers) {
50
+ if (options?.headers) {
60
51
  __classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
61
52
  }
62
- if (options === null || options === void 0 ? void 0 : options.fetchFunction) {
53
+ if (options?.fetchFunction) {
63
54
  __classPrivateFieldSet(this, _LemmyHttp_fetchFunction, options.fetchFunction, "f");
64
55
  }
65
56
  }
66
57
  /**
67
58
  * @summary Gets the site, and your user data.
68
59
  */
69
- getSite(options) {
60
+ async getSite(options) {
70
61
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
71
62
  }
72
63
  /**
73
64
  * @summary Create your site.
74
65
  */
75
- createSite(form, options) {
66
+ async createSite(form, options) {
76
67
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
77
68
  }
78
69
  /**
79
70
  * @summary Edit your site.
80
71
  */
81
- editSite(form, options) {
72
+ async editSite(form, options) {
82
73
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
83
74
  }
84
75
  /**
85
76
  * @summary Leave the Site admins.
86
77
  */
87
- leaveAdmin(options) {
78
+ async leaveAdmin(options) {
88
79
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
89
80
  }
90
81
  /**
@@ -93,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
93
84
  * Generate a TOTP / two-factor secret.
94
85
  * Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
95
86
  */
96
- generateTotpSecret(options) {
87
+ async generateTotpSecret(options) {
97
88
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
98
89
  }
99
90
  /**
100
91
  * @summary Get data of current user.
101
92
  */
102
- getMyUser(options) {
93
+ async getMyUser(options) {
103
94
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
104
95
  }
105
96
  /**
@@ -108,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
108
99
  * Export a backup of your user settings, including your saved content,
109
100
  * followed communities, and blocks.
110
101
  */
111
- exportSettings(options) {
102
+ async exportSettings(options) {
112
103
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
113
104
  }
114
105
  /**
115
106
  * @summary Import a backup of your user settings.
116
107
  */
117
- importSettings(form, options) {
108
+ async importSettings(form, options) {
118
109
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
119
110
  }
120
111
  /**
121
112
  * @summary List login tokens for your user
122
113
  */
123
- listLogins(options) {
114
+ async listLogins(options) {
124
115
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
125
116
  }
126
117
  /**
127
118
  * @summary Returns an error message if your auth token is invalid
128
119
  */
129
- validateAuth(options) {
120
+ async validateAuth(options) {
130
121
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
131
122
  }
132
123
  /**
133
- * @summary List all the media for your user
124
+ * @summary List all the media for your account.
125
+ */
126
+ async listMedia(form = {}, options) {
127
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
128
+ }
129
+ /**
130
+ * @summary Delete media for your account.
131
+ */
132
+ async deleteMedia(form, options) {
133
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
134
+ }
135
+ /**
136
+ * @summary Delete any media. (Admin only)
134
137
  */
135
- listMedia(form = {}, options) {
136
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
138
+ async deleteMediaAdmin(form, options) {
139
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
137
140
  }
138
141
  /**
139
142
  * @summary List all the media known to your instance.
140
143
  */
141
- listAllMedia(form = {}, options) {
142
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
144
+ async listMediaAdmin(form = {}, options) {
145
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
143
146
  }
144
147
  /**
145
148
  * @summary Enable / Disable TOTP / two-factor authentication.
@@ -148,758 +151,809 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
148
151
  *
149
152
  * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
150
153
  */
151
- updateTotp(form, options) {
154
+ async updateTotp(form, options) {
152
155
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
153
156
  }
154
157
  /**
155
158
  * @summary Get the modlog.
156
159
  */
157
- getModlog(form = {}, options) {
160
+ async getModlog(form = {}, options) {
158
161
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
159
162
  }
160
163
  /**
161
- * @summary Search lemmy.
164
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
162
165
  */
163
- search(form, options) {
166
+ async search(form, options) {
164
167
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
165
168
  }
166
169
  /**
167
170
  * @summary Fetch a non-local / federated object.
168
171
  */
169
- resolveObject(form, options) {
172
+ async resolveObject(form, options) {
170
173
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
171
174
  }
172
175
  /**
173
176
  * @summary Create a new community.
174
177
  */
175
- createCommunity(form, options) {
178
+ async createCommunity(form, options) {
176
179
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
177
180
  }
178
181
  /**
179
182
  * @summary Get / fetch a community.
180
183
  */
181
- getCommunity(form = {}, options) {
184
+ async getCommunity(form = {}, options) {
182
185
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
183
186
  }
184
187
  /**
185
188
  * @summary Edit a community.
186
189
  */
187
- editCommunity(form, options) {
190
+ async editCommunity(form, options) {
188
191
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
189
192
  }
190
193
  /**
191
194
  * @summary List communities, with various filters.
192
195
  */
193
- listCommunities(form = {}, options) {
196
+ async listCommunities(form = {}, options) {
194
197
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
195
198
  }
196
199
  /**
197
200
  * @summary Follow / subscribe to a community.
198
201
  */
199
- followCommunity(form, options) {
202
+ async followCommunity(form, options) {
200
203
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
201
204
  }
202
205
  /**
203
206
  * @summary Get a community's pending follows count.
204
207
  */
205
- getCommunityPendingFollowsCount(form, options) {
208
+ async getCommunityPendingFollowsCount(form, options) {
206
209
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
207
210
  }
208
211
  /**
209
212
  * @summary Get a community's pending followers.
210
213
  */
211
- listCommunityPendingFollows(form, options) {
214
+ async listCommunityPendingFollows(form, options) {
212
215
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
213
216
  }
214
217
  /**
215
218
  * @summary Approve a community pending follow request.
216
219
  */
217
- approveCommunityPendingFollow(form, options) {
220
+ async approveCommunityPendingFollow(form, options) {
218
221
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
219
222
  }
220
223
  /**
221
224
  * @summary Block a community.
222
225
  */
223
- blockCommunity(form, options) {
226
+ async blockCommunity(form, options) {
224
227
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
225
228
  }
226
229
  /**
227
230
  * @summary Delete a community.
228
231
  */
229
- deleteCommunity(form, options) {
232
+ async deleteCommunity(form, options) {
230
233
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
231
234
  }
232
235
  /**
233
236
  * @summary Hide a community from public / "All" view. Admins only.
234
237
  */
235
- hideCommunity(form, options) {
238
+ async hideCommunity(form, options) {
236
239
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
237
240
  }
238
241
  /**
239
242
  * @summary A moderator remove for a community.
240
243
  */
241
- removeCommunity(form, options) {
244
+ async removeCommunity(form, options) {
242
245
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
243
246
  }
244
247
  /**
245
248
  * @summary Transfer your community to an existing moderator.
246
249
  */
247
- transferCommunity(form, options) {
250
+ async transferCommunity(form, options) {
248
251
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
249
252
  }
250
253
  /**
251
254
  * @summary Ban a user from a community.
252
255
  */
253
- banFromCommunity(form, options) {
256
+ async banFromCommunity(form, options) {
254
257
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
255
258
  }
256
259
  /**
257
260
  * @summary Add a moderator to your community.
258
261
  */
259
- addModToCommunity(form, options) {
262
+ async addModToCommunity(form, options) {
260
263
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
261
264
  }
262
265
  /**
263
266
  * @summary Get a random community.
264
267
  */
265
- getRandomCommunity(form, options) {
268
+ async getRandomCommunity(form, options) {
266
269
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
267
270
  }
271
+ /**
272
+ * @summary Create a report for a community.
273
+ */
274
+ async createCommunityReport(form, options) {
275
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
276
+ }
277
+ /**
278
+ * @summary Resolve a report for a private message.
279
+ */
280
+ async resolveCommunityReport(form, options) {
281
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
282
+ }
268
283
  /**
269
284
  * @summary Create a post.
270
285
  */
271
- createPost(form, options) {
286
+ async createPost(form, options) {
272
287
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
273
288
  }
274
289
  /**
275
290
  * @summary Get / fetch a post.
276
291
  */
277
- getPost(form = {}, options) {
292
+ async getPost(form = {}, options) {
278
293
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
279
294
  }
280
295
  /**
281
296
  * @summary Edit a post.
282
297
  */
283
- editPost(form, options) {
298
+ async editPost(form, options) {
284
299
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
285
300
  }
301
+ /**
302
+ * @summary Mods can change nsfw flag and tags for a post
303
+ */
304
+ async modEditPost(form, options) {
305
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/mod_update", form, options);
306
+ }
286
307
  /**
287
308
  * @summary Delete a post.
288
309
  */
289
- deletePost(form, options) {
310
+ async deletePost(form, options) {
290
311
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
291
312
  }
292
313
  /**
293
314
  * @summary A moderator remove for a post.
294
315
  */
295
- removePost(form, options) {
316
+ async removePost(form, options) {
296
317
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
297
318
  }
298
319
  /**
299
320
  * @summary Mark a post as read.
300
321
  */
301
- markPostAsRead(form, options) {
322
+ async markPostAsRead(form, options) {
302
323
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
303
324
  }
304
325
  /**
305
326
  * @summary Mark multiple posts as read.
306
327
  */
307
- markManyPostAsRead(form, options) {
328
+ async markManyPostAsRead(form, options) {
308
329
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
309
330
  }
310
331
  /**
311
332
  * @summary Hide a post from list views.
312
333
  */
313
- hidePost(form, options) {
334
+ async hidePost(form, options) {
314
335
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
315
336
  }
316
337
  /**
317
338
  * @summary A moderator can lock a post ( IE disable new comments ).
318
339
  */
319
- lockPost(form, options) {
340
+ async lockPost(form, options) {
320
341
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
321
342
  }
322
343
  /**
323
344
  * @summary A moderator can feature a community post ( IE stick it to the top of a community ).
324
345
  */
325
- featurePost(form, options) {
346
+ async featurePost(form, options) {
326
347
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
327
348
  }
328
349
  /**
329
350
  * @summary Get / fetch posts, with various filters.
330
351
  */
331
- getPosts(form = {}, options) {
352
+ async getPosts(form = {}, options) {
332
353
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
333
354
  }
334
355
  /**
335
356
  * @summary Like / vote on a post.
336
357
  */
337
- likePost(form, options) {
358
+ async likePost(form, options) {
338
359
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
339
360
  }
340
361
  /**
341
362
  * @summary List a post's likes. Admin-only.
342
363
  */
343
- listPostLikes(form, options) {
364
+ async listPostLikes(form, options) {
344
365
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
345
366
  }
346
367
  /**
347
368
  * @summary Save a post.
348
369
  */
349
- savePost(form, options) {
370
+ async savePost(form, options) {
350
371
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
351
372
  }
352
373
  /**
353
374
  * @summary Report a post.
354
375
  */
355
- createPostReport(form, options) {
376
+ async createPostReport(form, options) {
356
377
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
357
378
  }
358
379
  /**
359
380
  * @summary Resolve a post report. Only a mod can do this.
360
381
  */
361
- resolvePostReport(form, options) {
382
+ async resolvePostReport(form, options) {
362
383
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
363
384
  }
364
385
  /**
365
386
  * @summary Fetch metadata for any given site.
366
387
  */
367
- getSiteMetadata(form, options) {
388
+ async getSiteMetadata(form, options) {
368
389
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
369
390
  }
370
391
  /**
371
392
  * @summary Create a comment.
372
393
  */
373
- createComment(form, options) {
394
+ async createComment(form, options) {
374
395
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
375
396
  }
376
397
  /**
377
398
  * @summary Edit a comment.
378
399
  */
379
- editComment(form, options) {
400
+ async editComment(form, options) {
380
401
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
381
402
  }
382
403
  /**
383
404
  * @summary Delete a comment.
384
405
  */
385
- deleteComment(form, options) {
406
+ async deleteComment(form, options) {
386
407
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
387
408
  }
388
409
  /**
389
410
  * @summary A moderator remove for a comment.
390
411
  */
391
- removeComment(form, options) {
412
+ async removeComment(form, options) {
392
413
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
393
414
  }
394
415
  /**
395
- * @summary Mark a comment as read.
416
+ * @summary A moderator can lock a comment (IE disable replies).
396
417
  */
397
- markCommentReplyAsRead(form, options) {
398
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
418
+ async lockComment(form, options) {
419
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/lock", form, options);
399
420
  }
400
421
  /**
401
- * @summary Like / vote on a comment.
422
+ * @Summary Like / vote on a comment.
402
423
  */
403
- likeComment(form, options) {
424
+ async likeComment(form, options) {
404
425
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
405
426
  }
406
427
  /**
407
428
  * @summary List a comment's likes. Admin-only.
408
429
  */
409
- listCommentLikes(form, options) {
430
+ async listCommentLikes(form, options) {
410
431
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
411
432
  }
412
433
  /**
413
434
  * @summary Save a comment.
414
435
  */
415
- saveComment(form, options) {
436
+ async saveComment(form, options) {
416
437
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
417
438
  }
418
439
  /**
419
440
  * @summary Distinguishes a comment (speak as moderator)
420
441
  */
421
- distinguishComment(form, options) {
442
+ async distinguishComment(form, options) {
422
443
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
423
444
  }
424
445
  /**
425
446
  * @summary Get / fetch comments.
426
447
  */
427
- getComments(form = {}, options) {
448
+ async getComments(form = {}, options) {
428
449
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
429
450
  }
430
451
  /**
431
452
  * @summary Get / fetch comments, but without the post or community.
432
453
  */
433
- getCommentsSlim(form = {}, options) {
454
+ async getCommentsSlim(form = {}, options) {
434
455
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
435
456
  }
436
457
  /**
437
458
  * @summary Get / fetch comment.
438
459
  */
439
- getComment(form, options) {
460
+ async getComment(form, options) {
440
461
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
441
462
  }
442
463
  /**
443
464
  * @summary Report a comment.
444
465
  */
445
- createCommentReport(form, options) {
466
+ async createCommentReport(form, options) {
446
467
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
447
468
  }
448
469
  /**
449
470
  * @summary Resolve a comment report. Only a mod can do this.
450
471
  */
451
- resolveCommentReport(form, options) {
472
+ async resolveCommentReport(form, options) {
452
473
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
453
474
  }
454
475
  /**
455
476
  * @summary Create a private message.
456
477
  */
457
- createPrivateMessage(form, options) {
478
+ async createPrivateMessage(form, options) {
458
479
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
459
480
  }
460
481
  /**
461
482
  * @summary Edit a private message.
462
483
  */
463
- editPrivateMessage(form, options) {
484
+ async editPrivateMessage(form, options) {
464
485
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
465
486
  }
466
487
  /**
467
488
  * @summary Delete a private message.
468
489
  */
469
- deletePrivateMessage(form, options) {
490
+ async deletePrivateMessage(form, options) {
470
491
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
471
492
  }
472
493
  /**
473
494
  * @summary Mark a private message as read.
474
495
  */
475
- markPrivateMessageAsRead(form, options) {
496
+ async markPrivateMessageAsRead(form, options) {
476
497
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
477
498
  }
478
499
  /**
479
500
  * @summary Create a report for a private message.
480
501
  */
481
- createPrivateMessageReport(form, options) {
502
+ async createPrivateMessageReport(form, options) {
482
503
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
483
504
  }
484
505
  /**
485
506
  * @summary Resolve a report for a private message.
486
507
  */
487
- resolvePrivateMessageReport(form, options) {
508
+ async resolvePrivateMessageReport(form, options) {
488
509
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
489
510
  }
490
511
  /**
491
512
  * @summary Register a new user.
492
513
  */
493
- register(form, options) {
514
+ async register(form, options) {
494
515
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
495
516
  }
496
517
  /**
497
518
  * @summary Log into lemmy.
498
519
  */
499
- login(form, options) {
520
+ async login(form, options) {
500
521
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
501
522
  }
502
523
  /**
503
524
  * @summary Invalidate the currently used auth token.
504
525
  */
505
- logout(options) {
526
+ async logout(options) {
506
527
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
507
528
  }
508
529
  /**
509
530
  * @summary Get the details for a person.
510
531
  */
511
- getPersonDetails(form = {}, options) {
532
+ async getPersonDetails(form = {}, options) {
512
533
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
513
534
  }
514
535
  /**
515
536
  * @summary List the content for a person.
516
537
  */
517
- listPersonContent(form = {}, options) {
538
+ async listPersonContent(form = {}, options) {
518
539
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
519
540
  }
520
541
  /**
521
- * @summary Mark a person mention as read.
522
- */
523
- markCommentMentionAsRead(form, options) {
524
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
525
- }
526
- /**
527
- * @summary Mark a person post body mention as read.
542
+ * @summary Make a note for a person.
528
543
  */
529
- markPostMentionAsRead(form, options) {
530
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
544
+ async notePerson(form, options) {
545
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
531
546
  }
532
547
  /**
533
548
  * @summary Ban a person from your site.
534
549
  */
535
- banPerson(form, options) {
550
+ async banPerson(form, options) {
536
551
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
537
552
  }
538
553
  /**
539
- * @summary Get a list of banned users.
554
+ * @summary Get a list of users.
540
555
  */
541
- getBannedPersons(options) {
542
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
556
+ async listUsers(form = {}, options) {
557
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
543
558
  }
544
559
  /**
545
560
  * @summary Block a person.
546
561
  */
547
- blockPerson(form, options) {
562
+ async blockPerson(form, options) {
548
563
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
549
564
  }
550
565
  /**
551
566
  * @summary Fetch a Captcha.
552
567
  */
553
- getCaptcha(options) {
568
+ async getCaptcha(options) {
554
569
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
555
570
  }
556
571
  /**
557
572
  * @summary Delete your account.
558
573
  */
559
- deleteAccount(form, options) {
574
+ async deleteAccount(form, options) {
560
575
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
561
576
  }
562
577
  /**
563
578
  * @summary Reset your password.
564
579
  */
565
- passwordReset(form, options) {
580
+ async passwordReset(form, options) {
566
581
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
567
582
  }
568
583
  /**
569
584
  * @summary Change your password from an email / token based reset.
570
585
  */
571
- passwordChangeAfterReset(form, options) {
586
+ async passwordChangeAfterReset(form, options) {
572
587
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
573
588
  }
574
589
  /**
575
590
  * @summary Mark all replies as read.
576
591
  */
577
- markAllNotificationsAsRead(options) {
592
+ async markAllNotificationsAsRead(options) {
578
593
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
579
594
  }
595
+ /**
596
+ * @summary Mark a comment as read.
597
+ */
598
+ async markNotificationAsRead(form, options) {
599
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
600
+ }
580
601
  /**
581
602
  * @summary Save your user settings.
582
603
  */
583
- saveUserSettings(form, options) {
604
+ async saveUserSettings(form, options) {
584
605
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
585
606
  }
586
607
  /**
587
608
  * @summary Change your user password.
588
609
  */
589
- changePassword(form, options) {
610
+ async changePassword(form, options) {
590
611
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
591
612
  }
592
613
  /**
593
614
  * @summary Get counts for your reports.
594
615
  */
595
- getReportCount(form, options) {
616
+ async getReportCount(form, options) {
596
617
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
597
618
  }
598
619
  /**
599
620
  * @summary Get your unread counts.
600
621
  */
601
- getUnreadCount(options) {
622
+ async getUnreadCount(options) {
602
623
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
603
624
  }
604
625
  /**
605
626
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
606
627
  */
607
- listInbox(form, options) {
608
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
628
+ async listNotifications(form, options) {
629
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
609
630
  }
610
631
  /**
611
632
  * @summary Verify your email
612
633
  */
613
- verifyEmail(form, options) {
634
+ async verifyEmail(form, options) {
614
635
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
615
636
  }
616
637
  /**
617
638
  * @summary Resend a verification email.
618
639
  */
619
- resendVerificationEmail(form, options) {
640
+ async resendVerificationEmail(form, options) {
620
641
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
621
642
  }
622
643
  /**
623
644
  * @summary List your saved content.
624
645
  */
625
- listPersonSaved(form, options) {
626
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
646
+ async listPersonSaved(form, options) {
647
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
648
+ }
649
+ /**
650
+ * @summary List your read content.
651
+ */
652
+ async listPersonRead(form, options) {
653
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
654
+ }
655
+ /**
656
+ * @summary List your hidden content.
657
+ */
658
+ async listPersonHidden(form, options) {
659
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
660
+ }
661
+ /**
662
+ * @summary List your liked content.
663
+ */
664
+ async listPersonLiked(form, options) {
665
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
627
666
  }
628
667
  /**
629
668
  * @summary Add an admin to your site.
630
669
  */
631
- addAdmin(form, options) {
670
+ async addAdmin(form, options) {
632
671
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
633
672
  }
634
673
  /**
635
674
  * @summary Get the unread registration applications count.
636
675
  */
637
- getUnreadRegistrationApplicationCount(options) {
676
+ async getUnreadRegistrationApplicationCount(options) {
638
677
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
639
678
  }
640
679
  /**
641
680
  * @summary List the registration applications.
642
681
  */
643
- listRegistrationApplications(form, options) {
682
+ async listRegistrationApplications(form, options) {
644
683
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
645
684
  }
646
685
  /**
647
686
  * @summary Approve a registration application
648
687
  */
649
- approveRegistrationApplication(form, options) {
688
+ async approveRegistrationApplication(form, options) {
650
689
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
651
690
  }
652
691
  /**
653
692
  * @summary Get the application a user submitted when they first registered their account
654
693
  */
655
- getRegistrationApplication(form, options) {
694
+ async getRegistrationApplication(form, options) {
656
695
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
657
696
  }
658
697
  /**
659
698
  * @summary Purge / Delete a person from the database.
660
699
  */
661
- purgePerson(form, options) {
700
+ async purgePerson(form, options) {
662
701
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
663
702
  }
664
703
  /**
665
704
  * @summary Purge / Delete a community from the database.
666
705
  */
667
- purgeCommunity(form, options) {
706
+ async purgeCommunity(form, options) {
668
707
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
669
708
  }
670
709
  /**
671
710
  * @summary Purge / Delete a post from the database.
672
711
  */
673
- purgePost(form, options) {
712
+ async purgePost(form, options) {
674
713
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
675
714
  }
676
715
  /**
677
716
  * @summary Purge / Delete a comment from the database.
678
717
  */
679
- purgeComment(form, options) {
718
+ async purgeComment(form, options) {
680
719
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
681
720
  }
682
721
  /**
683
722
  * @summary Create a new custom emoji.
684
723
  */
685
- createCustomEmoji(form, options) {
724
+ async createCustomEmoji(form, options) {
686
725
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
687
726
  }
688
727
  /**
689
728
  * @summary Edit an existing custom emoji.
690
729
  */
691
- editCustomEmoji(form, options) {
730
+ async editCustomEmoji(form, options) {
692
731
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
693
732
  }
694
733
  /**
695
734
  * @summary Delete a custom emoji.
696
735
  */
697
- deleteCustomEmoji(form, options) {
736
+ async deleteCustomEmoji(form, options) {
698
737
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
699
738
  }
700
739
  /**
701
740
  * @summary List custom emojis
702
741
  */
703
- listCustomEmojis(form, options) {
742
+ async listCustomEmojis(form, options) {
704
743
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
705
744
  }
706
745
  /**
707
746
  * @summary Create a new tagline
708
747
  */
709
- createTagline(form, options) {
748
+ async createTagline(form, options) {
710
749
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
711
750
  }
712
751
  /**
713
752
  * @summary Edit an existing tagline
714
753
  */
715
- editTagline(form, options) {
754
+ async editTagline(form, options) {
716
755
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
717
756
  }
718
757
  /**
719
758
  * @summary Delete a tagline
720
759
  */
721
- deleteTagline(form, options) {
760
+ async deleteTagline(form, options) {
722
761
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
723
762
  }
724
763
  /**
725
764
  * @summary List taglines.
726
765
  */
727
- listTaglines(form, options) {
766
+ async listTaglines(form, options) {
728
767
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
729
768
  }
769
+ /**
770
+ * @summary Create a community post tag.
771
+ */
772
+ createCommunityTag(form, options) {
773
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
774
+ }
775
+ /**
776
+ * @summary Edit a community post tag.
777
+ */
778
+ updateCommunityTag(form, options) {
779
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
780
+ }
781
+ /**
782
+ * @summary Delete a post tag in a community.
783
+ */
784
+ deleteCommunityTag(form, options) {
785
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
786
+ }
730
787
  /**
731
788
  * @summary Create a new oauth provider method
732
789
  */
733
- createOAuthProvider(form, options) {
790
+ async createOAuthProvider(form, options) {
734
791
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
735
792
  }
736
793
  /**
737
794
  * @summary Edit an existing oauth provider method
738
795
  */
739
- editOAuthProvider(form, options) {
796
+ async editOAuthProvider(form, options) {
740
797
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
741
798
  }
742
799
  /**
743
800
  * @summary Delete an oauth provider method
744
801
  */
745
- deleteOAuthProvider(form, options) {
802
+ async deleteOAuthProvider(form, options) {
746
803
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
747
804
  }
748
805
  /**
749
806
  * @summary Authenticate with OAuth
750
807
  */
751
- authenticateWithOAuth(form, options) {
808
+ async authenticateWithOAuth(form, options) {
752
809
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
753
810
  }
754
811
  /**
755
812
  * @summary Fetch federated instances.
756
813
  */
757
- getFederatedInstances(options) {
814
+ async getFederatedInstances(options) {
758
815
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
759
816
  }
760
817
  /**
761
818
  * @summary List user reports.
762
819
  */
763
- listReports(form, options) {
820
+ async listReports(form, options) {
764
821
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
765
822
  }
766
823
  /**
767
- * @summary Block an instance as user.
824
+ * @summary Block an instance's communities as a user.
825
+ */
826
+ async userBlockInstanceCommunities(form, options) {
827
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/communities", form, options);
828
+ }
829
+ /**
830
+ * @summary Block an instance's persons as a user.
768
831
  */
769
- userBlockInstance(form, options) {
770
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
832
+ async userBlockInstancePersons(form, options) {
833
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance/persons", form, options);
771
834
  }
772
835
  /**
773
836
  * @summary Globally block an instance as admin.
774
837
  */
775
- adminBlockInstance(form, options) {
838
+ async adminBlockInstance(form, options) {
776
839
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
777
840
  }
778
841
  /**
779
842
  * @summary Globally allow an instance as admin.
780
843
  */
781
- adminAllowInstance(form, options) {
844
+ async adminAllowInstance(form, options) {
782
845
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
783
846
  }
784
847
  /**
785
848
  * @summary Upload new user avatar.
786
849
  */
787
- uploadUserAvatar(image, options) {
788
- return __awaiter(this, void 0, void 0, function* () {
789
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
790
- });
850
+ async uploadUserAvatar(image, options) {
851
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
791
852
  }
792
853
  /**
793
854
  * @summary Delete the user avatar.
794
855
  */
795
- deleteUserAvatar(options) {
796
- return __awaiter(this, void 0, void 0, function* () {
797
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
798
- });
856
+ async deleteUserAvatar(options) {
857
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
799
858
  }
800
859
  /**
801
860
  * @summary Upload new user banner.
802
861
  */
803
- uploadUserBanner(image, options) {
804
- return __awaiter(this, void 0, void 0, function* () {
805
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
806
- });
862
+ async uploadUserBanner(image, options) {
863
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
807
864
  }
808
865
  /**
809
866
  * @summary Delete the user banner.
810
867
  */
811
- deleteUserBanner(options) {
812
- return __awaiter(this, void 0, void 0, function* () {
813
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
814
- });
868
+ async deleteUserBanner(options) {
869
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
815
870
  }
816
871
  /**
817
872
  * @summary Upload new community icon.
818
873
  */
819
- uploadCommunityIcon(image, options) {
820
- return __awaiter(this, void 0, void 0, function* () {
821
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
822
- });
874
+ async uploadCommunityIcon(query, image, options) {
875
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
823
876
  }
824
877
  /**
825
878
  * @summary Delete the community icon.
826
879
  */
827
- deleteCommunityIcon(options) {
828
- return __awaiter(this, void 0, void 0, function* () {
829
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
830
- });
880
+ async deleteCommunityIcon(form, options) {
881
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
831
882
  }
832
883
  /**
833
884
  * @summary Upload new community banner.
834
885
  */
835
- uploadCommunityBanner(image, options) {
836
- return __awaiter(this, void 0, void 0, function* () {
837
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
838
- });
886
+ async uploadCommunityBanner(query, image, options) {
887
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
839
888
  }
840
889
  /**
841
890
  * @summary Delete the community banner.
842
891
  */
843
- deleteCommunityBanner(options) {
844
- return __awaiter(this, void 0, void 0, function* () {
845
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
846
- });
892
+ async deleteCommunityBanner(form, options) {
893
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
847
894
  }
848
895
  /**
849
896
  * @summary Upload new site icon.
850
897
  */
851
- uploadSiteIcon(image, options) {
852
- return __awaiter(this, void 0, void 0, function* () {
853
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
854
- });
898
+ async uploadSiteIcon(image, options) {
899
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
855
900
  }
856
901
  /**
857
902
  * @summary Delete the site icon.
858
903
  */
859
- deleteSiteIcon(options) {
860
- return __awaiter(this, void 0, void 0, function* () {
861
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
862
- });
904
+ async deleteSiteIcon(options) {
905
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
863
906
  }
864
907
  /**
865
908
  * @summary Upload new site banner.
866
909
  */
867
- uploadSiteBanner(image, options) {
868
- return __awaiter(this, void 0, void 0, function* () {
869
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
870
- });
910
+ async uploadSiteBanner(image, options) {
911
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
871
912
  }
872
913
  /**
873
914
  * @summary Delete the site banner.
874
915
  */
875
- deleteSiteBanner(options) {
876
- return __awaiter(this, void 0, void 0, function* () {
877
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
878
- });
916
+ async deleteSiteBanner(options) {
917
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
879
918
  }
880
919
  /**
881
920
  * @summary Upload an image to the server.
882
921
  */
883
- uploadImage(image, options) {
884
- return __awaiter(this, void 0, void 0, function* () {
885
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
886
- });
922
+ async uploadImage(image, options) {
923
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
887
924
  }
888
925
  /**
889
- * @summary Delete a pictrs image
926
+ * @summary Health check for image functionality
890
927
  */
891
- deleteImage(form, options) {
892
- return __awaiter(this, void 0, void 0, function* () {
893
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
894
- });
928
+ async imageHealth(options) {
929
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
895
930
  }
896
931
  /**
897
- * @summary Health check for image functionality
932
+ * Mark donation dialog as shown, so it isn't displayed anymore.
898
933
  */
899
- imageHealth(options) {
900
- return __awaiter(this, void 0, void 0, function* () {
901
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
902
- });
934
+ donationDialogShown(options) {
935
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
936
+ }
937
+ createMultiCommunity(form, options) {
938
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
939
+ }
940
+ updateMultiCommunity(form, options) {
941
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
942
+ }
943
+ getMultiCommunity(form, options) {
944
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
945
+ }
946
+ createMultiCommunityEntry(form, options) {
947
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
948
+ }
949
+ deleteMultiCommunityEntry(form, options) {
950
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
951
+ }
952
+ listMultiCommunities(form, options) {
953
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
954
+ }
955
+ followMultiCommunity(form, options) {
956
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
903
957
  }
904
958
  /**
905
959
  * Set the headers (can be used to set the auth header)
@@ -916,961 +970,1111 @@ _LemmyHttp_instances = new WeakSet();
916
970
  _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
917
971
  return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
918
972
  };
919
- _LemmyHttp_upload = function _LemmyHttp_upload(path_1, _a, options_1) {
920
- return __awaiter(this, arguments, void 0, function* (path, { image }, options) {
921
- const formData = createFormData(image);
922
- const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
923
- return response.json();
973
+ _LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
974
+ const formData = createFormData(image);
975
+ const response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), {
976
+ ...options,
977
+ method: HttpType.Post,
978
+ body: formData,
979
+ headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
924
980
  });
981
+ return response.json();
925
982
  };
926
- _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
927
- return __awaiter(this, void 0, void 0, function* () {
928
- var _a;
929
- let response;
930
- if (type_ === HttpType.Get) {
931
- const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
932
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, Object.assign(Object.assign({}, options), { method: HttpType.Get, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
933
- }
934
- else {
935
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), Object.assign(Object.assign({}, options), { method: type_, headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")), body: JSON.stringify(form) }));
936
- }
937
- let json = undefined;
938
- try {
939
- json = yield response.json();
940
- }
941
- catch (_b) {
942
- throw new Error(response.statusText);
943
- }
944
- if (!response.ok) {
945
- throw new Error((_a = json["error"]) !== null && _a !== void 0 ? _a : response.statusText);
946
- }
947
- else {
948
- return json;
949
- }
950
- });
983
+ _LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
984
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
985
+ };
986
+ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
987
+ let response;
988
+ if (type_ === HttpType.Get) {
989
+ const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
990
+ response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
991
+ ...options,
992
+ method: HttpType.Get,
993
+ headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
994
+ });
995
+ }
996
+ else {
997
+ response = await __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
998
+ ...options,
999
+ method: type_,
1000
+ headers: {
1001
+ "Content-Type": "application/json",
1002
+ ...__classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
1003
+ },
1004
+ body: JSON.stringify(form),
1005
+ });
1006
+ }
1007
+ let json = undefined;
1008
+ try {
1009
+ json = await response.json();
1010
+ }
1011
+ catch {
1012
+ throw new LemmyError(response.statusText);
1013
+ }
1014
+ if (!response.ok) {
1015
+ let err = new LemmyError(json.error ?? response.statusText, json.message);
1016
+ throw err;
1017
+ }
1018
+ else {
1019
+ return json;
1020
+ }
951
1021
  };
952
1022
  __decorate([
953
- (0, tsoa_1.Security)("bearerAuth"),
954
- (0, tsoa_1.Security)({}),
955
- (0, tsoa_1.Get)("/site"),
956
- (0, tsoa_1.Tags)("Site"),
957
- __param(0, (0, tsoa_1.Inject)())
1023
+ (0, runtime_1.Security)("bearerAuth"),
1024
+ (0, runtime_1.Security)({}),
1025
+ (0, runtime_1.Get)("/site"),
1026
+ (0, runtime_1.Tags)("Site"),
1027
+ __param(0, (0, runtime_1.Inject)())
958
1028
  ], LemmyHttp.prototype, "getSite", null);
959
1029
  __decorate([
960
- (0, tsoa_1.Security)("bearerAuth"),
961
- (0, tsoa_1.Post)("/site"),
962
- (0, tsoa_1.Tags)("Site"),
963
- __param(0, (0, tsoa_1.Body)()),
964
- __param(1, (0, tsoa_1.Inject)())
1030
+ (0, runtime_1.Security)("bearerAuth"),
1031
+ (0, runtime_1.Post)("/site"),
1032
+ (0, runtime_1.Tags)("Site"),
1033
+ __param(0, (0, runtime_1.Body)()),
1034
+ __param(1, (0, runtime_1.Inject)())
965
1035
  ], LemmyHttp.prototype, "createSite", null);
966
1036
  __decorate([
967
- (0, tsoa_1.Security)("bearerAuth"),
968
- (0, tsoa_1.Put)("/site"),
969
- (0, tsoa_1.Tags)("Site"),
970
- __param(0, (0, tsoa_1.Body)()),
971
- __param(1, (0, tsoa_1.Inject)())
1037
+ (0, runtime_1.Security)("bearerAuth"),
1038
+ (0, runtime_1.Put)("/site"),
1039
+ (0, runtime_1.Tags)("Site"),
1040
+ __param(0, (0, runtime_1.Body)()),
1041
+ __param(1, (0, runtime_1.Inject)())
972
1042
  ], LemmyHttp.prototype, "editSite", null);
973
1043
  __decorate([
974
- (0, tsoa_1.Security)("bearerAuth"),
975
- (0, tsoa_1.Post)("/admin/leave"),
976
- (0, tsoa_1.Tags)("Admin"),
977
- __param(0, (0, tsoa_1.Inject)())
1044
+ (0, runtime_1.Security)("bearerAuth"),
1045
+ (0, runtime_1.Post)("/admin/leave"),
1046
+ (0, runtime_1.Tags)("Admin"),
1047
+ __param(0, (0, runtime_1.Inject)())
978
1048
  ], LemmyHttp.prototype, "leaveAdmin", null);
979
1049
  __decorate([
980
- (0, tsoa_1.Security)("bearerAuth"),
981
- (0, tsoa_1.Post)("/account/auth/totp/generate"),
982
- (0, tsoa_1.Tags)("Account"),
983
- __param(0, (0, tsoa_1.Inject)())
1050
+ (0, runtime_1.Security)("bearerAuth"),
1051
+ (0, runtime_1.Post)("/account/auth/totp/generate"),
1052
+ (0, runtime_1.Tags)("Account"),
1053
+ __param(0, (0, runtime_1.Inject)())
984
1054
  ], LemmyHttp.prototype, "generateTotpSecret", null);
985
1055
  __decorate([
986
- (0, tsoa_1.Security)("bearerAuth"),
987
- (0, tsoa_1.Get)("/account"),
988
- (0, tsoa_1.Tags)("Account"),
989
- __param(0, (0, tsoa_1.Inject)())
1056
+ (0, runtime_1.Security)("bearerAuth"),
1057
+ (0, runtime_1.Get)("/account"),
1058
+ (0, runtime_1.Tags)("Account"),
1059
+ __param(0, (0, runtime_1.Inject)())
990
1060
  ], LemmyHttp.prototype, "getMyUser", null);
991
1061
  __decorate([
992
- (0, tsoa_1.Security)("bearerAuth"),
993
- (0, tsoa_1.Get)("/account/settings/export"),
994
- (0, tsoa_1.Tags)("Account"),
995
- __param(0, (0, tsoa_1.Inject)())
1062
+ (0, runtime_1.Security)("bearerAuth"),
1063
+ (0, runtime_1.Get)("/account/settings/export"),
1064
+ (0, runtime_1.Tags)("Account"),
1065
+ __param(0, (0, runtime_1.Inject)())
996
1066
  ], LemmyHttp.prototype, "exportSettings", null);
997
1067
  __decorate([
998
- (0, tsoa_1.Security)("bearerAuth"),
999
- (0, tsoa_1.Post)("/account/settings/import"),
1000
- (0, tsoa_1.Tags)("Account"),
1001
- __param(0, (0, tsoa_1.Body)()),
1002
- __param(1, (0, tsoa_1.Inject)())
1068
+ (0, runtime_1.Security)("bearerAuth"),
1069
+ (0, runtime_1.Post)("/account/settings/import"),
1070
+ (0, runtime_1.Tags)("Account"),
1071
+ __param(0, (0, runtime_1.Body)()),
1072
+ __param(1, (0, runtime_1.Inject)())
1003
1073
  ], LemmyHttp.prototype, "importSettings", null);
1004
1074
  __decorate([
1005
- (0, tsoa_1.Security)("bearerAuth"),
1006
- (0, tsoa_1.Get)("/account/list_logins"),
1007
- (0, tsoa_1.Tags)("Account"),
1008
- __param(0, (0, tsoa_1.Inject)())
1075
+ (0, runtime_1.Security)("bearerAuth"),
1076
+ (0, runtime_1.Get)("/account/list_logins"),
1077
+ (0, runtime_1.Tags)("Account"),
1078
+ __param(0, (0, runtime_1.Inject)())
1009
1079
  ], LemmyHttp.prototype, "listLogins", null);
1010
1080
  __decorate([
1011
- (0, tsoa_1.Security)("bearerAuth"),
1012
- (0, tsoa_1.Get)("/account/validate_auth"),
1013
- (0, tsoa_1.Tags)("Account"),
1014
- __param(0, (0, tsoa_1.Inject)())
1081
+ (0, runtime_1.Security)("bearerAuth"),
1082
+ (0, runtime_1.Get)("/account/validate_auth"),
1083
+ (0, runtime_1.Tags)("Account"),
1084
+ __param(0, (0, runtime_1.Inject)())
1015
1085
  ], LemmyHttp.prototype, "validateAuth", null);
1016
1086
  __decorate([
1017
- (0, tsoa_1.Security)("bearerAuth"),
1018
- (0, tsoa_1.Get)("/account/list_media"),
1019
- (0, tsoa_1.Tags)("Account", "Media"),
1020
- __param(0, (0, tsoa_1.Queries)()),
1021
- __param(1, (0, tsoa_1.Inject)())
1087
+ (0, runtime_1.Security)("bearerAuth"),
1088
+ (0, runtime_1.Get)("/account/media/list"),
1089
+ (0, runtime_1.Tags)("Account", "Media"),
1090
+ __param(0, (0, runtime_1.Queries)()),
1091
+ __param(1, (0, runtime_1.Inject)())
1022
1092
  ], LemmyHttp.prototype, "listMedia", null);
1023
1093
  __decorate([
1024
- (0, tsoa_1.Security)("bearerAuth"),
1025
- (0, tsoa_1.Get)("/admin/list_all_media"),
1026
- (0, tsoa_1.Tags)("Admin", "Media"),
1027
- __param(0, (0, tsoa_1.Queries)()),
1028
- __param(1, (0, tsoa_1.Inject)())
1029
- ], LemmyHttp.prototype, "listAllMedia", null);
1030
- __decorate([
1031
- (0, tsoa_1.Security)("bearerAuth"),
1032
- (0, tsoa_1.Post)("/account/auth/totp/update"),
1033
- (0, tsoa_1.Tags)("Account"),
1034
- __param(0, (0, tsoa_1.Body)()),
1035
- __param(1, (0, tsoa_1.Inject)())
1094
+ (0, runtime_1.Security)("bearerAuth"),
1095
+ (0, runtime_1.Delete)("/account/media"),
1096
+ (0, runtime_1.Tags)("Account", "Media"),
1097
+ __param(0, (0, runtime_1.Queries)()),
1098
+ __param(1, (0, runtime_1.Inject)())
1099
+ ], LemmyHttp.prototype, "deleteMedia", null);
1100
+ __decorate([
1101
+ (0, runtime_1.Security)("bearerAuth"),
1102
+ (0, runtime_1.Delete)("/image"),
1103
+ (0, runtime_1.Tags)("Admin", "Media"),
1104
+ __param(0, (0, runtime_1.Queries)()),
1105
+ __param(1, (0, runtime_1.Inject)())
1106
+ ], LemmyHttp.prototype, "deleteMediaAdmin", null);
1107
+ __decorate([
1108
+ (0, runtime_1.Security)("bearerAuth"),
1109
+ (0, runtime_1.Get)("/image/list"),
1110
+ (0, runtime_1.Tags)("Admin", "Media"),
1111
+ __param(0, (0, runtime_1.Queries)()),
1112
+ __param(1, (0, runtime_1.Inject)())
1113
+ ], LemmyHttp.prototype, "listMediaAdmin", null);
1114
+ __decorate([
1115
+ (0, runtime_1.Security)("bearerAuth"),
1116
+ (0, runtime_1.Post)("/account/auth/totp/update"),
1117
+ (0, runtime_1.Tags)("Account"),
1118
+ __param(0, (0, runtime_1.Body)()),
1119
+ __param(1, (0, runtime_1.Inject)())
1036
1120
  ], LemmyHttp.prototype, "updateTotp", null);
1037
1121
  __decorate([
1038
- (0, tsoa_1.Security)("bearerAuth"),
1039
- (0, tsoa_1.Security)({}),
1040
- (0, tsoa_1.Get)("/modlog"),
1041
- (0, tsoa_1.Tags)("Miscellaneous"),
1042
- __param(0, (0, tsoa_1.Queries)()),
1043
- __param(1, (0, tsoa_1.Inject)())
1122
+ (0, runtime_1.Security)("bearerAuth"),
1123
+ (0, runtime_1.Security)({}),
1124
+ (0, runtime_1.Get)("/modlog"),
1125
+ (0, runtime_1.Tags)("Miscellaneous"),
1126
+ __param(0, (0, runtime_1.Queries)()),
1127
+ __param(1, (0, runtime_1.Inject)())
1044
1128
  ], LemmyHttp.prototype, "getModlog", null);
1045
1129
  __decorate([
1046
- (0, tsoa_1.Security)("bearerAuth"),
1047
- (0, tsoa_1.Security)({}),
1048
- (0, tsoa_1.Get)("/search"),
1049
- (0, tsoa_1.Tags)("Miscellaneous"),
1050
- __param(0, (0, tsoa_1.Queries)()),
1051
- __param(1, (0, tsoa_1.Inject)())
1130
+ (0, runtime_1.Security)("bearerAuth"),
1131
+ (0, runtime_1.Security)({}),
1132
+ (0, runtime_1.Get)("/search"),
1133
+ (0, runtime_1.Tags)("Miscellaneous"),
1134
+ __param(0, (0, runtime_1.Queries)()),
1135
+ __param(1, (0, runtime_1.Inject)())
1052
1136
  ], LemmyHttp.prototype, "search", null);
1053
1137
  __decorate([
1054
- (0, tsoa_1.Security)("bearerAuth"),
1055
- (0, tsoa_1.Security)({}),
1056
- (0, tsoa_1.Get)("/resolve_object"),
1057
- (0, tsoa_1.Tags)("Miscellaneous"),
1058
- __param(0, (0, tsoa_1.Queries)()),
1059
- __param(1, (0, tsoa_1.Inject)())
1138
+ (0, runtime_1.Security)("bearerAuth"),
1139
+ (0, runtime_1.Security)({}),
1140
+ (0, runtime_1.Get)("/resolve_object"),
1141
+ (0, runtime_1.Tags)("Miscellaneous"),
1142
+ __param(0, (0, runtime_1.Queries)()),
1143
+ __param(1, (0, runtime_1.Inject)())
1060
1144
  ], LemmyHttp.prototype, "resolveObject", null);
1061
1145
  __decorate([
1062
- (0, tsoa_1.Security)("bearerAuth"),
1063
- (0, tsoa_1.Post)("/community"),
1064
- (0, tsoa_1.Tags)("Community"),
1065
- __param(0, (0, tsoa_1.Body)()),
1066
- __param(1, (0, tsoa_1.Inject)())
1146
+ (0, runtime_1.Security)("bearerAuth"),
1147
+ (0, runtime_1.Post)("/community"),
1148
+ (0, runtime_1.Tags)("Community"),
1149
+ __param(0, (0, runtime_1.Body)()),
1150
+ __param(1, (0, runtime_1.Inject)())
1067
1151
  ], LemmyHttp.prototype, "createCommunity", null);
1068
1152
  __decorate([
1069
- (0, tsoa_1.Security)("bearerAuth"),
1070
- (0, tsoa_1.Security)({}),
1071
- (0, tsoa_1.Get)("/community"),
1072
- (0, tsoa_1.Tags)("Community"),
1073
- __param(0, (0, tsoa_1.Queries)()),
1074
- __param(1, (0, tsoa_1.Inject)())
1153
+ (0, runtime_1.Security)("bearerAuth"),
1154
+ (0, runtime_1.Security)({}),
1155
+ (0, runtime_1.Get)("/community"),
1156
+ (0, runtime_1.Tags)("Community"),
1157
+ __param(0, (0, runtime_1.Queries)()),
1158
+ __param(1, (0, runtime_1.Inject)())
1075
1159
  ], LemmyHttp.prototype, "getCommunity", null);
1076
1160
  __decorate([
1077
- (0, tsoa_1.Security)("bearerAuth"),
1078
- (0, tsoa_1.Put)("/community"),
1079
- (0, tsoa_1.Tags)("Community"),
1080
- __param(0, (0, tsoa_1.Body)()),
1081
- __param(1, (0, tsoa_1.Inject)())
1161
+ (0, runtime_1.Security)("bearerAuth"),
1162
+ (0, runtime_1.Put)("/community"),
1163
+ (0, runtime_1.Tags)("Community"),
1164
+ __param(0, (0, runtime_1.Body)()),
1165
+ __param(1, (0, runtime_1.Inject)())
1082
1166
  ], LemmyHttp.prototype, "editCommunity", null);
1083
1167
  __decorate([
1084
- (0, tsoa_1.Security)("bearerAuth"),
1085
- (0, tsoa_1.Security)({}),
1086
- (0, tsoa_1.Get)("/community/list"),
1087
- (0, tsoa_1.Tags)("Community"),
1088
- __param(0, (0, tsoa_1.Queries)()),
1089
- __param(1, (0, tsoa_1.Inject)())
1168
+ (0, runtime_1.Security)("bearerAuth"),
1169
+ (0, runtime_1.Security)({}),
1170
+ (0, runtime_1.Get)("/community/list"),
1171
+ (0, runtime_1.Tags)("Community"),
1172
+ __param(0, (0, runtime_1.Queries)()),
1173
+ __param(1, (0, runtime_1.Inject)())
1090
1174
  ], LemmyHttp.prototype, "listCommunities", null);
1091
1175
  __decorate([
1092
- (0, tsoa_1.Security)("bearerAuth"),
1093
- (0, tsoa_1.Post)("/community/follow"),
1094
- (0, tsoa_1.Tags)("Community"),
1095
- __param(0, (0, tsoa_1.Body)()),
1096
- __param(1, (0, tsoa_1.Inject)()),
1097
- __param(1, (0, tsoa_1.Inject)())
1176
+ (0, runtime_1.Security)("bearerAuth"),
1177
+ (0, runtime_1.Post)("/community/follow"),
1178
+ (0, runtime_1.Tags)("Community"),
1179
+ __param(0, (0, runtime_1.Body)()),
1180
+ __param(1, (0, runtime_1.Inject)()),
1181
+ __param(1, (0, runtime_1.Inject)())
1098
1182
  ], LemmyHttp.prototype, "followCommunity", null);
1099
1183
  __decorate([
1100
- (0, tsoa_1.Security)("bearerAuth"),
1101
- (0, tsoa_1.Get)("/community/pending_follows/count"),
1102
- (0, tsoa_1.Tags)("Community"),
1103
- __param(0, (0, tsoa_1.Queries)()),
1104
- __param(1, (0, tsoa_1.Inject)())
1184
+ (0, runtime_1.Security)("bearerAuth"),
1185
+ (0, runtime_1.Get)("/community/pending_follows/count"),
1186
+ (0, runtime_1.Tags)("Community"),
1187
+ __param(0, (0, runtime_1.Queries)()),
1188
+ __param(1, (0, runtime_1.Inject)())
1105
1189
  ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1106
1190
  __decorate([
1107
- (0, tsoa_1.Security)("bearerAuth"),
1108
- (0, tsoa_1.Get)("/community/pending_follows/list"),
1109
- (0, tsoa_1.Tags)("Community"),
1110
- __param(0, (0, tsoa_1.Queries)()),
1111
- __param(1, (0, tsoa_1.Inject)())
1191
+ (0, runtime_1.Security)("bearerAuth"),
1192
+ (0, runtime_1.Get)("/community/pending_follows/list"),
1193
+ (0, runtime_1.Tags)("Community"),
1194
+ __param(0, (0, runtime_1.Queries)()),
1195
+ __param(1, (0, runtime_1.Inject)())
1112
1196
  ], LemmyHttp.prototype, "listCommunityPendingFollows", null);
1113
1197
  __decorate([
1114
- (0, tsoa_1.Security)("bearerAuth"),
1115
- (0, tsoa_1.Post)("/community/pending_follows/approve"),
1116
- (0, tsoa_1.Tags)("Community"),
1117
- __param(0, (0, tsoa_1.Body)()),
1118
- __param(1, (0, tsoa_1.Inject)())
1198
+ (0, runtime_1.Security)("bearerAuth"),
1199
+ (0, runtime_1.Post)("/community/pending_follows/approve"),
1200
+ (0, runtime_1.Tags)("Community"),
1201
+ __param(0, (0, runtime_1.Body)()),
1202
+ __param(1, (0, runtime_1.Inject)())
1119
1203
  ], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
1120
1204
  __decorate([
1121
- (0, tsoa_1.Security)("bearerAuth"),
1122
- (0, tsoa_1.Post)("/account/block/community"),
1123
- (0, tsoa_1.Tags)("Account", "Community"),
1124
- __param(0, (0, tsoa_1.Body)()),
1125
- __param(1, (0, tsoa_1.Inject)())
1205
+ (0, runtime_1.Security)("bearerAuth"),
1206
+ (0, runtime_1.Post)("/account/block/community"),
1207
+ (0, runtime_1.Tags)("Account", "Community"),
1208
+ __param(0, (0, runtime_1.Body)()),
1209
+ __param(1, (0, runtime_1.Inject)())
1126
1210
  ], LemmyHttp.prototype, "blockCommunity", null);
1127
1211
  __decorate([
1128
- (0, tsoa_1.Security)("bearerAuth"),
1129
- (0, tsoa_1.Post)("/community/delete"),
1130
- (0, tsoa_1.Tags)("Community"),
1131
- __param(0, (0, tsoa_1.Body)()),
1132
- __param(1, (0, tsoa_1.Inject)())
1212
+ (0, runtime_1.Security)("bearerAuth"),
1213
+ (0, runtime_1.Post)("/community/delete"),
1214
+ (0, runtime_1.Tags)("Community"),
1215
+ __param(0, (0, runtime_1.Body)()),
1216
+ __param(1, (0, runtime_1.Inject)())
1133
1217
  ], LemmyHttp.prototype, "deleteCommunity", null);
1134
1218
  __decorate([
1135
- (0, tsoa_1.Security)("bearerAuth"),
1136
- (0, tsoa_1.Put)("/community/hide"),
1137
- (0, tsoa_1.Tags)("Community", "Admin"),
1138
- __param(0, (0, tsoa_1.Body)()),
1139
- __param(1, (0, tsoa_1.Inject)())
1219
+ (0, runtime_1.Security)("bearerAuth"),
1220
+ (0, runtime_1.Put)("/community/hide"),
1221
+ (0, runtime_1.Tags)("Community", "Admin"),
1222
+ __param(0, (0, runtime_1.Body)()),
1223
+ __param(1, (0, runtime_1.Inject)())
1140
1224
  ], LemmyHttp.prototype, "hideCommunity", null);
1141
1225
  __decorate([
1142
- (0, tsoa_1.Security)("bearerAuth"),
1143
- (0, tsoa_1.Post)("/community/remove"),
1144
- (0, tsoa_1.Tags)("Community", "Moderator"),
1145
- __param(0, (0, tsoa_1.Body)()),
1146
- __param(1, (0, tsoa_1.Inject)())
1226
+ (0, runtime_1.Security)("bearerAuth"),
1227
+ (0, runtime_1.Post)("/community/remove"),
1228
+ (0, runtime_1.Tags)("Community", "Moderator"),
1229
+ __param(0, (0, runtime_1.Body)()),
1230
+ __param(1, (0, runtime_1.Inject)())
1147
1231
  ], LemmyHttp.prototype, "removeCommunity", null);
1148
1232
  __decorate([
1149
- (0, tsoa_1.Security)("bearerAuth"),
1150
- (0, tsoa_1.Post)("/community/transfer"),
1151
- (0, tsoa_1.Tags)("Community", "Moderator"),
1152
- __param(0, (0, tsoa_1.Body)()),
1153
- __param(1, (0, tsoa_1.Inject)())
1233
+ (0, runtime_1.Security)("bearerAuth"),
1234
+ (0, runtime_1.Post)("/community/transfer"),
1235
+ (0, runtime_1.Tags)("Community", "Moderator"),
1236
+ __param(0, (0, runtime_1.Body)()),
1237
+ __param(1, (0, runtime_1.Inject)())
1154
1238
  ], LemmyHttp.prototype, "transferCommunity", null);
1155
1239
  __decorate([
1156
- (0, tsoa_1.Security)("bearerAuth"),
1157
- (0, tsoa_1.Post)("/community/ban_user"),
1158
- (0, tsoa_1.Tags)("Community", "Moderator"),
1159
- __param(0, (0, tsoa_1.Body)()),
1160
- __param(1, (0, tsoa_1.Inject)())
1240
+ (0, runtime_1.Security)("bearerAuth"),
1241
+ (0, runtime_1.Post)("/community/ban_user"),
1242
+ (0, runtime_1.Tags)("Community", "Moderator"),
1243
+ __param(0, (0, runtime_1.Body)()),
1244
+ __param(1, (0, runtime_1.Inject)())
1161
1245
  ], LemmyHttp.prototype, "banFromCommunity", null);
1162
1246
  __decorate([
1163
- (0, tsoa_1.Security)("bearerAuth"),
1164
- (0, tsoa_1.Post)("/community/mod"),
1165
- (0, tsoa_1.Tags)("Community", "Moderator"),
1166
- __param(0, (0, tsoa_1.Body)()),
1167
- __param(1, (0, tsoa_1.Inject)())
1247
+ (0, runtime_1.Security)("bearerAuth"),
1248
+ (0, runtime_1.Post)("/community/mod"),
1249
+ (0, runtime_1.Tags)("Community", "Moderator"),
1250
+ __param(0, (0, runtime_1.Body)()),
1251
+ __param(1, (0, runtime_1.Inject)())
1168
1252
  ], LemmyHttp.prototype, "addModToCommunity", null);
1169
1253
  __decorate([
1170
- (0, tsoa_1.Security)("bearerAuth"),
1171
- (0, tsoa_1.Security)({}),
1172
- (0, tsoa_1.Get)("/community/random"),
1173
- (0, tsoa_1.Tags)("Community"),
1174
- __param(0, (0, tsoa_1.Queries)()),
1175
- __param(1, (0, tsoa_1.Inject)())
1254
+ (0, runtime_1.Security)("bearerAuth"),
1255
+ (0, runtime_1.Security)({}),
1256
+ (0, runtime_1.Get)("/community/random"),
1257
+ (0, runtime_1.Tags)("Community"),
1258
+ __param(0, (0, runtime_1.Queries)()),
1259
+ __param(1, (0, runtime_1.Inject)())
1176
1260
  ], LemmyHttp.prototype, "getRandomCommunity", null);
1177
1261
  __decorate([
1178
- (0, tsoa_1.Security)("bearerAuth"),
1179
- (0, tsoa_1.Post)("/post"),
1180
- (0, tsoa_1.Tags)("Post"),
1181
- __param(0, (0, tsoa_1.Body)()),
1182
- __param(1, (0, tsoa_1.Inject)())
1262
+ (0, runtime_1.Security)("bearerAuth"),
1263
+ (0, runtime_1.Post)("/community/report"),
1264
+ (0, runtime_1.Tags)("Community"),
1265
+ __param(0, (0, runtime_1.Body)()),
1266
+ __param(1, (0, runtime_1.Inject)())
1267
+ ], LemmyHttp.prototype, "createCommunityReport", null);
1268
+ __decorate([
1269
+ (0, runtime_1.Security)("bearerAuth"),
1270
+ (0, runtime_1.Put)("/community/report/resolve"),
1271
+ (0, runtime_1.Tags)("Community", "Admin"),
1272
+ __param(0, (0, runtime_1.Body)()),
1273
+ __param(1, (0, runtime_1.Inject)())
1274
+ ], LemmyHttp.prototype, "resolveCommunityReport", null);
1275
+ __decorate([
1276
+ (0, runtime_1.Security)("bearerAuth"),
1277
+ (0, runtime_1.Post)("/post"),
1278
+ (0, runtime_1.Tags)("Post"),
1279
+ __param(0, (0, runtime_1.Body)()),
1280
+ __param(1, (0, runtime_1.Inject)())
1183
1281
  ], LemmyHttp.prototype, "createPost", null);
1184
1282
  __decorate([
1185
- (0, tsoa_1.Security)("bearerAuth"),
1186
- (0, tsoa_1.Security)({}),
1187
- (0, tsoa_1.Get)("/post"),
1188
- (0, tsoa_1.Tags)("Post"),
1189
- __param(0, (0, tsoa_1.Queries)()),
1190
- __param(1, (0, tsoa_1.Inject)())
1283
+ (0, runtime_1.Security)("bearerAuth"),
1284
+ (0, runtime_1.Security)({}),
1285
+ (0, runtime_1.Get)("/post"),
1286
+ (0, runtime_1.Tags)("Post"),
1287
+ __param(0, (0, runtime_1.Queries)()),
1288
+ __param(1, (0, runtime_1.Inject)())
1191
1289
  ], LemmyHttp.prototype, "getPost", null);
1192
1290
  __decorate([
1193
- (0, tsoa_1.Security)("bearerAuth"),
1194
- (0, tsoa_1.Put)("/post"),
1195
- (0, tsoa_1.Tags)("Post"),
1196
- __param(0, (0, tsoa_1.Body)()),
1197
- __param(1, (0, tsoa_1.Inject)())
1291
+ (0, runtime_1.Security)("bearerAuth"),
1292
+ (0, runtime_1.Put)("/post"),
1293
+ (0, runtime_1.Tags)("Post"),
1294
+ __param(0, (0, runtime_1.Body)()),
1295
+ __param(1, (0, runtime_1.Inject)())
1198
1296
  ], LemmyHttp.prototype, "editPost", null);
1199
1297
  __decorate([
1200
- (0, tsoa_1.Security)("bearerAuth"),
1201
- (0, tsoa_1.Post)("/post/delete"),
1202
- (0, tsoa_1.Tags)("Post"),
1203
- __param(0, (0, tsoa_1.Body)()),
1204
- __param(1, (0, tsoa_1.Inject)())
1298
+ (0, runtime_1.Security)("bearerAuth"),
1299
+ (0, runtime_1.Put)("/post/mod_update"),
1300
+ (0, runtime_1.Tags)("Post"),
1301
+ __param(0, (0, runtime_1.Body)()),
1302
+ __param(1, (0, runtime_1.Inject)())
1303
+ ], LemmyHttp.prototype, "modEditPost", null);
1304
+ __decorate([
1305
+ (0, runtime_1.Security)("bearerAuth"),
1306
+ (0, runtime_1.Post)("/post/delete"),
1307
+ (0, runtime_1.Tags)("Post"),
1308
+ __param(0, (0, runtime_1.Body)()),
1309
+ __param(1, (0, runtime_1.Inject)())
1205
1310
  ], LemmyHttp.prototype, "deletePost", null);
1206
1311
  __decorate([
1207
- (0, tsoa_1.Security)("bearerAuth"),
1208
- (0, tsoa_1.Post)("/post/remove"),
1209
- (0, tsoa_1.Tags)("Post", "Moderator"),
1210
- __param(0, (0, tsoa_1.Body)()),
1211
- __param(1, (0, tsoa_1.Inject)())
1312
+ (0, runtime_1.Security)("bearerAuth"),
1313
+ (0, runtime_1.Post)("/post/remove"),
1314
+ (0, runtime_1.Tags)("Post", "Moderator"),
1315
+ __param(0, (0, runtime_1.Body)()),
1316
+ __param(1, (0, runtime_1.Inject)())
1212
1317
  ], LemmyHttp.prototype, "removePost", null);
1213
1318
  __decorate([
1214
- (0, tsoa_1.Security)("bearerAuth"),
1215
- (0, tsoa_1.Post)("/post/mark_as_read"),
1216
- (0, tsoa_1.Tags)("Post"),
1217
- __param(0, (0, tsoa_1.Body)()),
1218
- __param(1, (0, tsoa_1.Inject)())
1319
+ (0, runtime_1.Security)("bearerAuth"),
1320
+ (0, runtime_1.Post)("/post/mark_as_read"),
1321
+ (0, runtime_1.Tags)("Post"),
1322
+ __param(0, (0, runtime_1.Body)()),
1323
+ __param(1, (0, runtime_1.Inject)())
1219
1324
  ], LemmyHttp.prototype, "markPostAsRead", null);
1220
1325
  __decorate([
1221
- (0, tsoa_1.Security)("bearerAuth"),
1222
- (0, tsoa_1.Post)("/post/mark_as_read/many"),
1223
- (0, tsoa_1.Tags)("Post"),
1224
- __param(0, (0, tsoa_1.Body)()),
1225
- __param(1, (0, tsoa_1.Inject)())
1326
+ (0, runtime_1.Security)("bearerAuth"),
1327
+ (0, runtime_1.Post)("/post/mark_as_read/many"),
1328
+ (0, runtime_1.Tags)("Post"),
1329
+ __param(0, (0, runtime_1.Body)()),
1330
+ __param(1, (0, runtime_1.Inject)())
1226
1331
  ], LemmyHttp.prototype, "markManyPostAsRead", null);
1227
1332
  __decorate([
1228
- (0, tsoa_1.Security)("bearerAuth"),
1229
- (0, tsoa_1.Post)("/post/hide"),
1230
- (0, tsoa_1.Tags)("Post"),
1231
- __param(0, (0, tsoa_1.Body)()),
1232
- __param(1, (0, tsoa_1.Inject)())
1333
+ (0, runtime_1.Security)("bearerAuth"),
1334
+ (0, runtime_1.Post)("/post/hide"),
1335
+ (0, runtime_1.Tags)("Post"),
1336
+ __param(0, (0, runtime_1.Body)()),
1337
+ __param(1, (0, runtime_1.Inject)())
1233
1338
  ], LemmyHttp.prototype, "hidePost", null);
1234
1339
  __decorate([
1235
- (0, tsoa_1.Security)("bearerAuth"),
1236
- (0, tsoa_1.Post)("/post/lock"),
1237
- (0, tsoa_1.Tags)("Post"),
1238
- __param(0, (0, tsoa_1.Body)()),
1239
- __param(1, (0, tsoa_1.Inject)())
1340
+ (0, runtime_1.Security)("bearerAuth"),
1341
+ (0, runtime_1.Post)("/post/lock"),
1342
+ (0, runtime_1.Tags)("Post"),
1343
+ __param(0, (0, runtime_1.Body)()),
1344
+ __param(1, (0, runtime_1.Inject)())
1240
1345
  ], LemmyHttp.prototype, "lockPost", null);
1241
1346
  __decorate([
1242
- (0, tsoa_1.Security)("bearerAuth"),
1243
- (0, tsoa_1.Post)("/post/feature"),
1244
- (0, tsoa_1.Tags)("Post", "Moderator"),
1245
- __param(0, (0, tsoa_1.Body)()),
1246
- __param(1, (0, tsoa_1.Inject)())
1347
+ (0, runtime_1.Security)("bearerAuth"),
1348
+ (0, runtime_1.Post)("/post/feature"),
1349
+ (0, runtime_1.Tags)("Post", "Moderator"),
1350
+ __param(0, (0, runtime_1.Body)()),
1351
+ __param(1, (0, runtime_1.Inject)())
1247
1352
  ], LemmyHttp.prototype, "featurePost", null);
1248
1353
  __decorate([
1249
- (0, tsoa_1.Security)("bearerAuth"),
1250
- (0, tsoa_1.Security)({}),
1251
- (0, tsoa_1.Get)("/post/list"),
1252
- (0, tsoa_1.Tags)("Post"),
1253
- __param(0, (0, tsoa_1.Queries)()),
1254
- __param(1, (0, tsoa_1.Inject)())
1354
+ (0, runtime_1.Security)("bearerAuth"),
1355
+ (0, runtime_1.Security)({}),
1356
+ (0, runtime_1.Get)("/post/list"),
1357
+ (0, runtime_1.Tags)("Post"),
1358
+ __param(0, (0, runtime_1.Queries)()),
1359
+ __param(1, (0, runtime_1.Inject)())
1255
1360
  ], LemmyHttp.prototype, "getPosts", null);
1256
1361
  __decorate([
1257
- (0, tsoa_1.Security)("bearerAuth"),
1258
- (0, tsoa_1.Post)("/post/like"),
1259
- (0, tsoa_1.Tags)("Post"),
1260
- __param(0, (0, tsoa_1.Body)()),
1261
- __param(1, (0, tsoa_1.Inject)())
1362
+ (0, runtime_1.Security)("bearerAuth"),
1363
+ (0, runtime_1.Post)("/post/like"),
1364
+ (0, runtime_1.Tags)("Post"),
1365
+ __param(0, (0, runtime_1.Body)()),
1366
+ __param(1, (0, runtime_1.Inject)())
1262
1367
  ], LemmyHttp.prototype, "likePost", null);
1263
1368
  __decorate([
1264
- (0, tsoa_1.Security)("bearerAuth"),
1265
- (0, tsoa_1.Get)("/post/like/list"),
1266
- (0, tsoa_1.Tags)("Post", "Admin"),
1267
- __param(0, (0, tsoa_1.Queries)()),
1268
- __param(1, (0, tsoa_1.Inject)())
1369
+ (0, runtime_1.Security)("bearerAuth"),
1370
+ (0, runtime_1.Get)("/post/like/list"),
1371
+ (0, runtime_1.Tags)("Post", "Admin"),
1372
+ __param(0, (0, runtime_1.Queries)()),
1373
+ __param(1, (0, runtime_1.Inject)())
1269
1374
  ], LemmyHttp.prototype, "listPostLikes", null);
1270
1375
  __decorate([
1271
- (0, tsoa_1.Security)("bearerAuth"),
1272
- (0, tsoa_1.Put)("/post/save"),
1273
- (0, tsoa_1.Tags)("Post"),
1274
- __param(0, (0, tsoa_1.Body)()),
1275
- __param(1, (0, tsoa_1.Inject)())
1376
+ (0, runtime_1.Security)("bearerAuth"),
1377
+ (0, runtime_1.Put)("/post/save"),
1378
+ (0, runtime_1.Tags)("Post"),
1379
+ __param(0, (0, runtime_1.Body)()),
1380
+ __param(1, (0, runtime_1.Inject)())
1276
1381
  ], LemmyHttp.prototype, "savePost", null);
1277
1382
  __decorate([
1278
- (0, tsoa_1.Security)("bearerAuth"),
1279
- (0, tsoa_1.Post)("/post/report"),
1280
- (0, tsoa_1.Tags)("Post"),
1281
- __param(0, (0, tsoa_1.Body)()),
1282
- __param(1, (0, tsoa_1.Inject)())
1383
+ (0, runtime_1.Security)("bearerAuth"),
1384
+ (0, runtime_1.Post)("/post/report"),
1385
+ (0, runtime_1.Tags)("Post"),
1386
+ __param(0, (0, runtime_1.Body)()),
1387
+ __param(1, (0, runtime_1.Inject)())
1283
1388
  ], LemmyHttp.prototype, "createPostReport", null);
1284
1389
  __decorate([
1285
- (0, tsoa_1.Security)("bearerAuth"),
1286
- (0, tsoa_1.Put)("/post/report/resolve"),
1287
- (0, tsoa_1.Tags)("Post", "Moderator"),
1288
- __param(0, (0, tsoa_1.Body)()),
1289
- __param(1, (0, tsoa_1.Inject)())
1390
+ (0, runtime_1.Security)("bearerAuth"),
1391
+ (0, runtime_1.Put)("/post/report/resolve"),
1392
+ (0, runtime_1.Tags)("Post", "Moderator"),
1393
+ __param(0, (0, runtime_1.Body)()),
1394
+ __param(1, (0, runtime_1.Inject)())
1290
1395
  ], LemmyHttp.prototype, "resolvePostReport", null);
1291
1396
  __decorate([
1292
- (0, tsoa_1.Security)("bearerAuth"),
1293
- (0, tsoa_1.Get)("/post/site_metadata"),
1294
- (0, tsoa_1.Tags)("Miscellaneous", "Post"),
1295
- __param(0, (0, tsoa_1.Queries)()),
1296
- __param(1, (0, tsoa_1.Inject)())
1397
+ (0, runtime_1.Security)("bearerAuth"),
1398
+ (0, runtime_1.Get)("/post/site_metadata"),
1399
+ (0, runtime_1.Tags)("Miscellaneous", "Post"),
1400
+ __param(0, (0, runtime_1.Queries)()),
1401
+ __param(1, (0, runtime_1.Inject)())
1297
1402
  ], LemmyHttp.prototype, "getSiteMetadata", null);
1298
1403
  __decorate([
1299
- (0, tsoa_1.Security)("bearerAuth"),
1300
- (0, tsoa_1.Post)("/comment"),
1301
- (0, tsoa_1.Tags)("Comment"),
1302
- __param(0, (0, tsoa_1.Body)()),
1303
- __param(1, (0, tsoa_1.Inject)())
1404
+ (0, runtime_1.Security)("bearerAuth"),
1405
+ (0, runtime_1.Post)("/comment"),
1406
+ (0, runtime_1.Tags)("Comment"),
1407
+ __param(0, (0, runtime_1.Body)()),
1408
+ __param(1, (0, runtime_1.Inject)())
1304
1409
  ], LemmyHttp.prototype, "createComment", null);
1305
1410
  __decorate([
1306
- (0, tsoa_1.Security)("bearerAuth"),
1307
- (0, tsoa_1.Put)("/comment"),
1308
- (0, tsoa_1.Tags)("Comment"),
1309
- __param(0, (0, tsoa_1.Body)()),
1310
- __param(1, (0, tsoa_1.Inject)())
1411
+ (0, runtime_1.Security)("bearerAuth"),
1412
+ (0, runtime_1.Put)("/comment"),
1413
+ (0, runtime_1.Tags)("Comment"),
1414
+ __param(0, (0, runtime_1.Body)()),
1415
+ __param(1, (0, runtime_1.Inject)())
1311
1416
  ], LemmyHttp.prototype, "editComment", null);
1312
1417
  __decorate([
1313
- (0, tsoa_1.Security)("bearerAuth"),
1314
- (0, tsoa_1.Post)("/comment/delete"),
1315
- (0, tsoa_1.Tags)("Comment"),
1316
- __param(0, (0, tsoa_1.Body)()),
1317
- __param(1, (0, tsoa_1.Inject)())
1418
+ (0, runtime_1.Security)("bearerAuth"),
1419
+ (0, runtime_1.Post)("/comment/delete"),
1420
+ (0, runtime_1.Tags)("Comment"),
1421
+ __param(0, (0, runtime_1.Body)()),
1422
+ __param(1, (0, runtime_1.Inject)())
1318
1423
  ], LemmyHttp.prototype, "deleteComment", null);
1319
1424
  __decorate([
1320
- (0, tsoa_1.Security)("bearerAuth"),
1321
- (0, tsoa_1.Post)("/comment/remove"),
1322
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1323
- __param(0, (0, tsoa_1.Body)()),
1324
- __param(1, (0, tsoa_1.Inject)())
1425
+ (0, runtime_1.Security)("bearerAuth"),
1426
+ (0, runtime_1.Post)("/comment/remove"),
1427
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1428
+ __param(0, (0, runtime_1.Body)()),
1429
+ __param(1, (0, runtime_1.Inject)())
1325
1430
  ], LemmyHttp.prototype, "removeComment", null);
1326
1431
  __decorate([
1327
- (0, tsoa_1.Security)("bearerAuth"),
1328
- (0, tsoa_1.Post)("/comment/mark_as_read"),
1329
- (0, tsoa_1.Tags)("Comment"),
1330
- __param(0, (0, tsoa_1.Body)()),
1331
- __param(1, (0, tsoa_1.Inject)())
1332
- ], LemmyHttp.prototype, "markCommentReplyAsRead", null);
1333
- __decorate([
1334
- (0, tsoa_1.Security)("bearerAuth"),
1335
- (0, tsoa_1.Post)("/comment/like"),
1336
- (0, tsoa_1.Tags)("Comment"),
1337
- __param(0, (0, tsoa_1.Body)()),
1338
- __param(1, (0, tsoa_1.Inject)())
1432
+ (0, runtime_1.Security)("bearerAuth"),
1433
+ (0, runtime_1.Post)("/comment/lock"),
1434
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1435
+ __param(0, (0, runtime_1.Body)()),
1436
+ __param(1, (0, runtime_1.Inject)())
1437
+ ], LemmyHttp.prototype, "lockComment", null);
1438
+ __decorate([
1439
+ (0, runtime_1.Security)("bearerAuth"),
1440
+ (0, runtime_1.Post)("/comment/like"),
1441
+ (0, runtime_1.Tags)("Comment"),
1442
+ __param(0, (0, runtime_1.Body)()),
1443
+ __param(1, (0, runtime_1.Inject)())
1339
1444
  ], LemmyHttp.prototype, "likeComment", null);
1340
1445
  __decorate([
1341
- (0, tsoa_1.Security)("bearerAuth"),
1342
- (0, tsoa_1.Get)("/comment/like/list"),
1343
- (0, tsoa_1.Tags)("Comment", "Admin"),
1344
- __param(0, (0, tsoa_1.Queries)()),
1345
- __param(1, (0, tsoa_1.Inject)())
1446
+ (0, runtime_1.Security)("bearerAuth"),
1447
+ (0, runtime_1.Get)("/comment/like/list"),
1448
+ (0, runtime_1.Tags)("Comment", "Admin"),
1449
+ __param(0, (0, runtime_1.Queries)()),
1450
+ __param(1, (0, runtime_1.Inject)())
1346
1451
  ], LemmyHttp.prototype, "listCommentLikes", null);
1347
1452
  __decorate([
1348
- (0, tsoa_1.Security)("bearerAuth"),
1349
- (0, tsoa_1.Put)("/comment/save"),
1350
- (0, tsoa_1.Tags)("Comment"),
1351
- __param(0, (0, tsoa_1.Body)()),
1352
- __param(1, (0, tsoa_1.Inject)())
1453
+ (0, runtime_1.Security)("bearerAuth"),
1454
+ (0, runtime_1.Put)("/comment/save"),
1455
+ (0, runtime_1.Tags)("Comment"),
1456
+ __param(0, (0, runtime_1.Body)()),
1457
+ __param(1, (0, runtime_1.Inject)())
1353
1458
  ], LemmyHttp.prototype, "saveComment", null);
1354
1459
  __decorate([
1355
- (0, tsoa_1.Security)("bearerAuth"),
1356
- (0, tsoa_1.Post)("/comment/distinguish"),
1357
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1358
- __param(0, (0, tsoa_1.Body)()),
1359
- __param(1, (0, tsoa_1.Inject)())
1460
+ (0, runtime_1.Security)("bearerAuth"),
1461
+ (0, runtime_1.Post)("/comment/distinguish"),
1462
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1463
+ __param(0, (0, runtime_1.Body)()),
1464
+ __param(1, (0, runtime_1.Inject)())
1360
1465
  ], LemmyHttp.prototype, "distinguishComment", null);
1361
1466
  __decorate([
1362
- (0, tsoa_1.Security)("bearerAuth"),
1363
- (0, tsoa_1.Security)({}),
1364
- (0, tsoa_1.Get)("/comment/list"),
1365
- (0, tsoa_1.Tags)("Comment"),
1366
- __param(0, (0, tsoa_1.Queries)()),
1367
- __param(1, (0, tsoa_1.Inject)())
1467
+ (0, runtime_1.Security)("bearerAuth"),
1468
+ (0, runtime_1.Security)({}),
1469
+ (0, runtime_1.Get)("/comment/list"),
1470
+ (0, runtime_1.Tags)("Comment"),
1471
+ __param(0, (0, runtime_1.Queries)()),
1472
+ __param(1, (0, runtime_1.Inject)())
1368
1473
  ], LemmyHttp.prototype, "getComments", null);
1369
1474
  __decorate([
1370
- (0, tsoa_1.Security)("bearerAuth"),
1371
- (0, tsoa_1.Security)({}),
1372
- (0, tsoa_1.Get)("/comment/list/slim"),
1373
- (0, tsoa_1.Tags)("Comment"),
1374
- __param(0, (0, tsoa_1.Queries)()),
1375
- __param(1, (0, tsoa_1.Inject)())
1475
+ (0, runtime_1.Security)("bearerAuth"),
1476
+ (0, runtime_1.Security)({}),
1477
+ (0, runtime_1.Get)("/comment/list/slim"),
1478
+ (0, runtime_1.Tags)("Comment"),
1479
+ __param(0, (0, runtime_1.Queries)()),
1480
+ __param(1, (0, runtime_1.Inject)())
1376
1481
  ], LemmyHttp.prototype, "getCommentsSlim", null);
1377
1482
  __decorate([
1378
- (0, tsoa_1.Security)("bearerAuth"),
1379
- (0, tsoa_1.Security)({}),
1380
- (0, tsoa_1.Get)("/comment"),
1381
- (0, tsoa_1.Tags)("Comment"),
1382
- __param(0, (0, tsoa_1.Queries)()),
1383
- __param(1, (0, tsoa_1.Inject)())
1483
+ (0, runtime_1.Security)("bearerAuth"),
1484
+ (0, runtime_1.Security)({}),
1485
+ (0, runtime_1.Get)("/comment"),
1486
+ (0, runtime_1.Tags)("Comment"),
1487
+ __param(0, (0, runtime_1.Queries)()),
1488
+ __param(1, (0, runtime_1.Inject)())
1384
1489
  ], LemmyHttp.prototype, "getComment", null);
1385
1490
  __decorate([
1386
- (0, tsoa_1.Security)("bearerAuth"),
1387
- (0, tsoa_1.Post)("/comment/report"),
1388
- (0, tsoa_1.Tags)("Comment"),
1389
- __param(0, (0, tsoa_1.Body)()),
1390
- __param(1, (0, tsoa_1.Inject)())
1491
+ (0, runtime_1.Security)("bearerAuth"),
1492
+ (0, runtime_1.Post)("/comment/report"),
1493
+ (0, runtime_1.Tags)("Comment"),
1494
+ __param(0, (0, runtime_1.Body)()),
1495
+ __param(1, (0, runtime_1.Inject)())
1391
1496
  ], LemmyHttp.prototype, "createCommentReport", null);
1392
1497
  __decorate([
1393
- (0, tsoa_1.Security)("bearerAuth"),
1394
- (0, tsoa_1.Put)("/comment/report/resolve"),
1395
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1396
- __param(0, (0, tsoa_1.Body)()),
1397
- __param(1, (0, tsoa_1.Inject)())
1498
+ (0, runtime_1.Security)("bearerAuth"),
1499
+ (0, runtime_1.Put)("/comment/report/resolve"),
1500
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1501
+ __param(0, (0, runtime_1.Body)()),
1502
+ __param(1, (0, runtime_1.Inject)())
1398
1503
  ], LemmyHttp.prototype, "resolveCommentReport", null);
1399
1504
  __decorate([
1400
- (0, tsoa_1.Security)("bearerAuth"),
1401
- (0, tsoa_1.Post)("/private_message"),
1402
- (0, tsoa_1.Tags)("PrivateMessage"),
1403
- __param(0, (0, tsoa_1.Body)()),
1404
- __param(1, (0, tsoa_1.Inject)())
1505
+ (0, runtime_1.Security)("bearerAuth"),
1506
+ (0, runtime_1.Post)("/private_message"),
1507
+ (0, runtime_1.Tags)("PrivateMessage"),
1508
+ __param(0, (0, runtime_1.Body)()),
1509
+ __param(1, (0, runtime_1.Inject)())
1405
1510
  ], LemmyHttp.prototype, "createPrivateMessage", null);
1406
1511
  __decorate([
1407
- (0, tsoa_1.Security)("bearerAuth"),
1408
- (0, tsoa_1.Put)("/private_message"),
1409
- (0, tsoa_1.Tags)("PrivateMessage"),
1410
- __param(0, (0, tsoa_1.Body)()),
1411
- __param(1, (0, tsoa_1.Inject)())
1512
+ (0, runtime_1.Security)("bearerAuth"),
1513
+ (0, runtime_1.Put)("/private_message"),
1514
+ (0, runtime_1.Tags)("PrivateMessage"),
1515
+ __param(0, (0, runtime_1.Body)()),
1516
+ __param(1, (0, runtime_1.Inject)())
1412
1517
  ], LemmyHttp.prototype, "editPrivateMessage", null);
1413
1518
  __decorate([
1414
- (0, tsoa_1.Security)("bearerAuth"),
1415
- (0, tsoa_1.Post)("/private_message/delete"),
1416
- (0, tsoa_1.Tags)("PrivateMessage"),
1417
- __param(0, (0, tsoa_1.Body)()),
1418
- __param(1, (0, tsoa_1.Inject)())
1519
+ (0, runtime_1.Security)("bearerAuth"),
1520
+ (0, runtime_1.Post)("/private_message/delete"),
1521
+ (0, runtime_1.Tags)("PrivateMessage"),
1522
+ __param(0, (0, runtime_1.Body)()),
1523
+ __param(1, (0, runtime_1.Inject)())
1419
1524
  ], LemmyHttp.prototype, "deletePrivateMessage", null);
1420
1525
  __decorate([
1421
- (0, tsoa_1.Security)("bearerAuth"),
1422
- (0, tsoa_1.Post)("/private_message/mark_as_read"),
1423
- (0, tsoa_1.Tags)("PrivateMessage"),
1424
- __param(0, (0, tsoa_1.Body)()),
1425
- __param(1, (0, tsoa_1.Inject)())
1526
+ (0, runtime_1.Security)("bearerAuth"),
1527
+ (0, runtime_1.Post)("/private_message/mark_as_read"),
1528
+ (0, runtime_1.Tags)("PrivateMessage"),
1529
+ __param(0, (0, runtime_1.Body)()),
1530
+ __param(1, (0, runtime_1.Inject)())
1426
1531
  ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
1427
1532
  __decorate([
1428
- (0, tsoa_1.Security)("bearerAuth"),
1429
- (0, tsoa_1.Post)("/private_message/report"),
1430
- (0, tsoa_1.Tags)("PrivateMessage"),
1431
- __param(0, (0, tsoa_1.Body)()),
1432
- __param(1, (0, tsoa_1.Inject)())
1533
+ (0, runtime_1.Security)("bearerAuth"),
1534
+ (0, runtime_1.Post)("/private_message/report"),
1535
+ (0, runtime_1.Tags)("PrivateMessage"),
1536
+ __param(0, (0, runtime_1.Body)()),
1537
+ __param(1, (0, runtime_1.Inject)())
1433
1538
  ], LemmyHttp.prototype, "createPrivateMessageReport", null);
1434
1539
  __decorate([
1435
- (0, tsoa_1.Security)("bearerAuth"),
1436
- (0, tsoa_1.Put)("/private_message/report/resolve"),
1437
- (0, tsoa_1.Tags)("PrivateMessage", "Admin"),
1438
- __param(0, (0, tsoa_1.Body)()),
1439
- __param(1, (0, tsoa_1.Inject)())
1540
+ (0, runtime_1.Security)("bearerAuth"),
1541
+ (0, runtime_1.Put)("/private_message/report/resolve"),
1542
+ (0, runtime_1.Tags)("PrivateMessage", "Admin"),
1543
+ __param(0, (0, runtime_1.Body)()),
1544
+ __param(1, (0, runtime_1.Inject)())
1440
1545
  ], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
1441
1546
  __decorate([
1442
- (0, tsoa_1.Post)("/account/auth/register"),
1443
- (0, tsoa_1.Tags)("Account"),
1444
- __param(0, (0, tsoa_1.Body)()),
1445
- __param(1, (0, tsoa_1.Inject)())
1547
+ (0, runtime_1.Post)("/account/auth/register"),
1548
+ (0, runtime_1.Tags)("Account"),
1549
+ __param(0, (0, runtime_1.Body)()),
1550
+ __param(1, (0, runtime_1.Inject)())
1446
1551
  ], LemmyHttp.prototype, "register", null);
1447
1552
  __decorate([
1448
- (0, tsoa_1.Post)("/account/auth/login"),
1449
- (0, tsoa_1.Tags)("Account"),
1450
- __param(0, (0, tsoa_1.Body)()),
1451
- __param(1, (0, tsoa_1.Inject)())
1553
+ (0, runtime_1.Post)("/account/auth/login"),
1554
+ (0, runtime_1.Tags)("Account"),
1555
+ __param(0, (0, runtime_1.Body)()),
1556
+ __param(1, (0, runtime_1.Inject)())
1452
1557
  ], LemmyHttp.prototype, "login", null);
1453
1558
  __decorate([
1454
- (0, tsoa_1.Security)("bearerAuth"),
1455
- (0, tsoa_1.Post)("/account/auth/logout"),
1456
- (0, tsoa_1.Tags)("Account"),
1457
- __param(0, (0, tsoa_1.Inject)())
1559
+ (0, runtime_1.Security)("bearerAuth"),
1560
+ (0, runtime_1.Post)("/account/auth/logout"),
1561
+ (0, runtime_1.Tags)("Account"),
1562
+ __param(0, (0, runtime_1.Inject)())
1458
1563
  ], LemmyHttp.prototype, "logout", null);
1459
1564
  __decorate([
1460
- (0, tsoa_1.Security)("bearerAuth"),
1461
- (0, tsoa_1.Security)({}),
1462
- (0, tsoa_1.Get)("/person"),
1463
- (0, tsoa_1.Tags)("Person"),
1464
- __param(0, (0, tsoa_1.Queries)()),
1465
- __param(1, (0, tsoa_1.Inject)())
1565
+ (0, runtime_1.Security)("bearerAuth"),
1566
+ (0, runtime_1.Security)({}),
1567
+ (0, runtime_1.Get)("/person"),
1568
+ (0, runtime_1.Tags)("Person"),
1569
+ __param(0, (0, runtime_1.Queries)()),
1570
+ __param(1, (0, runtime_1.Inject)())
1466
1571
  ], LemmyHttp.prototype, "getPersonDetails", null);
1467
1572
  __decorate([
1468
- (0, tsoa_1.Security)("bearerAuth"),
1469
- (0, tsoa_1.Security)({}),
1470
- (0, tsoa_1.Get)("/person/content"),
1471
- (0, tsoa_1.Tags)("Person"),
1472
- __param(0, (0, tsoa_1.Queries)()),
1473
- __param(1, (0, tsoa_1.Inject)())
1573
+ (0, runtime_1.Security)("bearerAuth"),
1574
+ (0, runtime_1.Security)({}),
1575
+ (0, runtime_1.Get)("/person/content"),
1576
+ (0, runtime_1.Tags)("Person"),
1577
+ __param(0, (0, runtime_1.Queries)()),
1578
+ __param(1, (0, runtime_1.Inject)())
1474
1579
  ], LemmyHttp.prototype, "listPersonContent", null);
1475
1580
  __decorate([
1476
- (0, tsoa_1.Security)("bearerAuth"),
1477
- (0, tsoa_1.Post)("/account/mention/comment/mark_as_read"),
1478
- (0, tsoa_1.Tags)("Account", "Person"),
1479
- __param(0, (0, tsoa_1.Body)()),
1480
- __param(1, (0, tsoa_1.Inject)())
1481
- ], LemmyHttp.prototype, "markCommentMentionAsRead", null);
1482
- __decorate([
1483
- (0, tsoa_1.Security)("bearerAuth"),
1484
- (0, tsoa_1.Post)("/account/mention/post/mark_as_read"),
1485
- (0, tsoa_1.Tags)("Account", "Post"),
1486
- __param(0, (0, tsoa_1.Body)()),
1487
- __param(1, (0, tsoa_1.Inject)())
1488
- ], LemmyHttp.prototype, "markPostMentionAsRead", null);
1489
- __decorate([
1490
- (0, tsoa_1.Security)("bearerAuth"),
1491
- (0, tsoa_1.Post)("/admin/ban"),
1492
- (0, tsoa_1.Tags)("Admin"),
1493
- __param(0, (0, tsoa_1.Body)()),
1494
- __param(1, (0, tsoa_1.Inject)())
1581
+ (0, runtime_1.Security)("bearerAuth"),
1582
+ (0, runtime_1.Post)("/person/note"),
1583
+ (0, runtime_1.Tags)("Person"),
1584
+ __param(0, (0, runtime_1.Body)()),
1585
+ __param(1, (0, runtime_1.Inject)())
1586
+ ], LemmyHttp.prototype, "notePerson", null);
1587
+ __decorate([
1588
+ (0, runtime_1.Security)("bearerAuth"),
1589
+ (0, runtime_1.Post)("/admin/ban"),
1590
+ (0, runtime_1.Tags)("Admin"),
1591
+ __param(0, (0, runtime_1.Body)()),
1592
+ __param(1, (0, runtime_1.Inject)())
1495
1593
  ], LemmyHttp.prototype, "banPerson", null);
1496
1594
  __decorate([
1497
- (0, tsoa_1.Security)("bearerAuth"),
1498
- (0, tsoa_1.Get)("/admin/banned"),
1499
- (0, tsoa_1.Tags)("Admin", "Miscellaneous"),
1500
- __param(0, (0, tsoa_1.Inject)())
1501
- ], LemmyHttp.prototype, "getBannedPersons", null);
1502
- __decorate([
1503
- (0, tsoa_1.Security)("bearerAuth"),
1504
- (0, tsoa_1.Post)("/account/block/person"),
1505
- (0, tsoa_1.Tags)("Account"),
1506
- __param(0, (0, tsoa_1.Body)()),
1507
- __param(1, (0, tsoa_1.Inject)())
1595
+ (0, runtime_1.Security)("bearerAuth"),
1596
+ (0, runtime_1.Get)("/admin/users"),
1597
+ (0, runtime_1.Tags)("Admin", "Miscellaneous"),
1598
+ __param(0, (0, runtime_1.Queries)()),
1599
+ __param(1, (0, runtime_1.Inject)())
1600
+ ], LemmyHttp.prototype, "listUsers", null);
1601
+ __decorate([
1602
+ (0, runtime_1.Security)("bearerAuth"),
1603
+ (0, runtime_1.Post)("/account/block/person"),
1604
+ (0, runtime_1.Tags)("Account"),
1605
+ __param(0, (0, runtime_1.Body)()),
1606
+ __param(1, (0, runtime_1.Inject)())
1508
1607
  ], LemmyHttp.prototype, "blockPerson", null);
1509
1608
  __decorate([
1510
- (0, tsoa_1.Get)("/account/auth/get_captcha"),
1511
- (0, tsoa_1.Tags)("Account"),
1512
- __param(0, (0, tsoa_1.Inject)())
1609
+ (0, runtime_1.Get)("/account/auth/get_captcha"),
1610
+ (0, runtime_1.Tags)("Account"),
1611
+ __param(0, (0, runtime_1.Inject)())
1513
1612
  ], LemmyHttp.prototype, "getCaptcha", null);
1514
1613
  __decorate([
1515
- (0, tsoa_1.Security)("bearerAuth"),
1516
- (0, tsoa_1.Post)("/account/delete"),
1517
- (0, tsoa_1.Tags)("Account"),
1518
- __param(0, (0, tsoa_1.Body)()),
1519
- __param(1, (0, tsoa_1.Inject)())
1614
+ (0, runtime_1.Security)("bearerAuth"),
1615
+ (0, runtime_1.Post)("/account/delete"),
1616
+ (0, runtime_1.Tags)("Account"),
1617
+ __param(0, (0, runtime_1.Body)()),
1618
+ __param(1, (0, runtime_1.Inject)())
1520
1619
  ], LemmyHttp.prototype, "deleteAccount", null);
1521
1620
  __decorate([
1522
- (0, tsoa_1.Security)("bearerAuth"),
1523
- (0, tsoa_1.Post)("/account/auth/password_reset"),
1524
- (0, tsoa_1.Tags)("Account"),
1525
- __param(0, (0, tsoa_1.Body)()),
1526
- __param(1, (0, tsoa_1.Inject)())
1621
+ (0, runtime_1.Security)("bearerAuth"),
1622
+ (0, runtime_1.Post)("/account/auth/password_reset"),
1623
+ (0, runtime_1.Tags)("Account"),
1624
+ __param(0, (0, runtime_1.Body)()),
1625
+ __param(1, (0, runtime_1.Inject)())
1527
1626
  ], LemmyHttp.prototype, "passwordReset", null);
1528
1627
  __decorate([
1529
- (0, tsoa_1.Security)("bearerAuth"),
1530
- (0, tsoa_1.Post)("/account/auth/password_change"),
1531
- (0, tsoa_1.Tags)("Account"),
1532
- __param(0, (0, tsoa_1.Body)()),
1533
- __param(1, (0, tsoa_1.Inject)())
1628
+ (0, runtime_1.Security)("bearerAuth"),
1629
+ (0, runtime_1.Post)("/account/auth/password_change"),
1630
+ (0, runtime_1.Tags)("Account"),
1631
+ __param(0, (0, runtime_1.Body)()),
1632
+ __param(1, (0, runtime_1.Inject)())
1534
1633
  ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1535
1634
  __decorate([
1536
- (0, tsoa_1.Security)("bearerAuth"),
1537
- (0, tsoa_1.Post)("/account/mark_as_read/all"),
1538
- (0, tsoa_1.Tags)("Account"),
1539
- __param(0, (0, tsoa_1.Inject)())
1635
+ (0, runtime_1.Security)("bearerAuth"),
1636
+ (0, runtime_1.Post)("/account/mark_as_read/all"),
1637
+ (0, runtime_1.Tags)("Account"),
1638
+ __param(0, (0, runtime_1.Inject)())
1540
1639
  ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1541
1640
  __decorate([
1542
- (0, tsoa_1.Security)("bearerAuth"),
1543
- (0, tsoa_1.Put)("/account/settings/save"),
1544
- (0, tsoa_1.Tags)("Account"),
1545
- __param(0, (0, tsoa_1.Body)()),
1546
- __param(1, (0, tsoa_1.Inject)())
1641
+ (0, runtime_1.Security)("bearerAuth"),
1642
+ (0, runtime_1.Post)("/account/mark_as_read"),
1643
+ (0, runtime_1.Tags)("Account"),
1644
+ __param(0, (0, runtime_1.Body)()),
1645
+ __param(1, (0, runtime_1.Inject)())
1646
+ ], LemmyHttp.prototype, "markNotificationAsRead", null);
1647
+ __decorate([
1648
+ (0, runtime_1.Security)("bearerAuth"),
1649
+ (0, runtime_1.Put)("/account/settings/save"),
1650
+ (0, runtime_1.Tags)("Account"),
1651
+ __param(0, (0, runtime_1.Body)()),
1652
+ __param(1, (0, runtime_1.Inject)())
1547
1653
  ], LemmyHttp.prototype, "saveUserSettings", null);
1548
1654
  __decorate([
1549
- (0, tsoa_1.Security)("bearerAuth"),
1550
- (0, tsoa_1.Put)("/account/auth/change_password"),
1551
- (0, tsoa_1.Tags)("Account"),
1552
- __param(0, (0, tsoa_1.Body)()),
1553
- __param(1, (0, tsoa_1.Inject)())
1655
+ (0, runtime_1.Security)("bearerAuth"),
1656
+ (0, runtime_1.Put)("/account/auth/change_password"),
1657
+ (0, runtime_1.Tags)("Account"),
1658
+ __param(0, (0, runtime_1.Body)()),
1659
+ __param(1, (0, runtime_1.Inject)())
1554
1660
  ], LemmyHttp.prototype, "changePassword", null);
1555
1661
  __decorate([
1556
- (0, tsoa_1.Security)("bearerAuth"),
1557
- (0, tsoa_1.Get)("/account/report_count"),
1558
- (0, tsoa_1.Tags)("Account"),
1559
- __param(0, (0, tsoa_1.Queries)()),
1560
- __param(1, (0, tsoa_1.Inject)())
1662
+ (0, runtime_1.Security)("bearerAuth"),
1663
+ (0, runtime_1.Get)("/account/report_count"),
1664
+ (0, runtime_1.Tags)("Account"),
1665
+ __param(0, (0, runtime_1.Queries)()),
1666
+ __param(1, (0, runtime_1.Inject)())
1561
1667
  ], LemmyHttp.prototype, "getReportCount", null);
1562
1668
  __decorate([
1563
- (0, tsoa_1.Security)("bearerAuth"),
1564
- (0, tsoa_1.Get)("/account/unread_count"),
1565
- (0, tsoa_1.Tags)("Account"),
1566
- __param(0, (0, tsoa_1.Inject)())
1669
+ (0, runtime_1.Security)("bearerAuth"),
1670
+ (0, runtime_1.Get)("/account/unread_count"),
1671
+ (0, runtime_1.Tags)("Account"),
1672
+ __param(0, (0, runtime_1.Inject)())
1567
1673
  ], LemmyHttp.prototype, "getUnreadCount", null);
1568
1674
  __decorate([
1569
- (0, tsoa_1.Security)("bearerAuth"),
1570
- (0, tsoa_1.Get)("/account/inbox"),
1571
- (0, tsoa_1.Tags)("Account"),
1572
- __param(0, (0, tsoa_1.Queries)()),
1573
- __param(1, (0, tsoa_1.Inject)())
1574
- ], LemmyHttp.prototype, "listInbox", null);
1575
- __decorate([
1576
- (0, tsoa_1.Post)("/account/auth/verify_email"),
1577
- (0, tsoa_1.Tags)("Account"),
1578
- __param(0, (0, tsoa_1.Body)()),
1579
- __param(1, (0, tsoa_1.Inject)())
1675
+ (0, runtime_1.Security)("bearerAuth"),
1676
+ (0, runtime_1.Get)("/account/notifications"),
1677
+ (0, runtime_1.Tags)("Account"),
1678
+ __param(0, (0, runtime_1.Queries)()),
1679
+ __param(1, (0, runtime_1.Inject)())
1680
+ ], LemmyHttp.prototype, "listNotifications", null);
1681
+ __decorate([
1682
+ (0, runtime_1.Post)("/account/auth/verify_email"),
1683
+ (0, runtime_1.Tags)("Account"),
1684
+ __param(0, (0, runtime_1.Body)()),
1685
+ __param(1, (0, runtime_1.Inject)())
1580
1686
  ], LemmyHttp.prototype, "verifyEmail", null);
1581
1687
  __decorate([
1582
- (0, tsoa_1.Post)("/account/auth/resend_verification_email"),
1583
- (0, tsoa_1.Tags)("Account"),
1584
- __param(0, (0, tsoa_1.Body)()),
1585
- __param(1, (0, tsoa_1.Inject)())
1688
+ (0, runtime_1.Post)("/account/auth/resend_verification_email"),
1689
+ (0, runtime_1.Tags)("Account"),
1690
+ __param(0, (0, runtime_1.Body)()),
1691
+ __param(1, (0, runtime_1.Inject)())
1586
1692
  ], LemmyHttp.prototype, "resendVerificationEmail", null);
1587
1693
  __decorate([
1588
- (0, tsoa_1.Security)("bearerAuth"),
1589
- (0, tsoa_1.Get)("/account/auth/saved"),
1590
- (0, tsoa_1.Tags)("Account"),
1591
- __param(0, (0, tsoa_1.Queries)()),
1592
- __param(1, (0, tsoa_1.Inject)())
1694
+ (0, runtime_1.Security)("bearerAuth"),
1695
+ (0, runtime_1.Get)("/account/saved"),
1696
+ (0, runtime_1.Tags)("Account"),
1697
+ __param(0, (0, runtime_1.Queries)()),
1698
+ __param(1, (0, runtime_1.Inject)())
1593
1699
  ], LemmyHttp.prototype, "listPersonSaved", null);
1594
1700
  __decorate([
1595
- (0, tsoa_1.Security)("bearerAuth"),
1596
- (0, tsoa_1.Post)("/admin/add"),
1597
- (0, tsoa_1.Tags)("Admin"),
1598
- __param(0, (0, tsoa_1.Body)()),
1599
- __param(1, (0, tsoa_1.Inject)())
1701
+ (0, runtime_1.Security)("bearerAuth"),
1702
+ (0, runtime_1.Get)("/account/read"),
1703
+ (0, runtime_1.Tags)("Account"),
1704
+ __param(0, (0, runtime_1.Queries)()),
1705
+ __param(1, (0, runtime_1.Inject)())
1706
+ ], LemmyHttp.prototype, "listPersonRead", null);
1707
+ __decorate([
1708
+ (0, runtime_1.Security)("bearerAuth"),
1709
+ (0, runtime_1.Get)("/account/hidden"),
1710
+ (0, runtime_1.Tags)("Account"),
1711
+ __param(0, (0, runtime_1.Queries)()),
1712
+ __param(1, (0, runtime_1.Inject)())
1713
+ ], LemmyHttp.prototype, "listPersonHidden", null);
1714
+ __decorate([
1715
+ (0, runtime_1.Security)("bearerAuth"),
1716
+ (0, runtime_1.Get)("/account/liked"),
1717
+ (0, runtime_1.Tags)("Account"),
1718
+ __param(0, (0, runtime_1.Queries)()),
1719
+ __param(1, (0, runtime_1.Inject)())
1720
+ ], LemmyHttp.prototype, "listPersonLiked", null);
1721
+ __decorate([
1722
+ (0, runtime_1.Security)("bearerAuth"),
1723
+ (0, runtime_1.Post)("/admin/add"),
1724
+ (0, runtime_1.Tags)("Admin"),
1725
+ __param(0, (0, runtime_1.Body)()),
1726
+ __param(1, (0, runtime_1.Inject)())
1600
1727
  ], LemmyHttp.prototype, "addAdmin", null);
1601
1728
  __decorate([
1602
- (0, tsoa_1.Security)("bearerAuth"),
1603
- (0, tsoa_1.Get)("/admin/registration_application/count"),
1604
- (0, tsoa_1.Tags)("Admin"),
1605
- __param(0, (0, tsoa_1.Inject)())
1729
+ (0, runtime_1.Security)("bearerAuth"),
1730
+ (0, runtime_1.Get)("/admin/registration_application/count"),
1731
+ (0, runtime_1.Tags)("Admin"),
1732
+ __param(0, (0, runtime_1.Inject)())
1606
1733
  ], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
1607
1734
  __decorate([
1608
- (0, tsoa_1.Security)("bearerAuth"),
1609
- (0, tsoa_1.Get)("/admin/registration_application/list"),
1610
- (0, tsoa_1.Tags)("Admin"),
1611
- __param(0, (0, tsoa_1.Queries)()),
1612
- __param(1, (0, tsoa_1.Inject)())
1735
+ (0, runtime_1.Security)("bearerAuth"),
1736
+ (0, runtime_1.Get)("/admin/registration_application/list"),
1737
+ (0, runtime_1.Tags)("Admin"),
1738
+ __param(0, (0, runtime_1.Queries)()),
1739
+ __param(1, (0, runtime_1.Inject)())
1613
1740
  ], LemmyHttp.prototype, "listRegistrationApplications", null);
1614
1741
  __decorate([
1615
- (0, tsoa_1.Security)("bearerAuth"),
1616
- (0, tsoa_1.Put)("/admin/registration_application/approve"),
1617
- (0, tsoa_1.Tags)("Admin"),
1618
- __param(0, (0, tsoa_1.Body)()),
1619
- __param(1, (0, tsoa_1.Inject)())
1742
+ (0, runtime_1.Security)("bearerAuth"),
1743
+ (0, runtime_1.Put)("/admin/registration_application/approve"),
1744
+ (0, runtime_1.Tags)("Admin"),
1745
+ __param(0, (0, runtime_1.Body)()),
1746
+ __param(1, (0, runtime_1.Inject)())
1620
1747
  ], LemmyHttp.prototype, "approveRegistrationApplication", null);
1621
1748
  __decorate([
1622
- (0, tsoa_1.Security)("bearerAuth"),
1623
- (0, tsoa_1.Get)("/admin/registration_application"),
1624
- (0, tsoa_1.Tags)("Admin"),
1625
- __param(0, (0, tsoa_1.Queries)()),
1626
- __param(1, (0, tsoa_1.Inject)())
1749
+ (0, runtime_1.Security)("bearerAuth"),
1750
+ (0, runtime_1.Get)("/admin/registration_application"),
1751
+ (0, runtime_1.Tags)("Admin"),
1752
+ __param(0, (0, runtime_1.Queries)()),
1753
+ __param(1, (0, runtime_1.Inject)())
1627
1754
  ], LemmyHttp.prototype, "getRegistrationApplication", null);
1628
1755
  __decorate([
1629
- (0, tsoa_1.Security)("bearerAuth"),
1630
- (0, tsoa_1.Post)("/admin/purge/person"),
1631
- (0, tsoa_1.Tags)("Admin"),
1632
- __param(0, (0, tsoa_1.Body)()),
1633
- __param(1, (0, tsoa_1.Inject)())
1756
+ (0, runtime_1.Security)("bearerAuth"),
1757
+ (0, runtime_1.Post)("/admin/purge/person"),
1758
+ (0, runtime_1.Tags)("Admin"),
1759
+ __param(0, (0, runtime_1.Body)()),
1760
+ __param(1, (0, runtime_1.Inject)())
1634
1761
  ], LemmyHttp.prototype, "purgePerson", null);
1635
1762
  __decorate([
1636
- (0, tsoa_1.Security)("bearerAuth"),
1637
- (0, tsoa_1.Post)("/admin/purge/community"),
1638
- (0, tsoa_1.Tags)("Admin"),
1639
- __param(0, (0, tsoa_1.Body)()),
1640
- __param(1, (0, tsoa_1.Inject)())
1763
+ (0, runtime_1.Security)("bearerAuth"),
1764
+ (0, runtime_1.Post)("/admin/purge/community"),
1765
+ (0, runtime_1.Tags)("Admin"),
1766
+ __param(0, (0, runtime_1.Body)()),
1767
+ __param(1, (0, runtime_1.Inject)())
1641
1768
  ], LemmyHttp.prototype, "purgeCommunity", null);
1642
1769
  __decorate([
1643
- (0, tsoa_1.Security)("bearerAuth"),
1644
- (0, tsoa_1.Post)("/admin/purge/post"),
1645
- (0, tsoa_1.Tags)("Admin"),
1646
- __param(0, (0, tsoa_1.Body)()),
1647
- __param(1, (0, tsoa_1.Inject)())
1770
+ (0, runtime_1.Security)("bearerAuth"),
1771
+ (0, runtime_1.Post)("/admin/purge/post"),
1772
+ (0, runtime_1.Tags)("Admin"),
1773
+ __param(0, (0, runtime_1.Body)()),
1774
+ __param(1, (0, runtime_1.Inject)())
1648
1775
  ], LemmyHttp.prototype, "purgePost", null);
1649
1776
  __decorate([
1650
- (0, tsoa_1.Security)("bearerAuth"),
1651
- (0, tsoa_1.Post)("/admin/purge/comment"),
1652
- (0, tsoa_1.Tags)("Admin"),
1653
- __param(0, (0, tsoa_1.Body)()),
1654
- __param(1, (0, tsoa_1.Inject)())
1777
+ (0, runtime_1.Security)("bearerAuth"),
1778
+ (0, runtime_1.Post)("/admin/purge/comment"),
1779
+ (0, runtime_1.Tags)("Admin"),
1780
+ __param(0, (0, runtime_1.Body)()),
1781
+ __param(1, (0, runtime_1.Inject)())
1655
1782
  ], LemmyHttp.prototype, "purgeComment", null);
1656
1783
  __decorate([
1657
- (0, tsoa_1.Security)("bearerAuth"),
1658
- (0, tsoa_1.Post)("/custom_emoji"),
1659
- (0, tsoa_1.Tags)("CustomEmoji"),
1660
- __param(0, (0, tsoa_1.Body)()),
1661
- __param(1, (0, tsoa_1.Inject)())
1784
+ (0, runtime_1.Security)("bearerAuth"),
1785
+ (0, runtime_1.Post)("/custom_emoji"),
1786
+ (0, runtime_1.Tags)("CustomEmoji"),
1787
+ __param(0, (0, runtime_1.Body)()),
1788
+ __param(1, (0, runtime_1.Inject)())
1662
1789
  ], LemmyHttp.prototype, "createCustomEmoji", null);
1663
1790
  __decorate([
1664
- (0, tsoa_1.Security)("bearerAuth"),
1665
- (0, tsoa_1.Put)("/custom_emoji"),
1666
- (0, tsoa_1.Tags)("CustomEmoji"),
1667
- __param(0, (0, tsoa_1.Body)()),
1668
- __param(1, (0, tsoa_1.Inject)())
1791
+ (0, runtime_1.Security)("bearerAuth"),
1792
+ (0, runtime_1.Put)("/custom_emoji"),
1793
+ (0, runtime_1.Tags)("CustomEmoji"),
1794
+ __param(0, (0, runtime_1.Body)()),
1795
+ __param(1, (0, runtime_1.Inject)())
1669
1796
  ], LemmyHttp.prototype, "editCustomEmoji", null);
1670
1797
  __decorate([
1671
- (0, tsoa_1.Security)("bearerAuth"),
1672
- (0, tsoa_1.Post)("/custom_emoji/delete"),
1673
- (0, tsoa_1.Tags)("CustomEmoji"),
1674
- __param(0, (0, tsoa_1.Body)()),
1675
- __param(1, (0, tsoa_1.Inject)())
1798
+ (0, runtime_1.Security)("bearerAuth"),
1799
+ (0, runtime_1.Post)("/custom_emoji/delete"),
1800
+ (0, runtime_1.Tags)("CustomEmoji"),
1801
+ __param(0, (0, runtime_1.Body)()),
1802
+ __param(1, (0, runtime_1.Inject)())
1676
1803
  ], LemmyHttp.prototype, "deleteCustomEmoji", null);
1677
1804
  __decorate([
1678
- (0, tsoa_1.Security)("bearerAuth"),
1679
- (0, tsoa_1.Security)({}),
1680
- (0, tsoa_1.Get)("/custom_emoji/list"),
1681
- (0, tsoa_1.Tags)("CustomEmoji"),
1682
- __param(0, (0, tsoa_1.Queries)()),
1683
- __param(1, (0, tsoa_1.Inject)())
1805
+ (0, runtime_1.Security)("bearerAuth"),
1806
+ (0, runtime_1.Security)({}),
1807
+ (0, runtime_1.Get)("/custom_emoji/list"),
1808
+ (0, runtime_1.Tags)("CustomEmoji"),
1809
+ __param(0, (0, runtime_1.Queries)()),
1810
+ __param(1, (0, runtime_1.Inject)())
1684
1811
  ], LemmyHttp.prototype, "listCustomEmojis", null);
1685
1812
  __decorate([
1686
- (0, tsoa_1.Security)("bearerAuth"),
1687
- (0, tsoa_1.Post)("/admin/tagline"),
1688
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1689
- __param(0, (0, tsoa_1.Body)()),
1690
- __param(1, (0, tsoa_1.Inject)())
1813
+ (0, runtime_1.Security)("bearerAuth"),
1814
+ (0, runtime_1.Post)("/admin/tagline"),
1815
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1816
+ __param(0, (0, runtime_1.Body)()),
1817
+ __param(1, (0, runtime_1.Inject)())
1691
1818
  ], LemmyHttp.prototype, "createTagline", null);
1692
1819
  __decorate([
1693
- (0, tsoa_1.Security)("bearerAuth"),
1694
- (0, tsoa_1.Put)("/admin/tagline"),
1695
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1696
- __param(0, (0, tsoa_1.Body)()),
1697
- __param(1, (0, tsoa_1.Inject)())
1820
+ (0, runtime_1.Security)("bearerAuth"),
1821
+ (0, runtime_1.Put)("/admin/tagline"),
1822
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1823
+ __param(0, (0, runtime_1.Body)()),
1824
+ __param(1, (0, runtime_1.Inject)())
1698
1825
  ], LemmyHttp.prototype, "editTagline", null);
1699
1826
  __decorate([
1700
- (0, tsoa_1.Security)("bearerAuth"),
1701
- (0, tsoa_1.Post)("/admin/tagline/delete"),
1702
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1703
- __param(0, (0, tsoa_1.Body)()),
1704
- __param(1, (0, tsoa_1.Inject)())
1827
+ (0, runtime_1.Security)("bearerAuth"),
1828
+ (0, runtime_1.Post)("/admin/tagline/delete"),
1829
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1830
+ __param(0, (0, runtime_1.Body)()),
1831
+ __param(1, (0, runtime_1.Inject)())
1705
1832
  ], LemmyHttp.prototype, "deleteTagline", null);
1706
1833
  __decorate([
1707
- (0, tsoa_1.Security)("bearerAuth"),
1708
- (0, tsoa_1.Security)({}),
1709
- (0, tsoa_1.Get)("/admin/tagline/list"),
1710
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1711
- __param(0, (0, tsoa_1.Queries)()),
1712
- __param(1, (0, tsoa_1.Inject)())
1834
+ (0, runtime_1.Security)("bearerAuth"),
1835
+ (0, runtime_1.Security)({}),
1836
+ (0, runtime_1.Get)("/admin/tagline/list"),
1837
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1838
+ __param(0, (0, runtime_1.Queries)()),
1839
+ __param(1, (0, runtime_1.Inject)())
1713
1840
  ], LemmyHttp.prototype, "listTaglines", null);
1714
1841
  __decorate([
1715
- (0, tsoa_1.Security)("bearerAuth"),
1716
- (0, tsoa_1.Post)("/oauth_provider"),
1717
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1718
- __param(0, (0, tsoa_1.Body)()),
1719
- __param(1, (0, tsoa_1.Inject)())
1842
+ (0, runtime_1.Security)("bearerAuth"),
1843
+ (0, runtime_1.Post)("/community/tag"),
1844
+ (0, runtime_1.Tags)("Community"),
1845
+ __param(0, (0, runtime_1.Body)()),
1846
+ __param(1, (0, runtime_1.Inject)())
1847
+ ], LemmyHttp.prototype, "createCommunityTag", null);
1848
+ __decorate([
1849
+ (0, runtime_1.Security)("bearerAuth"),
1850
+ (0, runtime_1.Put)("/community/tag"),
1851
+ (0, runtime_1.Tags)("Community"),
1852
+ __param(0, (0, runtime_1.Body)()),
1853
+ __param(1, (0, runtime_1.Inject)())
1854
+ ], LemmyHttp.prototype, "updateCommunityTag", null);
1855
+ __decorate([
1856
+ (0, runtime_1.Security)("bearerAuth"),
1857
+ (0, runtime_1.Delete)("/community/tag"),
1858
+ (0, runtime_1.Tags)("Community"),
1859
+ __param(0, (0, runtime_1.Body)()),
1860
+ __param(1, (0, runtime_1.Inject)())
1861
+ ], LemmyHttp.prototype, "deleteCommunityTag", null);
1862
+ __decorate([
1863
+ (0, runtime_1.Security)("bearerAuth"),
1864
+ (0, runtime_1.Post)("/oauth_provider"),
1865
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1866
+ __param(0, (0, runtime_1.Body)()),
1867
+ __param(1, (0, runtime_1.Inject)())
1720
1868
  ], LemmyHttp.prototype, "createOAuthProvider", null);
1721
1869
  __decorate([
1722
- (0, tsoa_1.Security)("bearerAuth"),
1723
- (0, tsoa_1.Put)("/oauth_provider"),
1724
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1725
- __param(0, (0, tsoa_1.Body)()),
1726
- __param(1, (0, tsoa_1.Inject)())
1870
+ (0, runtime_1.Security)("bearerAuth"),
1871
+ (0, runtime_1.Put)("/oauth_provider"),
1872
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1873
+ __param(0, (0, runtime_1.Body)()),
1874
+ __param(1, (0, runtime_1.Inject)())
1727
1875
  ], LemmyHttp.prototype, "editOAuthProvider", null);
1728
1876
  __decorate([
1729
- (0, tsoa_1.Security)("bearerAuth"),
1730
- (0, tsoa_1.Post)("/oauth_provider/delete"),
1731
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1732
- __param(0, (0, tsoa_1.Body)()),
1733
- __param(1, (0, tsoa_1.Inject)())
1877
+ (0, runtime_1.Security)("bearerAuth"),
1878
+ (0, runtime_1.Post)("/oauth_provider/delete"),
1879
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1880
+ __param(0, (0, runtime_1.Body)()),
1881
+ __param(1, (0, runtime_1.Inject)())
1734
1882
  ], LemmyHttp.prototype, "deleteOAuthProvider", null);
1735
1883
  __decorate([
1736
- (0, tsoa_1.Security)("bearerAuth"),
1737
- (0, tsoa_1.Post)("/oauth/authenticate"),
1738
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1739
- __param(0, (0, tsoa_1.Body)()),
1740
- __param(1, (0, tsoa_1.Inject)())
1884
+ (0, runtime_1.Security)("bearerAuth"),
1885
+ (0, runtime_1.Post)("/oauth/authenticate"),
1886
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1887
+ __param(0, (0, runtime_1.Body)()),
1888
+ __param(1, (0, runtime_1.Inject)())
1741
1889
  ], LemmyHttp.prototype, "authenticateWithOAuth", null);
1742
1890
  __decorate([
1743
- (0, tsoa_1.Get)("/federated_instances"),
1744
- (0, tsoa_1.Tags)("Miscellaneous"),
1745
- __param(0, (0, tsoa_1.Inject)())
1891
+ (0, runtime_1.Get)("/federated_instances"),
1892
+ (0, runtime_1.Tags)("Miscellaneous"),
1893
+ __param(0, (0, runtime_1.Inject)())
1746
1894
  ], LemmyHttp.prototype, "getFederatedInstances", null);
1747
1895
  __decorate([
1748
- (0, tsoa_1.Security)("bearerAuth"),
1749
- (0, tsoa_1.Get)("/report/list"),
1750
- (0, tsoa_1.Tags)("Admin"),
1751
- __param(0, (0, tsoa_1.Queries)()),
1752
- __param(1, (0, tsoa_1.Inject)())
1896
+ (0, runtime_1.Security)("bearerAuth"),
1897
+ (0, runtime_1.Get)("/report/list"),
1898
+ (0, runtime_1.Tags)("Admin"),
1899
+ __param(0, (0, runtime_1.Queries)()),
1900
+ __param(1, (0, runtime_1.Inject)())
1753
1901
  ], LemmyHttp.prototype, "listReports", null);
1754
1902
  __decorate([
1755
- (0, tsoa_1.Security)("bearerAuth"),
1756
- (0, tsoa_1.Post)("/account/block/instance"),
1757
- (0, tsoa_1.Tags)("Account"),
1758
- __param(0, (0, tsoa_1.Body)()),
1759
- __param(1, (0, tsoa_1.Inject)())
1760
- ], LemmyHttp.prototype, "userBlockInstance", null);
1761
- __decorate([
1762
- (0, tsoa_1.Security)("bearerAuth"),
1763
- (0, tsoa_1.Post)("/admin/instance/block"),
1764
- (0, tsoa_1.Tags)("Admin"),
1765
- __param(0, (0, tsoa_1.Body)()),
1766
- __param(1, (0, tsoa_1.Inject)())
1903
+ (0, runtime_1.Security)("bearerAuth"),
1904
+ (0, runtime_1.Post)("/account/block/instance/communities"),
1905
+ (0, runtime_1.Tags)("Account", "Community"),
1906
+ __param(0, (0, runtime_1.Body)()),
1907
+ __param(1, (0, runtime_1.Inject)())
1908
+ ], LemmyHttp.prototype, "userBlockInstanceCommunities", null);
1909
+ __decorate([
1910
+ (0, runtime_1.Security)("bearerAuth"),
1911
+ (0, runtime_1.Post)("/account/block/instance/persons"),
1912
+ (0, runtime_1.Tags)("Account", "Person"),
1913
+ __param(0, (0, runtime_1.Body)()),
1914
+ __param(1, (0, runtime_1.Inject)())
1915
+ ], LemmyHttp.prototype, "userBlockInstancePersons", null);
1916
+ __decorate([
1917
+ (0, runtime_1.Security)("bearerAuth"),
1918
+ (0, runtime_1.Post)("/admin/instance/block"),
1919
+ (0, runtime_1.Tags)("Admin"),
1920
+ __param(0, (0, runtime_1.Body)()),
1921
+ __param(1, (0, runtime_1.Inject)())
1767
1922
  ], LemmyHttp.prototype, "adminBlockInstance", null);
1768
1923
  __decorate([
1769
- (0, tsoa_1.Security)("bearerAuth"),
1770
- (0, tsoa_1.Post)("/admin/instance/allow"),
1771
- (0, tsoa_1.Tags)("Admin"),
1772
- __param(0, (0, tsoa_1.Body)()),
1773
- __param(1, (0, tsoa_1.Inject)())
1924
+ (0, runtime_1.Security)("bearerAuth"),
1925
+ (0, runtime_1.Post)("/admin/instance/allow"),
1926
+ (0, runtime_1.Tags)("Admin"),
1927
+ __param(0, (0, runtime_1.Body)()),
1928
+ __param(1, (0, runtime_1.Inject)())
1774
1929
  ], LemmyHttp.prototype, "adminAllowInstance", null);
1775
1930
  __decorate([
1776
- (0, tsoa_1.Security)("bearerAuth"),
1777
- (0, tsoa_1.Post)("/account/avatar"),
1778
- (0, tsoa_1.Tags)("Account", "Media"),
1779
- __param(0, (0, tsoa_1.UploadedFile)()),
1780
- __param(1, (0, tsoa_1.Inject)())
1931
+ (0, runtime_1.Security)("bearerAuth"),
1932
+ (0, runtime_1.Post)("/account/avatar"),
1933
+ (0, runtime_1.Tags)("Account", "Media"),
1934
+ __param(0, (0, runtime_1.UploadedFile)()),
1935
+ __param(1, (0, runtime_1.Inject)())
1781
1936
  ], LemmyHttp.prototype, "uploadUserAvatar", null);
1782
1937
  __decorate([
1783
- (0, tsoa_1.Security)("bearerAuth"),
1784
- (0, tsoa_1.Delete)("/account/avatar"),
1785
- (0, tsoa_1.Tags)("Account", "Media"),
1786
- __param(0, (0, tsoa_1.Inject)())
1938
+ (0, runtime_1.Security)("bearerAuth"),
1939
+ (0, runtime_1.Delete)("/account/avatar"),
1940
+ (0, runtime_1.Tags)("Account", "Media"),
1941
+ __param(0, (0, runtime_1.Inject)())
1787
1942
  ], LemmyHttp.prototype, "deleteUserAvatar", null);
1788
1943
  __decorate([
1789
- (0, tsoa_1.Security)("bearerAuth"),
1790
- (0, tsoa_1.Post)("/account/banner"),
1791
- (0, tsoa_1.Tags)("Account", "Media"),
1792
- __param(0, (0, tsoa_1.UploadedFile)()),
1793
- __param(1, (0, tsoa_1.Inject)())
1944
+ (0, runtime_1.Security)("bearerAuth"),
1945
+ (0, runtime_1.Post)("/account/banner"),
1946
+ (0, runtime_1.Tags)("Account", "Media"),
1947
+ __param(0, (0, runtime_1.UploadedFile)()),
1948
+ __param(1, (0, runtime_1.Inject)())
1794
1949
  ], LemmyHttp.prototype, "uploadUserBanner", null);
1795
1950
  __decorate([
1796
- (0, tsoa_1.Security)("bearerAuth"),
1797
- (0, tsoa_1.Delete)("/account/banner"),
1798
- (0, tsoa_1.Tags)("Account", "Media"),
1799
- __param(0, (0, tsoa_1.Inject)())
1951
+ (0, runtime_1.Security)("bearerAuth"),
1952
+ (0, runtime_1.Delete)("/account/banner"),
1953
+ (0, runtime_1.Tags)("Account", "Media"),
1954
+ __param(0, (0, runtime_1.Inject)())
1800
1955
  ], LemmyHttp.prototype, "deleteUserBanner", null);
1801
1956
  __decorate([
1802
- (0, tsoa_1.Security)("bearerAuth"),
1803
- (0, tsoa_1.Post)("/community/icon"),
1804
- (0, tsoa_1.Tags)("Community", "Media"),
1805
- __param(0, (0, tsoa_1.UploadedFile)()),
1806
- __param(1, (0, tsoa_1.Inject)())
1957
+ (0, runtime_1.Security)("bearerAuth"),
1958
+ (0, runtime_1.Post)("/community/icon"),
1959
+ (0, runtime_1.Tags)("Community", "Media"),
1960
+ __param(0, (0, runtime_1.Queries)()),
1961
+ __param(1, (0, runtime_1.UploadedFile)()),
1962
+ __param(2, (0, runtime_1.Inject)())
1807
1963
  ], LemmyHttp.prototype, "uploadCommunityIcon", null);
1808
1964
  __decorate([
1809
- (0, tsoa_1.Security)("bearerAuth"),
1810
- (0, tsoa_1.Delete)("/community/icon"),
1811
- (0, tsoa_1.Tags)("Community", "Media"),
1812
- __param(0, (0, tsoa_1.Inject)())
1965
+ (0, runtime_1.Security)("bearerAuth"),
1966
+ (0, runtime_1.Delete)("/community/icon"),
1967
+ (0, runtime_1.Tags)("Community", "Media"),
1968
+ __param(0, (0, runtime_1.Body)()),
1969
+ __param(1, (0, runtime_1.Inject)())
1813
1970
  ], LemmyHttp.prototype, "deleteCommunityIcon", null);
1814
1971
  __decorate([
1815
- (0, tsoa_1.Security)("bearerAuth"),
1816
- (0, tsoa_1.Post)("/community/banner"),
1817
- (0, tsoa_1.Tags)("Community", "Media"),
1818
- __param(0, (0, tsoa_1.UploadedFile)()),
1819
- __param(1, (0, tsoa_1.Inject)())
1972
+ (0, runtime_1.Security)("bearerAuth"),
1973
+ (0, runtime_1.Post)("/community/banner"),
1974
+ (0, runtime_1.Tags)("Community", "Media"),
1975
+ __param(0, (0, runtime_1.Queries)()),
1976
+ __param(1, (0, runtime_1.UploadedFile)()),
1977
+ __param(2, (0, runtime_1.Inject)())
1820
1978
  ], LemmyHttp.prototype, "uploadCommunityBanner", null);
1821
1979
  __decorate([
1822
- (0, tsoa_1.Security)("bearerAuth"),
1823
- (0, tsoa_1.Delete)("/community/banner"),
1824
- (0, tsoa_1.Tags)("Community", "Media"),
1825
- __param(0, (0, tsoa_1.Inject)())
1980
+ (0, runtime_1.Security)("bearerAuth"),
1981
+ (0, runtime_1.Delete)("/community/banner"),
1982
+ (0, runtime_1.Tags)("Community", "Media"),
1983
+ __param(0, (0, runtime_1.Body)()),
1984
+ __param(1, (0, runtime_1.Inject)())
1826
1985
  ], LemmyHttp.prototype, "deleteCommunityBanner", null);
1827
1986
  __decorate([
1828
- (0, tsoa_1.Security)("bearerAuth"),
1829
- (0, tsoa_1.Post)("/site/icon"),
1830
- (0, tsoa_1.Tags)("Site", "Media"),
1831
- __param(0, (0, tsoa_1.UploadedFile)()),
1832
- __param(1, (0, tsoa_1.Inject)())
1987
+ (0, runtime_1.Security)("bearerAuth"),
1988
+ (0, runtime_1.Post)("/site/icon"),
1989
+ (0, runtime_1.Tags)("Site", "Media"),
1990
+ __param(0, (0, runtime_1.UploadedFile)()),
1991
+ __param(1, (0, runtime_1.Inject)())
1833
1992
  ], LemmyHttp.prototype, "uploadSiteIcon", null);
1834
1993
  __decorate([
1835
- (0, tsoa_1.Security)("bearerAuth"),
1836
- (0, tsoa_1.Delete)("/site/icon"),
1837
- (0, tsoa_1.Tags)("Site", "Media"),
1838
- __param(0, (0, tsoa_1.Inject)())
1994
+ (0, runtime_1.Security)("bearerAuth"),
1995
+ (0, runtime_1.Delete)("/site/icon"),
1996
+ (0, runtime_1.Tags)("Site", "Media"),
1997
+ __param(0, (0, runtime_1.Inject)())
1839
1998
  ], LemmyHttp.prototype, "deleteSiteIcon", null);
1840
1999
  __decorate([
1841
- (0, tsoa_1.Security)("bearerAuth"),
1842
- (0, tsoa_1.Post)("/site/banner"),
1843
- (0, tsoa_1.Tags)("Site", "Media"),
1844
- __param(0, (0, tsoa_1.UploadedFile)()),
1845
- __param(1, (0, tsoa_1.Inject)())
2000
+ (0, runtime_1.Security)("bearerAuth"),
2001
+ (0, runtime_1.Post)("/site/banner"),
2002
+ (0, runtime_1.Tags)("Site", "Media"),
2003
+ __param(0, (0, runtime_1.UploadedFile)()),
2004
+ __param(1, (0, runtime_1.Inject)())
1846
2005
  ], LemmyHttp.prototype, "uploadSiteBanner", null);
1847
2006
  __decorate([
1848
- (0, tsoa_1.Security)("bearerAuth"),
1849
- (0, tsoa_1.Delete)("/site/banner"),
1850
- (0, tsoa_1.Tags)("Site", "Media"),
1851
- __param(0, (0, tsoa_1.Inject)())
2007
+ (0, runtime_1.Security)("bearerAuth"),
2008
+ (0, runtime_1.Delete)("/site/banner"),
2009
+ (0, runtime_1.Tags)("Site", "Media"),
2010
+ __param(0, (0, runtime_1.Inject)())
1852
2011
  ], LemmyHttp.prototype, "deleteSiteBanner", null);
1853
2012
  __decorate([
1854
- (0, tsoa_1.Security)("bearerAuth"),
1855
- (0, tsoa_1.Post)("/image"),
1856
- (0, tsoa_1.Tags)("Media"),
1857
- __param(0, (0, tsoa_1.UploadedFile)()),
1858
- __param(1, (0, tsoa_1.Inject)())
2013
+ (0, runtime_1.Security)("bearerAuth"),
2014
+ (0, runtime_1.Post)("/image"),
2015
+ (0, runtime_1.Tags)("Media"),
2016
+ __param(0, (0, runtime_1.UploadedFile)()),
2017
+ __param(1, (0, runtime_1.Inject)())
1859
2018
  ], LemmyHttp.prototype, "uploadImage", null);
1860
2019
  __decorate([
1861
- (0, tsoa_1.Security)("bearerAuth"),
1862
- (0, tsoa_1.Delete)("/image"),
1863
- (0, tsoa_1.Tags)("Media"),
1864
- __param(0, (0, tsoa_1.Queries)()),
1865
- __param(1, (0, tsoa_1.Inject)())
1866
- ], LemmyHttp.prototype, "deleteImage", null);
1867
- __decorate([
1868
- (0, tsoa_1.Get)("image/health"),
1869
- (0, tsoa_1.Tags)("Media"),
1870
- __param(0, (0, tsoa_1.Inject)())
2020
+ (0, runtime_1.Get)("/image/health"),
2021
+ (0, runtime_1.Tags)("Media"),
2022
+ __param(0, (0, runtime_1.Inject)())
1871
2023
  ], LemmyHttp.prototype, "imageHealth", null);
2024
+ __decorate([
2025
+ (0, runtime_1.Security)("bearerAuth"),
2026
+ (0, runtime_1.Post)("/user/donation_dialog_shown"),
2027
+ (0, runtime_1.Tags)("Miscellaneous"),
2028
+ __param(0, (0, runtime_1.Inject)())
2029
+ ], LemmyHttp.prototype, "donationDialogShown", null);
2030
+ __decorate([
2031
+ (0, runtime_1.Security)("bearerAuth"),
2032
+ (0, runtime_1.Post)("/multi_community"),
2033
+ (0, runtime_1.Tags)("Multicommunity"),
2034
+ __param(0, (0, runtime_1.Body)()),
2035
+ __param(1, (0, runtime_1.Inject)())
2036
+ ], LemmyHttp.prototype, "createMultiCommunity", null);
2037
+ __decorate([
2038
+ (0, runtime_1.Security)("bearerAuth"),
2039
+ (0, runtime_1.Put)("/multi_community"),
2040
+ (0, runtime_1.Tags)("Multicommunity"),
2041
+ __param(0, (0, runtime_1.Body)()),
2042
+ __param(1, (0, runtime_1.Inject)())
2043
+ ], LemmyHttp.prototype, "updateMultiCommunity", null);
2044
+ __decorate([
2045
+ (0, runtime_1.Get)("/multi_community"),
2046
+ (0, runtime_1.Tags)("Multicommunity"),
2047
+ __param(0, (0, runtime_1.Queries)()),
2048
+ __param(1, (0, runtime_1.Inject)())
2049
+ ], LemmyHttp.prototype, "getMultiCommunity", null);
2050
+ __decorate([
2051
+ (0, runtime_1.Security)("bearerAuth"),
2052
+ (0, runtime_1.Post)("/multi_community/entry"),
2053
+ (0, runtime_1.Tags)("Multicommunity"),
2054
+ __param(0, (0, runtime_1.Body)()),
2055
+ __param(1, (0, runtime_1.Inject)())
2056
+ ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2057
+ __decorate([
2058
+ (0, runtime_1.Security)("bearerAuth"),
2059
+ (0, runtime_1.Delete)("/multi_community/entry"),
2060
+ (0, runtime_1.Tags)("Multicommunity"),
2061
+ __param(0, (0, runtime_1.Body)()),
2062
+ __param(1, (0, runtime_1.Inject)())
2063
+ ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
2064
+ __decorate([
2065
+ (0, runtime_1.Get)("/multi_community/list"),
2066
+ (0, runtime_1.Tags)("Multicommunity"),
2067
+ __param(0, (0, runtime_1.Queries)()),
2068
+ __param(1, (0, runtime_1.Inject)())
2069
+ ], LemmyHttp.prototype, "listMultiCommunities", null);
2070
+ __decorate([
2071
+ (0, runtime_1.Post)("/multi_community/follow"),
2072
+ (0, runtime_1.Tags)("Multicommunity"),
2073
+ __param(0, (0, runtime_1.Body)()),
2074
+ __param(1, (0, runtime_1.Inject)())
2075
+ ], LemmyHttp.prototype, "followMultiCommunity", null);
1872
2076
  exports.LemmyHttp = LemmyHttp = __decorate([
1873
- (0, tsoa_1.Route)("api/v4")
2077
+ (0, runtime_1.Route)("api/v4")
1874
2078
  ], LemmyHttp);
1875
2079
  function encodeGetParams(p) {
1876
2080
  return Object.entries(p)
@@ -1889,3 +2093,18 @@ function createFormData(image) {
1889
2093
  }
1890
2094
  return formData;
1891
2095
  }
2096
+ /**
2097
+ * A Lemmy error type.
2098
+ *
2099
+ * The name is the i18n translatable error code.
2100
+ * The msg is either an empty string, or extra non-translatable info.
2101
+ */
2102
+ class LemmyError extends Error {
2103
+ constructor(name, msg) {
2104
+ super(msg ?? "");
2105
+ this.name = name;
2106
+ // Set the prototype explicitly.
2107
+ Object.setPrototypeOf(this, LemmyError.prototype);
2108
+ }
2109
+ }
2110
+ exports.LemmyError = LemmyError;