lemmy-js-client 1.0.0-site-person-ban.1 → 1.0.0-vote-view.0

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